Special characters

The character set contains two user-defined characters. Each character consists of a 5x8 pixel matrix. Each of the eight rows 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 rows. The bottom row 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 the code 0x02.

Special characters 1:
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

Example

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

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

The following ST code is required in the PLC program:

 

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 *)