Siemens SIMATIC TI505 Service Manual Page 97

  • Download
  • Add to my manuals
  • Print
  • Page
    / 127
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 96
Applications
A-2
High Speed Counter Encoder Module User Manual
A.1 Using Counters 1 and 4
In
the following counting modes, the 24-bit counter counts up or down on
each input pulse received as long as INHIBIT and RESET are low
.
In gated counting, the current count words are continuously updated by the
module and read by the PLC on each scan. The count value can be reset by
the external RESET pulse, the PLC reset signal, or a count roll over
.
If the Inhibit jumper is set to [Level], the INHIBIT signal pauses the
counter when high, and resumes the counting when low
.
If the Inhibit jumper is set to [Edge], the leading edge of the INHIBIT
signal pauses the counter
, and the leading edge of a second INHIBIT signal
resumes the counting.
The cumulative count is continuously sent to the current count register
where it is read by the PLC. The count value can be reset by the external
RESET pulse, the PLC reset signal, or a count roll over
.
The Index jumper is set to [Latch]. An external INDEX signal loads the
count value into Holding Register 1. At the next INDEX signal, the new
count value is loaded into Holding Register 1, and the previous value is
pushed into Register 2. The count value continues to accumulate.
Period measurement counting measures actual time between the rising
edge of two external INDEX pulses. The 24-bit counter counts internal 1
s
pulses for an externally specified duration.
The INDEX input signal is configured in the [Reset-and-Go] mode, resetting
the counter after each INDEX signal. The number of 1-
s periods is loaded
into Holding Register 1. At the next INDEX signal, the new count value is
loaded into Holding Register 1, and the previous value is pushed into
Register 2. This mode functions in the same way as Sampled Cumulative
counting, except that the counter resets at each INDEX signal.
NOTE:
When you use the Reset-and-Go function of the module, an
occasional count of zero is read. This is a conflict between the INDEX or
PERIOD control signal and the module’
s microcontroller attempting to read
the counter registers. T
o eliminate this reading of the counter reset value,
set WY23.01 (Counter 1) and WY29.01 (Counter 4).
W
ith the bits set, the current count value is updated only when the INDEX
or PERIOD pulse is detected. The previous value of the current count
register is pushed into Holding Register 1. Holding register 1’
s value is
pushed into Holding Register 2. In this mode there are effectively three
holding registers.
Using Gated
Counting
Using Sampled
Cumulative
Counting
Using Period
Measurement
Counting
Page view 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 126 127

Comments to this Manuals

No comments