IOS_GETSTATE: Read the State of the Modbus TCP IOScanner

Function Description

This function returns the value corresponding to the state of the Modbus TCP IOScanner.

Graphical Representation

G-SE-0033837.1.jpg

 

 

IL and ST Representation

To see the general representation in IL or ST language, refer to Function and Function Block Representation

I/O Variable Description

This table describes the output variable:

Output

Type

Comment

IOS_GETSTATE

IosStateCodes

Return values: IosStateCodes enum

Example

This is an example of a call of this function:

mystate := IOS_GETSTATE() ; (* 0=NOT CONFIGURED 2=OPERATIONAL or 3=STOPPED. *)