Mitsubishi MELSEC Q Series User Manual page 68

High-speed counter module
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

6 CONVENIENT USAGE
6 - 8
Number
The present counter value of 0 is stored in the present periodic pulse count
1)
value storage buffer memory {addresses 12
called the present value buffer memory).
The present counter value of 200 is stored in the present value buffer memory.
The value 0 that has been stored in the present value buffer memory will be
2)
stored in the previous periodic pulse count value storage buffer memory
{addresses 10
memory).
The present counter value of 20 is stored in the present value buffer memory.
3)
The value 200 that has been stored in the present value buffer memory will be
stored in the previous value buffer memory.
The present counter value of 100 is stored in the present value buffer memory.
4)
The value 20 that has been stored in the present value buffer memory will be
stored in the previous value buffer memory.
The present counter value of 80 is stored in the present value buffer memory.
5)
The value 100 that has been stored in the present value buffer memory will be
stored in the previous value buffer memory.
The periodic pulse counter function is executed regardless of whether the count
6)
enable command {Y04 (Y0C)} is ON or OFF.
Value 1 is stored in the sampling/periodic counter flag storage buffer memory
7)
{address B
H
POINT
When reading a previous value {buffer memory address 10
and a present value {buffer memory address 12
periodic pulse count, read 4 contiguous words using the DFRO or BMOV
instruction.
[Program example]
Read command
Read command
Depending on the relation between the update timings of the previous and present
periodic pulse count values inside the module and the read timing in the sequence
program, the previous value may be the same as the present value.
If this has occurred, execute the reading again. (See Section 8.2.)
Description
to 11
(30
to 31
)} (hereinafter called the previous value buffer
H
H
H
H
(2B
)} while the periodic pulse counter function is being executed.
H
DFRO
H00
BMOV
MELSEC-Q
to 13
(32
to 33
H
H
H
H
to 11
(30
H
H
to 13
(32
to 33
)} of the
H
H
H
H
H10
D6
K2
U0\G16
D6
K4
)} (hereinafter
to 31
)}
H
H
6 - 8

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec qd62Melsec qd62eMelsec qd62d

Table of Contents