Chapter 5: Standard RLL Instructions - Clock/Calendar
Time (TIME)
1
The Time instruction can be used to set the time (24-hour
230
clock) in the CPU. The instruction requires two consecutive
240
V-memory locations (Vaaa) which are used to set the time. If
2
250-1
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.
260
3
DS
Used
4
HPP Used
5
6
7
In the following example, when C0 is on, the constant value (K73000) is loaded into the
8
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.
9
10
DirectSOFT
11
12
13
14
A
Handheld Programmer Keystrokes
$
B
STR
SHFT
C
GX
OUT
SHFT
D
5–176
DL205 User Manual, 4th Edition, Rev. B
Date
1/100 seconds (10ms)
Seconds
Minutes
Hour
Operand Data Type
V-memory
C0
LDD
K73000
Load the constant
value (K73000) into
the accumulator
OUTD
V2000
Copy the value in the
accumulator to V2000
and V2001
TIME
V2000
Set the time in the CPU
using the value in V2000
and V2001
NEXT
NEXT
NEXT
L
D
D
ANDST
3
3
D
C
SHFT
3
2
T
I
M
SHFT
MLR
8
ORST
Range
0-99
0-59
0-59
0-23
DL250-1 Range
aaa
V
All (See page 3 - 55)
Constant (K)
0
0
0
7
3
0
0
0
0
0
0
7
3
0
0
0
Acc.
Acc. 0
0
0
7
3
0
0
0
0
0
0
7
3
0
0
0
V2001
V2000
0
Not
Used
A
NEXT
ENT
0
H
D
A
A
PREV
7
3
0
0
A
A
A
ENT
0
0
0
E
C
A
A
4
2
0
0
TIME
V-memory Location
(BCD) (READ Only)
V7747
V7766
V7767
V7770
DL260 Range
aaa
All (See page 3 - 56)
The Time instruction uses the
value set in V2000 and V2001 to
set the time in the appropriate V-
memory locations (V7766–V7770)
Format
V2001
V2000
0
0
7
3
0
0
0
Hour
Minutes
Seconds
A
ENT
0
A
ENT
0
V aaa
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?