Selecting The Ring Counter - Mitsubishi Electric QD62 User Manual

Q series high-speed counter module
Hide thumbs Also See for QD62:
Table of Contents

Advertisement

5 BASIC USAGE

5.2.2 Selecting the ring counter

5 - 5
(1) Ring counter operation
When the ring counter is selected, the count operation is performed repeatedly
between the ring counter minimum value (addresses CH1: 14
to 35
) and maximum value (addresses CH1: 16
H
were set arbitrarily in the buffer memory.
When the ring counter is being selected, an overflow error does not occur.
The ring counter can be used in combination with the preset function and the
coincidence output function.
Present counter value
Subtraction
(2) Ring counter count range
The count range for the ring counter is determined by the relationship between
the present values in the buffer memory (addresses CH1: 2
23
) at the time the count enable command {Y04 (Y0C)} turns ON or a preset is
H
executed and the ring counter minimum value/maximum value.
Normally the range used is "ring counter minimum value ≤ present value ≤ ring
counter maximum value".
• For up count
When the present value reaches the ring counter maximum value, the ring
counter minimum value is automatically stored as the present value.
• For down count
Even if the present value reaches the ring counter minimum value, the ring
counter minimum value will be retained as is. With the next subtraction pulse,
(ring counter maximum value –1) will be stored as the present value.
Whether during up count or down count, the ring counter maximum value will not
be stored in the buffer memory for storing the present values.
For example, if the count is enabled with the ring counter minimum value of 0, the
ring counter maximum value of 2000 and the present value of 500, the count
range and present value will change as shown in the figure below.
Ring counter minimum value
– 2147483648
Present value
500
501
to
Ring counter maximum value
Addition
Ring counter minimum value
Ring counter maximum value
0
Present value
500
Count range
Ring counter
Ring counter
minimum value
maximum value
(2000)
1998
1999
0
1
The ring counter maximum value,
2000, will not be stored in the
buffer memory for storing the
present values.
MELSEC-Q
to 15
H
to 17
, CH2: 36
H
H
to 3
H
2000
2147483647
2
to
498
499
, CH2: 34
H
H
to 37
) that
H
H
, CH2: 22
to
H
H
5 - 5

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd62eQd62d

Table of Contents