4 SEQUENCE PROGRAM CONFIGURATION & EXECUTION
CONDITIONS
4.1.1 Main routine program
4 - 3
(1) Definition of main routine program
(a)
A main routine program is a program which begins from step 0 and ends at
the END/FEND instruction.
(b)
The main routine program execution begins from step 0 and ends at the
END/FEND instruction.
When the END/FEND instruction is executed in the main routine program,
END processing is performed and operation is then restarted from step 0.
Main routine
program
END/FEND
(2) Execution of main routine program
The main routine program is executed every scan.
REMARK
1: For details regarding the END/FEND instruction, refer to the "QCPU (Q
mode)/QnACPU Programming Manual (Common Instructions)".
1
Step 0
END/FEND
END processing
MELSEC-Q
Program execution
Returns to step 0
4 - 3