3
- 30
3.3 Settings for Creation and Execution of Multiple Sequence Programs
3.3.1 Initial execution type program
3
SEQUENCE PROGRAM CONFIGURATION AND
EXECUTION CONDITIONS
(2) Initial execution type program processing
(a) Execution sequence
When the execution of all the initial execution type program is completed, an END
processing is performed and a scan execution type program is executed at the
next scan.
(b) Initial scan time
The initial scan time is the execution time of an initial execution type program.
When multiple initial execution type programs are executed, the initial scan time is
the time taken until the execution of all initial execution type programs is
completed.
1) Initial scan time storage location
The CPU module measures the initial scan time and stores it into the special
registers (SD522, SD523).
The initial scan time can be checked by monitoring SD522 and SD523.
Example: When SD522 is 3 and SD523 is 400, the scan time is 3.4ms.
2) Accuracy and measurement of initial scan time
The accuracy of the initial scan time stored into the special registers is
0.1ms.
The measurement of the initial scan time is continued even if the watchdog
timer reset instruction (WDT) is executed in a sequence program.
Figure 3.22 Execution sequence of initial execution type program
Figure 3.23 Initial scan time storage location
Power supply OFF ON/
STOP RUN
Initial execution
type program A
Initial execution
type program B
Initial execution
type program n
END processing
1 scan
When there are multiple initial
execution type programs, they
are executed in ascending
order of program setting.
Scan execution type
program
SD522
SD523
Stores initial scan time in 1ms units.
Stores initial scan time of 1ms or less (unit s).