Standard
RLL
Instructions
5–40
Standard RLL Instructions
Timer, Counter, and Shift Register Instructions
CT aaa
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.
Instruction Specification
Counter Reference (CTaaa): Specifies
the counter number.
Preset Value (Bbbb): Constant value (K)
or two consecutive V memory locations.
Current Values: Current count is a double
word value accessed by referencing the
associated V or CT memory locations*.
The V-memory location is the counter
lo 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.
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 #
The counter discrete status bit and the
current value are not specified in the
counter instruction.
Operand Data Type
DL05 Range
A/B
aaa
bbb
Counters
CT
0–176
––
V memory
(preset only)
V
––
1200–7377
7400–7577
Pointers (preset only)
P
––
1200–7377
7400–7577
Constants
(preset only)
K
––
0–99999999
Counter discrete
status bits
CT/V
0–176 or V41140–41147
Counter current
values
V/CT*
0–176
NOTE: * 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.
Up Down Counter
(UDC)
Summary of Contents for DL05
Page 1: ...DL05 User Manual Automationdirect com ...
Page 2: ...DL05 User Manual Automationdirect com ...
Page 436: ...1B DL05 Error Codes In This Appendix Ċ Error Code Table ...
Page 443: ...1C Instruction Execution Times In This Appendix Ċ Introduction Ċ Instruction Execution Times ...
Page 459: ...1D Special Relays In This Appendix Ċ DL05 PLC Special Relays ...
Page 464: ...1E DL05 Product Weights In This Appendix Ċ Product Weight Table ...