Source Mode

In this library, a distinction is made between Internal and Manual as sources for value specifications. The Source Mode is a state machine for managing value specifications from these sources.

Access routes

Internal value specifications are written by the internal PLC logic. The variable names are extended by the suffix *Int.

Manual value specifications are written by a manual operation (e.g. via OPC UA). They are declared as external variables and cannot be written via the internal PLC logic. Manual value specifications add the suffix *Man to the variable name.

States

The state machine has two states: Internal and Manual. In the Internal state, *Int value specifications are processed and in the Manual state, *Man value specifications are processed.

The current state is displayed via the outputs SrcManAct and SrcIntAct.

State change

A state change is carried out via switching requests from the internal PLC logic *Aut or via an operator *Op (according to the Handshake procedure). The input SrcChannel is set via the internal PLC logic and indicates which source can currently trigger a state change.

Internal is prioritized higher than Manual. Therefore, if both states are requested at the same time, the state Internal is assumed.

Source Mode 1:
Source Mode 2:

The Source Mode is part of objects and cannot be used alone.

Source Mode 3: Inputs

Name

Type

Description

OPC UA access

SrcChannel

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

SrcIntAut

BOOL

Automtaic switching request to transfer the SourceMode to the Internal state

Read

SrcManAut

BOOL

Automatic switching request to transfer the SourceMode to the Manual state

Read

Source Mode 4: Outputs

Name

Type

Description

OPC UA access

SrcIntAct

BOOL

SourceMode is in the state Internal.

Read

SrcManAct

BOOL

SourceMode is in the state Manual.

Read

External variables

Name

Type

Description

OPC UA access

SrcIntOp

BOOL

Operator switching request to transfer the SourceMode to the Internal state.

0→1: Operator request

1→0: Request has been processed.

Read/write

SrcManOp

BOOL

Operator switching request to transfer the SourceMode to the Manual state.

0→1: Operator request

1→0: Request has been processed.

Read/write

Source Mode 5: Methods

Name

Description

SetInternal

Sets the state machine SourceMode of the interface to the state Internal.

SetManual

Sets the state machine SourceMode of the interface to the state Manual.