RTC
®
5 PC Interface Board
Rev. 1.9 e
10 Commands And Functions
363
innovators for industry
Normal
List Command
mark_time
Function
marks a part of the time previously stored via
specified format at the current position.
Call
mark_time( Part, Mode )
Parameters
Part
this parameter (unsigned 32-bit value, allowed range: [0 … 4]) specifies
which part of the time to mark:
= 0:
hours (24-h time, no a.m./p.m.)
= 1:
minutes
= 2:
seconds
= 3:
hours (12-h time, no a.m./p.m.)
= 4:
a.m./p.m. (automatically switched in accordance with 24-h time)
Mode
Format choice as an unsigned 32-bit value (allowed range: [0 … 3], only
affects
Part
= 0 … 3):
a) Number of leading zeros:
Bit#0 = 0: Leading zeros are suppressed.
Bit#0 = 1: always two digits
b) Character set choice for marking of digits:
Bit#1 = 0: The indexed text strings for digits [0…9], as defined via
Bit#1 = 1: The indexed characters for digits [0…9], as defined via
, will be marked. The desired character set can be
.
a.m./p.m. (Part = 4) can only be marked in accordance with the indexed text strings (Index = 40, 41)
defined via
. Here, the Parameter Mode is ignored.
Comments
• Before marking times (after every boot-up), the RTC
®
5 and PC times should be synchro-
nized (see
) and the current (to be marked) time should be stored with
or
"Marking Dates, Times and Serial Numbers",
• The complete time can be marked via multiple calls of the
mark_time
command.
• The
mark_time
command reads (according to the stored time and according to the
selected time part) the starting address of the corresponding indexed text string (or –
for
Part
= 0… 3 and
Mode
= 2 or 3 – of the corresponding indexed character) from the
internal management table and then calls the command
(also see the
comments there) an appropriate number of times, which starts the corresponding
command list. The command lists must contain marking instructions for digits 0…9 and
for a.m./p.m. (see
). Non-defined text strings or characters are ignored (i.e. not
marked). The called indexed text strings can also contain calls to indexed characters
(
or
the latter case, the character set can be switched, if needed (before marking with
mark_time
), via
"Character Sets and Text Strings", page 80
• If
Part
> 4 and/or
Mode
> 3, then
mark_time
will, already during loading, be replaced
by a
RTC5_PARAM_ERROR
).
• Absolute vector and arc commands will execute absolutely after being called with
mark_time
. If time markings need to execute at various locations within the image
field, then the corresponding indexed text strings (or characters) can only contain rela-
tive mark, arc or jump commands or
must be used instead.