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.

Operation Mode 1:
Operation Mode 2:

A direct transition from the state Offline to the state Automatic is not provided for in the MTP guideline, but is supported by the state machine.

Operation Mode 3:

The Operation Mode is part of objects in this library and cannot be used alone.

Operation Mode 4: Inputs

Name

Type

Description

OPC UA access

StateChannel

BOOL

Selection of switching requests for the state machine:

1: Automatic switching requests are taken into account.

0: Operator switching requests are taken into account.

Read

StateOffAut

BOOL

Automatic switching request to transfer the Operation Mode to the Offline state.

Read

StateOpAut

BOOL

Automatic switching request to transfer the Operation Mode to the Operator state.

Read

StateAutAut

BOOL

Automatic switching request to transfer the Operation Mode to the Automatic state

Read

Operation Mode 5: Outputs

Name

Type

Description

OPC UA access

StateOffAct

BOOL

1: Current state is Offline.

Read

StateOpAct

BOOL

1: Current state is Operator.

Read

StateAutAct

BOOL

1: Current state is Automatic.

Read

External variables

Name

Type

Description

OPC UA access

StateOffOp

BOOL

Operator switching request to transfer the Operation Mode to the Offline state.

0→1: Operator request

1→0: Request has been processed.

Read/write

StateOpOp

BOOL

Operator switching request to transfer the Operation Mode to the Operator state.

0→1: Operator request

1→0: Request has been processed.

Read/write

StateAutOp

BOOL

Operator switching request to transfer the Operation Mode to the Automatic state.

0→1: Operator request

1→0: Request has been processed.

Read/write

Operation Mode 6: Methods

Name

Description

SetOffline

Sets the state machine OperationMode of the interface to the state Offline.

SetOperator

Sets the state machine OperationMode of the interface to the state Operator.

SetAutomatic

Sets the state machine OperationMode of the interface to the state Automatic.