Map Variables to HMI

For HMIClosed "Human-machine interfaces " Also known as computer-human interfaces (CHI), and formerly known as man-machine interfaces, they are usually employed to communicate with PLCs and other computers, such as entering and monitoring temperatures or pressures for further automated control or emergency response, the variable mapping is done in two phases.

  • Phase 1 - Tag all of the variables to be exported from the HMI project (see procedure below).
  • Phase 2 - Use this mapping file when designing the HMI

The tag operation directly takes place in the Dictionary:

  1. Open the Variable list editor available in the Dictionary toolbox

    • Double-click the Dictionary header to display the widget as a popup window in order to have more space.

  2. In the KVB column, select the variables to map.

    Variable Mapping to HMI

  3. Figure 4-25: Variable Mapping to KVB.


    • Non-primitive data types which are not exported over Modbus generate a warning message in the Compiler Output window.
      See Compiler Output for more information.

  4. Compile the application to create the Modbus mapping file.
  5. Open the KVBProject from the Project Tree.
    This automatically transfers the tagged variables.

Variables to Export

These types of variables can be exported to the HMI:

  • The fundamental data types: BOOL, BYTE, DINT, DWORD, INT, LREAL, REAL, SINT, STRING, TIME, UDINT, UINT, USINT, WORD
  • Arrays of supported data types
  • Structures that include members of supported data types

Structures to Export

  • Arrays of BOOLs such as a structure that includes a BOOL array member and instances of UDFB members.
  • An array of structures that include INT and LREAL members
  • A structure that includes both instances of UDFB member as well as an embedded structure which includes an INT member and instances of a UDFB member.
    • This is because the embedded structure has an INT member and the outer structure can be exported too.

Structure that Cannot be Exported

A structure that includes instances of UDFB or LWORD members only.

Concept Link IconSee Also