{"id":7371,"date":"2022-01-21T07:34:39","date_gmt":"2022-01-21T07:34:39","guid":{"rendered":"https:\/\/www.qec.tw\/?p=7371"},"modified":"2024-07-22T06:22:58","modified_gmt":"2024-07-22T06:22:58","slug":"use-qec-m-043t-to-control-the-ethercat-slave-digital-i-o-modules-and-monitor-internal-information","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/ja\/ethercat\/ethercat-application\/use-qec-m-043t-to-control-the-ethercat-slave-digital-i-o-modules-and-monitor-internal-information\/","title":{"rendered":"Use QEC-M-043T to control the EtherCAT slave Digital I\/O modules and monitor internal information"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This tutorial will teach you to use QEC-M to control QEC-RxxD (EtherCAT Slave Digital I\/O module) products series. This project is a simple demo of the EtherCAT Master and EtherCAT Slave control and monitor.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d-1024x576.jpg\" alt=\"qecm043tControlQecr00d\" class=\"wp-image-7372\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d-1024x576.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d-300x169.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d-768x432.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d-600x338.jpg 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Goals:<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In this tutorial, we will achieve the following:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Understanding the EtherCAT Library<\/li><li>Connect between QEC-M and QEC-R<\/li><li>Make the UI interface show the digital states and the device data<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Hardware and Software needed:<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.qec.tw\/software\/\">86Duino IDE 500+<\/a><\/li><li><a href=\"https:\/\/www.qec.tw\/product\/qec-m-043t\/\">QEC-M-043T<\/a><\/li><li>QEC-R11DF0: EtherCAT Slave Digital Input module<\/li><li>QEC-R11D0F: EtherCAT Slave Digital Output module<\/li><\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Start this tutorial<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If this is your first time running 86Duino sketch files, we suggest you check out <a href=\"https:\/\/www.qec.tw\/ethercat\/qec-tutorial\/set-up-the-qec-m-043t-for-86duino\/\">how to set up the QEC-M-043T for 86Duino<\/a> before proceeding.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1. Connect between the QEC-M and QEC-RxxD<\/h3>\n\n\n\n<ol class=\"wp-block-list\" type=\"1\"><li>Use RJ45 to connect the QEC-M and QEC-RxxD.<\/li><li>Connect between the QEC-R11D0F and QEC-R11DF0 that the Vp (Peripheral power) power.<\/li><\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d_img1-1024x768.jpg\" alt=\"qecm043tControlQecr00d_img1\" class=\"wp-image-7375\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d_img1-1024x768.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d_img1-300x225.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d_img1-768x576.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d_img1-600x450.jpg 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2022\/01\/qecm043tControlQecr00d_img1.jpg 1080w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2. Copy the given code below into 86Duino IDE<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;EthercatMaster.h&quot;\n#include &lt;lvgl86.h&gt;\n\nEthercatMaster master;\n\nDmpQECR11D0FSDriver QECR11D0FS;\nDmpQECR11DF0DDriver QECR11DF0D;\nuint16_t val = 0x5555;\n\nvoid lv_demo_widgets(void); \/* lvgl User Interface work *\/\nstatic void tab_create_1(lv_obj_t * parent);\nstatic void tab_create_2(lv_obj_t * parent);\nstatic void color_chg_event_cb(lv_obj_t * sw, lv_event_t e);\n\nstatic lv_obj_t * tv;\nstatic lv_obj_t * t[2];\nstatic lv_obj_t * led[32];\nstatic lv_obj_t * label_system[8];\nstatic lv_obj_t * gauge[3];\nstatic lv_obj_t * label_gauge[3];\nstatic lv_style_t bigStyle;\nstatic lv_style_t style_box;\nstatic lv_style_t style_ledColor;\nstatic lv_color_t needle_colors = LV_COLOR_RED;\n\nconst char tabName[2][50] = {&quot;Light Status&quot;, &quot;Device Information&quot;};\nconst char led_lightName[2][50] = {&quot;QECR11D0FS LED Light&quot;, &quot;QECR11DF0S LED Light&quot;};\nconst char value_systemName[8][50] = {&quot;QECR11D0FS Voltage-s&quot;, &quot;QECR11D0FS Current-s&quot;, &quot;QECR11D0FS Voltage-p&quot;, &quot;QECR11D0FS Current-p&quot;,\n                                    &quot;QECR11DF0D Voltage-s&quot;, &quot;QECR11DF0D Current-s&quot;, &quot;QECR11DF0D Voltage-p&quot;, &quot;QECR11DF0D Current-p&quot;,\n                                    };\nconst char value_systemTempName[3][50] = {&quot;QECR11D0FS Temp.&quot;, &quot;QECR11DF0D Temp.&quot;, &quot;Master CPU Temp.&quot;};                  \nconst int ledLocateX[32] = {350, 250, 150, 50, -50, -150, -250, -350,\n                          350, 250, 150, 50, -50, -150, -250, -350,\n                          350, 250, 150, 50, -50, -150, -250, -350,\n                          350, 250, 150, 50, -50, -150, -250, -350,\n                          };\nconst int ledLocateY[32] = {150, 150, 150, 150, 150, 150, 150, 150,\n                          50, 50, 50, 50, 50, 50, 50, 50,\n                          -50, -50, -50, -50, -50, -50, -50, -50,\n                          -150, -150, -150, -150, -150, -150, -150, -150,\n                          };\nlong unsigned int ledStyleColor = 0x60ff4e;\nunsigned long timeCheck = 0;\nbool ledSw[32];\n\nvoid setup(void) {\n    Serial.begin(115200); \/\/ Serial Port begin\n    \/\/ GUI: LVGL\n    lv86_init(); \/\/ Init LV86\n    lv_disp_size_t disp_size = lv_disp_get_size_category(NULL);\n    lv_demo_widgets();\n    \/\/ EtherCAT\n    master.begin();\n    QECR11D0FS.begin(0, master);\n    QECR11DF0D.begin(1, master);\n    \/* Auto FreeRun Mode, Cycle Time 500000 ns. *\/\n    master.start(ECAT_AUTO, 500000);\n    \/\/ Timing\n    timeCheck = millis();\n}\n\nvoid loop() {\n    lv_task_handler(); \/* let the GUI do its work *\/\n    escGpioControl(); \/* EtherCAT Slave - GPIN\/OUT control *\/\n    label_system_value(); \/* label Value Setting *\/\n    ledSystemControl(); \/* led control *\/\n}\n\nvoid lv_demo_widgets(void) {\n    double light_palette[49] = {\n    0x01a2b1,\n    0x44d1b6,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    0x01a2b1,\n    0xff0000,\n    \n    0xeaeff3,\n    0xffffff,\n    0xeeeeee,\n    0x3b3e42,\n    0x3b3e42,\n    0xffffff,\n    0x3b3e42,\n    0xd6dde3,\n    0x3b3e42,\n    0xaaaaaa,\n    0xd6dde3,\n    0xffffff,\n    0x888888,\n    0xcccccc,\n    0xd4d7d9,\n    0x666666,\n    0xaaaaaa,\n    0x464b5b,\n    0x888888,\n    -2,\n    0xc0c0c0,\n    0xcccfd1,\n    -1,\/\/sw_knob\n    0xffffff,\n    0x888888};\n    \n    static lv_font_t * theme_fonts[6] = {\n    &amp;lv_font_montserrat_18,\n    &amp;lv_font_montserrat_14,\n    &amp;lv_font_montserrat_36,\n    &amp;lv_font_montserrat_12,\n    &amp;lv_font_montserrat_28,\n    &amp;lv_font_montserrat_18};\n\n    \/\/ Setting Theme\n    lv_theme_material86_init(light_palette, theme_fonts);\n\n    \/\/ Create Tabview paging object\n    tv = lv_tabview_create(lv_scr_act(), NULL);\n    \n    lv_obj_set_style_local_pad_left(tv, LV_TABVIEW_PART_TAB_BG, LV_STATE_DEFAULT, LV_HOR_RES \/ 2);\n\n    \/\/ Create a switch element in the upper left corner\n    lv_obj_t * sw = lv_switch_create(lv_scr_act(), NULL);\n    lv_obj_set_event_cb(sw, color_chg_event_cb);\n    lv_obj_set_pos(sw, LV_DPX(10), LV_DPX(10));\n    lv_obj_set_style_local_value_str(sw, LV_SWITCH_PART_BG, LV_STATE_DEFAULT, &quot; &quot;);\n    lv_obj_set_style_local_value_align(sw, LV_SWITCH_PART_BG, LV_STATE_DEFAULT, LV_ALIGN_OUT_RIGHT_MID);\n    lv_obj_set_style_local_value_ofs_x(sw, LV_SWITCH_PART_BG, LV_STATE_DEFAULT, LV_DPI\/35);\n    lv_switch_off(sw, LV_ANIM_ON);\n    \n    \/\/ Create Tabpage title\n    for (int i = 0; i &lt; 2; i++) {\n      t[i] = lv_tabview_add_tab(tv, tabName[i]);\n    }\n\n    \/\/ Create Tabpage content\n    tab_create_1(t[0]); \/\/ Tabpage 1 content\n    tab_create_2(t[1]); \/\/ Tabpage 2 content    \n \n}\n\nstatic void tab_create_1(lv_obj_t * parent) {\n    \/\/ Tabpage 1 content\n\n    lv_page_set_scrl_layout(parent, LV_LAYOUT_PRETTY_TOP);\n\n    lv_disp_size_t disp_size = lv_disp_get_size_category(NULL);\n    lv_coord_t grid_w = lv_page_get_width_grid(parent, disp_size &lt;= LV_DISP_SIZE_SMALL ? 1 : 2, 1);\n\n    lv_style_init(&amp;style_ledColor);\n    lv_style_set_text_font(&amp;bigStyle ,LV_STATE_DEFAULT, &amp;lv_font_montserrat_28);\n\n    lv_style_set_bg_color(&amp;style_ledColor, LV_STATE_DEFAULT, lv_color_hex(ledStyleColor));\n    lv_style_set_shadow_color(&amp;style_ledColor, LV_STATE_DEFAULT, lv_color_hex(ledStyleColor));\n    lv_style_set_border_color(&amp;style_ledColor, LV_STATE_DEFAULT, lv_color_hex(ledStyleColor));\n\n    for (int j = 0; j &lt; 2; j++) {\n      lv_obj_t * h = lv_cont_create(parent, NULL);\n      lv_cont_set_layout(h, LV_LAYOUT_PRETTY_MID);\n      lv_obj_add_style(h, LV_CONT_PART_MAIN, &amp;style_box);\n      lv_obj_set_drag_parent(h, true);\n\n      lv_cont_set_fit2(h, LV_FIT_NONE, LV_FIT_TIGHT);\n      lv_obj_set_width(h, grid_w);\n      lv_obj_set_style_local_value_str(h, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, NULL);\n  \n      lv_obj_t * label = lv_label_create(h, NULL);\n      lv_label_set_text(label, led_lightName[j]);\n      lv_obj_align(label, h, LV_ALIGN_IN_TOP_MID, 0, 0);\n      lv_obj_add_style(label, LV_LABEL_PART_MAIN, &amp;bigStyle);\n\n      if (j == 0) {\n        for (int i = 0; i &lt; 16; i++) {\n          led[i]  = lv_led_create(h, NULL);\n          lv_obj_align(led[i], h, LV_ALIGN_CENTER, ledLocateX[i], ledLocateY[i]);\n          lv_obj_add_style(led[i], LV_OBJ_PART_MAIN, &amp;style_ledColor);\n          lv_obj_set_size(led[i], 50, 50);\n          lv_led_set_bright(led[i], 64);\n        }\n      } else {\n        for (int i = 16; i &lt; 32; i++) {\n          led[i]  = lv_led_create(h, NULL);\n          lv_obj_align(led[i], h, LV_ALIGN_CENTER, ledLocateX[i], ledLocateY[i]);\n          lv_obj_add_style(led[i], LV_OBJ_PART_MAIN, &amp;style_ledColor);\n          lv_obj_set_size(led[i], 50, 50);\n          lv_led_set_bright(led[i], 64);\n        }\n      }\n    }\n}\n\nstatic void tab_create_2(lv_obj_t * parent) {\n    \/\/ Tabpage 2 content\n    lv_page_set_scrl_layout(parent, LV_LAYOUT_PRETTY_TOP);\n\n    lv_disp_size_t disp_size = lv_disp_get_size_category(NULL);\n    lv_coord_t grid_w = lv_page_get_width_grid(parent, disp_size &lt;= LV_DISP_SIZE_SMALL ? 1 : 2, 1);\n\n    lv_style_init(&amp;bigStyle);\n    lv_style_set_text_font(&amp;bigStyle ,LV_STATE_DEFAULT, &amp;lv_font_montserrat_28);\n    \n    for (int i = 0; i &lt; 8; i++) {\n        lv_obj_t * h = lv_cont_create(parent, NULL);\n        lv_cont_set_layout(h, LV_LAYOUT_PRETTY_MID);\n        lv_obj_add_style(h, LV_CONT_PART_MAIN, &amp;style_box);\n        lv_obj_set_drag_parent(h, true);\n\n        lv_cont_set_fit2(h, LV_FIT_NONE, LV_FIT_TIGHT);\n        lv_obj_set_width(h, grid_w);\n        lv_obj_set_style_local_value_str(h, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, NULL);\n\n        lv_obj_t * label = lv_label_create(h, NULL);\n        lv_label_set_text(label, value_systemName[i]);\n        lv_obj_align(label, h, LV_ALIGN_IN_TOP_MID, 0, 0);\n        lv_obj_add_style(label, LV_LABEL_PART_MAIN, &amp;bigStyle);\n\n        label_system[i] = lv_label_create(h, NULL);\n        lv_label_set_text(label_system[i], &quot;Error&quot;);\n        lv_obj_align(label_system[i], h, LV_ALIGN_IN_TOP_MID, 0, 0);\n        lv_obj_add_style(label_system[i], LV_LABEL_PART_MAIN, &amp;bigStyle);\n      }\n    for (int i = 0; i &lt; 3; i++) {\n        lv_obj_t * h = lv_cont_create(parent, NULL);\n        lv_cont_set_layout(h, LV_LAYOUT_PRETTY_MID);\n        lv_obj_add_style(h, LV_CONT_PART_MAIN, &amp;style_box);\n        lv_obj_set_drag_parent(h, true);\n\n        lv_cont_set_fit2(h, LV_FIT_NONE, LV_FIT_TIGHT);\n        lv_obj_set_width(h, grid_w);\n        lv_obj_set_style_local_value_str(h, LV_CONT_PART_MAIN, LV_STATE_DEFAULT, NULL);\n\n        lv_obj_t * label = lv_label_create(h, NULL);\n        lv_label_set_text(label, value_systemTempName[i]);\n        lv_obj_align(label, h, LV_ALIGN_IN_TOP_MID, 0, 0);\n        lv_obj_add_style(label, LV_LABEL_PART_MAIN, &amp;bigStyle);\n      \n      \tgauge[i] = lv_gauge_create(h, NULL);\n      \tlv_obj_align(gauge[i], h, LV_ALIGN_CENTER, 0, 0);\n      \tlv_gauge_set_value(gauge[i], 0, 10);\n      \tlv_gauge_set_needle_count(gauge[i], 1, &amp;needle_colors);\n\n        label_gauge[i] = lv_label_create(gauge[i], NULL);\n        lv_label_set_text(label_gauge[i], &quot;Error&quot;);\n        lv_obj_align(label_gauge[i], gauge[i], LV_ALIGN_IN_BOTTOM_MID, -20, -20);\n        lv_obj_add_style(label_gauge[i], LV_LABEL_PART_MAIN, &amp;bigStyle);\n      }\n}\n\nstatic void color_chg_event_cb(lv_obj_t * sw, lv_event_t e) {\n    \/\/ Here is the action of the switch in the upper left corner\n}\n\nvoid escGpioControl(void) {\n    while ((millis() - timeCheck) &gt; 1000) { \/\/ per 1 second\n      timeCheck = millis();\n      for (int i = 0; i &lt; 16; i++) {\n        QECR11D0FS.digitalWrite(i, ((val &gt;&gt; abs(i-15)) &amp; 0x01));\n        QECR11DF0D.digitalRead(i);\n        ledSw[i] = ((val &gt;&gt; abs(i-15)) &amp; 0x01);\n      }\n\n      val = ~val;\n    }\n}\n\nvoid label_system_value(void) {\n  \/*\n  DmpQECR11D0FSDriver QECR11D0FS;\n  DmpQECR11DF0DDriver QECR11DF0D;\n  *\/\n  float textValue[11];\n  char textValueChar[11][100];\n  textValue[0] = QECR11D0FS.getSystemPowerVoltage();\n  textValue[1] = QECR11D0FS.getSystemPowerCurrent();\n  textValue[2] = QECR11D0FS.getPeripheralPowerVoltage();\n  textValue[3] = QECR11D0FS.getPeripheralPowerCurrent();\n  textValue[4] = QECR11DF0D.getSystemPowerVoltage();\n  textValue[5] = QECR11DF0D.getSystemPowerCurrent();\n  textValue[6] = QECR11DF0D.getPeripheralPowerVoltage();\n  textValue[7] = QECR11DF0D.getPeripheralPowerCurrent();\n\n  for (int i = 0; i &lt; 8; i++) {\n    sprintf(textValueChar[i], &quot;%5.2f&quot;, textValue[i]);\n    if (lv_label_get_text(label_system[i]) != textValueChar[i]) lv_label_set_text(label_system[i], textValueChar[i]);\n  }\n\n  float gaugeValue[3];\n  char gaugeValueChar[3][100];\n  gaugeValue[0] = QECR11D0FS.getTemperature();\n  gaugeValue[1] = QECR11DF0D.getTemperature();\n  gaugeValue[2] = cpuTemperature();\n\n  for (int j = 0; j &lt; 3; j++) {\n    sprintf(gaugeValueChar[j], &quot;%5.2f&quot;, gaugeValue[j]);\n    if (lv_gauge_get_value(gauge[j], 0) != gaugeValue[j]) lv_gauge_set_value(gauge[j], 0, gaugeValue[j]);\n    if (lv_label_get_text(label_gauge[j]) != gaugeValueChar[j]) lv_label_set_text(label_gauge[j], gaugeValueChar[j]);\n  }\n}\n\nvoid ledSystemControl(void) {\n  for (int i = 0; i &lt; 32; i++) {\n    \/\/ setting light status: digital input\n    if (i &gt;= 16) ledSw[i] = QECR11DF0D.digitalRead(i-16);\n    \/\/ display light status\n    if (ledSw[i]) {lv_led_on(led[i]);}\n    if (!ledSw[i]) {lv_led_off(led[i]);}    \n  }\n}<\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3. Upload your sketch!<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Hit the right arrow button (upload) next to the verify button. After the code uploads, you can see the 2-page tabs on the user interface.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>The Light Status tab is for the LED state display, and it will detect the hardware state to show it on the user interface.<\/li><li>The Device Information tab is for the internal monitor information and is configured by software. There is the Voltage, Current, and Temperature in this demo.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"QEC Demo - DI\/O Flash V1\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/43gDpyxgw9g?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This tutorial shows how to use QEC-M-043T to control the EtherCAT slave Digital I\/O modules and monitor internal information. You can learn the EtherCAT library and the LVGL library combined to make an application and use a very simple way to show the machine information.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stay tuned for more projects on QEC!<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Feel free to comment if you have any doubts\/queries!<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><em>The text of the 86Duino reference is a modification of&nbsp;<a href=\"http:\/\/arduino.cc\/en\/Reference\/HomePage\" target=\"_blank\" rel=\"noopener\">the Arduino reference<\/a>&nbsp;and is licensed under a&nbsp;<a href=\"http:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\" target=\"_blank\" rel=\"noopener\">Creative Commons Attribution-ShareAlike 3.0 License<\/a>. Code samples in the reference are released into the public domain.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This tutorial will teach you to use QEC-M to control QEC-RxxD (EtherCAT Slave Digital I\/O module) products series. This project is a simple demo of [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7373,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[196],"tags":[191],"class_list":["post-7371","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ethercat-application","tag-qec"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/7371","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/comments?post=7371"}],"version-history":[{"count":0,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/7371\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media\/7373"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media?parent=7371"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/categories?post=7371"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/tags?post=7371"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}