Service Mode

Three sources for switching requests and value specifications are available for the services:

Operation mode control

The operation mode control allows you to switch between the states Offline, Operator, and Automatic.

In the Offline state, no new switching requests or value specifications are taken into account. In the Operator state, *OP switching requests and *OP setpoints are processed; in the Automatic state, *Aut switching requests and *Aut value specifications from the selected source are processed.

The current state is displayed via the outputs StateOffAct, StateOpAct, and StateAutAct.

The state change is carried out via the internal PLC logic or via the operators. The input StateChannel is set via the internal PLC logic and specifies which source is taken into account during processing.

If more than one state change is requested at the same time (e.g., StateOpAut = TRUE and StateOffAut = TRUE), the requests are discarded and Operation Mode remains in its current state.

Source selection (Automatic)

The source selection is used in the Automatic operation mode and allows you to switch between Automatic-Internal and Automatic-External.

Automatic-Internal switching requests and value specifications are written by the internal PLC logic. The variable names are extended by the suffix *Int.

Automatic-External Switching requests and value specifications are written manually (e.g. via OPC UA).

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.

If both state changes are requested simultaneously (e.g., SourceManAut = TRUE and SourceIntAut = TRUE), the requests are discarded and Source Mode remains in its current state.

Service Mode 1:

Service Mode is part of interfaces and cannot be used alone!

Diagram of the state machines:

The state machines work according to the following diagram:

Service Mode 2:

Service Mode 3: Inputs

Name

Type

Description

OPC UA access

StateChannel

BOOL

Selection of switching requests for the operation mode of 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 switch the Service Mode to the Offline operation mode.

Read

StateOpAut

BOOL

Automatic Switching request to switch the Service Mode to the Operator operation mode.

Read

StateAutAut

BOOL

Automatic Switching request to switch the Service Mode to the Automatic operation mode

Read

SrcChannel

BOOL

Selection of switching requests for the source of the state machine:

1: Automatic switching requests are taken into account.

0: Operator switching requests are taken into account.

Read

SrcIntAut

BOOL

Automatic Switching request to select Internal as the source for the Automatic operation mode of the Service Mode.

 

Read

SrcManAut

BOOL

Automatic Switching request to select Manual as the source for the Automatic operation mode of the Service Mode.

 

Read

Service Mode 4: Outputs

Name

Type

Description

OPC UA access

StateOffAct

BOOL

1: Current operation mode is Offline.

Read

StateOpAct

BOOL

1: Current operation mode is Operator.

Read

StateAutAct

BOOL

1: Current operation mode is Automatic.

Read

SrcIntAct

BOOL

1: The current source is Internal and the current operation mode is Automatic.

Read

SrcManAct

BOOL

1: The current source is Manual and the current operation mode is Automatic.

Read

External variables

Name

Type

Description

OPC UA access

StateOffOp

BOOL

Operator Switching request to switch the Service Mode to the Offline operation mode.

0→1: Operator request

1→0: Request has been processed.

Read/write

StateOpOp

BOOL

Operator Switching request to switch the Service Mode to the Operator operation mode.

0→1: Operator request

1→0: Request has been processed.

Read/write

StateAutOp

BOOL

Operator Switching request to switch the Service Mode to the Automatic operation mode.

0→1: Operator request

1→0: Request has been processed.

Read/write

SrcIntOp

BOOL

Operator Switching request to select Internal as the source for Service Mode.

0→1: Operator request

1→0: Request has been processed.

Read/write

SrcManOp

BOOL

Operator Switching request to select Manual as the source for Service Mode.

0→1: Operator request

1→0: Request has been processed.

Read/write

Service Mode 5: Methods

Name

Type

Description

IsOffline

BOOL

Returns TRUE if the current operation mode is Offline.

IsOperator

BOOL

Returns TRUE if the current operation mode is Operator.

IsAutomaticInternal

BOOL

Returns TRUE if the current operation mode is Automatic and the current source is Internal.

IsAutomaticExternal

BOOL

Returns TRUE if the current operation mode is Automatic and the current source is External.

SetOffline

BOOL

Sets the Service Mode's operation mode to the state Offline.

Returns TRUE if the current operation mode is Offline.

SetOperator

BOOL

Sets the Service Mode's operation mode to the state Operator.

Returns TRUE if the current operation mode is Operator.

SetAutomaticInternal

BOOL

Sets the Service Mode's operation state to Automatic and selects the source Internal from.

Returns TRUE if the current operation mode is Automatic and the current source is Internal.

SetAutomaticExternal

BOOL

Sets the Service Mode's operation state to Automatic and selects the source External from.

Returns TRUE if the current operation mode is Automatic and the current source is External.