DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-172
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
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.
V2000
Acc.
3 000
3 000
0007 3 000
0007
V2001
0007
Acc.
0007 3 000
30000007
V2001 V2000
DirectSOFT 32
C0
LDD
K73000
OUTD
V2000
TIME
V2000
Constant (K)
Format
Not
Used
Hour Minutes Seconds
The TIME instruction uses the
value set in V2000 and V2001 to
set the time in the appropriate
V-memory locations (V7766-V7770)
Handheld Programmer Keystrokes
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
3
D
1
B
0
A
ENT
0
A
ORST
M
8
I
4
E
0
A
2
C
ENT
0
A
0
A
0
A
0
A
SHFT
Date Range
VMemory Location (BCD)
(READ Only)
1/100 seconds (10ms)
0-99 V7747
Seconds
0-59 V7766
Minutes
0-59 V7767
Hour
0-23 V7770
Operand Data Type DL06 Range
aaa
V-memory V See memory map
DS Used
HPP Used
DirectSOFT
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.