Ls (list program), General – Yaskawa SMC–4000 User Manual
Page 160
150
SMC–4000 User Manual
LS (List Program)
[General]
DESCRIPTION:
The LS command sends a listing of the program memory out of the port that issued the command. The
listing will start with the line pointed to by the first parameter, which can be either a line number or a label.
If no parameter is specified, it will start with line 0. The listing will end with the line pointed to by the
second parameter--again either a line number or label. If no parameter is specified, the listing will go to the
last line of the program.
ARGUMENTS: LS n,m
where
n,m are valid numbers from 0 to 2000, or labels. n is the first line to be listed, m is the last.
_LS returns the line number the program will return to after the current subroutine ends. If a program is not
running, the value is negative and reports the number of program lines in the controller.
USAGE:
EXAMPLES:
HINT: Remember to quit the Edit Mode
While Moving
Yes
Default Value
0,Last Line
In a Program
No
Default Format
---
Command Line
Yes
Can be Interrogated
No
Used as an Operand
No
:LS #A,6
List program starting at #A through line 6
002 #A
003 PR 500
004 BG
005 AM
006 WT 200