Operation of AI/AO Module EtherCAT Programming Guide
19-4 March, 2017
19
19.2 _ECAT_Slave_AIO_Set_Output_Value
Syntax
U16 PASCAL_ECAT_Slave_AIO_Set_Output_Value (U16 CardNo, U16 NodeID, U16 SlotNo,
U16 Value)
Purpose
This is for setting analog output value, which range is 0 ~ 65535.
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=0x5ff;
Status=_ECAT_Slave_AIO_Set_Output_Value (CardNo, NodeID, SlotNo, Value);