6. HX3040 Redundancy
292
Variable declaration of mapping quality:
[Device name]_QUALITY_[Mapping number]: LibDataTypes.QUALITY;
Where:
Device name:
Name displayed in the TreeView for the device.
Mapping number:
Mapping number declared in the mapping device table, ordered from top to
bottom, starting in 0001.
Example:
Qualities
VAR_GLOBAL
MODBUS_Device_QUALITY_0001: LibDataTypes.QUALITY;
MODBUS_Device_QUALITY_0002: LibDataTypes.QUALITY;
MODBUS_Device_QUALITY_0003: LibDataTypes.QUALITY;
Outstation_QUALITY_0001: LibDataTypes.QUALITY;
END_VAR
The "Quality" GVL is editable, so the quality variables of mappings 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 "LibDataTypes.QUALITY” 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 mappings to which it belongs.
The Table 4-14 indicates the behavior of quality variables in communication devices.
ATTENTION:
If a variable of a DNP3 Client or MODBUS Master/Client (of symbolic mapping) driver is mapped
to the DNP3 Server or IEC 60870-5-104 Server drivers, it is necessary that the quality variables of
the DNP3 or MODBUS mappings have been created in order to generate valid quality events for
such points from the DNP3 or IEC 60870-5-104 servers. Otherwise, "bad" quality events will not be
generated for DNP3 and IEC 60870-5-104 server clients, for example, in situations where the DNP3
Client or MODBUS Master/Client is unable to communicate with its slaves/servers.
By sending an application to the HX3040 CPU and putting it in "Execution", through GVL
"Qualities" you can monitor the diagnostics variable values of the MODBUS Mater/Client and DNP3
Client devices mappings (Figure 6-13).