Chapter 5 Program Configuration and Operation Method
5
-
5
5.2 Program Execution
5.2.1 Program Configuration
The program is consisted of all function factors required to execute the specific control and saved in the built-in
RM or flash memory of CPU module. These function factors are generally classified as follows.
Function factor
Process description
Scan program
•
Processing of signal that repeats regularly every 1 scan.
Time-driven interrupt
program
•
The program is performed according to the fixed time interval in case that the
required processing time condition is as below.
In case that the faster processing than 1 scan average processing time is
required
In case that the longer time interval than 1 scan average processing time is
required
In case that program is processed with the appointed time interval
Subroutine program
•
Only when some condition is satisfied.(in case that input condition of CALL
instruction is On)
5.2.2 Program Execution Method
Here describes the program proceeding method that is executed when the power is applied or key switch is
‘RUN’.
The program performs the operation processing according to the configuration as below.
Operation start
Scan program
END
Subroutine program
Task program
Executes only
when the condition
is satisfied.