6.5.2 Character Sets and Text Strings
For marking tasks, it is convenient to use the RTC
list memory for storing command lists as separate
subroutines that define how the scan system should
mark the needed characters and text strings.
To simplify management of characters and text
®
strings, the RTC
5 provides the possibility of storing
indexed character definitions and text string defini-
tions in its protected buffer area ("List 3") and calling
them via simple commands.
Indexed character definitions and text string defini-
tions are essentially indexed subroutines, but
definable and callable via their own commands, and
managed by a dedicated internal RTC
management table – separately from indexed
subroutines.
The individual character and text string definitions
must specify the shape and orientation (e.g. parallel
to the X or Y axis) of the characters or text strings.
Both relative and absolute vector commands can be
used for this. The character's or text string's end
position should be chosen to serve as the start
position of a subsequent character. Each character
definition or text string definition must be terminated
with list_return.
Defining Indexed Character Sets
A sequence of character-defining list commands can
be directly stored in the protected buffer area via the
load_char
command (the resultant automatically-
assigned memory address can be queried with
get_char_pointer). Alternatively, a non-indexed
subroutine can be subsequently referenced with the
set_char_pointer
command and then copied via
save_disk/load_disk
as an indexed character in the
protected buffer area.
®
The RTC
5 manages up to 4 character sets, each with
256 indexed characters.
Other than that, the same rules as for indexed
subroutines are applicable (see
tines", page 76
and
"Subsequent Protection and
Conversion of Non-Indexed Subroutines", page
®
RTC
5 PC Interface Board
Rev. 1.9 e
6 Developing User Applications
Notes
• \0 (NUL) is a markable character, too. \0 also
®
5's
• Indexed character set definitions cannot use
Calling Indexed Characters
The marking of an individual character is started by
calling the
command mark_char_abs) along with the index of
®
5
the corresponding indexed character.
Individual serial numbers can be marked via indexed
characters (numbers) by calling the
command (see
Numbers" on page
The marking of entire text passages can be started via
the
mark_text_abs). The desired character set can be
selected in advance via the
command. When a
the to-be-marked text (if more than 12 characters in
length) is split into blocks of 12 characters, with each
block receiving its own
list memory. Keep this in mind to prevent unintended
overflow of the corresponding buffer area.
Defining Indexed Text Strings for Times,
Dates and Serial Numbers
For the marking of times, dates and serial numbers,
it can be useful to define text strings such as months
("January"... "December", "Jan." ... "Dec.", "/01/" ...
"/12/" etc.) and days of the week ("Sunday" ...
"Saturday" or "Sun." ... "Sat." etc.).
Here, you can likewise use previously-defined char-
acter sets with the
commands.
"Indexed Subrou-
With load_text_table, a sequence of list commands
defining a text string can be loaded directly into the
78).
protected buffer area as an indexed text string (the
resultant automatically-assigned memory address
can be queried via get_text_table_pointer). Alterna-
tively, a non-indexed subroutine can be subsequently
referenced with the
command and then copied via
as an indexed text string in the protected buffer area
The RTC
serves as a text-output delimiter (for text strings),
in which case it will not be marked.
mark_text, mark_time,
mark_date
mark_serial
commands; otherwise, improper
marking might occur during processing of
indexed characters.
mark_char
command (or the "AbsCall"
"Marking Dates, Times and Serial
150).
mark_text
command (or the "AbsCall" command
select_char_set
mark_text
mark_text
mark_char
set_text_table_pointer
®
5 can manage up to 42 indexed text strings.
or
mark_serial
command is loaded,
command in the
and
mark_text
save_disk/load_disk
80
Need help?
Do you have a question about the RTC 5 PC Interface Board and is the answer not in the manual?