Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register
Up Down Counter (UDC)
1
This Up/Down Counter counts up on each off to on
transition of the Up input and counts down on each
230
off to on transition of the Down input. The counter is
2
240
reset to 0 when the Reset input is on. The count range
250-1
is 0 to 99999999. The count input not being used
3
260
must be off in order for the active count input to
function.
4
DS
Used
Instruction Specification
HPP Used
Counter Reference (CTaaa): Specifies the counter
5
number.
Preset Value (Bbbb): Constant value (K) or two
consecutive V-memory locations. (Pointer (P) for
6
DL240, DL250-1 and DL260).
Current Values: Current count is a double word value accessed by referencing the associated
7
V or CT memory locations. 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.
8
Discrete Status Bit: The discrete status bit is accessed by referencing the associated CT
memory location. It will be on if the value is equal to or greater than the preset value. For
9
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
10
counter locations. For example, if UDC CT1 is used, the next available counter number is CT3.
11
NOTE: A V-memory preset is required only if the ladder program or an OIT must be used to change the
preset.
12
Operand Data
Type
13
B
Counters
CT
V-memory for
14
preset values
V
Pointers
(presets only) P
A
Constants
(presets only) K
Counter discrete
B
status bits CT/V*
Counter current
values
V/CT*
C
NOTE: * Both the Counter discrete status bits and the current value are accessed with the same data
D
reference with the HPP. DirectSOFT uses separate references, such as "CT2" for discrete status bit for
Counter CT2, and "CTA2" for the current value of Counter CT2.
5–50
DL205 User Manual, 4th Edition, Rev. B
DL230 Range
aaa
bbb
0-76
0-176
–
2000-2377
–
0-99999999
0-76 or V41140-41143
0-176 or V41140-41147
1000-1076
DL240 Range
DL250-1 Range
aaa
bbb
aaa
0-176
–
2000-3777
2000-3777
–
0-99999999
0-176 or V41140-41147
1000-1176
UDC
CT aaa
Up
B bbb
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.
DL260 Range
bbb
aaa
0-376
1400-7377
–
–
10000-17777
1400-7377
10000-17777
–
0-99999999
–
0-376 or V41100-41157
1000-1176
Counter #
Preset
bbb
1400-7377
10000-37777
1400-7377
10000-37777
0-99999999
1000-1376
Need help?
Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?