EtherCAT Programming Guide Operation of AI/AO Module
March, 2017 19-3
19
19.1 _ECAT_Slave_AIO_Get_Input_Value
Syntax
U16 PASCAL_ECAT_Slave_AIO_Get_Input_Value (U16 CardNo, U16 NodeID, U16 SlotNo,
U16 *Value)
Purpose
This is for acquiring analog input value.
Note: Delta analog input module only allows users to measure voltage signal.
To measure the input current, you need to modify the wriing of the analog input module first. (Please refer to
the user manual of Delta analog input model regarding the wiring for current measurement.) After finishing
the wiring, users can convert the measurement into current by using the circuit with 250Ω- resistor.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
Value U16* Value
Acquire the data from AI remote module. The value is
0 ~ 65535.
Example
U16 Status=0;
U16 CardNo=16, NodeID=1, SlotNo=0;
U16 Value;
Status=_ECAT_Slave_AIO_Get_Input_Value (CardNo, NodeID, SlotNo, &Value);