11.3 Custom Broadcast String Reference
105
ordinals and conditionals when constructing a custom string. You can even construct standard strings to
check your work. All the ordinal/conditional examples below use the ASCII Standard broadcast string.
Ordinal 01.
This ordinal consists of 13 different accuracy values as listed in Table 11.7. Notice the ordinals
(0, 1, 2,...,B,F) are all represented in this example. All need not be used as shown in the second example.
This example more closely follows the clock accuracy, not signaling a change until reaching 1 microsecond.
@@A/T01/d:/h:/m:/s/
{
01?0/:1/:2/:3/:4/:5/:6/:7/:8/:9/:A/:B/:F/
}
/r
@@A/T01/d:/h:/m:/s/
{
01?0/:0/:0/:0/:4/:5/:6/:7/:8/:9/;out of lock/
}
/r
Note that the accuracy values (e.g. 0, 1, 2,...,F) can be replaced with textual values. For example, note
that the value ”out of lock” in the second example replaced everything after ”9” in the first example.
Ordinal 02.
This ordinal consists of 5 different accuracy values as listed in Table 11.8.
@@A/T01/d:/h:/m:/s/
{
02? /:./:
∗
/:#/:?/
}
/r
Ordinal 03.
This ordinal consists of three different time zone values: DST active (i.e. Daylight Saving
Time), DST inactive (i.e. Standard Time) and UTC time.
@@A/T01/d:/h:/m:/s/
{
03? DST Active/: DST Inactive/: UTC/
}
/r
Conditional 03.
In this condition the clock is queried for a locked condition. It answers true with a space
if locked and false with a question mark if unlocked.
@@A/T01/d:/h:/m:/s/[03? /:?/]/r
11.3.5
String Setup Examples and Tutorial
In this section, you will find a number of examples of constructing a custom broadcast string that produces
one of the standard broadcasts. By building up a custom string that produces a standard broadcast, you to
compare the output your custom string produces with that of the standard broadcast. If the outputs agree,
then your custom string must be correct. This should give you some confidence in constructing your own
broadcast string.
In each broadcast example that follows, the first line will give the broadcast name, the second line will
give the desired broadcast output and the third line shows the custom input string code. At the end of each
example, you will find some string constructions notes to help you understand how to use the custom string
commands in Table 11.6. This includes the use of ordinals and conditionals.
ASCII Standard
Desired Output:
<
SOH
>
ddd:hh:mm:ss
<
CR
><
LF
>
Input String Code: @@A/T01/d:/h:/m:/s/r
Input String Construction Notes: The ordinary method of starting the ASCII Standard broadcast is using
the B1 or O1 command as described on page 88. Custom string entry always begins with the @@A for
strings output from the COM1 serial port, or @@B for strings output from the COM2 serial port. Next, the
T01 specifies the on-time character as a Hex 01, which is the Start of Header. Notice that these characters
are preceded by the “/”, which precedes each of the other (Table 11.6) characters. “d” is for Julian Day,
“h” if for hours, “m” is for minutes, “s” is for seconds, and “r” is for carriage return, line feed. The “:”
subdivides the Julian day, hour, minute and second, and no space between characters. After typing in the
Input String Code (as shown above), press the Enter key. The code’s acceptance is indicated by a carriage
return line feed.