To read I/O input values. For more information, refer to ‘1-1-5. Frame Type and Data
Configuration’.
int FAS_GetIOInput(
BYTE nPortNo,
BYTE iSlaveNo,
DWORD* dwIOInput
);
nPortNo
Port number of relevant drive.
iSlaveNo
Slave number of relevant drive.
dwIOInput
Parameter pointer where input values will be saved
FMM_OK : Command has been successfully performed.
FMM_NOT_OPEN : The drive has not been connected yet.
FMM_INVALID_PORT_NUM : There is no nPort in the connected ports .
FMM_INVALID_SLAVE_NUM : There is no drive of iSlaveNo in the relevant port .
There are 12 input pins in Ezi-STEP Plus-R. The user can select and use 9 input pins
of them. This function can read the input port status as 32bit. All of them are
insulated by a photocoupler. (Refer to the figure.)
If voltage from an external input, is 24V at Port A , the input is recognized to 5V(High).
Refer to ‘FAS_SetIOInput’ library.