IOS_START: Launch the Modbus TCP IOScanner
This function starts the Modbus TCP IOScanner.
It allows runtime control of the Modbus TCP IOScanner execution. By default, the Modbus TCP IOScanner starts automatically when the application starts.
This function call waits for the Modbus TCP IOScanner to be physically started, so it can last up to 5 ms.
Starting a Modbus TCP IOScanner already started has no effect.
To see the general representation in IL or ST language, refer to Function and Function Block Representation.
This table describes the output variable:
|
Output |
Type |
Comment |
|---|---|---|
|
IOS_START |
UDINT |
o0 = successful start oOther value = start unsuccessful |
This is an example of a call of this function:
rc := IOS_START() ;
IF rc <> 0 THEN (* Abnormal situation to be processed at application level *)