DL06 Micro PLC User Manual, 3rd Edition, Rev. E
3-28
Chapter 3: CPU Specifications and Operation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
X0
LD
K1345
OUT
V2000
0
1
0 0 1 0 0 1 1 0 1 0 0 0 1 0
Word Locations – 16 bits
1
3
4
5
Ladder Representation
ISG
S0000
Start
S1
JMP
SG
S0001
Present
S2
JMP
Part
X1
X0
S6
JMP
Present
Part
X1
SG
S0002
Clamp
SET
S3
JMP
Locked
Part
X2
S400
Wait for Start
Check for a Part
Clamp the part
S500
JMP
C10
OUT
SP5
SP4: 1 second clock
SP5: 100 ms clock
SP6: 50 ms clock
Word Memory (V Data Type)
Word memory is referred to as V-memory (variable)
and is a 16-bit location normally used to manipulate
data/numbers, store data/numbers, etc. Some
information is automatically stored in V-memory.
For example, the timer current values are stored in
V-memory. The example shows how a four-digit
BCD constant is loaded into the accumulator and
then stored in a V-memory location.
Stages (S Data type)
Stages are used in RLL
PLUS
programs to create a
structured program, similar to a flowchart. Each
program Stage denotes a program segment. When
the program segment, or Stage, is active, the logic
within that segment is executed. If the Stage is off, or
inactive, the logic is not executed and the CPU skips
to the next active Stage. (See Chapter 7 for a more
detailed description of RLL
PLUS
programming.)
Each Stage also has a discrete status bit that can
be used as an input to indicate whether the Stage
is active or inactive. If the Stage is active, then the
status bit is on. If the Stage is inactive, then the status
bit is off. This status bit can also be turned on or
off by other instructions, such as the SET or RESET
instructions. This allows you to easily control stages
throughout the program.
Special Relays (SP Data Type)
Special relays are discrete memory locations with pre-
defined functionality. There are many different types
of special relays. For example, some aid in program
development, others provide system operating status
information, etc. Appendix D provides a complete
listing of the special relays.
In this example, control relay C10 will energize for
50 ms and de-energize for 50 ms because SP5 is a
pre–defined relay that will be on for 50 ms and off
for 50 ms.