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:    

For Windows CE:

See Also

TCatIoInputUpdate()