Sub-Routine Instructions - Mitsubishi MELSEC-F FX-1GM Handy Manual

Programmable controllers, position control unit
Table of Contents

Advertisement

3.4.2
Sub-routine
instructions
E E u t i n e call
RETURN
Subroutine return
Machine home General return Initial position
posttion
posltlon
1
a
?
i
b l
b2
b3
Repeat steps
(4) to
(7)
at points
b l , b 2 ,
and
b 3 .
I
( 1 ) Machine
home
Subroutine
A I
Standard
subroutine
Main program
Relevant elements:
KO
to K255
CALL instructions under a CALL instruction can be used up
to 15 times.
Execution time:
Instantaneous progressing type (1 msec or less)
Relevant elements:
Not
necessary
Execution time:
Instantaneous progressing type (1 msec or less)
ADR
CALL
ADR
CALL
67
END
4
255
1,000
A
6--
6--
B
6--
C
2,000
3,000
Standard program for home position return
CALL K255 may be in any block.
Home return is performed only once and MI
01
is then turned ON.
-
Thereafter, this process is jumped.
IMPORTANT
General return is performed at the end
of the
LAB K6 subroutine.
L
Subroutine program
,
1,500
(3)(9)(11) 1,501
1,502
(4)
1,503
(5)
1,504
1,505
(6) 1,506
(7) 1,507
(8)(10)(12)
1,508
1,509
___
1,510
1,991
1,992
1,993
(1) 1,994
1,995
(2) 1,996
1,997
1,998
1,999
-
45
-
-
.............
Hgfru$
;;*,
LAB
D RV
ADR
DRV
DRV
ADR
DRV
DRV
DRV
WAIT
RET
.
.
. . . . . . . . .
. . . . . . . . . .
.................
:.:.:.:
.
I
.
.
.
LAB
LD
CJ
DRV
LAB
ADR
DRV
SET
RET
-
......
...... ....
a,B:'.l::l'.;
;m&&j
.....
;:;:;:,
, , ,
,
,
,
-:::.:::
........
. . . . . . . . . . . . . . .
.....................
K
+
K
+
-
K
+
-
RAD
K
M
K
ZRN
K
+
ABS
RAD
......................
..........
........
........
...............................
. . . . . . . . . . . . .
.:.:.:.:.:.:...:
. . . . . . . . . . . . . . . . . . . . .
6
500
600
255
101
254
254
500

Advertisement

Table of Contents
loading

Table of Contents