Function library lenzedrive.lib, Special functions, As second special character under ascii code "200 – Lenze DDS Function library Drive User Manual
Page 77
![background image](/manuals/566039/77/background.png)
Function library LenzeDrive.lib
Special functions
2.7.1
Transparent mode with keypad 9371BB/9371BC (L_Display9371BB)
2−67
L
LenzeDrive.lib EN 1.7
Layout and definition of the special characters
The FB enables the definition of 7 special characters. It is possible to assign an individual ASCII code
to each of these special characters.
·
The 5 x 7 matrix of a character is defined via the array variable abyCharMap. Each array
element of data type byte is bit−coded and represents one column of the matrix
(0 = white pixel, 1 = black pixel).
·
The array variable abyCharCode is used to define the ASCII codes for the special characters.
Example:
Define a "
m
" as second special character under ASCII code "200":
0
1
2
3
4
5
6
7
Bit
abyCharMap[9] = 2#00000000
abyCharMap[8] = 2#01111110
abyCharMap[7] = 2#00010000
abyCharMap[6] = 2#00001110
abyCharMap[5] = 2#00000000
abyCharCode[1] = 200
Fig. 2−65
Example: Defining the matrix of a special character
The following figure shows the assignment of the array index to the matrix column:
abyCharMap index =
0
1
2
3
4
abyCharCode index =
0
5
6
7
8
9
1
10
11
12
13
14
2
15
16
17
18
19
3
20
21
22
23
24
4
25
26
27
28
29
5
30
31
32
33
34
6
Bit 0
Bit 1
Bit 2
Bit 3
Bit 4
Bit 5
Bit 6
Bit 7
Fig. 2−66
Assignment of the array index [0...30] to the matrix column
Note!
·
If special characters are defined under ASCII codes between 32 and 127 the special
characters will be indicated instead of the standard ASCII characters.
·
The defined special characters are only transferred to the strings pString1 ... pString4 if
bUpdateCharCodeMap is set to TRUE.