EtherCAT Programming Guide Operation of Local Digital I/O
March, 2017 26-3
26
26.1 _ECAT_GPIO_Set_Output
Syntax
U16 PASCAL _ECAT_GPIO_Set_Output (U16 CardNo, U16 Data)
Purpose
This is for controling the output status of the GPIO (General-purpose input/output) on the motion
card.
To set the output status of bit 15, bit 14, …, bit 0, users can convert the value to decimal
format (from left to right).
Parameter
Name Data type Property Description
CardNo U16 Number Card number
Data U16 Value The output value of GPIO
Example
U16 Status = 0;
U16 CardNo, Data;
CardNo = 0;
Data = 0xF;
Status= _ECAT_GPIO_Set_Output( CardNo, Data );