Global variables are available for the entire project. They can be transferred from the global variable list to a POU header. Global variables can be declared very comfortably in the POU body (using LD/FBD, ST/IL or SFC). Or use the declaration editor to create the global variable list.
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.The following variables must be declared in the global variable list:
You can enter addresses in one of the following formats:
FP format, e.g. X0. The corresponding IEC address is generated automatically when you move to the next field.
IEC format, e.g. %IX0.0. I = input, X = bit and 0.0 for first unit and first input. The corresponding FP address is generated automatically when you move to the next field.
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: