Count Type Selection; Linear Counter Function - Mitsubishi Electric MELSEC iQ-R Series User Manual

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

Advertisement

1.3

Count Type Selection

The count type of the accumulating count value can be selected from linear counter and ring counter.

Linear counter function

This function counts input pulses from 0 to 99999999. If the count range is exceeded, an overflow is detected.
Cv
99999999
0
'CH1 Count enable'
(Y18)
OFF
'CH1 Overflow
detection flag' (Un\G6)
'CH1 Counter reset
request' (Un\G386)
Performed by the pulse input module
Cv: Accumulating count value
t:
Time
No.
Operation
(1)
When 'CH1 Accumulating count value' (Un\G2, Un\G3) exceeds 99999999, Overflow detection (1) is stored in 'CH1 Overflow detection flag' (Un\G6).
(2)
Setting 'CH1 Counter reset request' (Un\G386) to Reset request (1) causes No overflow detection (0) to be stored in 'CH1 Overflow detection flag'
(Un\G6). The accumulating count value is reset to 0.
(3)
When the counter reset processing is complete and 'CH1 Counter reset request' (Un\G386) changes to No reset request (0), the count operation
restarts.
Overflow error
■Count operation status
When 'CH1 Accumulating count value' (Un\G2, Un\G3) exceeds 99999999, an overflow error (error code: 1900H) occurs.
When an overflow error occurs, the count operation stops. Even if a pulse is received, 'CH1 Accumulating count value'
(Un\G2, Un\G3) will not change from 99999999. At this time, 'CH1 Sampling pulse number' (Un\G0) is reset to 0.
■Overflow error clearing
• Setting 'CH1 Counter reset request' (Un\G386) to Reset request (1) clears the overflow error (error code: 1900H) and
restarts the count operation. No overflow detection (0) is stored in 'CH1 Overflow detection flag' (Un\G6).
• Turning off and on 'CH1 Error reset request' (Y8) does not restart the count operation. To restart the count operation, it is
necessary to turn on and off 'Operating condition setting request flag' (Y1) or to set 'CH1 Counter reset request' (Un\G386)
to Reset request (1).
1 FUNCTIONS
20
1.3 Count Type Selection
ON
No overflow detection (0)
Overflow detection (1)
No reset request (0)
(1)
No overflow
detection (0)
(3)
(2)
Reset request (1)
t
No reset
request (0)

Advertisement

Table of Contents
loading

Table of Contents