Sampling counter function
This function counts pulses input during the specified sampling time (T) and stores the count value in the buffer memory. The
following figure shows the relationship among the signals and buffer memory areas used by the sampling counter function.
CH1 Count enable command
(Y4)
CH1 Present value
(Un\G2 to Un\G3)
CH1 Counter function selection start
command (Y6)
Counter function selection start command
(function start input)
CH1 Sampling count value
(Un\G14 to Un\G15)
CH1 Sampling/cycle counter flag
(Un\G11)
CH1 Counter function update flag
(Un\G28)
0 write request to CH1 Counter function
update flag (Un\G28) (controlled by the
program)
No.
Description
(1)
Input pulses are counted from 0 on the rising edge of CH1 Counter function selection start command (Y6) or Counter function selection start
command (function start input).
(2)
The count operation stops when the specified sampling time has elapsed.
(3)
While the sampling counter function is performed, 1 is stored in CH1 Sampling/cycle counter flag (Un\G11).
(4)
Even after the sampling counter function is performed, the value stored in CH1 Sampling count value (Un\G14 to Un\G15) is held.
(5)
The sampling counter function can be performed regardless of the on/off status of CH1 Count enable command (Y4).
Set the sampling time by writing the data within the range of 1 to 65535 to CH1 Sampling/cycle time setting
(Un\G10). The unit of time differs depending on the counting speed setting in CH1 Sampling/cycle time setting
(Un\G10). For details, refer to the following.
Page 63 CH1 Sampling/cycle time setting
1 FUNCTIONS
30
1.5 Counter Function Selection
ON
OFF
200
100
0
(1)
ON
OFF
T
200
100
(2)
0
-100
(3)
1
0
ON
OFF
ON
OFF
(5)
T
(4)
T