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.
Содержание A1SD51S
Страница 183: ...11 13 11 13 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS RUN Before swap A 0 H924 A 1 H1159 After swap A 0 H1159 A 1 H924 OK...
Страница 331: ...11 161 11 161 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CON ON OFF STOP and ZOPEN functions and Section 7 4...
Страница 557: ...11 387 11 387 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the CHR SPACE and SPC functions...
Страница 629: ...11 459 11 459 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZOPEN ZSEND and ZCNTL instructions and Section 7 3 4...
Страница 645: ...11 475 11 475 MELSEC Q 11 INSTRUCTIONS AND FUNCTIONS REMARK See the ZEVENT ZSIGNAL and DEF ZEVENT instructions...