6 - 1 6 - 1
MELSEC-Q
6 CONVENIENT USAGE
6 CONVENIENT USAGE
6.1 Selecting the Counter Function
By selecting the counter function with the counter function selection setting, the disable
count function, latch counter function, sampling counter function and periodic pulse
counter function can be used.
To select a counter function, write the corresponding value shown in the following table
to CH
Counter function selection setting (Un\G9, Un\G41).
To perform the selected counter function, input the counter function selection start
command by applying a voltage to the function start input terminal or by turning on
CH
Counter function selection start command (Y6, YE) with sequence program.
Also, for the counter function selection, only one of the following four functions can be used.
Counter function selection Set value Remarks
Disable count function 0 Initial value (default)
Latch counter function 1
Sampling counter function 2
Periodic pulse counter function 3
(1) Disable count function
This function stops counting pulses by inputting the counter function selection
start command while CH
Count enable command (Y4, YC) is on.
(2) Latch counter function
This function latches the present value when the counter function selection start
command is input to CH
Latch count value (Un\G12, Un\G13, Un\G44,
Un\G45).
(3) Sampling counter function
This function counts the input pulses during the preset sampling period since the
time the counter function selection start command was entered.
(4) Periodic pulse counter function
This function stores the present value and previous value for each preset periodic
time while the counter function selection start command is being entered.
POINT
(1) Change the counter function while CH Counter function selection start
command (Y6, YE) is off.
(2) The selected counter function can be performed by turning on CH
Counter
function selection start command (Y6, YE) or by applying a voltage to the
function start input terminal. Note that a signal that is input first takes priority.
(3) Time (T) for the sampling counter function or the periodic pulse counter function can
be set by writing a value within the range of 1 to 65535 to CH
Sampling/periodic
setting (Un\G10, Un\G42). The value can be set in increments of 10 ms.
(Example) When CH
Sampling/periodic setting (Un\G10, Un\G42) is set to 420
420
10 = 4200 (ms)
6