4. INITIAL PROGRAMMING
VAR_GLOBAL
MODBUS_Device_DISABLE_0001 : BOOL;
MODBUS_Device_DISABLE_0002 : BOOL;
MODBUS_Device_DISABLE_0003 : BOOL;
MODBUS_Device_1_DISABLE_0001 : BOOL;
MODBUS_Device_1_DISABLE_0002 : BOOL;
END_VAR
The automatic generation through button Generate Disabling Variables only create variables, and don’t remove automati-
cally. This way, in case any relation is removed, its respective disabling variable must be removed manually.
The Disables GVL is editable, therefore the requisition disabling variables can be created manually without need of fol-
lowing the model created by the automatic declaration and can be used both ways at same time, but must always be of BOOL
type. And it is need to take care to do not delete or change the automatic declared variables, cause them can being used for
some MODBUS device. If the variable be deleted or changed then an error is going to be generated while the project is being
compiled. To correct the automatically declared variable name, it must be followed the model exemplified above according to
the device and the requisition to which they belong.
The following picture shows an example of the presentation of this GVL when in Online mode. If the variable values are
TRUE it means that the requisition to which the variables belong is disabled and the opposite is valid when the variable value
is FALSE.
Figure 39: Disable GVL in Online Mode
4.14.6. GVL IOQualities
The IOQualities GVL contains the quality variables of I/O modules declared on CPU’s bus. This GVL is not editable and
the variables are automatically declared as LibDataTypes.QUALITY type arrays, and dimensions according to I/Os quantities
of the module to which it belongs when that is added to the project.
Example: Device.Application.IOQualities
VAR_GLOBAL
QUALITY_NX1001: ARRAY[0..15] OF LibDataTypes.QUALITY;
QUALITY_NX2020: ARRAY[0..15] OF LibDataTypes.QUALITY;
QUALITY_NX6000: ARRAY[0..7] OF LibDataTypes.QUALITY;
QUALITY_NX6100: ARRAY[0..3] OF LibDataTypes.QUALITY;
END_VAR
Once the application is in RUN it is possible to watch the I/O modules quality variables values that were added to the
project through IOQualities GVL.
4.14.7. GVL Module_Diagnostics
The Module_Diagnostics GVL contains the diagnostics variables of the I/O modules used in the project, except by the
CPU and communication drivers. This GVL isn’t editable and the variables are automatically declared with type specified by
53