End - Mitsubishi Electric melsec-k Programming Manual

Hide thumbs Also See for melsec-k:
Table of Contents

Advertisement

4-5-2.
END
...
Program completion
END is entered at the end
of
the required program steps to announce program completion.
When the CPU detects the END instruction, the program counter is returned to 0, and scanning is
started again from step number 0.
In the figure, the program is completed at 3
1
1, and return to step number
The END instruction must be written at the end of
any program.
As scanning returns to the start with the END instruc-
is executed.
I
Step number
310
311
tion, the scanning time depends on the position of the
END instruction.
O U T
Yi27
E N D
-
The scanning time (response time) can be calculated
as follows:
Average time
x
step number (from 0 to END instruc-
tion)
D
K l C P U
3 0 P s
K B C P U
l o p s
0
1
I
I
t
I
I
Program completion
.
'
Fig. 4-41.
Use
of
END instrrictions
END instructions may also be used temporarily at the time of program debugging or testing for
program execution
to
an intermediate point.
-38-

Advertisement

Table of Contents
loading

Table of Contents