Create action

Previous chapterNext chapter Show allShow all    Hide allHide all

Actions are the switching commands that are possible for the command interlocking, with the action-specific configuration. By selecting the command interlocking and activating the context menu

you can create the desired action. With Command new, we now create a new action 'Command'. Now we parameterize the action:

 

This is how the settings should look now:

Explanation of the properties.

Name of the property

Description

Variable

Data point, on which writing actions are performed. For some actions, this is the response variable. In this case, the field is locked.

The placeholder for the substitution text is the character sequence ‚*' within a name. Only one placeholder can be used in a name.

If the variable that is used here (substituted or absolute) does not exist during compiling, the action is not available in the RT. An according message announces this error during compiling. Initialization: No Allocation 

Type

Determines the type of the command. Options are: single or double command.

Double command:

Writes the value of the setting 'Command setting status'.

Single command:

Like a double command, but after the edge delay, a rewrite with the value 0 is performed automatically. This rewrite is no longer runtime-monitored.

 

Locked for all other actions.

Initialization: Single command

Switching direction

Defines the expected value resp. the status of the response variable after action execution.

Locked for the actions Block, Set value, Lock and Release.

Initialization: Off

Command settings status

Defines the value that is written to the command variable during the action 'Command'.

Locked for all actions except 'Single command' and 'Double command'.

Initialization: 0

Suppress CEL entry

If this is active, no entry in the CEL will be made when executing an action.

Initialization: Inactive

Timeout

Timeout used for watchdog timer. Only available for the actions Command and Setpoint input. Unit is seconds.

Initialization: 30

Edge delay

Time in milliseconds, with which the writing of 0 is delayed for a single command.

Only available for the action 'Single command'.

The system does not wait until the watchdog timer is ended.

Initialization: 1000 ms

Modifiable stati

List of the states which can be modified with the action 'Set status'.

Only available for the action 'Status input' .

Initialization: None modifiable

Nominal/actual value comparison

If this is active, there will be a check whether the value of the response variable already matches the switching direction. If this is true, an unlockable interlocking variable is shown.

Initialization: Inactive

Menu spec. picture

Picture of type 'Power' which is activated when the action is activated over the context menu of the element. If no picture is entered here, the picture entered for the command interlocking is used. A picture that was configured, but that does not exist, causes an error message during compiling and the action is not taken over.

Initialization: No Allocation

Command button

Allocation of the action to an action button in the picture, defined at the command interlocking. If the command interlocking is used for another picture (e.g. via function), the allocation to the action button remains nevertheless. In other words, the action is always placed on the button with the allocated action ID. If such a button is missing, the action is not available in the picture. Only the action buttons, which were not allocated yet, are offered in the selection list.

 

This setting is locked for the action type 'Lock' or if no picture was allocated to the command interlocking.

Initialization: No Allocation 

Close automatically

If this is active then the picture is closed automatically after action execution.

 

Initialization: Inactive

Two-hand operation

If this is active, the Control 'Execute 2' is only active when you hold Ctrl.

 

Only available for two-step execution.

Initialization: Inactive

Two-stage

If this is active, an action is executed only after operating the Control 'Execute 2'. If not active, the action is executed after releasing the last interlocking or, if there is no upcoming interlocking, immediately.

 

Locked for the action 'Lock'.

Initialization: Active

 

Example Example

We repeat this procedure and create additional actions for the switching direction 'OFF' and the actions 'Revision [On]' and 'Revision [Off]'.