Difference between revisions of "EtherCAT:EC IS PDO"
(Created page with "{{Template:EtherCAT-Function |DESCRIPTION= This subroutine checks the existence of a PDO in a certain slave.<br/> |INPUT= Slave address, PDO index, PDO sub-index. |OUTPUT= ...") |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|EtherCAT:EC_IS_PDO}} | ||
{{Template:EtherCAT-Function | {{Template:EtherCAT-Function | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | This | + | This function checks whether an object (index/sub-index) is mapped to a PDO in a slave.<br/> |
|INPUT= | |INPUT= | ||
Line 11: | Line 12: | ||
|RETURN VALUE= | |RETURN VALUE= | ||
− | 1 if PDO | + | 1 if object mapped to PDO, 0 otherwise. |
|DECLARATION= | |DECLARATION= |
Latest revision as of 17:29, 5 May 2017
Language: | English • 中文(简体) |
---|
This function checks whether an object (index/sub-index) is mapped to a PDO in a slave.
Input
Slave address, PDO index, PDO sub-index.
Output
None
Return Value
1 if object mapped to PDO, 0 otherwise.
Declaration
public function EC_IS_PDO(byval slaveAddr as long,byval index as long,byval subindex as long) as long
Syntax
retVal = EC_IS_PDO(<Slave address>, <PDO index>, <PDO sub-index>)
Examples
retVal = EC_IS_PDO(2, 0x20f1, 0)