Skip to main content

Dialog: New action object

Function: In the dialog, you define the new object to be created. After you click Add to exit the dialog, CODESYS creates the object and opens its editor.

Call: State element with ENTRY, EXIT, and DO actions. Click the _uml_icon_sc_action_add.png symbol.

Requirement: The symbol is displayed when you edit a state or a pseudo state that permits actions.

_uml_icon_sc_action.pngAction

When selected, the new object is an Action type

_uml_icon_method.png Method

When selected, the new object is a Method type

Name

Name of the new object (example: Execute)

Return type

Available for the _uml_icon_method.png Method object type: Data type of the return value

Example: BOOL

Implementation language

Implementation language for the object

List box of available implementation languages

Access specifier

Available for the _uml_icon_method.png Method object type: Definition of the access type (example: PRIVATE)

Add

Button for exiting the dialog and creating the object