Ls (list program), General – Yaskawa LEGEND-MC User Manual

Page 166

Advertising
background image

156

LEGEND-MC User’s 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 499, 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:

NOTE: Remember to quit the Edit Mode <cntrl> Q prior to giving the LS command.

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

Distributed Control

No, Local

:LS #A,6

List program starting at #A through line 6

002 #A

003 PR 500

004 BG

005 AM

006 WT 200

Advertising