Operation of DI/DO Module EtherCAT Programming Guide
18-8 March, 2017
18
18.6 _ECAT_Slave_DIO_Set_Single_Output_Value
Syntax
U16 PASCAL_ECAT_Slave_DIO_Set_Single_Ouput_Value (U16 CardNo, U16 NodeID,
U16 SlotNo, U16 BitNum, U16 Value)
Purpose
This is for setting the output value of 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 single channel on DO module
Example
U16 Status;
U16 CardNo=16, NodeID=1, SlotNo=0, BitNum=1;
U16 Value=1;
Status=_ECAT_Slave_DIO_Set_Single_Output_Value (CardNo, NodeID, SlotNo, BitNum,
Value);