beautypg.com

Bk (breakpoint), Configuration – Yaskawa SMC–4000 User Manual

Page 78

background image

68

SMC–4000 User Manual

BK (Breakpoint)

[Configuration]

DESCRIPTION:

For debugging. Causes the controller to pause execution of the given thread at the the given program line
number (which is not executed). All other threads continue running. Only one breakpoint may be armed at
any time. After a breakpoint is encountered a new breakpoint can be armed (to continue execution to the
new breakpoint) or BK will resume program execution. The

SL (Single Step)

command can be used to

single step from the breakpoint. The breakpoint can be armed before or during thread execution.

ARGUMENTS: BK n, m

where

n is an integer in the range of 0 to 1999, which is the line number at which to stop/ n must be a valid line
number in the chosen thread.

m is an integer in the range of 0 to 7. It designates the chosen thread.

USAGE:

OPERAND USAGE:

_BK tells whether a breakpoint has been armed, whether it has been encountered, and the program line
number of the breakpoint.

= -LineNumber: Breakpoint armed

= LineNumber: Breakpoint encounterred

= -2147483648: Breakpoint not armed

RELATED COMMANDS:

SL (Single Step)

TR (Trace Mode)

EXAMPLES:

While Moving

Yes

Default Value of m

0

In a Program

No

Command Line

Yes

BK3

Pause at line 3 (the 4th line) in thread 0

BK 5

Continue at line 5

SL

Execute the next line

SL 3

Execute the next 3 lines

BK

Resume normal execution