Writing The Code of an Action
To modify the code of and action you can double-click it on the project tree or select it and choose Edit source from its context menu.Note that you are not allowed to declare new local variables, as the action that you are now editing is a component of the original SFC module, which is the POU where local vari- ables can be declared. The scope of local variables extends to all the actions and transitions making up the SFC diagram.