Difference between revisions of "EtherCAT:EC PDO READ"
Line 2: | Line 2: | ||
|DESCRIPTION= | |DESCRIPTION= | ||
− | While the system is running we are able to read and write specific PDOS | + | While the system is running we are able to read and write specific PDOS <big>without</big> interfering with the realtime functionality<br/> |
− | of the system | + | of the system.<br/> |
− | + | This function retrieves the value of a specific PDO within the current cycle. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|INPUT= | |INPUT= | ||
− | Slave address, PDO index, PDO sub-index | + | Slave address, PDO index, PDO sub-index. |
|OUTPUT= | |OUTPUT= | ||
Line 21: | Line 13: | ||
|RETURN VALUE= | |RETURN VALUE= | ||
− | Value that is read from the | + | Value that is read from the PDO. |
|DECLARATION= | |DECLARATION= | ||
− | public function | + | public function EC_PDO_READ(byval slaveaddres as long, byval index as long, byval subindex as long) as long |
|SYNTAX= | |SYNTAX= | ||
− | retVal = | + | retVal = EC_PDO_READ(<Slave address>, <PDO index>, <PDO sub-index>) |
|EXAMPLE= | |EXAMPLE= | ||
− | retVal = | + | retVal = EC_PDO_READ(2, 0x6041,0) ' Read status word |
|SEE ALSO= | |SEE ALSO= | ||
+ | * [[Axystems:EtherCAT:EC_PDO_WRITE|EC_PDO_WRITE]] | ||
+ | * [[Axystems:EtherCAT:EC_SDO_READ|EC_SDO_READ]] | ||
* [[Axystems:EtherCAT:EC_SDO_WRITE|EC_SDO_WRITE]] | * [[Axystems:EtherCAT:EC_SDO_WRITE|EC_SDO_WRITE]] | ||
}} | }} |