Mitsubishi QD51 Programming Manual page 45

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

Advertisement

3 LET'S CREATE AND EXECUTE A PROGRAM
3 - 4
Enter line 10 as shown in the program example and press the Enter key.
REM Calculation of compound interest Enter
The line number 20 will be displayed on the screen. Enter the instructions until you
reach line 70 in the same way.
When you finish entering line 70, the screen should look as follow :
70 END
80
This is the end of the program, so let's end the line number display of the AUTO
instruction.
Press the following keys.
Ctrl + C • • • • • • Press the C key while holding down the Ctrl key.
OK is displayed on the screen again.
Now let's verify that you have entered the program properly. Use the LIST instruction
to display the program you have entered. Please enter the following.
LIST Enter
If the program looks just like the one written on the previous page, it is a success.
LIST
10 REM Calculation of compound interest
20 INPUT "Principal=";M
30 INPUT "Interest Rate=";R
40 INPUT "Period=";K
50 RR=R/100
60 G=M (1+RR)^K
70 PRINT "Interest included=";INT(G); "YEN"
80 END
OK
REMARK
• If the display does not match the program on the previous page, re-enter the
contents of the wrong line starting with the line number while OK is displayed. Then
press the Enter key. Issuing the LIST instruction again will display the revised
contents.
An easier way of editing is described in Section 3.2.3.
MELSEC-Q
3 - 4

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ad51h-s3Qd51-r24A1sd51s

Table of Contents