ioNetEnable (Function) |
Top Previous Next |
This function is used to enable or disable an I/O Extension net. When a net is disabled, the firmware will release the serial port used, and disable update of 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 IDE, not the MODBUS connection ID returned by modbusOpen.
Input: net_id : SINT The network ID of the I/O Extension network.
enable : BOOL
Returns: INT
Declaration: FUNCTION ioNetEnable : INT;
Example: INCLUDE rtcu.inc |