DNM_STATE

Data_Type Default_Value Range Unit
BYTE - - -

DNM_STATE outputs the general communication state of the DeviceNet™ master. The following states are defined:

State Meaning
Dec Hex  
0 00 OFFLINE
64 40 STOP
128 80 CLEAR
192 C0 OPERATE

DNM_STATE = OFFLINE

If DNM_STATE is set to OFFLINE, the DeviceNet™ Communication Module performs an initialization. After the initialization phase is completed, the Communication Module changes to STOP state.

DNM_STATE = STOP

The Communication Module is completely initialized, if DNM_STATE has the value STOP. In this state the Communication Module is ready to receive configuration data. There is no data exchange with the slaves. The Communication Module has this state if no user program is running.

DNM_STATE = CLEAR

If the user program is started, the Communication Module changes from STOP to CLEAR and starts to establish the connections defined during configuration. After the setup is completed successfully, the Communication Module moves to OPERATE state. If an error occurs during parameterization, the Communication Module changes back to STOP state.

DNM_STATE = OPERATE

Normally, the Communication Module is in OPERATE state when a user program is running. In this state the master exchanges I/O data with the slaves. If an error occurs during this process and if ‘Auto Clear Mode’ has been selected during configuration, the Communication Module changes back to CLEAR state and tries to establish the connections again. If ‘Auto Clear Mode’ has not been selected during configuration, the Communication Module remains in OPERATE state in case of an error. If the user program is stopped, the Communication Module also changes back to STOP state.

DNM_STATE is only valid if EN = TRUE and ERR = FALSE.