Counter Reset Function - Mitsubishi Electric MELSEC iQ-R Series User Manual

Hide thumbs Also See for MELSEC iQ-R Series:
Table of Contents

Advertisement

1.8

Counter Reset Function

This function resets the sampling pulse number, accumulating count value, and input pulse value. The reset can be performed
at an arbitrary timing. It is also possible to preset the accumulating count value to an arbitrary value.
Operation
Setting 'CH1 Counter reset request' (Un\G386) to Reset request (1) changes each count value as shown below.
• 'CH1 Sampling pulse number' (Un\G0) is reset to 0.
• 'CH1 Accumulating count value' (Un\G2, Un\G3) is reset to 0. If 'CH1 Preset setting value for accumulating count value'
(Un\G384, Un\G385) is set to a value other than 0, the accumulating count value is preset to the setting value.
• 'CH1 Input pulse value' (Un\G4, Un\G5) is reset to 0.
'CH1 Sampling pulse
number' (Un\G0)
'CH1 Input pulse value'
(Un\G4, Un\G5)
'CH1 Accumulating count
value' (Un\G2, Un\G3)
'CH1 Preset setting value
for accumulating count
value' (Un\G384, Un\G385)
'CH1 Counter reset
No reset
request' (Un\G386)
request (0)
Performed by the pulse input module
No.
Operation
(1)
Setting 'CH1 Counter reset request' (Un\G386) to Reset request (1) resets each count value.
(2)
After the reset is complete, 'CH1 Counter reset request' (Un\G386) is automatically set to No reset request (0).
(3)
When presetting 'CH1 Accumulating count value' (Un\G2, Un\G3), set 'CH1 Preset setting value for accumulating count value' (Un\G384, Un\G385) to
the desired preset value. After making this setting, set 'CH1 Counter reset request' (Un\G386) to Reset request (1).
■Preset setting value for accumulating count value
Regardless of turning on and off of 'Operating condition setting request flag' (Y1), the changed value is valid for 'CH1 Preset
setting value for accumulating count value' (Un\G384, Un\G385). Furthermore, the module parameters can also be used to
configure the setting at the point in time that the CPU module changes from STOP to RUN.
1.
Set "Preset setting value for accumulating count value" to a value.
[Navigation window]  [Parameter]  [Module Information]  Module model name  [Application setting]  [Counter
reset function]
Item
Preset setting value for accumulating count value
When using a linear counter, if the count operation stops due to the accumulating count value overflowing, the
count operation of the accumulating count value' restarts after the reset is complete.
0
800
5000
0
15000
0
0
(1)
(2)
No reset
request (0)
Reset request (1)
60000
(3)
Reset request (1)
Setting range
0 to 99999999
0
0
60000
No reset
request (0)
1 FUNCTIONS
1.8 Counter Reset Function
1
31

Advertisement

Table of Contents
loading

Table of Contents