Graphical user interface
The graphical user interface has access to NC-interfaces and NC-data via so-called HMI-objects. The access protocol is encapsulated via a DLL which offers a Windows application write/read access to HMI-objects. Interface objects are created automatically in accordance with the configuration list for the graphical user interface, if the parameter create_hmi_interface is set.
In this case two objects are 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 has only read access to the variable (e.g. access_rights = READ_ONLY), the graphical user interface can also write to the variable. A GUI object is created for each array element in the case of an array.
If required, the format of the names of the GUI objects can be matched as required by specifying corresponding templates in the list (as of Version V254). In this case, %s must be specified as a wildcard for the name and, in the case of an array, also %d after it for the index.
Designator | Significance | Default value |
name_rd_global_array | Read in the case of global array | cnc_ve_ %s_rd[%d |
name_wr_global_array | Write in the case of global array | cnc_ve_ %s_wr[%d |
name_rd_channel_array | Read in the case of channel-specific array | mc_ve_ %s_rd[%d |
name_wr_channel_array | Write in the case of channel-specific array | mc_ve_ %s_wr[%d |
name_rd_global | Read in the case of global variables | cnc_ve_ %s_rd |
name_rd_global | Write in the case of global variables | cnc_ve_ %s_wr |
name_rd_channel | Read in the case of channel-specific variables | mc_ve_ %s_rd |
name_wr_channel | Write in the case of channel-specific variables | mc_ve_ %s_wr |
Example: Assignment of the name for GUI interface
# ***************************************## External variables V253##
****************************************#name_rd_global_array
cnc_test1_%s_rd[%d]name_wr_global_array
cnc_test1_%s_wr[%d]name_rd_channel
mc_test2_%s_rdname_wr_channel
mc_test2_%s_wrvar[0].name
G_ARRAY5var[0].index
0var[0].type
SGN32var[0].scope
GLOBALvar[0].synchronisation
FALSEvar[0].access_rights
READ_WRITEvar[0].array_size
5var[0].size
4 # 4 bytes per elementvar[0].create_hmi_interface
TRUE # HMI-Object will be created#var[1].name
L_BOOLEANvar[1].index
1var[1].type
BOOLEANvar[1].scope
CHANNELvar[1].synchronisation
FALSEvar[1].access_rights
READ_WRITEvar[1].array_size
1var[1].size
1 # 4 bytes per elementvar[1].create_hmi_interface
TRUE # HMI-Object will be created
The following HMI objects are created implicitly on the basis of the above extract from 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_wrmc_test2_L_BOOLEAN_rd