6 - 5 6 - 5
MELSEC-Q
6 CONVENIENT USAGE
6.3 Using the Latch Counter Function
The latch counter function latches the present counter value at the time a signal was
entered.
The relationships between the present counter value for the latch counter function, the
counter function selection start command and the latch count value storage buffer
memory are illustrated below:
1) 2) 3) 4)
0
50
100
150
ON
OFF
ON
OFF
0
50
100
130
0
50
100
150
0
50
100
130
Count enable command
{Y04 (Y0C)}
Present value storage buffer memory
{Addresses 2
H
to 3
H
(22
H
to 23
H
)}
Counter function selection start command
{Y06 (Y0E), Function start input}
Latch count value storage buffer memory
{Addresses C
H
to D
H
(2C
H
to 2D
H
)}
When the counter function selection start command {Y06 (Y0E), function start input}
rises at points indicated by 1) to 4) in the figure above, the present counter value is
stored in the latch count value storage buffer memory {addresses C
H to DH (2CH to
2D
H)}. The latch counter function is executed regardless of whether the count enable
command {Y04 (Y0C)} turns ON/OFF.