70
Adding a section
1. Right-click Program0 under Programming - POUs - Programs in the Multiview
Explorer. Select Add - Section from the menu.
2. A section with the name Section1 is added under Program0.
3-8-5 Types of Variables
Global variables
Global variables are variables registered in the I/O Map and used for more than one
program. They can be accessed from any program.
External variables and internal variables
External variables and internal variables are used only within one program.
When global variables (SW1 and L1) are used in programs, the global variables are
registered as external variables. Variables that are registered in programs (Timer1 and
Timer1PV) are registered as internal variables.