Previous Topic

Next Topic

Book Contents

Book Index

Modbus Device States

This page describes the various states and available transitions between them and com.prosyst.mbs.services.modbus.manager.ModbusDevice

State Change Diagram

mbs_modbus_devguide_devstates

States

Initial device creation

Once device is created it goes into state STATE_ONLINE. This means that the application should verify that the com.prosyst.mbs.services.modbus.driver.ModbusLink is connected and it is connected to an actual Modbus Device. The STATE_ONLINE state has the following exit options:

State OFFLINE_COMMUNICATION_FAILURE

A device in state OFFLINE_COMMUNICATION_FAILURE can go into STATE_ONLINE or STATE_REMOVED according to the following transitions:

State OFFLINE_COMMUNICATION_CLOSED

A device in state OFFLINE_COMMUNICATION_CLOSED has the following transitions available:

State STATE_OFFLINE

A device in STATE_OFFLINE has the following transitions available:

State STATE_REMOVED

A device in STATE_REMOVED can not be used anymore. Instead the application could try to create a new device with the same properties, if this is required.

No other transitions are available and the application can not request explicitly state other than STATE_ONLINE and STATE_OFFLINE.