{"id":18400,"date":"2026-07-11T22:33:56","date_gmt":"2026-07-11T14:33:56","guid":{"rendered":"https:\/\/www.qec.tw\/?p=18400"},"modified":"2026-07-12T18:59:41","modified_gmt":"2026-07-12T10:59:41","slug":"panasonic-a6b","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/ja\/tutorials\/panasonic-a6b\/","title":{"rendered":"[Start Guides] QEC-M-01 and Panasonic A6B Series AC Servo"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>[Tutorial]<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">We&#8217;re pleased to share new technical start guides that help engineers and system integrators get started quickly with the&nbsp;<a href=\"https:\/\/www.qec.tw\/product\/qec-m-01\/\">QEC-M-01<\/a>&nbsp;EtherCAT MDevice and the Panasonic&nbsp;<strong>A6B Series<\/strong>&nbsp;EtherCAT AC Servo Motor &amp; Driver.<\/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\/07\/Panasonic_acServo-1024x576.jpg\" alt=\"Panasonic_acServo\" class=\"wp-image-18402\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1024x576.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-300x169.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-768x432.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-18x10.jpg 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-600x338.jpg 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo.jpg 1280w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">These guides provide a step-by-step setup process, practical coding examples, and integration tips for running the Panasonic A6B in both\u00a0<strong>Cyclic Synchronous Position (CSP)<\/strong>\u00a0and\u00a0<strong>Profile Position (PP)<\/strong>\u00a0modes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 id=\"h-1-highlights-of-the-new-guide\" class=\"wp-block-heading\">1. Highlights of the New Guide<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The QEC-M-01 is a compact and powerful EtherCAT MDevice equipped with a real-time architecture. Combined with the 86Duino Coding IDE and its EtherCAT Library, it lets you bring up an EtherCAT network and drive a CiA 402 servo with just two functions \u2014 <code>setup()<\/code> for one-time configuration and <code>loop()<\/code> for the cyclic main program.<\/p>\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\">1.1 Panasonic A6B Series (Why Panasonic A6B?)<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Panasonic A6B Series is a high-performance, integrated EtherCAT AC Servo Motor &amp; Driver that exposes standard CiA 402 objects over EtherCAT, so the same QEC-M-01 workflow applies whether you run PP or CSP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Key points for EtherCAT users:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>CiA 402 over EtherCAT<\/strong>\u00a0\u2014 the A6B exposes standard CiA 402 objects and supports both PP and CSP operation, so the same QEC-M-01 code base works across modes with only a mode change.<\/li>\n\n\n\n<li><strong>Integrated servo driver<\/strong>\u00a0\u2014 main power input (XA), control power input (XA1\/XA2), and motor\/regenerative-resistor connector (XB) are combined in a single compact driver for a 200\u2013220 V AC supply.<\/li>\n\n\n\n<li><strong>High-resolution feedback<\/strong>\u00a0\u2014 the A6 encoder interface (X6) provides accurate, stable positioning, with Panasonic auto-tuning to simplify commissioning.<\/li>\n\n\n\n<li><strong>Daisy-chain EtherCAT ports<\/strong>\u00a0\u2014 EtherCAT Input (X2A) and EtherCAT Output (X2B) let you connect the drive inline and extend the network to additional SubDevices.<\/li>\n\n\n\n<li><strong>Safety and protection<\/strong>\u00a0\u2014 a Safe Torque Off (STO) interface (X3) must be active to enable the drive, plus an I\/O signal interface (X4) for sensors and alarm handling, LED status indicators, and a rotary switch for the station alias (ID).<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Learn more on the&nbsp;<a href=\"https:\/\/industrial.panasonic.com\/\" target=\"_blank\" rel=\"noopener\">Panasonic MINAS A6B<\/a>&nbsp;product pages.<\/p>\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\">1.2 Advantages of the Start Guides<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Step-by-step setup guide:<\/strong>\u00a0wiring, EtherCAT network bring-up, and the recommended parameter checklist for the drive.<\/li>\n\n\n\n<li><strong>Programming examples (CSP \/ PP):<\/strong>\u00a0practical, ready-to-run code snippets and control-flow examples to help you implement motion quickly, in both hand-written code and 86EVA low-code form.<\/li>\n\n\n\n<li><strong>Integration tips &amp; troubleshooting:<\/strong>\u00a0notes for typical field issues \u2014 drive-enable sequence, STO bridging during development, and QEC-M environment updates.<\/li>\n<\/ul>\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\/07\/Panasonic_acServo-1-1024x372.jpg\" alt=\"Panasonic_acServo-1\" class=\"wp-image-18401\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1-1024x372.jpg 1024w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1-300x109.jpg 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1-768x279.jpg 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1-1536x558.jpg 1536w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1-18x7.jpg 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1-600x218.jpg 600w, https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/07\/Panasonic_acServo-1.jpg 2000w\" 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\">2. Start Using QEC-M-01 with Panasonic A6B AC Servo<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Whether you are a newcomer or an experienced developer, these guides provide the support you need to get up and running. The two examples below share the same EtherCAT network configuration:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>EtherCAT Cycle Time:<\/strong>\u00a01 millisecond<\/li>\n\n\n\n<li><strong>EtherCAT Mode:<\/strong>\u00a0ECAT_SYNC<\/li>\n\n\n\n<li><strong>Distributed Clock (DC):<\/strong>\u00a0enabled, following the cycle time<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">In both examples the\u00a0object(<code>EthercatMaster master<\/code>) represents the QEC-M-01, while the\u00a0object(<code>EthercatDevice_CiA402 motor<\/code>) represents the Panasonic A6B Driver.<\/p>\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\">2.1 Profile Position (PP) Mode<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The following program sets the Panasonic A6B Driver into CiA 402 Profile Position (PP) mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In <code>setup()<\/code> it initializes communication, configures the drive for PP mode, enables the motor, and sets the motion-profile parameters. In <code>loop()<\/code> a small state machine uses <code>pp_Run()<\/code> to command a target position and <code>pp_IsTargetReached()<\/code> to wait for completion, so the motor moves back and forth in a repeating cycle between 100000000 and -100000000 units.<\/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_CiA402 motor;\nint pp_state = 0;\n\nvoid setup() {\n  Serial.begin(115200);\n  Serial.print(&quot;Begin: &quot;); Serial.println(master.begin());\n  Serial.print(&quot;Slave: &quot;); Serial.println(motor.attach(0, master));\n  motor.setCiA402Mode(CIA402_PP_MODE);\n  motor.setDc(1000000);\n  Serial.print(&quot;Start: &quot;); Serial.println(master.start(1000000, ECAT_SYNC));\n  Serial.print(&quot;Enable: &quot;); Serial.println(motor.enable());\n  motor.pp_SetMotionProfileType(0); \/\/ Linear ramp (trapezoidal profile)\n  motor.pp_SetVelocity(10000000);\n  motor.pp_SetAcceleration(10000000);\n  motor.pp_SetDeceleration(10000000);\n}\n\nvoid loop() {\n  Serial.print(&quot;Pos: &quot;); Serial.println(motor.getPositionActualValue());\n  switch (pp_state)\n  {\n    case 0:\n      if (motor.pp_Run(100000000) == 0)\n        pp_state++;\n      break;\n    case 1:\n      if (motor.pp_IsTargetReached())\n        pp_state++;\n      break;\n    case 2:\n      if (motor.pp_Run(-100000000) == 0)\n        pp_state++;\n      break;\n    case 3:\n      if (motor.pp_IsTargetReached())\n        pp_state = 0;\n      break;\n  }\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\">After uploading, open the Serial Monitor in the 86Duino IDE (match the baud rate).<br>On a successful EtherCAT configuration the Serial Monitor prints 0 and Enable: 0, then streams the motor&#8217;s current position while it cycles between the two target positions.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2.2 Cyclic Synchronous Position (CSP) Mode<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The following program sets the Panasonic A6B Driver into CiA 402 CSP mode.<br>Motion is generated cyclically inside a callback (<code>myCallback<\/code>) registered with <code>attachCyclicCallback()<\/code>: once the drive reaches <code>CIA402_OPERATION_ENABLED<\/code>, each cycle adds <strong>1000<\/strong> units to the target position.<br>The <code>setDc()<\/code> call synchronizes the drive&#8217;s Distributed Clock with the 1 ms EtherCAT cycle, and <code>loop()<\/code> prints the motor&#8217;s current position.<\/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_CiA402 motor;\nint32_t position = 0;\n\nvoid myCallback() {\n  if (motor.getCiA402State() != CIA402_OPERATION_ENABLED)\n    return;\n  motor.setTargetPosition(position += 1000);\n}\n\nvoid setup() {\n  Serial.begin(115200);\n  Serial.print(&quot;Begin: &quot;);\nSerial.println(master.begin());\n\n  Serial.print(&quot;Slave: &quot;); \nSerial.println(motor.attach(0, master));\n\n  motor.setCiA402Mode(CIA402_CSP_MODE);\n  motor.setDc(1000000);\n  master.attachCyclicCallback(myCallback);\n\n  Serial.print(&quot;Start: &quot;); \nSerial.println(master.start(1000000, ECAT_SYNC));\n\n  motor.setTargetPosition(position = motor.getPositionActualValue());\n  Serial.print(&quot;Enable: &quot;); \nSerial.println(motor.enable());\n}\n\nvoid loop() {\n  Serial.print(&quot;Pos: &quot;); \nSerial.println(motor.getPositionActualValue());\n  \/\/ ...\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\">On a successful EtherCAT configuration the Serial Monitor prints 0 and Enable: 0, then streams the motor&#8217;s current position as it advances by 1000 units each cycle.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>*Note:<\/strong> For safety, the first target position is set to the current position \u2014 <code>setTargetPosition(getPositionActualValue()<\/code>) \u2014 at the beginning of enable, so the motor does not jump when it transitions to <code>CIA402_OPERATION_ENABLED<\/code>.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">3. Complete Guides<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;d like to dig deeper, the full step-by-step guides \u2014 including wiring photos, parameter checklists, and the 86EVA low-code workflow \u2014 are available below.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>CSP mode:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/08\/Panasonic_acServo-CSP-1.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B Series (CSP mode) \u2013 Coding (Eng.)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/08\/Panasonic_acServo-CSP-2.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B Series (CSP mode) \u2013 Coding with 86EVA (Eng.)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/04\/Panasonic_acServo-CSP-1_JP.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B \u30b7\u30ea\u30fc\u30ba (CSP\u30e2\u30fc\u30c9) \u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 (\u65e5\u672c\u8a9e)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/04\/Panasonic_acServo-CSP-2_JP.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B \u30b7\u30ea\u30fc\u30ba (CSP\u30e2\u30fc\u30c9) 86EVA\u3067\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 (\u65e5\u672c\u8a9e)<\/a><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>PP mode:<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/08\/Panasonic_acServo-PP-1.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B Series (PP mode) \u2013 Coding (Eng.)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2025\/08\/Panasonic_acServo-PP-2.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B Series (PP mode) \u2013 Coding with 86EVA (Eng.)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/04\/Panasonic_acServo-PP-1_JP.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B Series (PP\u30e2\u30fc\u30c9)\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 (\u65e5\u672c\u8a9e)<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2026\/04\/Panasonic_acServo-PP-2_JP.pdf\" target=\"_blank\" rel=\"noreferrer noopener\">MINAS A6B Series (PP\u30e2\u30fc\u30c9) 86EVA\u3067\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0 (\u65e5\u672c\u8a9e)<\/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\">We will continue to deliver robust and innovative EtherCAT automation platforms for smarter, faster integration. For questions or support, contact us at&nbsp;<a href=\"mailto:info@icop.com.tw\">info@icop.com.tw<\/a>, your local&nbsp;<a href=\"https:\/\/www.icop.com.tw\/branches\" target=\"_blank\" rel=\"noopener\">ICOP Branch<\/a>, or a&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] We&#8217;re pleased to share new technical start guides that help engineers and system integrators get started quickly with the&nbsp;QEC-M-01&nbsp;EtherCAT MDevice and the Panasonic&nbsp;A6B Series&nbsp;EtherCAT [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":18402,"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,274],"class_list":["post-18400","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-86duino","tag-ethercat","tag-tutorial"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/18400","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=18400"}],"version-history":[{"count":1,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/18400\/revisions"}],"predecessor-version":[{"id":18403,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/posts\/18400\/revisions\/18403"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media\/18402"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/media?parent=18400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/categories?post=18400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/ja\/wp-json\/wp\/v2\/tags?post=18400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}