EtherCAT Programming Guide Operation of Local Digital I/O
March, 2017 26-5
26
26.3 _ECAT_GPIO_Get_Input
Syntax
U16 PASCAL _ECAT_GPIO_Get_Input (U16 CardNo, U16* Data)
Purpose
This is for reading the input status of the GPIO (General-purpose input/output) on the motion
card.
To get the input 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 input status of GPIO
Example
U16 Status = 0;
U16 CardNo, Data;
CardNo = 0;
Status= _ECAT_GPIO_Get_Input( CardNo, &Data );