
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 "" as second special character under ASCII code "200":
01234567Bit
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:
abyCharMapindex= 01234
abyCharCode index=
0
56789
1
1011121314
2
1516171819
3
2021222324
4
2526272829
5
3031323334
6
Bit0
Bit1
Bit2
Bit3
Bit 4
Bit 5
Bit6
Bit7
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.
Comentários a estes Manuais