TCatIoOutputUpdate
The TCatIoOutputUpdate function initiates the output mapping of the specified task.
LRESULT TCatIoOutputUpdate(
USHORT nPort
);
Parameters
nPort
Port id of the I/O task whose process image should be used to transfer the output data. For further information on defining the task process image, see the TwinCAT System Manager - Addtional Tasks.
Return Values
If the function fails, the return value is non zero. Possible error codes:
-1: I/O connection is not initialized
IOERR_IOSTATEBUSY [0x2075]: I/O device is not ready
Remarks
TCatIoOutputUpdate checks the state of the I/O device whether it is ready or not. If the I/O device is ready, TCatIoOutputUpdate writes the output data to the device and starts the fieldbus I/O cycle.
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.