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

From SoftMC-Wiki
Jump to: navigation, search
(Created page with "{{Axystems:Template:EtherCAT-Function |DESCRIPTION= This function returns an IO module's input/ output setting. set (ON -1) or unset (OFF - 0) |INPUT= Slave address, PDO i...")
 
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Axystems:Template:EtherCAT-Function
+
{{Languages|EtherCAT:EC_GET_IO_MODULE_IN_OUT}}
 +
{{Template:EtherCAT-Function
  
 
|DESCRIPTION=
 
|DESCRIPTION=
This function returns an IO module's input/ output setting.  set (ON -1) or unset (OFF - 0)
+
This function returns an IO module's input/ output setting:  ON (1) or OFF (0) <br/>
 +
It is easier to query digital I/Os if they are associated with system's digital I/Os.<br/>
 +
Refer to [[EtherCAT:DIGITAL-IOS|Digital I/Os]] for more information.<br/>
  
 
|INPUT=
 
|INPUT=
Line 11: Line 14:
  
 
|RETURN VALUE=
 
|RETURN VALUE=
If the LED is lit returns 1, 0 if not.
+
The input/output is set - the function returns 1.
 +
The input/output is unset - the function returns 0.
  
 
|DECLARATION=
 
|DECLARATION=

Latest revision as of 16:59, 5 May 2017

Language: English  • 中文(简体)‎

This function returns an IO module's input/ output setting: ON (1) or OFF (0)
It is easier to query digital I/Os if they are associated with system's digital I/Os.
Refer to Digital I/Os for more information.

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)