Structured Programming - Mitsubishi Electric melsec q00ujcpu User Manual

Programmable controller
Hide thumbs Also See for melsec q00ujcpu:
Table of Contents

Advertisement

1.3 Structured Programming

The programs to be executed in the CPU module can be structured in the following two ways.
• In one program
• By dividing into multiple files
(1) Structuring in one program
Structured programming is available by creating one program as a collection of three program sections: main
routine program (
(
Section 2.2.3).
Section 2.2.1), subroutine program (
Main routine
program
P1
Subroutine
program 1
P8
Subroutine
program 2
I0
Interrupt program
Figure 1.4 Structuring in one program
CHAPTER1 OVERVIEW
Section 2.2.2), and interrupt program
CALL P1
FEND
Y10
RET
Y11
RET
Y12
IRET
END
1
2
3
4
5
6
7
8
1 - 3

Advertisement

Table of Contents
loading

Table of Contents