Sequence Debugging Tools
After creating your sequences, you may need to debug them to ensure that they are
performing properly. The Controller provides several debugging tools.
•
In trace mode, you can trace a sequence as it is executing
•
You can single step through a program
•
Error messages can be enabled explaining why the Controller has stopped execution
Trace Mode
You can use the trace mode to debug a sequence or a program of sequences. The trace
mode allows you to track, command by command, the entire sequence. It displays to your
terminal, over the RS-232C serial link, all of the commands as they are executed. The
following example demonstrates the trace mode.
Step 1
Create the following sequence:
Command
Description
XE1
Erases sequence #1
XD1
Begins definition of sequence #1
A10
Acceleration is 10 rps
2
V5
Velocity is 5 rps
L5
Loop 5 times
GOSUB3
Jump to sequence #3
N
Ends the loop
XT
Ends the definition of sequence #1
Step 2
Define the sequence #3.
Command
Description
XE3
Erases sequence #3
XD3
Begins definition of sequence #3
D50000
Sets the distance to 50000 steps
G
Initiates motion
XT
Ends the definition of sequence #3
Step 3
Enter the following command to enable the Trace mode.
Command
Description
1XTR1
Enable the trace mode
Step 4
You will now execute the sequence. The commands will be displayed on the terminal as
each command in the sequence is run. Enter the following command:
Command
Description
XR1
Run sequence #1 - response is:
*SEQUENCE 001 COMMAND A10
*SEQUENCE 001 COMMAND V5
*SEQUENCE 001 COMMAND L5
*SEQUENCE 001 COMMAND GOSUB3 LOOP COUNT 1
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Содержание PDHX-E Series
Страница 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 15: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 68: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 92: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 98: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Страница 101: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...