Operation of AI/AO Module
19.2 _ECAT_Slave_AIO_Set_Output_Value
Syntax
19
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
CardNo
NodeID
SlotNo
Value
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);
19-4
Data type
Property
U16
Number
U16
Number
U16
Number
U16
Value
Description
Card No.
Node ID
Slot ID
The output value of the AO module, which ragne is 0 ~
65535.
EtherCAT Programming Guide
March, 2017