EasyManua.ls Logo

Scanlab RTC 5 PC Interface Board - 6.5.2 Character Sets and Text Strings; Defining Indexed Character Sets; Calling Indexed Characters; Defining Indexed Text Strings for Times, Dates and Serial Numbers

Scanlab RTC 5 PC Interface Board
622 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RTC
®
5 PC Interface Board
Rev. 1.9 e
6 Developing User Applications
80
innovators for industry
6.5.2 Character Sets and Text Strings
For marking tasks, it is convenient to use the RTC
®
5’s
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
®
5
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 "Indexed Subrou-
tines", page 76 and "Subsequent Protection and
Conversion of Non-Indexed Subroutines", page 78).
Notes
\0 (NUL) is a markable character, too. \0 also
serves as a text-output delimiter (for text strings),
in which case it will not be marked.
Indexed character set definitions cannot use
mark_text, mark_time, mark_date or
mark_serial commands; otherwise, improper
marking might occur during processing of
indexed characters.
Calling Indexed Characters
The marking of an individual character is started by
calling the mark_char command (or the “AbsCall”
command mark_char_abs) along with the index of
the corresponding indexed character.
Individual serial numbers can be marked via indexed
characters (numbers) by calling the mark_serial
command (see "Marking Dates, Times and Serial
Numbers" on page 150).
The marking of entire text passages can be started via
the mark_text command (or the “AbsCall” command
mark_text_abs). The desired character set can be
selected in advance via the select_char_set
command. When a mark_text command is loaded,
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 mark_text command in the
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 mark_char and mark_text
commands.
With load_text_table, a sequence of list commands
defining a text string can be loaded directly into the
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 set_text_table_pointer
command and then copied via save_disk/load_disk
as an indexed text string in the protected buffer area
The RTC
®
5 can manage up to 42 indexed text strings.

Table of Contents

Related product manuals