Operation of Local Digital I/O EtherCAT Programming Guide
26-4 March, 2017
26
26.2 _ECAT_GPIO_Get_Output
Syntax
U16 PASCAL _ECAT_GPIO_Get_Output (U16 CardNo, U16* Data)
Purpose
This is for reading the output status of the GPIO on the motion card.
To get the output status of
bit 15, bit 14, …, bit 0, users can convert the value to binary format (from left to right).
Parameter
Name Data type Property Description
CardNo U16 Number Card number
Data U16* Value The output status of GPIO
Example
U16 Status = 0;
U16 CardNo, Data;
CardNo = 0;
Status= _ECAT_GPIO_Get_Output( CardNo, &Data );