EasyManua.ls Logo

Automationdirect.com DL06 - Page 210

Automationdirect.com DL06
533 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
DL06 Micro PLC User Manual, 3rd Edition, Rev. E
5-49
Chapter 5: Standard RLL Instructions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
A
B
C
D
Instruction Specification
Counter Reference (CTaaa): Specifies the counter
number.
Preset Value (Bbbb): Constant value (K) or two
consecutive V-memory locations, in BCD.
Current Values: Current count is a double word value accessed by referencing the associated V
or CT memory locations* in BCD. The V-memory location is the counter location + 1000. For
example, the counter current value for CT5 resides in V-memory location V1005 and V1006.
Discrete Status Bit: The discrete status bit is accessed by referencing the associated CT memory
location. Operating as a “counter done bit” it will be on if the value is equal to or greater than
the preset value. For example the discrete status bit for counter 2 would be CT2.
NOTE: The UDC uses two consecutive V-memory locations for the 8-digit value, therefore two
consecutive timer locations. For example, if UDC CT1 is used, the next available counter number is CT3.
NOTE: A V-memory preset is required only if the ladder program or an Operator Interface unit must
change the preset.
NOTE: *May be non-volatile if MOV instruction is used.
** With the HPP, both the Counter discrete status bits and current value are accessed with the
same data reference. DirectSOFT uses separate references, such as “CT2” for discrete status bit for
Counter CT2, and “CTA2” for the current value of Counter CT2.
CT aaa
UDC
B bbb
Up
Down
Reset
Caution: The UDC uses two
V memory locations for the 8 digit
current value. This means that the
UDC uses two consecutive
counter locations. If UDC CT1 is
used in the program, the next
available counter is CT3.
Preset
Counter
#
Operand Data Type DL06 Range
A/B
aaa bbb
Counters CT 0–177 ––
V-memory (preset only) V ––
400-677
1200–7377
7400–7577
10000-17777
Pointers (preset only) P ––
400-677
1200–7377*
7400–7577
10000-17777
Constants (preset only) K –– 0–99999999
Counter discrete status bits CT/V 0–177 or V41140–41147
Counter current values V /CT** 1000-1177
Caution: The UDC uses two V-memory
locations for the 8 digit current value.
This means that the UDC uses two
consecutive counter locations. If UDC
CT1 is used in the program, the next
available counter is CT3.
DS Used
HPP Used
Up Down Counter (UDC)
This Up/Down Counter counts up on each off to on
transition of the Up input and counts down on each
off-to-on transition of the Down input. The counter
is reset to 0 when the Reset input is on. The count
range is 0–99999999. The count input not being
used must be off in order for the active count input
to function.