6. HX3040 Redundancy
290
Where:
Device name:
Name displayed in the TreeView for the MODBUS device.
Request number:
Request number declared in the MODBUS device table, ordered from top to
bottom, starting in 0001.
Example:
Disables
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 via "Generate Disabling variables" creates variables, but does not remove
them automatically. Thus, if you remove some relation, make sure to remove its respective disabling
variable manually.
The "Disables" GVL is editable, so the disabling variables of requests can be created manually and
do not need to follow the model created by the automatic declaration. Actually, you can use both
ways at once, but make sure to use BOOL variables and ensure not to delete or change the variables
automatically declared, as they might be in use by a MODBUS device. If you delete or change some
variable, the system generates an error during the project compilation. To correct the name of a
variable declared automatically, follow the model exemplified above according to the device and the
request to which it belongs.
By sending a project to the CPU and putting it in "Execution" through GVL "Disables", the user can
monitor and change the values of the disabling variables. If the variable value is TRUE, it means that
the request to which the variable belongs is disabled. The reverse is real for when the variable value
is FALSE.
Figure 6-11. GVL Disable in Online Mode
IOQualities GVL
The "IOQualities" GVL declares the quality variables of the I/O modules. This GVL is not editable,
so the variables are automatically declared as “LibDataTypes.QUALITY" arrays and the dimensions
depend on the quantity of I/Os of the module to which it belongs when it is added to the project.
Example:
IOQualities
VAR_BLOBAL
QUALITY_HX1120: ARRAY[0..31] OF LibDataTypes.QUALITY;
QUALITY_HX2320: ARRAY[0..15] OF LibDataTypes.QUALITY;
QUALITY_HX6000: ARRAY[0..15] OF LibDataTypes.QUALITY;
QUALITY_HX6020: ARRAY[0..7] OF LibDataTypes.QUALITY;
END_VAR
Once with the application in "RUN" it is possible to monitor the values of the quality variables of the
I/O modules that have been added to the project through the GVL "IOQualities".