5. Initial Programming
256
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_BLOBAL
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.
GVL Module_Diagnostics
In the “Module_Diagnostics” GVL, are declared 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 the module, to which it belongs, when that is added
to the project.
Example:
Device.Application.Module_Diagostics
VAR_GLOBAL
DG_NX1001 : T_DIAG_NX1001_1;
DG_NX2020 : T_DIAG_NX2020_1;
DG_NX6000 : T_DIAG_NX6000_1;
DG_NX6100 : T_DIAG_NX6100_1;
DG_NX4000 : T_DIAG_NX4000_1;
END_VAR
Sending an application to the CPU and changing it to “RUN”. Through “Module_Diagnostics” GVL
is possible to watch the diagnostics of each module added to the project, as is possible to see on
Figure 5-24.