EtherCAT Programming Guide Operation of DI/DO Module
March, 2017 18-7
18
18.5 _ECAT_Slave_DIO_Get_Single_Output_Value
Syntax
U16 PASCAL_ECAT_Slave_DIO_Get_Single_Output_Value (U16 CardNo, U16 NodeID, U16
SlotNo, U16 BitNum, U16 *Value)
Purpose
This is for acquiring the value output by the specified channel.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
BitNum U16 Number Channel number of digital output
Value U16* Value
The output value of the specified channel on DO
module
Example
U16 Status;
U16 CardNo=16, NodeID=1, SlotNo=0, BitNum=1;
U16 Value;
Status=_ECAT_Slave_DIO_Get_Single_Output_Value (CardNo, NodeID, SlotNo, BitNum,
&Value);