Mitsubishi QD51 Programming Manual page 251

Logic controller
Hide thumbs Also See for QD51:
Table of Contents

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Example using a subroutine
20 PRINT "At line 10 of the main routine"
30 GOSUB 100
40 PRINT
50 PRINT "At line 50 of the main routine"
60 END
100 PRINT
110 PRINT "Entered the subroutine"
120 RETURN
RUN
At line 10 of the main routine
Entered the subroutine
At line 50 of the main routine
OK
11 - 81
REMARK
See Section 3.9.
:
' Branches to a subroutine
:
' End of execution
:
' Returns to the main routine
MELSEC-Q
11 - 81

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents