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