Setting The Count Method; Reading The Present Values - Mitsubishi Electric QD62 User Manual

Melsec system q, programmable logic controller, high-speed counter module, gx configurator-ct
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.
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) The count values at the time of pulse input, presetting, and when the count is
disabled (counter function selection) are stored in the buffer memory for storing
the present value. However, the counts when the latch counter, sampling counter
or periodic pulse counter function is executed are stored in the buffer memory for
storing the counter function selection count value at the addresses shown in the
table below.
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 count
value
C
to D
E
H
H
H
2C
to 2D
2E
H
H
H
DFRO
H00 H02
FROM
H00 H03
FROM
H00 H02
MELSEC-Q
Periodic pulse
count previous
value
value
to F
10
to 11
H
H
H
H
to 2F
30
to 31
H
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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qd62eQd62dSw0d5c-qctu-e

Table of Contents