DL205 User Manual, 4th Edition, Rev. B
5–176
Chapter 5: Standard RLL Instructions - Clock/Calendar
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Time (TIME)
The Time instruction can be used to set the time (24-hour
clock) in the CPU. The instruction requires two consecutive
V-memory locations (Vaaa) which are used to set the time. If
the values in the specified locations are not valid, the time will
not be set. The current time can be read from memory locations V7747 and V7766–V7770.
In the following example, when C0 is on, the constant value (K73000) is loaded into the
accumulator using the Load Double instruction (C0 should be a contact from a one shot
(PD) instruction). The value in the accumulator is output to V2000 using the Out Double
instruction. The Time instruction uses the value in V2000 to set the time in the CPU.
Date Range
V-memory Location
(BCD) (READ Only)
1/100 seconds (10ms)
0-99 V7747
Seconds
0-59 V7766
Minutes
0-59 V7767
Hour
0-23 V7770
Standard
RLL Instructions
DirectSOFT
Handheld Programmer Keystrokes
LDD
K73000
C0
Load the constant
value (K73000) into
the accumulator
TIME
V2000
Set the time in the CPU
using the value in V2000
and V2001
OUTD
V2000
Copy the value in the
accumulator to V2000
and V2001
V2000
Acc.
3000
3000
0007 3000
0007
V2001
0007
Constant (K)
Acc.
0007 3000
The Time instruction uses the
value set in V2000 and V2001 to
set the time in the appropriate V-
memory locations (V7766–V7770)
Minutes SecondsNot
Used
Hour
30000007
V2001 V2000
Format
0
A
ENT
7
H
0
A
0
A
ENT
STR
$
SHFT
ANDST
L
3
D
SHFT
MLR
T
3
D
OUT
GX
SHFT
3
D
NEXT NEXT NEXT NEXT
2
C
ENT
PREV
0
A
3
D
0
A
ORST
M
8
I
4
E
0
A
2
C
ENT
0
A
0
A
0
A
0
A
SHFT
Operand Data Type DL250-1 Range DL260 Range
aaa aaa
V-memory V All (See page 3 - 55) All (See page 3 - 56)
DS Used
HPP Used