3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.2 Settings for Execution of Only One Sequence Program
3
- 25
1
O
verv
iew
2
Per
fo
rma
nce
S
p
ecifica
tio
n
3
S
equ
en
ce P
ro
g
ra
m
Co
nfig
ura
tio
n a
nd
E
xecut
io
n Co
nd
iti
o
ns
4
I/O N
unb
er
Assig
n
m
e
nt
5
Me
mor
ie
s a
nd
File
s
Ha
nd
led
by CP
U Mo
du
le
6
Func
tions
7
Co
mmu
nic
a
tion
us
in
g
bu
ilt
-i
n E
th
e
rne
t po
rt
s o
f
CP
U mod
u
le
8
Co
mm
un
icatio
n
w
ith
Int
e
lli
ge
nt
Fun
ction
Mo
du
le
3.2 Settings for Execution of Only One Sequence Program
A sequence program performs operation from Step 0 to the END/FEND instruction.
It performs an END processing when the END/FEND instruction is executed.
After the END processing, operation restarts from Step 0.
As described above, the sequence program repeats the operation from Step 0 to the END/
FEND instruction.
POINT
This section explains the case where only one sequence program is created.
For creation of multiple sequence programs, the execution type can be specified
for each program, e.g. a program started only once at startup or a program
executed at fixed intervals.(
(1) Scan time
Scan time is a period from the time when the CPU module starts the sequence
program operation from Step 0 until it executes Step 0 of the same sequence program
again.
The scan time consists of the sequence program execution time and the END
processing time.
When either of the following programs is executed, the execution time of that program
is added to the scan time.
• Interrupt program
• Fixed scan execution type program
Note15
(a) Scan time storage location
The CPU module measures the current value and minimum and maximum values
of the scan time and stores them into the special registers (SD520, SD521,
SD524 to 527).
The scan time can be checked by monitoring SD520, SD521 and SD524 to 527.
When SD520 is 3 and SD521 is 400, the scan time is 3.4ms.
(b) Accuracy and measurement of scan time
The accuracy of each scan time stored into the special registers is 0.1ms.
Even if the watchdog timer reset instruction (WDT) is executed in the sequence
program, the measurement of each scan time is continued.
Note15
Figure 3.18 Scan time storage location
Basic
Note3.16
The fixed scan execution type programs are not available for the Basic model QCPU.
Basic
Stores scan time of 1ms or less (unit s).
Stores scan time in 1ms units.
SD520
SD524
SD526
Current value
Minimum value
Maximum value
SD521
SD525
SD527
Содержание Q00CPU
Страница 1: ......
Страница 2: ......
Страница 972: ...Index 6 Memo ...
Страница 975: ......
Страница 976: ......