AdapterState (ENUM)

TYPE AdapterState :

Possible states of a RemoteAdapter (device under scanner).

Attributes:

qualified_only

InOut:

Name

Initial

Comment

DISABLED

0

Disabled in device tree.

NOT_CONFIGURED

State after download going on with |IP_CONFIG| after setting values to default.

IP_CONFIG

Setting IP address and port. |BUS_ERROR| if IP address not valid. Going on with |ENCAPSULATION_CONFIG| if ok.

ENCAPSULATION_CONFIG

Opens the TCP port to the client and if ther is no error go on |LIST_SERVICES|, else |BUS_ERROR|.

LIST_SERVICES

Empty state going on with |REGISTER_SESSION|.

REGISTER_SESSION

Register Session message is send and response is evaluated. If error |BUS_ERROR|, else |PARAMETER_CONFIG|.

PARAMETER_CONFIG

UserParameters are going to be sent. If error accrued, a logmessage is generated and no matter what the next state is AdapterState.CONFIGURED.

CONFIGURED

Forward Open is processed here going on with |RUNNING| if success and join multicast address if necessary, else retrying Forward Open in this state.

RUNNING

All connections established. IO data will be sent to the slave.

RESET

Performing a reset triggered on the input of the RemoteAdapter.

RESET_SERVICE

Reset service of CIP is triggered over the network.

CONNECTIVITY_CHECK

if AUTO_RESET in the configurator is enabled and the connection is lost, this states is getting active and checks, if the adapter is avaiable. |CONFIGURED| is the next state, if the adapter is available again.

BUS_ERROR

If connection is lost and AUTO_RESET is disabled in the configurator or problems with sockets occurred, this state gets active.

ERROR

Downloaded parameter are inconsistent or no memory or connection problems