Setting The Count Method; Reading The Present Values - 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.1.2 Setting the count method

5.1.3 Reading the present values

5 - 3
The count method is set using the GX Developer intelligent function module switch
setting.
See Section 4.5 for details on the setting method.
This section explains the methods of reading the present values stored in the buffer
memory or the count values when counter function selection is executed.
(1) When any function is used, the present value is stored into the buffer memory for
storing the present value. When the latch counter, sampling counter or periodic
pulse counter function is executed, the count value is stored into the buffer
memory for storing the counter function selection count value at the addresses
shown in the table below, aside from the buffer memory for storing the present
value.
Present
Description
value
Buffer
CH1
2
to 3
H
memory
CH2
22
to 23
address
H
(2) Both the present values and counter function selection count values are stored in
the buffer memory as 32-bit signed binary values. In addition, since the contents
of the buffer memory are automatically updated by the count operation, the latest
count values can be read from the buffer memory.
POINT
When reading the present values or the counter function selection count values,
use the DFRO command and always read values in two-word units. When reading
the values in one-word units, if the count values are updated in the middle of read
processing, a mismatch may occur between the data contents of the lower and
higher words, possibly causing the system to read incorrect count values.
[Program example]
X20
[Example of an undesirable program]
X20
Counter function selection count value
Latch count
Sampling
value
count value
C
to D
E
to F
H
H
H
H
2C
to 2D
2E
to 2F
H
H
H
H
DFRO
H00 H02
FROM
H00 H03
FROM
H00 H02
MELSEC-Q
Periodic pulse count
previous value
10
to 11
H
H
H
30
to 31
H
H
H
D0
K1
D1
K1
D0
K1
Periodic pulse count
present value
12
to 13
H
H
32
to 33
H
H
5 - 3

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd62eQd62d

Table of Contents