Automationdirect.com DirectLOGIC DL205 Series User Manual page 265

Table of Contents

Advertisement

Chapter 5: Standard RLL Instructions - Timer, Counter and Shift Register
Stage Counter (SGCNT)
1
The Stage Counter is a single-input counter that
230
increments when the input logic transitions from off to
on. This counter differs from other counters since it will
2
240
hold its current value until reset using the RST
250-1
instruction. The Stage Counter is designed for use in
3
260
RLL
programs. When the current value equals the preset
DS
Used
value, the counter status bit turns on and the counter
4
HPP Used
continues to count up to a maximum count of 9999. The
maximum value will be held until the counter is reset.
5
Instruction Specifications
Counter Reference (CTaaa): Specifies the counter number.
6
Preset Value (Bbbb): Constant value (K) or a V-memory location.(Pointer (P) for DL240,
DL250-1 and DL260.)
7
Current Values: Counter current values are accessed by referencing the associated V or CT
memory locations*. The V-memory location is the counter location + 1000. For example, the
8
counter current value for CT3 resides in V-memory location V1003.
Discrete Status Bit: The discrete status bit is accessed by referencing the associated CT
9
memory location. 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.
10
NOTE: When using a counter inside a stage, the stage must be active for one scan before the input to the
counter makes a 0-1 transition. Otherwise, there is no real transition and the counter will not count.
11
NOTE: A V-memory preset is required only if the ladder program or an OIT must 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–48
DL205 User Manual, 4th Edition, Rev. B
PLUS
programs but can be used in relay ladder logic
DL230 Range
aaa
bbb
0-77
2000-2377
0-9999
0-77 or V41140-41143
0-177 or V41140-41147
1000-1077
DL240 Range
DL250-1 Range
aaa
bbb
aaa
0-177
0-177
2000-3777
2000-3777
0-9999
0-177 or V41140-41147
1000-1177
Counter #
SGCNT
Preset
The counter discrete status bit and the
current value are not specified in the
counter instruction.
DL260 Range
bbb
aaa
0-377
1400-7377
10000-17777
1400-7377
10000-17777
0-9999
0-377 or V41140-41157
1000-1177
CT aaa
B bbb
bbb
1400-7377
10000-37777
1400-7377
10000-37777
0-9999
1000-1377

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DirectLOGIC DL205 Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents

Save PDF