ioNetRemove (Function)

Top  Previous  Next

Architecture:

X32 / NX32 / NX32L

Firmware version:

2.84 / 1.00.00


This function is used to disable an I/O Extension net until the next restart of the RTCU.

When a net is disabled, the firmware will release the serial port used and disable all the devices that are connected to the net.

Similar to the ioDeviceEnable function, the inputs and/or outputs of the devices are no longer updated, the status of the devices will not change and no new exceptions are raised.

 

The network ID is for the I/O Extension net that is found in the RTCU M2M Studio, not the MODBUS connection ID returned by modbusOpen.

 

 

Input:

net_id : SINT

The network ID of the I/O Extension network.

 

Returns: INT

0

- Success.

1

- The I/O net is not found.

 

Declaration:

FUNCTION ioNetRemove : INT;
VAR_INPUT
   net_id   : SINT;
END_VAR;

 

 

Example:

INCLUDE rtcu.inc
 
PROGRAM ModbusExample;
 
   // Disable net
   ioNetRemove(net_id := 1);
   ...
 
BEGIN
   ...
END;
END_PROGRAM;