{"id":18203,"date":"2026-05-15T18:56:29","date_gmt":"2026-05-15T10:56:29","guid":{"rendered":"https:\/\/www.qec.tw\/?p=18203"},"modified":"2026-09-09T16:35:10","modified_gmt":"2026-09-09T08:35:10","slug":"qec-python-ethercat-motor-control","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/ja\/tutorials\/qec-python-ethercat-motor-control\/","title":{"rendered":"[Technical tips] Remote EtherCAT Motor Control over Ethernet via Python with QEC-M-01"},"content":{"rendered":"<p class=\"wp-block-paragraph\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u6a19\u6e96\u7684\u306a\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\u3092\u4ecb\u3057\u3066 Python \u3092\u4f7f\u7528\u3057\u3066 EtherCAT \u30e2\u30fc\u30bf\u30fc\u3092\u30ea\u30e2\u30fc\u30c8\u5236\u5fa1\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Windows PC \u306f 86Duino \u30b9\u30b1\u30c3\u30c1\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b QEC-M-01 \u306b\u30b7\u30f3\u30d7\u30eb\u306a\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002QEC-M-01 \u304c EtherCAT CiA402 \u30e2\u30fc\u30bf\u30fc\u5236\u5fa1\u3092\u51e6\u7406\u3057\u3001\u30ed\u30b0\u8a18\u9332\u7528\u306b\u30e2\u30fc\u30bf\u30fc\u4f4d\u7f6e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092\u8fd4\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PC \u5074\u306f EtherCAT \u3092\u76f4\u63a5\u51e6\u7406\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002TCP\/IP \u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3059\u308b\u3060\u3051\u3067\u3001QEC-M-01 \u304c\u305d\u308c\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0 EtherCAT \u30e2\u30fc\u30bf\u30fc\u5236\u5fa1\u30a2\u30af\u30b7\u30e7\u30f3\u306b\u5909\u63db\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"768\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/flow_en-1024x768.png\" alt=\"flow_en\" class=\"wp-image-18208\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/flow_en-1024x768.png 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/flow_en-300x225.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/flow_en-768x576.png 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/flow_en-16x12.png 16w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/flow_en-600x450.png 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/flow_en.png 1448w\" 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-1-at-a-glance\">1. \u6982\u8981<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u3067\u304d\u308b\u3053\u3068\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Windows PC \u304b\u3089 Moon's EtherCAT \u30b5\u30fc\u30dc\u30c9\u30e9\u30a4\u30d6\u3092\u5236\u5fa1<\/li>\n\n\n\n<li>\u30b7\u30f3\u30d7\u30eb\u306a <code>cmd.txt<\/code> \u30d5\u30a1\u30a4\u30eb\u3067\u30e2\u30fc\u30bf\u30fc\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1<\/li>\n\n\n\n<li>\u30e2\u30fc\u30bf\u30fc\u4f4d\u7f6e\u30d5\u30a3\u30fc\u30c9\u30d0\u30c3\u30af\u3092 <code>log.txt<\/code><\/li>\n\n\n\n<li>Python \u3092\u4f7f\u7528\u3057\u305f\u30af\u30a4\u30c3\u30af\u30c6\u30b9\u30c8\u30fb\u30c7\u30fc\u30bf\u30ed\u30b0\u30fb\u4e0a\u4f4d\u30aa\u30fc\u30c8\u30e1\u30fc\u30b7\u30e7\u30f3<\/li>\n\n\n\n<li>QEC-M-01 \u4e0a\u3067\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0 EtherCAT \u5236\u5fa1\u3092\u7dad\u6301<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">PC \u5074\u306b\u7279\u5225\u306a EtherCAT SDK \u306f\u4e0d\u8981\u3067\u3059\u3002<\/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-2-workflow\">2. \u30ef\u30fc\u30af\u30d5\u30ed\u30fc<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ef\u30fc\u30af\u30d5\u30ed\u30fc\u306f\u30b7\u30f3\u30d7\u30eb\u3067\u3059\uff1a<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Flash the <code>.ino<\/code> \u30b9\u30b1\u30c3\u30c1\u3092 QEC-M-01 \u306b\u66f8\u304d\u8fbc\u3080<\/li>\n\n\n\n<li>PC \u306e\u9759\u7684 IP \u3092\u8a2d\u5b9a\u3059\u308b<\/li>\n\n\n\n<li>QEC-M-01 \u306b Ping \u3059\u308b<\/li>\n\n\n\n<li>Python \u30a6\u30a9\u30c3\u30c1\u30e3\u30fc\u3092\u5b9f\u884c\u3059\u308b<\/li>\n\n\n\n<li>\u7de8\u96c6 <code>cmd.txt<\/code> \u3092\u7de8\u96c6\u3057\u3066\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3059\u308b<\/li>\n\n\n\n<li>\u78ba\u8a8d\u3059\u308b <code>log.txt<\/code> \u3068\u30e2\u30fc\u30bf\u30fc\u52d5\u4f5c\u3092<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u3067\u306f\u3001QEC-M-01 \u306f <code>192.168.1.177<\/code>\u3001PC \u306f <code>192.168.1.100<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"725\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/artitectureen-1024x725.png\" alt=\"artitecture(en)\" class=\"wp-image-18210\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/artitectureen-1024x725.png 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/artitectureen-300x212.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/artitectureen-768x543.png 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/artitectureen-18x12.png 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/artitectureen-600x425.png 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/artitectureen.png 1491w\" 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-3-command-example\">3. \u30b3\u30de\u30f3\u30c9\u4f8b<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Python \u30a6\u30a9\u30c3\u30c1\u30e3\u30fc\u306e\u5b9f\u884c\u5f8c\u3001 <code>cmd.txt<\/code> \u3092\u7de8\u96c6\u3057\u3066\u4fdd\u5b58\u3059\u308b\u3068\u30e2\u30fc\u30bf\u30fc\u3092\u5236\u5fa1\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-border-color has-ast-global-color-2-border-color has-fixed-layout\" style=\"border-width:1px\"><thead><tr><th>cmd.txt<\/th><th>\u30a2\u30af\u30b7\u30e7\u30f3<\/th><th>\u8aac\u660e<\/th><\/tr><\/thead><tbody><tr><td><code>e<\/code><\/td><td>Enable<\/td><td>\u30e2\u30fc\u30bf\u30fc\u3092\u6709\u52b9\u5316\u3059\u308b<\/td><\/tr><tr><td><code>p<\/code><\/td><td>Move +<\/td><td>+100,000 \u30d1\u30eb\u30b9\u3078\u79fb\u52d5<\/td><\/tr><tr><td><code>n<\/code><\/td><td>Move \u2013<\/td><td>-100,000 \u30d1\u30eb\u30b9\u3078\u79fb\u52d5<\/td><\/tr><tr><td><code>d<\/code><\/td><td>Disable<\/td><td>\u30e2\u30fc\u30bf\u30fc\u3092\u7121\u52b9\u5316\u3059\u308b<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Python \u30d7\u30ed\u30b0\u30e9\u30e0\u306f\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u3092\u81ea\u52d5\u691c\u51fa\u3057\u3001QEC-M-01 \u306b\u30b3\u30de\u30f3\u30c9\u3092\u9001\u4fe1\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"725\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/topology_1en-1024x725.png\" alt=\"topology_1(en)\" class=\"wp-image-18209\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/topology_1en-1024x725.png 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/topology_1en-300x212.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/topology_1en-768x543.png 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/topology_1en-18x12.png 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/topology_1en-600x425.png 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/topology_1en.png 1491w\" 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-4-what-you-need\">4. \u5fc5\u8981\u306a\u3082\u306e<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qec.tw\/ja\/product\/qec-m-01\/\">QEC-M-01<\/a> EtherCAT M\u30c7\u30d0\u30a4\u30b9<\/li>\n\n\n\n<li>Moon's EtherCAT \u30b5\u30fc\u30dc\u30c9\u30e9\u30a4\u30d6\uff08CiA402 \u5bfe\u5fdc\uff09<\/li>\n\n\n\n<li>Windows PC<\/li>\n\n\n\n<li>\u30a4\u30fc\u30b5\u30cd\u30c3\u30c8\u30b1\u30fc\u30d6\u30eb<\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/ja\/software\/\">86Duino IDE<\/a><\/li>\n\n\n\n<li>Python 3.10.x \u63a8\u5968<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-5-important-note\">5. \u91cd\u8981\u306a\u6ce8\u610f\u4e8b\u9805<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e Telnet \u306f\u3001\u9589\u3058\u305f LAN \u307e\u305f\u306f\u30e9\u30dc\u74b0\u5883\u3067\u306e\u30c7\u30e2\u3068\u30c6\u30b9\u30c8\u7528\u9014\u306b\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672c\u756a\u30b7\u30b9\u30c6\u30e0\u3067\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u8a8d\u8a3c\u30fb\u30b3\u30de\u30f3\u30c9\u691c\u8a3c\u30fb\u6697\u53f7\u5316\u3092\u5099\u3048\u305f\u5236\u5fa1\u3055\u308c\u305f TCP\/Socket \u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/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-6-resources\">6. \u30ea\u30bd\u30fc\u30b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b8c\u5168\u306a\u958b\u767a\u30ac\u30a4\u30c9\u3068\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4ee5\u4e0b\u304b\u3089\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u958b\u767a\u30ac\u30a4\u30c9 PDF : <a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/QEC_DevGuide_Python_Telnet_EN_v1r2.pdf\">QEC_DevGuide_Python_Telnet_EN_v1r2<\/a> |  <a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/QEC_DevGuide_Python_Telnet_ZH_v1r2.pdf\">QEC_DevGuide_Python_Telnet_ZH_v1r2<\/a><\/li>\n\n\n\n<li>86Duino \u5074\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 <code><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/QEC_Python_Telnet_86DuinoCode.zip\">QEC_Python_Telnet_86DuinoCode.zip<\/a><\/code><\/li>\n\n\n\n<li>PC \u5074 Python \u30bd\u30fc\u30b9\u30b3\u30fc\u30c9 <code><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/05\/QEC_Python_Telnet_PythonCode.zip\">QEC_Python_Telnet_PythonCode.zip<\/a><\/code><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-7-next-steps\">7. \u6b21\u306e\u30b9\u30c6\u30c3\u30d7<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u306f\u3001\u591a\u8ef8 EtherCAT \u5236\u5fa1\u30fbPython GUI \u30c4\u30fc\u30eb\u30fb\u30ab\u30b9\u30bf\u30e0 HMI \u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u30fb\u30c7\u30fc\u30bf\u30ed\u30b0\u30fbSCADA\/MES \u7d71\u5408\u30fb\u81ea\u52d5\u30c6\u30b9\u30c8\u30b7\u30b9\u30c6\u30e0\u306a\u3069\u306b\u62e1\u5f35\u3067\u304d\u307e\u3059\u3002<\/p>","protected":false},"excerpt":{"rendered":"<p>This tutorial demonstrates how to remotely control an EtherCAT motor using Python over standard Ethernet. A Windows PC sends simple commands to a QEC-M-01 running [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18207,"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,160,327,191],"class_list":["post-18203","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-86duino","tag-ethercat","tag-ethernet","tag-python","tag-qec"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/18203","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=18203"}],"version-history":[{"count":3,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/18203\/revisions"}],"predecessor-version":[{"id":18589,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/18203\/revisions\/18589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media\/18207"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media?parent=18203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/categories?post=18203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/tags?post=18203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}