ioSynchronize (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All devices with RS485

Firmware version:

2.10 / 1.00.00


This function will update all the in- and outputs on the external I/O devices.

This function is required to update the external I/O devices when using synchronous update mode (see ioSetMode).

 

Note: this function does not update the VPL variables bound to in- and outputs. To update the variables you need the BEGIN/END construction or the UPDATEIO construction.

 

 

Input:

None.

 

 

Returns:

0

- The external I/O devices are updated.

1

- ioSynchronize does not work in the current update mode.

 

Declaration:

FUNCTION ioSynchronize;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM ModbusExample;
 
ioSetMode(mode := 1);
 
BEGIN
  ioSynchronize();   // Update the external I/O
  ...
END;
END_PROGRAM;