To declare variables using the declaration editor, follow the procedure below. Variables can also be declared very comfortably in the POU body (using LD/FBD, ST/IL or SFC) or in the Variables pane.
Do not assign addresses unless you have to! Provide addresses for PLC inputs and outputs (X, Y) or if access to certain memory areas is required.
The compiler automatically assigns addresses after the power has been turned on. This prevents errors caused by duplicate outputs and ensures that the addresses are automatically updated when the PLC type is changed.
To structure your program, you should declare all global variables in the global variable list before starting to program.
A project has a list of global variables. The global variable list (GVL) applies to all POUs in the project.
The fields in the variable lists have the following meaning:
Do not assign addresses unless you have to! Provide addresses for PLC inputs and outputs (X, Y) or if access to certain memory areas is required.
You can enter addresses in one of the following formats: