ioInputLatchSet (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Device support:

All devices with RS485

Firmware version:

4.66 / 1.08.00


This function is used to configure whether inputs (both Analog and Digital) of devices in I/O Extension, will be latched (keeping the last value) or reset (set to zero) when communication fails.

The default behavior  is to latch the inputs.

 

 

Input:

reset : BOOL

TRUE:

The inputs on devices is reset.

FALSE:

The inputs on devices is latched.

 

Returns:

None.

 

 

Declaration:

FUNCTION ioInputLatchSet;
VAR_INPUT
  reset : BOOL;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM ModbusExample;
 

  ...
  // Latch device inputs
  ioInputLatchSet(reset := FALSE);
  ...
 
BEGIN
END;
END_PROGRAM;