10
DEVICE EXPLANATION
10.2 Internal User Devices
10.2.11 Counter (C)
10
- 42
9
P
a
ra
met
e
rs
10
Device
Exp
la
n
at
ion
11
CP
U
M
odu
le
P
ro
cessi
ng
Ti
m
e
12
P
roc
e
d
ure
f
or W
rit
in
g
P
rog
ra
m t
o CP
U Mo
du
le
A
p
pe
nd
ic
e
s
In
de
x
(5) Precautions
(a) Execution of interrupt counter and interrupt program
One interrupt pointer is insufficient to execute interrupt counter and interrupt
program operation.
Moreover, an interrupt program cannot be executed by an interrupt counter setting
designated at the "PLC system" tab screen in the "(PLC) Parameter" dialog box.
(b) Processing that delays count processing
If the processing items shown below are in progress when an interruption occurs,
the counting operation will be delayed until processing of these items is
completed.
The count processing starts after the execution of programs is completed.
Even if the same interruption occurs again while processing of these items is in
process, only one interruption will be counted.
• During execution of sequence program instructions
• During interrupt program execution
• During execution of a fixed scan execution type program
Note12
(c) Maximum counting speed of interrupt counter
The maximum counting speed of the interrupt timer is determined by the longest
processing time of the items shown below.
• Instruction with the longest processing time among the instructions used in
the program
• Interrupt program processing time
• The processing time of a fixed scan execution type program
Note13
(d) When many interrupt counters are used
The use of too many interrupt counters will increase the sequence program
processing time, and may cause a "WDT ERROR".
If this occurs, reduce the number of interrupt counters or the counting speed for
the input pulse signal.
(e) Resetting the interrupt counter
The interrupt counter's count value can be reset by using the RST C instruction
in the sequence program prior to the FEND instruction.
(f) Reading the count value
The interrupt counter's count value can be read out by using the sequence
program MOV instruction.
Note12
Note13
Basic
Note10.12
The Basic model QCPU cannot execute fixed scan execution type programs.
Basic
Basic
Содержание Q00CPU
Страница 1: ......
Страница 2: ......
Страница 972: ...Index 6 Memo ...
Страница 975: ......
Страница 976: ......