3 - 9 3 - 9
MELSEC-Q
3 LET'S CREATE AND EXECUTE A PROGRAM
4) Changing a line number • • • • Caution is needed when changing line
numbers. Line 10 should be changed to line 15.
LIST
10 A=10 5
20 PRINT A
OK
3
LIST
15 A=10 5
0 PRINT A
OK
2
Press and then
the key.
1
Move the
cursor to
line 10.
The screen display looks OK, but when confirmed using the
"LIST" instruction, it is seen that line 10 still exists.
LIST
15 A=10 5
20 PRINT A
OK
LIST
10 A=10 5
15 A=10 5
20 PRINT A
OK
10
LIST
15 A=10 5
20 PRINT A
OK
Pressing
will erase line 10.
This completes the editing.
(See (1) in Section 3.2.3.)
Enter
1
0
When the "LIST" instruction is used again to confirm the change,
it is seen that the modification is made correctly this time.
This is because it is not specified to erase line 10.
1
0
Enter
Even if the line number is changed, the original line will still be there. This method can
be used to make copies of lines with the same contents repeatedly.
The program will not be changed until the Enter key is pressed.
Try various ways of screen editing.
There are many other keys that are handy for editing.
For details, see Appendix 4.2.