{"id":14814,"date":"2024-09-29T14:24:42","date_gmt":"2024-09-29T14:24:42","guid":{"rendered":"https:\/\/www.qec.tw\/?p=14814"},"modified":"2024-09-30T10:35:50","modified_gmt":"2024-09-30T10:35:50","slug":"aio","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/zh\/ethercat\/api\/dmp\/aio\/","title":{"rendered":"EthercatDevice_DmpAIQ_Generic\u985e\u5225"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">[EthercatDevice_Dmp]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>EthercatDevice_DmpAIQ_Generic<\/em> is an EtherCAT slave class specifically developed by ICOP for Analog I\/O EtherCAT slave modules. It provides APIs for analog input, analog output, and other functionalities.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The class relationships of <em>EthercatDevice_DmpAIQ_Generic<\/em> are illustrated in the following diagram:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1004\" height=\"531\" src=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2024\/09\/image-1.png\" alt=\"EthercatDevice_DmpAIQ_Generic Class\" class=\"wp-image-14816\" srcset=\"https:\/\/www.qec.tw\/wp-content\/uploads\/2024\/09\/image-1.png 1004w, https:\/\/www.qec.tw\/wp-content\/uploads\/2024\/09\/image-1-300x159.png 300w, https:\/\/www.qec.tw\/wp-content\/uploads\/2024\/09\/image-1-768x406.png 768w, https:\/\/www.qec.tw\/wp-content\/uploads\/2024\/09\/image-1-18x10.png 18w, https:\/\/www.qec.tw\/wp-content\/uploads\/2024\/09\/image-1-600x317.png 600w\" sizes=\"(max-width: 1004px) 100vw, 1004px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><em>EthercatDevice_DmpAIQ_Generic<\/em> inherits from <em>_EthercatDevice_DmpCommonDriver<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Base Class:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>_EthercatDevice_CommonDriver<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Derived Class:<\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes has-small-font-size\"><table class=\"has-fixed-layout\"><tbody><tr><td>Class Name<\/td><td>Vendor ID<\/td><td>Product Code<\/td><td>Input Channels<\/td><td>Output Channels<\/td><\/tr><tr><td>EthercatDevice_QECR11A44S<\/td><td>0x00000bc3<\/td><td>0x0086d880<\/td><td>4<\/td><td>4<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Initialization Functions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Initialization-related functions for the EthercatDevice_DmpAIQ_Generic class.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/dmp\/aio\/ethercatdevice_dmpaiq-attach\/\">attach()<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/dmp\/aio\/ethercatdevice_dmpaiq-detach\/\">detach()<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Analog Output Functions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Analog output functions for the EthercatDevice_DmpAIQ_Generic class.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/dmp\/aio\/ethercatdevice_dmpaiq-analogwrite\/\">analogWrite()<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/dmp\/aio\/ethercatdevice_dmpaiq-voltagewrite\/\">voltageWrite()<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/dmp\/aio\/ethercatdevice_dmpaiq-currentwrite\/\">currentWrite()<\/a><\/li>\n<\/ul>\n\n\n\n<div style=\"height:30px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Analog Input Functions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Analog input functions for the EthercatDevice_DmpAIQ_Generic class.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/dmp\/aio\/ethercatdevice_dmpaiq-analogread\/\">analogRead()<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.qec.tw\/ethercat\/api\/dmp\/aio\/ethercatdevice_dmpaiq-voltageread\/\">voltageRead()<\/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\">Please see the&nbsp;<a href=\"https:\/\/www.qec.tw\/ethercat\/api\/ethercat-library-api-user-manual\/\">EtherCAT Library User Manual<\/a>&nbsp;for more QEC EtherCAT instructions and API usage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[EthercatDevice_Dmp] EthercatDevice_DmpAIQ_Generic is an EtherCAT slave class specifically developed by ICOP for Analog I\/O EtherCAT slave modules. It provides APIs for analog input, analog output, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":14815,"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":[254,276],"tags":[162,54,191],"class_list":["post-14814","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dmp","category-aio","tag-86duino","tag-ethercat","tag-qec"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/14814","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/comments?post=14814"}],"version-history":[{"count":0,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/14814\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media\/14815"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media?parent=14814"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/categories?post=14814"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/tags?post=14814"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}