Graphical user interface (P-EXTV-00030 - P-EXTV-00037)
The graphical user interface has access to NC interfaces and NC data via so-called HMI objects. The access protocol is encapsulated in a DLL which offers a Windows application write/read access to HMI objects. Interface objects are created automatically according to the configuration list for the graphical user interface if this is configured accordingly for the variable.
Two objects are then created for each specified variable, one for write access and one for read access. This occurs independently of the access rights of the NC channel, i.e. even if the NC channel is only assigned read access to the variable (e.g. access_rights = READ_ONLY), the graphical user interface can still write to the variable. With an array, a GUI object is created for each array element.
If required, the name format of GUI objects can be adapted as required by specifying corresponding templates in the list (as of Version V254). In this case, the placeholder %s must be specified for the name followed by a placeholder %d for the array index.
P-EXTV-00030 | HMI read access with global array |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_rd_global_array |
Default value | cnc_ve_%s_rd[%d] |
Remarks | Placeholder %s for the name and followed by %d for the array index |
P-EXTV-00031 | HMI write access with global array |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_wr_global_array |
Default value | cnc_ve_%s_wr[%d] |
Remarks | Placeholder %s for the name and followed by %d for the array index |
P-EXTV-00032 | HMI read access with channel-specific array |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_rd_channel_array |
Default value | mc_ve_%s_rd[%d] |
Remarks | Placeholder %s for the name and followed by %d for the array index |
P-EXTV-00033 | HMI read access with channel-specific array |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_wr_channel_array |
Default value | mc_ve_%s_wr[%d] |
Remarks | Placeholder %s for the name and followed by %d for the array index |
P-EXTV-00034 | HMI read access with global variables |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_rd_global |
Default value | cnc_ve_%s_rd |
Remarks | Placeholder %s for the name |
P-EXTV-00035 | HMI write access with global variables |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_wr_global |
Default value | cnc_ve_%s_wr |
Remarks | Placeholder %s for the name |
P-EXTV-00036 | HMI read access with channel-specific variables |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_rd_channel |
Default value | mc_ve_%s_rd |
Remarks | Placeholder %s for the name |
P-EXTV-00037 | HMI write access with channel-specific variables |
Description | Format of the HMI object name by specifying a corresponding template. |
Parameter | name_wr_channel |
Default value | mc_ve_%s_wr |
Remarks | Placeholder %s for the name |
Example: Assigning the name to the GUI
# ***************************************
#
# ***************************************
#
name_rd_global_array cnc_test1_%s_rd[%d]
name_wr_global_array cnc_test1_%s_wr[%d]
name_rd_channel mc_test2_%s_rd
name_wr_channel mc_test2_%s_wr
...
var[0].name G_ARRAY5
var[0].type SGN32
var[0].scope GLOBAL
var[0].synchronisation FALSE
var[0].access_rights READ_WRITE
var[0].array_size 5
var[0].create_hmi_interface TRUE # HMI object is created
#
var[1].name L_BOOLEAN
var[1].type BOOLEAN
var[1].scope CHANNEL
var[1].synchronisation FALSE
var[1].access_rights READ_WRITE
var[1].array_size 1
var[1].create_hmi_interface TRUE # HMI object is created
The following HMI objects are created from the above extract of the configuration list:
cnc_test1_G_ARRAY5_rd[0]
cnc_test1_G_ARRAY5_wr[0]
cnc_test1_G_ARRAY5_rd[1]
cnc_test1_G_ARRAY5_wr[1]
cnc_test1_G_ARRAY5_rd[2]
cnc_test1_G_ARRAY5_wr[2]
cnc_test1_G_ARRAY5_rd[3]
cnc_test1_G_ARRAY5_wr[3]
cnc_test1_G_ARRAY5_rd[4]
cnc_test1_G_ARRAY5_wr[4]
mc_test2_L_BOOLEAN_wr
mc_test2_L_BOOLEAN_rd