



CAUTION

You are responsible for runtime system services being enabled under safe application conditions and disabled only under critical conditions.
At runtime, the state of an application or facility can become sensitive and disruptive actions can endanger the entire machine or facility. However, in this state you can suppress certain commands and prevent dangerous actions. The “PlcOperationControl” function block and “Component Manager” library are provided for this purpose.
Examples of CODESYS commands that can suppress operations when executed:
-
“Online Change”, “Download”
-
“Enable Breakpoint”
-
“Reset Application”, “Stop Application”
-
“Transmit Data”
-
“Force Values”, “Write Values”
In order that a backup solution is always in place, you are not permitted to suppress the “Reset origin” and “Delete” commands.
CODESYS will notify you if a currently disabled runtime system service is required when the application is in runtime mode. Then, you can respond with an appropriate countermeasure.
Function block PlcOperationControl
for operation control
This function block is used for enabling and disabling operations.
Name |
Data Type |
Initial value |
Description |
---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This can also be suppressed via PLCHandler/IecVarAccess. |
|
|
|
|
|
|
|
|
|
|
|
|
Implementing operation control
Requirement
-
Compiler version >=
3.4.3.0
-
In the device description, the PLC operation control is enabled by system variables.
-
Declare an instance of the
PlcOperationControl
function block (for example,PlcOpCtrl_Inst
).PlcOpCtrl_Inst : PlcOperationControl;
-
Suppress a command by assigning the respective
TRUE
property (for example, "Stop Application".PlcOpCtrl_Inst.xDIsableApplicationStop := TRUE;