EtherCAT Programming Guide Operation of AI/AO Module
March, 2017 19-5
19
19.3 _ECAT_Slave_AIO_Set_Output_Value
Syntax
U16 PASCAL_ECAT_Slave_AIO_Get_Output_Value (U16 CardNo, U16 NodeID, U16 SlotNo,
U16* Value)
Purpose
This is for acquiring analog output value.
The output value will be converted into value 0 ~ 65535 in accordance with the proportion. Then,
this API will be controlling the analog output module.
Parameter
Name Data type Property Description
CardNo U16 Number Card No.
NodeID U16 Number Node ID
SlotNo U16 Number Slot ID
Value U16* Value
The output value of the AO module, which ragne is 0 ~
65535.
Example
U16 Status=0;
U16 CardNo=16, NodeID=1, SlotNo=0;
U16 Value=0;
Status=_ECAT_Slave_AIO_Get_Output_Value (CardNo, NodeID, SlotNo, &Value);