Display

2 lines, 16-character display

The CoE is suitable for entering texts with a length of up to 80 characters (length of the PLC data type STRING). If more than 16 characters are entered in the CoE, the text is displayed as scrolling text.

Note

Settings are not automatically stored in the EEPROM

Settings have to be entered either in the startup list or in the PLC after each startup.

Formatting parameters

The EL6090 supports the use of formatting-strings. The terminal automatically adds a process data value into the text. The process data value can be parameterized with a format string.

The formatting string is structured as follows: %[.precision]specifier

%

Description

%

Start of formatting string

specifier

Description

i or d

The process data value is as interpreted as a signed 16-bit value (-32768 to +32767)

u

The process data value is as interpreted as an unsigned 16-bit value (0 to +65535)

o

Indicates the number of operating hours

e

Indicates the EtherCAT status ('INIT', 'PRE-OP', 'SAFE-OP', 'OP')

[.precision]

Description

%

The specification of the “precision” is optional.
This argument can be used to insert a comma in the process data value. The number after the dot indicates at which point the comma is to be positioned. The Precision can have values between 1 and 5. This function is helpful, for example, in order to display the process data value of a temperature measuring terminal directly on the display. The temperatures are usually displayed with a resolution of 0.1 °C e.g. (value 123 = 12.3 °C). The format string "%.1i" can be used to ensure that the process data value is shown correctly on the display. 

Display 1:

Text length may vary depending on the process data value

Please note that the total text length may vary depending on the process data value.

  • If a text is formatted, for example, with "%i", then the display can be between one (e.g. "0") and 6 (e.g. "-32767") characters long.
  • If the total text length is longer than a display line (16 characters), the text is displayed as scrolling text.
  • The display text should always be longer or shorter than 16 characters.

Examples for the formatting parameter

CoE Row 1 (0x8008:11)

Process data "value row 1"

Output on display

Temp: %i

-123 (0xFF85)

Temp: -123

Temp: %.1i

-123 (0xFF85)

Temp: -12.3

Temp: %.3i

-123 (0xFF85)

Temp: -0.123

Temp: %u

-123 (0xFF85)

Temp: 65413

Character set

The character set essentially matches the 7-bit ASCII character set. The upper part of the table was complemented with special German characters (according to ISO 8859-1).

 

0..

0x1...

0x2...

0x3...

0x4...

0x5...

0x6...

0x7...

0x8...

0x9...

0xA...

0xB...

0xC...

0xD...

0xE...

0xF...

...0

 

_

Space

0

@

P

`

p

_

_

_

_

_

_

_

_

...1

User specific character 1

_

!

1

A

Q

a

q

_

_

_

_

_

_

_

_

...2

User specific character 2

_

"

2

B

R

b

r

_

_

_

_

_

_

_

_

...3

_

_

#

3

C

S

c

s

_

_

_

_

_

_

_

_

...4

_

_

$

4

D

T

d

t

_

_

_

_

Ä

_

ä

_

...5

_

_

%

5

E

U

e

u

_

_

_

_

_

_

_

_

...6

_

_

&

6

F

V

f

v

_

_

_

_

_

ö

_

ö

...7

_

_

'

7

G

W

g

w

_

_

_

_

_

_

_

_

...8

_

_

(

8

H

X

h

x

_

_

_

_

_

_

_

_

...9

_

_

)

9

I

Y

i

y

_

_

_

_

_

_

_

_

...A

_

_

*

:

J

Z

y

z

_

_

_

_

_

_

_

_

...B

_

_

+

;

K

[

k

{

_

_

_

_

_

_

_

_

...C

_

_

,

<

L

\

l

|

_

_

_

_

_

ü

_

ü

...D

_

_

-

=

M

]

m

}

_

_

_

_

_

_

_

_

...E

_

_

.

>

N

^

n

~

_

_

_

_

_

_

_

_

...F

_

_

/

?

O

_

o

 

_

_

_

_

_

ß

_

_

User specific characters

The EL6090 supports two user-defined characters. Each character consists of a 5x8 pixel matrix. Each of the eight lines are consolidated to a byte and then stored in objects 0x8008:1C or 0x8008:1D.

The standard character set uses only 7 of the 8 lines. The bottom line is reserved for an underscore cursor. It should only be used if the cursor is not used.

The first special character (0x8008:1C) is allocated ASCII code 0x01. The second is allocated code 0x02 (see character set).

Display 2:
User-defined character in 5 x 8 matrix

Frequently used special characters

Character

Code

±

00 04 0E 04 00 0E 00 00

µ

00 11 11 13 1D 10 10 00

π

00 1F 0A 0A 0A 11 00 00

Ω

00 0E 11 11 0A 1B 00 00

Ʃ

1F 10 08 04 08 10 1F 00

07 08 1E 08 1E 08 07 00

06 09 0A 0C 18 09 06 00

°

07 05 07 00 00 00 00 00

00 04 0C 1F 0C 04 00 00

00 04 06 1F 06 04 00 00

04 0E 1F 04 04 04 04 00

04 04 04 04 1F 0E 04 00

01 01 05 0D 1F 0C 04 00

Sample:

The output text should read "Temp: 23.5 °C".

To this end object 0x8008:1C with special characters '°' is loaded (07 05 07 00 00 00 00 00).

In the PLC the following ST code is required ....

VAR
Text: STRING;
pData : POINTER TO BYTE;
END_VAR
-----------------------------------
Text := 'Temp: 23.5 xC'; (* Text to display *)
pData := ADR(Text); (* Get Adr of Text *)
pData := pData + 11; (* Move pointer to position of x *)
pData^ := 1; (* replace x with user specific character 1 *)

Alternative way to display (here the special character with $01 is used as a placeholder):

VAR
Text : STRING;
END_VAR
-----------------------------------
Text := 'Temp: 23.5 $01C'; (* Text to display *)
---------------------------

Cursor

The EL6090 offers the option of displaying a cursor. The cursor can be positioned on the display based on x/y coordinates. The objects 0x8008:1A and 0x8008:1B ("Cursor position x/y") are used for this purpose. The coordinate 0/0 corresponds to the top left corner of the display. An underscore or a full flashing cursor can be set (0x8008:19 "Cursor")

Backlight

The backlight can be set via object 0x8000:11 ("Display Backlight Intensity"). The value 0x00 represents switched-off state, the value 0xFF switched-on.

Programming

In TwinCAT 3 the PLC library “Tc2_System_CX” provides two function blocks for programming the display.

See software documentation in the Beckhoff Information System:

Function block

Function

FB_CXSetTextDisplayUSB

  • Write and delete messages on the display
  • Make the cursor flash, switch it on or off
  • Switch the backlight on or off

FB_CXGetTextDisplayUSB

  • Read the lines on the display
  • Read the cursor status (flasching, on or off)
  • Indicates whether the backlight is switched on or off

EtherCAT status change

If the EL6090 exits from the EtherCAT status OP, the text last saved in the EEPROM is displayed. This way, for example, the EtherCAT status (with %e) and an "error text" can be saved when the terminal is no longer in data exchange mode. If the terminal is switched off, the text is loaded from the EEPROM on switching on again.

Therefore, you have to do the following:
Insert the text in the corresponding object via CoE 0x8008:11, for row 1 and 0x8008:12 for row 2, then go to the Command object and save the data with the command 0x0002 (Save Settings).
After this, the saved text is displayed when the status of the ESM changes from OP to PreOP.