Difference between revisions of "EtherCAT:EC GET IO MODULE IN OUT"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:EtherCAT:EC GET IO MODULE IN OUT to EtherCAT:EC GET IO MODULE IN OUT: Global renaming of Axystems: namespace into (Main):)
m (Text replace - "Axystems:" to "")
Line 1: Line 1:
{{Axystems:Template:EtherCAT-Function
+
{{Template:EtherCAT-Function
  
 
|DESCRIPTION=
 
|DESCRIPTION=

Revision as of 09:13, 22 May 2014

This function returns an IO module's input/ output setting. set (ON -1) or unset (OFF - 0)

Input

Slave address, PDO index, PDO sub-index.

Output

None

Return Value

The input/output is set - the function returns 1. The input/output is unset - the function returns 0.

Declaration

public function EC_GET_IO_MODULE_IN_OUT(byval slaveaddress as long, byval index as long, byval subindex as long) as long

Syntax

retVal = EC_GET_IO_MODULE_IN_OUT(<Slave address>, <PDO index>, <PDO sub-index>)

Examples

retVal = EC_GET_IO_MODULE_IN_OUT(1, 0x7020, 0x01)