Difference between revisions of "EtherCAT:DIGITAL-IOS/zh-hans"

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Languages}} {{Category |description=Digital Inputs/Outputs. |frontpage=EtherCAT The user can associate between system digital Inputs/Outputs and a motion drive’s digi...")
 
 
Line 1: Line 1:
{{Languages}}
+
{{Languages|EtherCAT:DIGITAL-IOS}}
 
{{Category
 
{{Category
 
|description=Digital Inputs/Outputs.
 
|description=Digital Inputs/Outputs.
 
|frontpage=[[EtherCAT]]
 
|frontpage=[[EtherCAT]]
  
The user can associate between system digital Inputs/Outputs and a motion drive’s digital inputs/outputs or an IO module inputs/outputs.<br/>This association allows the user to set/get those IOs using the following MC-Basic syntax:<br/>
+
用户可以在系统数字输入/输出和运动驱动器的数字输入/输出或IO模块输入/输出之间关联。<br/>该关联允许用户使用以下MC-Basic语法设置/获取这些IO:<br/>
 
<br/>
 
<br/>
Read inputs:<br/>
+
读取输入:<br/>
 
?Sys.din[<first system digital input bit>][<Range>]<br/>
 
?Sys.din[<first system digital input bit>][<Range>]<br/>
 
<br/>
 
<br/>
Write outputs:<br/>
+
写入输出:<br/>
 
Sys.dout[<first system digital output bit>][<Range>] = <''value''><br/>
 
Sys.dout[<first system digital output bit>][<Range>] = <''value''><br/>
 
<br/>
 
<br/>
 
{{Note/Important|
 
{{Note/Important|
It is up to the user to assign system IOs carefully, and make sure that the same system IO isn't mapped<br/>
+
由用户仔细分配系统IO,并确保没有映射相同的系统IO
to more than one IO (of a motion drive or an IO module).<br/>
+
到多个IO(运动驱动器或IO模块)。<br/>
 
<br/>
 
<br/>
Behavior is UNDEFINED if this rule is broken !!!<br/>
+
如果此规则被破坏,行为未被定义 !!!<br/>
 
<br/>}}
 
<br/>}}
  
==Attaching System IOs to EtherCAT slave IOs==
+
==将系统IO连接到EtherCAT从站IO==
In an EtherCAT slave the digital IOs are handled by reading/writing to certain objects. These objects are mapped to PDO. Naturally, inputs are mapped to Tx PDOs (Slave to Master) and outputs are mapped to Rx PDOs (Master to Slave). The association between the relevant PDO, number of IOs, etc, is done using the subroutine [[EtherCAT:EC_ASSOCIATE_PDO_TO_SYS_DIO|EC_ASSOCIATE_PDO_TO_SYS_DIO]].<br/>
+
在EtherCAT从站中,通过读/写某些对象来处理数字IO。 这些对象映射到PDO。 自然地,输入被映射到Tx PDO(从站到主站),并且输出映射到Rx PDO(主站到从站)。 相关PDO,IO数量等之间的关联使用子程序[[EtherCAT:EC_ASSOCIATE_PDO_TO_SYS_DIO|EC_ASSOCIATE_PDO_TO_SYS_DIO]]完成。<br/>
 +
请参考[[EtherCAT:EC INSTALL STX CDHD|EC_INSTALL_STX_CDHD]]页面,了解如何使用此功能。<br/>
  
Please refer to the page [[EtherCAT:EC INSTALL STX CDHD|EC_INSTALL_STX_CDHD]] for an example how to use this function.<br/>
 
 
}}
 
}}
  

Latest revision as of 07:32, 5 May 2017

语言: English  • 中文(简体)‎

EtherCAT:DIGITAL-IOS/zh-hans Digital Inputs/Outputs.

The front page is EtherCAT

用户可以在系统数字输入/输出和运动驱动器的数字输入/输出或IO模块输入/输出之间关联。
该关联允许用户使用以下MC-Basic语法设置/获取这些IO:

读取输入:
?Sys.din[<first system digital input bit>][<Range>]

写入输出:
Sys.dout[<first system digital output bit>][<Range>] = <value>

IMPORTANT.svgIMPORTANT

由用户仔细分配系统IO,并确保没有映射相同的系统IO 到多个IO(运动驱动器或IO模块)。

如果此规则被破坏,行为未被定义 !!!


将系统IO连接到EtherCAT从站IO

在EtherCAT从站中,通过读/写某些对象来处理数字IO。 这些对象映射到PDO。 自然地,输入被映射到Tx PDO(从站到主站),并且输出映射到Rx PDO(主站到从站)。 相关PDO,IO数量等之间的关联使用子程序EC_ASSOCIATE_PDO_TO_SYS_DIO完成。
请参考EC_INSTALL_STX_CDHD页面,了解如何使用此功能。