{"id":17238,"date":"2026-01-02T05:17:37","date_gmt":"2026-01-02T05:17:37","guid":{"rendered":"https:\/\/www.qec.tw\/?p=17238"},"modified":"2026-04-09T00:36:04","modified_gmt":"2026-04-08T16:36:04","slug":"qec-hid","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/ja\/tutorials\/qec-hid\/","title":{"rendered":"[Start Guides] QEC-M-01 and QEC HID Modules (RS-232\/485, Keypad, LCM, MPG)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">[Tutorial]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This page is a start guide for using QEC-M-01 with QEC HID modules, covering RS-232\/485, Keypad, LCM, MPG, wiring, EtherCAT setup, and coding examples.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;re pleased to share new technical start guides to help engineers and system integrators bring up <strong><a href=\"https:\/\/www.qec.tw\/product\/qec-m-01\/\" target=\"_blank\" rel=\"noreferrer noopener\">QEC-M-01<\/a> (EtherCAT MDevice)<\/strong> with the <strong>QEC HID Series (<a href=\"https:\/\/www.qec.tw\/product\/qec-rxxhu9s\/\" target=\"_blank\" rel=\"noreferrer noopener\">QEC-RXXHU<\/a>)<\/strong>\u2014EtherCAT-based modules that integrate <strong>RS-232\/485, Keypad, LCM, and MPG (handwheel)<\/strong> functions for automation control.<\/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\/2026\/01\/QEC_HID-1024x576.jpg\" alt=\"QEC_HID\" class=\"wp-image-17235\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1024x576.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-300x169.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-768x432.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1536x864.jpg 1536w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-18x10.jpg 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-600x337.jpg 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID.jpg 1572w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">These guides provide a practical, step-by-step workflow\u2014from wiring and EtherCAT bring-up to coding examples and integration notes\u2014so you can accelerate commissioning and reduce engineering time.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-1-system-overview\">1. System Overview<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-1-about-qec-mdevice\">1.1 About QEC MDevice<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>QEC-M-01<\/strong> is a compact, high-performance EtherCAT MDevice designed for deterministic control and fast integration. Powered by the open-source <strong>86Duino IDE<\/strong>, it offers a familiar development experience along with a real-time architecture and integrated tools.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Through EtherCAT <strong>PDO\/SDO<\/strong> data exchange, QEC-M-01 can reliably communicate and exchange <strong>UART (RS-232\/485), Keypad, LCM, and MPG<\/strong> data with QEC HID modules over the EtherCAT network.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/12\/image-1024x667.png\" alt=\"\"\/><\/figure>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-benefits-of-the-qec-hid-series-qec-rxxhu\">Benefits of the QEC HID Series (QEC-RXXHU)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The QEC HID Series is an industrial-grade EtherCAT gateway module that integrates rich functions for both <strong>serial connectivity<\/strong> and <strong>operator interface<\/strong> needs. Key advantages include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Two standard UART interfaces<\/strong> with ESD protection, supporting RS-232 or RS-485 device connectivity<\/li>\n\n\n\n<li><strong>MPG jog (handwheel)<\/strong> for convenient remote jogging\/operation (e.g., robot\/arm control)<\/li>\n\n\n\n<li><strong>Keypad input + LCM display<\/strong> for parameter entry, status, and data visualization<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"558\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-1024x558.jpg\" alt=\"QEC_HID-1\" class=\"wp-image-17236\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-1024x558.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-300x163.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-768x418.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-1536x837.jpg 1536w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-2048x1116.jpg 2048w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-18x10.jpg 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-1-600x327.jpg 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-2-what-you-ll-get-start-guide-highlights\">2. What You\u2019ll Get (Start Guide Highlights)<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"372\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-1024x372.jpg\" alt=\"QEC_HID-2\" class=\"wp-image-17237\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-1024x372.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-300x109.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-768x279.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-1536x558.jpg 1536w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-2048x744.jpg 2048w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-18x7.jpg 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/01\/QEC_HID-2-600x218.jpg 600w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">These start guides are designed for real engineering workflows and include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step-by-step setup guide:<\/strong><br>Wiring, EtherCAT network bring-up, and a recommended checklist<\/li>\n\n\n\n<li><strong>Programming examples:<\/strong><br>Practical code snippets for RS-232\/485, MPG, Keypad, and LCM<\/li>\n\n\n\n<li><strong>Integration tips &amp; troubleshooting:<\/strong><br>Common field issues and notes for graphical tools<\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-1-serial-com-port-rs232-485\">2.1 Serial COM Port (RS232\/485)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In this section, we will read the data from the Serial Monitor in the 86Duino IDE and transfer it from COM1 (RS-232) to COM2 (RS-232). After COM2 receives the data, we print it on the Serial Monitor.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following program sets:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>EtherCAT Cycle Time: 1 millisecond.<\/li>\n\n\n\n<li>EtherCAT Mode: ECAT_SYNC.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>EthercatMaster<\/code> object (\u201c<code>master<\/code>\u201d) represents the QEC-M-01, while the <code>EthercatDevice_QECR11HU9S<\/code> object (\u201c<code>slave0<\/code>\u201d) represents the QEC-R11HU9S module.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example code is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\n\nEthercatMaster master;\nEthercatDevice_QECR11HU9S slave0;\n\nint incomingByte = 0;\nchar read_ch;\n\nvoid setup() {\n  Serial.begin(115200);\n\n  master.begin();\n  slave0.attach(0, master);\n  master.start(1000000, ECAT_SYNC);\n\n  slave0.uartSetBaud(COM1, 115200);\n  slave0.uartSetFormat(COM1, SERIAL_8N1);\n  slave0.uartSetBaud(COM2, 115200);\n  slave0.uartSetFormat(COM2, SERIAL_8N1);\n}\n\nvoid loop() {\n  if (Serial.available() &gt; 0) {\n    incomingByte = Serial.read();\n    slave0.uartWrite(COM1, incomingByte);\n\n    while (slave0.uartQueryRxQueue(COM2) &lt; 1)\n      slave0.update();\n\n    if ((read_ch = (char)slave0.uartRead(COM2)) &gt; 0) {\n      Serial.print(&quot;COM2 receive: &quot;);\n      Serial.println(read_ch);\n    }\n  }\n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-2-keypad-lcm\">2.2 Keypad + LCM<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In this section, we read keypad input and print it at specific positions on the LCM. The buzzer beeps whenever a key is pressed.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following program sets:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>EtherCAT Cycle Time: 1 millisecond.<\/li>\n\n\n\n<li>EtherCAT Mode: ECAT_SYNC.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>EthercatMaster<\/code> object (\u201c<code>master<\/code>\u201d) represents the QEC-M-01, while the <code>EthercatDevice_QECR11HU9S<\/code> object (\u201c<code>slave0<\/code>\u201d) represents the QEC-R11HU9S module.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example code is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\n\nEthercatMaster master;\nEthercatDevice_QECR11HU9S slave0;\n\nint lcmY = 1;\n\nvoid setup() {\n  master.begin();\n  slave0.attach(0, master);\n  master.start(1000000, ECAT_SYNC);\n\n  slave0.keypadClear();\n  slave0.lcmClear();\n}\n\n\nvoid loop() {\n  char keyPadInput = slave0.keypadRead();\n\n  if (keyPadInput &gt;= '0' &amp;&amp; keyPadInput &lt;= '9') {\n    slave0.lcmGotoXY(keyPadInput - '0' + 1, lcmY);\n    slave0.lcmWrite(keyPadInput);\n  } else if (keyPadInput &gt;= 'A' &amp;&amp; keyPadInput &lt;= 'D') {\n    slave0.lcmGotoXY(keyPadInput - 'A' + 11, lcmY);\n    slave0.lcmWrite(keyPadInput);\n  } else if (keyPadInput == '#') {\n    lcmY = 1;\n    slave0.lcmClear();\n  } else if (keyPadInput == '*') {\n    lcmY = 2;\n    slave0.lcmClear();\n  }\n\n  if (keyPadInput != 0) slave0.buzzer(3000, 200);\n\n  slave0.update();\n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-3-mpg-hand-wheel\">2.3 MPG Hand wheel<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In this section, we will read the MPG data and status for QEC-R11HU9S and print EMG, Enable, Axis, Ratio, Raw, and Logical data through the Serial Monitor of the 86Duino IDE.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The following program sets:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>EtherCAT Cycle Time: 1 millisecond.<\/li>\n\n\n\n<li>EtherCAT Mode: ECAT_SYNC.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>EthercatMaster<\/code> object (\u201c<code>master<\/code>\u201d) represents the QEC-M-01, while the <code>EthercatDevice_QECR11HU9S<\/code> object (\u201c<code>slave0<\/code>\u201d) represents the QEC-R11HU9S module.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The example code is as follows:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>#include &quot;Ethercat.h&quot;\n\nEthercatMaster master;\nEthercatDevice_QECR11HU9S slave0;\n\nvoid setup() {\n  Serial.begin(115200);\n\n  master.begin();\n  slave0.attach(0, master);\n  master.start(1000000, ECAT_SYNC);\n}\n\nvoid loop() {\n  \/\/ Read various parameters from the slave and print them\n  Serial.print(&quot;EMG: &quot;);\n  Serial.print(slave0.mpgReadEmergencyStop()); \/\/ Read and print the emergency stop status\n  Serial.print(&quot;, Enable: &quot;);\n  Serial.print(slave0.mpgReadEnableSwitch()); \/\/ Read and print the enable switch status\n  Serial.print(&quot;, Axis: &quot;);\n  Serial.print(slave0.mpgReadAxis()); \/\/ Read and print the axis information\n  Serial.print(&quot;, Ratio: &quot;);\n  Serial.print(slave0.mpgReadRatio()); \/\/ Read and print the ratio\n  Serial.print(&quot;, Raw: &quot;);\n  Serial.print(slave0.mpgReadEncoderRaw()); \/\/ Read and print the raw encoder value\n  Serial.print(&quot;, Logical: &quot;);\n  Serial.println(slave0.mpgReadEncoder()); \/\/ Read and print the logical encoder value\n\n  slave0.update();\n}<\/pre><\/div>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">If you are interested in learning more, click the link below to view the complete guide:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/11\/HU9S-HID-1-v2.0.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">RS-232\/485 + Keypad + LCM + MPG \u2013 Coding<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/11\/HU9S-HID-2-v2.0.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">RS-232\/485 + Keypad + LCM + MPG \u2013 Coding with 86EVA<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/11\/HU9S-HID-3-v2.0.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">RS-232\/485 + Keypad + LCM + MPG \u2013 Coding with 86EVA and ArduBlock<\/a><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\">If you are building an automation system that requires an EtherCAT gateway for <strong>serial connectivity<\/strong> and <strong>operator interface integration<\/strong>, pairing <strong>QEC-M-01<\/strong> with the <strong>QEC HID (QEC-RXXHU) Series<\/strong> provides a practical solution. With EtherCAT PDO\/SDO data exchange, the MDevice can stably exchange UART (RS-232\/485), Keypad, LCM, and MPG data with QEC HID modules over the EtherCAT network.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For more info and&nbsp;sample requests, please write to&nbsp;<a href=\"mailto:info@icop.com.tw\">info@icop.com.tw<\/a>, call your nearest&nbsp;<a href=\"https:\/\/www.icop.com.tw\/branches\" target=\"_blank\" rel=\"noopener\">ICOP Branch<\/a>, or contact our&nbsp;<a href=\"https:\/\/www.icop.com.tw\/distributors\" target=\"_blank\" rel=\"noopener\">Worldwide Official Distributor.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>[Tutorial] This page is a start guide for using QEC-M-01 with QEC HID modules, covering RS-232\/485, Keypad, LCM, MPG, wiring, EtherCAT setup, and coding examples. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":17235,"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":"set","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":[204],"tags":[162,54,191],"class_list":["post-17238","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-86duino","tag-ethercat","tag-qec"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17238","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=17238"}],"version-history":[{"count":3,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17238\/revisions"}],"predecessor-version":[{"id":18052,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/17238\/revisions\/18052"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media\/17235"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media?parent=17238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/categories?post=17238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/tags?post=17238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}