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
Содержание 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...