Operation Mode
In this library, a distinction is made between Operator
and Automatic
as sources for switching requests. The Operation Mode
is a state machine for managing switching requests from these sources.
Access routes
Automatic
switching requests are written by the internal PLC logic. The variable names are extended by the suffix *Aut
.
Operator
switching requests are made manually (e.g. via OPC UA). They are declared as external variables and cannot be written via the internal PLC logic. Operator
switching requests add the suffix *Op
to the variable name.
States
The state machine has three states: Offline
, Operator
and Automatic
. No new switching requests are processed in the Offline
state. In the Operator
state, *Op
switching requests are processed and in the Automatic
state, *Aut
switching requests are processed.
The current state is displayed via the outputs StateOffAct
, StateOpAct
and StateAutAct
.
State change
A state change is carried out via switching requests from the internal PLC logic or via an operator (according to the Handshake procedure). The input StateChannel
is set via the internal PLC logic and indicates which source can currently trigger a state change.
States are prioritized as follows: Offline
> Operator
> Automatic.
It follows that if all three states are requested at the same time, the state Offline
is assumed. If Operator
and Automatic
are requested at the same time, the state Operator
is assumed.

![]() | A direct transition from the state |
![]() | The |
Inputs
Name | Type | Description | OPC UA access |
---|---|---|---|
StateChannel | BOOL | Selection of switching requests for the state machine: 1: 0: | Read |
StateOffAut | BOOL |
| Read |
StateOpAut | BOOL |
| Read |
StateAutAut | BOOL |
| Read |
Outputs
Name | Type | Description | OPC UA access |
---|---|---|---|
StateOffAct | BOOL | 1: Current state is | Read |
StateOpAct | BOOL | 1: Current state is | Read |
StateAutAct | BOOL | 1: Current state is | Read |
External variables
Name | Type | Description | OPC UA access |
---|---|---|---|
StateOffOp | BOOL |
0→1: 1→0: Request has been processed. | Read/write |
StateOpOp | BOOL |
0→1: 1→0: Request has been processed. | Read/write |
StateAutOp | BOOL |
0→1: 1→0: Request has been processed. | Read/write |
Methods
Name | Description |
---|---|
SetOffline | Sets the state machine |
SetOperator | Sets the state machine |
SetAutomatic | Sets the state machine |