
UM-0085-B09
DT80 Range User Manual
Page 38
RG
This channel type is writable, so you can set the time by sending:
T=12:20:00
Time can be in several formats, selected by parameter P39 as follows:
P39=
Format
Example
0
(default)
Hours:minute:seconds.subseconds
P41 controls the number of sub-second digits between 0 and 6; default is 3 digits
11:45:10.003
1
s.s (decimal seconds) since midnight
42310.003
2
m.m (decimal minutes) since midnight
705.1667
3
h.h (decimal hours) since midnight
11.7528
If the time is assigned to a channel variable (see
) then the CV will contain the number of
seconds since midnight, e.g.
T(=1CV) 1CV
Time 17:40:50.748
1CV 63650.7
You can also set the time using a CV, e.g.
1CV=7200 T=1CV
1CV 7200.0
Time 02:00:00.000
See also
Setting the System Time (P269)
.
Date
The current date can also be returned and set:
D
Date 22/05/2005
D=25/12/2010
Date 25/12/2010
Date can be in several formats, selected by P31 as follows:
P31=
Format
Example
0
Day number
DDDDD
86
1
(default)
European
DD/MM/YYYY
28/03/2002
2
North American
MM/DD/YYYY
03/28/2002
3
ISO
YYYY/MM/DD
2002/03/28
If the date is assigned to a channel variable then the CV will contain the number of seconds since 1-Jan-1989. The date
can also be set from a CV, e.g.
D(=1CV) 1CV=1CV+86400 D=1CV
Date 04/03/2010
1CV 668176400.0
Date 05/03/2010
System Variables
The following system variables (see
) return date related information which can then be tested in
alarms:
•
12SV
returns the current date/time as decimal days since 1-Jan-1989
•
15SV
returns the day number of the year (0-365)
•
20SV
returns the day of the month (1-31)
•
21SV
returns the month (1-12)
•
22SV
returns the year (1989-9999)
Text
Fifty 80-character text channels (
1$
–
50$
) are available for labelling, data headings, site identification, DT80
identification, and so on.Define the string by sending, for example
2$="my text string^M^J"
Then, the string is returned (unloaded) whenever n$ is included in a channel list. Text channels can also be set based on
data returned via the serial channel.
Control String – Input Actions (P353)
Control characters may be included in the text string, e.g.
^M
for carriage return.