The LD editor offers templates for certain programming tasks. Select the templates from the Templates pane.
The following procedure requires that the Templates pane be opened.
- Select network
- Select template
- Double-click the selected template or select Insert template from the context menu
The template is inserted before the selected network.
- Declare local variables
To declare the local variables required for the template, simply copy the text from VAR to and including END_VAR. Then click into the white space of the POU header and paste the clipboard contents. The variables are automatically added to the list of local variables.
- Adapt template to your needs