Display code divided into two rows

Questions:

How can the value of a double word code be displayed in bit mode by a Lenze text display?

Answer:

The Lenze text displays can show max. 20 signs per row. This means that for the display of a double word code (= 32 bits) in bit mode the value has to be divided into 2 rows.

Solution:

  1. Save three additional variables in the HMI Designer for the device LENZE: Internal registers. One variable has to be defined of type Dword, the others of type Word. Determine the device address of the three variables in a way that the Dword variable and one of the Word variables have the same IR number (e. g. IR0). The IR number of the one Word variable exceeds the IR number of the other variable by 1 (e. g. IR1).
  2. Create an equation and assign the value of the double word code of the Dword variable defined in 1.
  3. Create an automatic operation, which calls the equation created in 2. cyclically, e. g. via a timer (event).
  4. Place one numerical field for the two Word variables defined in 1. with the numerical format Binary on one side each. Since the Dword variable and the two Word variables are on the same memory area of the text display, the Word variable with the higher IR number (in this example IR1) displays the least significant bits of the double word code and the other Word variable displays the more significant bits.

URL for linking this AKB article: https://www.lenze.com/en-de/go/akb/200604730/1/
Contact form