ACC Utilities Reference Guide

ZMLOG - Diagnostic Message Logging
ZCOM Diagnostic Message Logging Mechanism
Chapter 6 159
3. In (b),(d), the second $ is ignored. It is used to mark the beginning of
message text. This mechanism allows leading spaces to be specified.
4. Long text may be spread across multiple lines. The lines will just be
merged together (LineFeed removed), until the next line begins with
$ is found. A ~ may be used as the first character of a continuation
line. A LineFeed will be inserted between each ~ continuation line.
5. Non-printable characters may be represented using C-like escape
conventions:
\\ backslash
\b backspace
\e escape
\f form-feed
\n new-line
\r carriage return
\s space
\t horizontal tab
\v vertical tab
\nnn the character with ASCII code of 3 octal digits nnn
\xnn the character with ASCII code of 2 hexadecimal digits nn
The following example illustrates some typical formats for such a text
file:
$NAME progx
$(00001) This is the first message.
$(00002)$ This is the second message, with 3 leading spaces.
$(00003, 2) Test Error Message on Channel, int(%1$d)
$(00012,12)$ This is the 12-th message.
$(00013,13) This is the 13-th message, continued...
without a LineFeed.
$(00014,14) This \t %1$d 14-th message, continued...
~onto next two
~lines.
$(-0020,0) message -0020, character (%c)
$(-21,1) Message -21, short int (%hd)
$(+22,2) Message 22, int (%d)
$(+023,3) Message +023, string (%s)
$(24,4) Message 24, string (%s)
$(00025,0) Message 25, argument 2 (%2$d), argument 1 (%1$s)
$(99998,-8) Message 99998 -> %s %d
$(99999,99) The last message, 99999\n
$NAME PROGX