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.

![]() | The |
Inputs
Name | Type | Description | OPC UA access |
---|---|---|---|
SrcChannel | BOOL | Selection of switching requests for the state machine: 1: 0: | Read |
SrcIntAut | BOOL |
| Read |
SrcManAut | BOOL |
| Read |
Outputs
Name | Type | Description | OPC UA access |
---|---|---|---|
SrcIntAct | BOOL |
| Read |
SrcManAct | BOOL |
| Read |
External variables
Name | Type | Description | OPC UA access |
---|---|---|---|
SrcIntOp | BOOL |
0→1: 1→0: Request has been processed. | Read/write |
SrcManOp | BOOL |
0→1: 1→0: Request has been processed. | Read/write |
Methods
Name | Description |
---|---|
SetInternal | Sets the state machine |
SetManual | Sets the state machine |