AutomaticMode
Short Summary
This function block represents the behaviour of an automatic operation mode and is used as an delegate that is distributed to all nodes when the automatic mode is selected.
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | CNM_AbstractObject.Object | CNM_OpModeHandlingInterfaces.IModeBehaviour |
UML Diagram
Parameters
none
Properties
className
Type: CNM_AbstractObject.ClassName
This abstract property returns the class name of the concrete object, …
enableManCmds
Type: BOOL
This property is intended to inform cyclic nodes (devices) that manual commands are allowed to be executed. …
id
Type: UDINT
This property returns the id that was used to request the mode delegate.…
Methods
enterMode
- Parameters:
node(CNM_OpModeHandlingInterfaces.IOpModes)
- Return type:
VOID
This method is called once for every node when a new oepration mode is started.…
exitMode
- Parameters:
node(CNM_OpModeHandlingInterfaces.IOpModes)
- Return type:
VOID
This method is called once for every node when the current operation mode is stopped.…
run
- Parameters:
execute(BOOL)pause(BOOL)node(CNM_OpModeHandlingInterfaces.IOpModes)
- Return type: CNM_ReturnTypes.SingleExecutionState
This method is calling the operation mode methods for every node depending on the current behaviour.…
Code
Declaration
{attribute 'enable_dynamic_creation'}
FUNCTION_BLOCK AutomaticMode EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_OpModeHandlingInterfaces.IModeBehaviour
VAR
modeId :UDINT;
END_VAR