Omron SYSMAC C200H-ASC02 Operation Manual page 37

Ascii unit
Hide thumbs Also See for SYSMAC C200H-ASC02:
Table of Contents

Advertisement

BASIC Language
EDIT Command
LIST Command
1, 2, 3... 1.
DEL 100-
Deletes all lines from line 100
DEL -150
Deletes all lines up to line 150
DEL 100-150
Deletes all lines between 100 and 150
Remarks:
A period may be used in place of the line number to indicate the current line.
Purpose:
To Edit one line of the program
Format:
EDIT <line>
<line> is the line number to be edited.
Remarks:
The EDIT Command is used to display a specified line and to position the
cursor at the beginning of that line. The cursor can then be moved within the
specified line and characters can be inserted or deleted. Executing "EDIT ."
will bring up the previously entered program line. "." refers to the last line ref-
erenced by an EDIT statement, LIST statement, of error message.
Purpose:
To list the program currently in memory on the screen or other
specified device
Format:
LIST [<line>] [-[<line>]]
LLIST [<line>] [-[<line>]]
<line> is a valid line number from 0 to 63339.
Remarks:
LIST displays a program or a range of lines on the screen or other specified
device.
If the line range is omitted, the entire program is listed. "LIST." displays or
prints the line that was last input or was last displayed.
Output can be aborted by entering CTRL+B or CTRL+X. If CTRL+B is used,
listing can be resumed by entering CTRL+B again.
LIST/LLIST Commands can be written into the program, but the following
statement will not be executed and the ASCII Unit will enter command input
wait status.
The LIST Command automatically outputs to port 1 and the LLIST Command
automatically outputs to port 2.
The LLIST Command outputs data to the device "LPRT" independently of the
OPEN statement.
When the dash (-) is used in a line range, three options are available:
If only the first number is given, that line and all higher numbered lines
are listed.
2.
If only the second number is given, all lines from the beginning of the
program through the given line are listed.
3.
If both numbers are given, the inclusive range is listed.
Examples:
LIST -500
List everything up to line 500
LIST 10-100
List all lines ranging from 10 through 100
Section 4-2
27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents