User guide
94
6250 Servo Controller User Guide
Step
➃
You will now execute program prog1. The commands will be displayed as each command in
the program is executed.
Command Description
> EOT13,1Ø,Ø Set End-of-Transmission characters to <cr>,<lf>
> RUN prog1 Run program prog1
The response will be:
*PROGRAM=PROG1 COMMAND=A1Ø.ØØØØ
*PROGRAM=PROG1 COMMAND=AD1Ø.ØØØØ
*PROGRAM=PROG1 COMMAND=V5.ØØØØ
*PROGRAM=PROG1 COMMAND=L3
*PROGRAM=PROG1 COMMAND=GOSUB PROG3 LOOP COUNT=1
*PROGRAM=PROG3 COMMAND=D8ØØØ LOOP COUNT=1
*PROGRAM=PROG3 COMMAND=GO1 LOOP COUNT=1
*PROGRAM=PROG3 COMMAND=END LOOP COUNT=1
*PROGRAM=PROG1 COMMAND=LN LOOP COUNT=1
*PROGRAM=PROG1 COMMAND=GOSUB PROG3 LOOP COUNT=2
*PROGRAM=PROG3 COMMAND=D8ØØØ LOOP COUNT=2
*PROGRAM=PROG3 COMMAND=GO1 LOOP COUNT=2
*PROGRAM=PROG3 COMMAND=END LOOP COUNT=2
*PROGRAM=PROG1 COMMAND=LN LOOP COUNT=2
*PROGRAM=PROG1 COMMAND=GOSUB PROG3 LOOP COUNT=3
*PROGRAM=PROG3 COMMAND=D8ØØØ LOOP COUNT=3
*PROGRAM=PROG3 COMMAND=GO1 LOOP COUNT=3
*PROGRAM=PROG3 COMMAND=END LOOP COUNT=3
*PROGRAM=PROG1 COMMAND=LN LOOP COUNT=3
*PROGRAM=PROG1 COMMAND=END
The format for the Trace mode display is:
Program Name ... Command ... ..... or
Program Name ... Command ... Loop Count or
Program Name ... Command ... Repeat Count or
Program Name ... Command ... While Count
Step
➄
To exit the Trace mode, enter the following command:
Command Description
> TRACEØ Disables the Trace mode
Single-Step Mode
The Single-Step mode allows you to execute one command at a time. Use the STEP command
to enable Single-Step mode. To execute a command, you must use the !# sign. By entering a
!# followed by a delimiter, you will execute the next command in the sequence. If you follow
the !# sign with a number (n) and a delimiter, you will execute the next n commands. The
Single-Step mode is demonstrated below (using the programs from the Trace mode above).
Step
➀
Enter Single-Step mode:
Command Description
> STEP1 Enables Single Step Mode
Step
➁
Enable the Trace mode and begin execution of program prog1:
Command Description
> TRACE1 Enables the Trace mode
> RUN prog1 Run program prog1
Step
➂
To execute one command at a time, use the !# command:
Command Description
!# Executes one command
The response will be:
*PROGRAM=PROG1 COMMAND=A1Ø.ØØØØ