
3-3. Character code
(1) FANUC code
Character codes from 0x4100 to 0x41FF in FANUC code set are reserved for
user defined characters and automatically assigned to the user defined
character in the order of its registration. In case of 2-byte characters, two
consecutive codes are assigned to a 2-byte character, one for left half of
the dot pattern and the other for the right half, where the latter code being
the former plus one. The registered user defined characters can be accessed
and displayed on the screen by using FANUC code.
(2) JIS code
Also, JIS code can be assigned to the registered user defined characters.
Available codes are, from 0x20 to 0xDF for single byte characters and from
0x8140 to 0xEFDF shift JIS codes for 2-byte characters.
The above single byte character codes are those in single byte user
defined character mode that can be selected by the sequence "ESC (8" .
In case of 2-byte characters, one of the following two methods can be
employed.
(1) When registering the JIS Kanji characters ,which are not included
in the FANUC Kanji character set, as user defined characters.
Assuming that the character "TORA" ,not included in the FANUC Kanji
character set, is to be displayed on the screen , make dot pattern
for the character, register it as an user defined character, and
assign the standard shift JIS code for the character "TORA" (0x8CD5)
to it. Thus, printing "TORA" by using printf() function as usual will
display the character "TORA" on the CNC screen.
(2) When registering new characters.
When registering new characters which are not included in the
standard JIS Kanji character set, any shift JIS code can be assigned
to the characters. However, considering future expansion of the FANUC
Kanji character set, it is recommended to assign the codes greater
than 0xEB9F which are not used in Standard JIS Kanji character set.
3-4. How to register user defined characters
(1) Making dot pattern for a character
Make dot pattern of the user defined character referring to the section 3.2.
(2) Binary notation of the user defined character
After making dot patterns for all user defined characters, describe them in
binary notation and store in an unsigned character string.
(Example) unsigned char char_pattern[] = {
0x00, 0x03, ....
} ;