Mitsubishi Q00JCPU User Manual page 487

Q series, logic
Hide thumbs Also See for Q00JCPU:
Table of Contents

Advertisement

9
DEVICE EXPLANATION
(4) Interrupt counters
Basic model QCPU
128 points, starting from the set counter number, are
used as interrupt counters.
When the first interrupt counter No. is set to C300,
C300 to 427 are used as interrupt counters.
C300
I0
C301
I1
C302
I2
Interrupt counter (128 points)
C427
I127
Values corresponding to
the interrupt counter No.
(a) Definition
Interrupt counters are devices which count the number of interrupt factor
occurrences.
(b) Count processing
1) When interrupt occurs
The interrupt counter's current value is updated when an interruption occurs. It
is not necessary to create a program which includes an interrupt counter
function.
2) Counting of interrupt counter
Interrupt counter operation requires more than the simple designation of a set
value.
To use the interrupt counter for control purposes, comparison instructions (=,
<=, etc.) must also be used to enable comparisons with the set value, with an
internal relay (M), etc., being switched ON or OFF according to the
comparison result.
Diagram 9.36 shows a sample program in which M0 is switched ON after 10
interrupt inputs are performed. (In this example, "C300" is the interrupt counter
No. corresponding to I0.)
Diagram 9.36 Ladder example when interrupt counter is used for control
(c) Setting the interrupt counter
In order to use interrupt counters, set Interrupt counter start No. at the "PLC
system" tab screen in the "(PLC) Parameter" dialog box.
The number of points indicated in Table9.6 starting from the set counter number is
used as interrupt counters.
Table9.6 Number of interrupt counter points of each CPU module
256 points, starting from the set counter number, are used as
interrupt counters.
When the first interrupt counter No. is set to C300, C300 to 555
are used as interrupt counters.
In order to use an interrupt counter, an "interruption permitted" status must be
established by E1 instruction at the main routine program.
=
K10
C300
High Performance model QCPU,
Process CPU, Redundant CPU
C300
I0
C301
I1
C302
I2
Interrupt counter (256 points)
C555
I255
Values corresponding to
the interrupt counter No.
9.2 Internal User Devices
M0
9
9.2.11 Counter (C)
9
10
11
- 36

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents