3 - 8 3 - 8
MELSEC-Q
3 LET'S CREATE AND EXECUTE A PROGRAM
(3) Examples of editing using the screen editor.
1) Overwriting • • • • • • • • • • • • •Change line 20 to B=7.
1
Press the key
to move the
cursor to line 20.
2
Press the key
to move the
cursor to "3."
3
Press the 7 key and
then the Enter key.
This completes the
editing.
LIST
10 A=2
20 B=7
0 C=A+B
40 PRINT C
50 END
OK
LIST
10 A=2
30 C=A+B
40 PRINT C
50 END
OK
2 0
B = 3
2) Adding (inserting) • • • • • • • • Change line 30 to C=100+A+B
1
Press the cursor
keys to move the
cursor to "A" on
line 30.
2
Press the Insert key
four times to make
enough space to
add "100+."
3
Press 1 0 0 + and
then the Enter key.
This completes
the editing.
LIST
10 A=2
20 B=7
30 C=100+A+B
0 PRINT C
50 END
OK
LIST
10 A=2
40 PRINT C
50 END
OK
20 B=7
3 0
C = A + B
3) Deleting • • • • • • • • • • • • • • • Change line 30 to C=A.
4
Press Ctrl + E keys
to delete "+B" and
then the Enter key.
This completes
the editing.
1
Press the cursor
keys to move the
cursor to "A" on
line 30.
2
LIST
10 A=2
20 B=7
30 C= +B
40 PRINT C
50 END
OK
LIST
10 A=2
40 PRINT C
50 END
OK
20 B=7
3 0
C =
A + B
1 0 0 +
Press the Delete
key or key
four times to
erase "100+."
Back
Space
3
Move the
cursor to "+"
on line 30.
LIST
10 A=2
20 B=7
30 C=A
0 PRINT C
50 END
OK