Command: list# or list – Rockwell Automation 1771-DB Basic Module User Manual - Series A User Manual
Page 45
Operating Functions
Chapter 5
5–8
Variations: Two variations of the LIST command are possible with the
BASIC Module.
They are:
1.
LIST [ln num] (cr)
and
2.
LIST [ln num] – [ln num] (cr)
The first
variation causes the program to print from the designated
line
number (integer) to the end of the program. The second variation
causes the program to print from the first line number (integer)
to the
second line
number (integer).
Important: You must
separate the two line numbers with a dash
(–).
Example:
READY
uLIST
u10 PRINT “LOOP PROGRAM”
u20 FOR I=1 TO 3
u30 PRINT I
u40 NEXT I
u50 END
READY
uLIST 30
u30 PRINT I
u40 NEXT I
u50 END
READY
uLIST 20–40
u20 FOR I=1 TO 3
u30 PRINT I
u40 NEXT I
Action
taken: The LIST# or LIST@ command lists the program to
the device attached to the peripheral port (LIST device).
All comments
that
apply to the LIST command apply to the LIST# or LIST@
commands. We
include these commands to permit you to make “hard
copy
printouts” of a program. A configuration plug sets the baud
rate and must match your list
device (see section 3.2.4 titled,
“Configuration Plugs”).
Also, you must configure the peripheral port
parameters to
match your particular list device (see section 5.8.1
titled,
“Peripheral Port Support – Parameter Set – CALL 30”).
5.3.3
Command: LIST
(continued)
5.3.4
Command: LIST# or LIST