User`s manual

128
4.5 Latch Counter Function
The latch counter function latches the count value when external input and an output signal (Y signal) are input.
4.5.1 Latch counter function by latch counter input terminal
(1) Latching the present value by the latch counter input terminal
The latch counter function by the latch counter input terminal latches and stores the count value into the buffer
memory when the latch counter input terminal (LATCH1) of external input is input.
(a) Operation example of the latch counter function by the latch counter input terminal
The following figure shows an operation example of the latch counter function by the latch counter input
terminal.
Number Description
1)
CH1 Present value (Un\G1050, Un\G1051) is stored into CH1 Latch count value (latch counter input terminal) (Un\G1054,
Un\G1055) at the rise of the latch counter input terminal (LATCH1).
2)
After CH1 Latch count value (latch counter input terminal) (Un\G1054, Un\G1055) is updated, Updated (1
H
) is stored into CH1
Latch count value update flag (latch counter input terminal) (Un\G1075).
3)
Set Reset (1
H
) to CH1 Latch count value update flag reset command (latch counter input terminal) (Un\G1023), and reset CH1
Latch count value update flag (latch counter input terminal) (Un\G1075) to Not updated (0
H
).
After that, CH1 Latch count value update flag reset command (latch counter input terminal) (Un\G1023) is automatically reset
to Not reset (0
H
).
4)
CH1 Latch count value (latch counter input terminal) (Un\G1054, Un\G1055) is updated even if CH1 Latch count value update
flag (latch counter input terminal) (Un\G1075) is Updated (1
H
).
ON
OFF
150
100
50
0
ON
OFF
150
100
50
0
Updated (1
H)
Not updated (0
H)
Reset (1
H)
Not reset (0
H)
0
0
50
50
100
100
130
130
2)
3)
1) 1) 1) 1)
4)
CH1 Count enable command
(Y06)
CH1 Present value
(Un\G1050, Un\G1051)
Latch counter input terminal
(LATCH1)
CH1 Latch count value
(latch counter input terminal)
(Un\G1054, Un\G1055
CH1 Latch count value update flag
(latch counter input terminal)
(Un\G1075)
CH1 Latch count value
update flag reset command
(latch counter input terminal)
(Un\G1023)