Sequence Program Configuration; Main Routine Program - Mitsubishi 00JCPU User Manual

Q series programmable controller
Table of Contents

Advertisement

(3) Sequence program operation
A sequence program is sequentially operated from the step 0 to the END or FEND instruction.
In ladder mode, a sequence program is operated from left to right and top to bottom in a ladder block.
[Ladder mode]
From top
to bottom

2.2 Sequence Program Configuration

Sequence programs are classified into the following three types.

• Main routine program

• Subroutine program
• Interrupt program
*1: Since the Basic model QCPU cannot execute multiple programs, the file name is fixed to "MAIN".
2 - 3
From left to right
1)
2)
7)
8)
9)
X0 X1 X5 X6 X7
0
3)
4)
X2 X3
5)
6)
X4
10
* Program operations are executed in the
order of 1) to 11).
Figure 2.3 Comparison between ladder mode and list mode
*1
File A
P0
I0
Figure 2.4 Sequence program classification
[List mode]
10)
Y10
Program
operations are
sequentially
executed from
the step 0 to the
11)
END instruction.
END
Step number
Main routine
program
FEND
Subroutine
program
RET
Interrupt
program
IRET
END
0 LD
X0
0)
1)
1 AND
X1
2)
2 LD
X2
3)
3 AND
X3
4)
4 ORB
5)
5 OR
X4
6)
6 AND
X5
7)
7 AND
X6
8)
8 AND
X7
9)
9 OUT
Y10
10)
10 END
11)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents