3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
3.2 Settings for Execution of Only One Sequence Program
3 - 25
1
Overview
2
Performance
Specification
3
Sequence Program
Configuration and
Execution Conditions
4
I/O Nunber Assignment
5
Memories and Files
Handled by CPU Module
6
Functions
7
Communication using
built-in Ethernet ports of
CPU module
8
Communication with
Intelligent Function
Module
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.( Section 3.3)
(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
Note3.16
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
Note3.16
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