Mitsubishi QD51 Programming Manual page 293

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

Advertisement

11 INSTRUCTIONS AND FUNCTIONS
Program Example
10 ' Assigns 1 to Variable A and assigns A + 1 to Variable B
20 A=1
30 B=A+1
40 PRINT "A=";A, "B=";B
50 END
RUN
A= 1
B= 2
OK
11 - 123
REMARK
See Section 3.5.1.
:
' Stores 1 in A
:
' Stores A+1 in B
:
' Displays A and B
MELSEC-Q
11 - 123

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents