TCatIoInputUpdate
The TCatIoInputUpdate function initiates the input mapping of the specified task.
LRESULT TCatIoInputUpdate(
USHORT nPort
);
Parameters
nPort
Port id of the I/O task whose process image should be used to get the input data. For further information on defining the task process image see the TwinCAT System Manager documentation, chapter "Additional tasks".
Return Values
If the function fails, the return value is nonzero. Possible error codes:
-1: I/O connection is not initialized
IOERR_IOSTATEBUSY [0x2075]: I/O device is not ready
Remarks
TCatIoInputUpdate checks the state of the input device whether it is ready or not. No fieldbus I/O is initiated by calling TCatIoInputUpdate, to start the field bus I/O cycle call TCatIoOutputUpdate.
QuickInfo
For Windows NT:
- Windows NT Version: Requires version 4.0 or later.
- TwinCAT: Requires version 2.5 or later.
- Header: Declared in TCatIoApi.h.
- Import Library: Use TCatIoDrv.lib.
For Windows CE:
- Windows CE Version: Requires version 4.2 or later.
- Image Version: Requires version 1.90 or later.
- Header: Declared in TCatIoW32Api.h.
Import Library: Use TCatIoDrvW32.lib.