Professional Documents
Culture Documents
This manual explains the Debug Operation used to debug motion programs.
Preface
Debug operations are used to debug motion programs and to increase efficiency of program
development.
The following machine controller and MPE 720 program software support the debug operations.
Machine Controller MP2000 Series
MPE720 Ver.5.00 or later
Open the Motion Editor in Online Mode to turn ON and OFF the debug operations. With the
Debug Operation, you can:
Set break points and execute a single-block operation
Have an individual debug function for each motion program
View the status of each task in a call tree
Display all of windows for programming and debugging motion programs in the Engineering
Manager Window.
Contents
Preface ...............................................................................................................................................1
Windows for Debugging Motion Programs ....................................................................................2
Motion Task Manager......................................................................................................................3
Motion Editor ..................................................................................................................................5
Break Point List...............................................................................................................................9
-1
Windows for Debugging Motion Programs
The Motion Program Debug Operation Function operates in the Engineering Manager Window.
In the Engineering Manager, the windows for creating and debugging motion programs can be
displayed.
The windows used for debugging motion programs are shown below.
Motion Editor
Motion Task Manager
Quick Reference
-2
Motion Task Manager
By using the Motion Task Manager, you can display a list of motion tasks and their status. For
example, you can:
Display the tasks in execution and stop status in a hierarchical structure.
Set a selected task in debug mode.
Update the display depending on the status of the tasks being performed.
The display is updated only when the task is in debug mode and in single-block hold status.
Table 1 shows the icons used in the Motion Task Manager Window.
-3
[Procedures]
Opening the Motion Task Manager Window
Select View - Motion Task Manager from the Engineering Manager Menu to open the Motion
Task Manager Window.
-4
Motion Editor
A motion program can be edited in the Motion Editor Window.
By using the Motion Editor, you can:
Display the task line numbers and block numbers on the left.
Use icons and keyboard shortcuts for functions and tools.
Display a sub-program in a program with nested loops. Right-click the sub-program and execute
Read Motion Sub-program command to display a sub-program that was written with an MSEE
command.
Set four break points in one motion task.
Note: The set break points are deleted when the debug mode is turned OFF.
[Procedures]
Debugging
To start debugging, select Debug from the Engineering Manager Menu or pop-up menu. In the
Motion Editor, icons and keyboard shortcuts are used for commands for debugging. Table 2
shows the icons and keyboard shortcuts used in the Monitor Editor.
-5
Table 2 Icons and Keyboard Shortcuts for Motion Editor
-6
Fig 4 Break Point Setting Window
Table 3 shows the icons that are used to indicate the status of lines with break points.
-7
Read Motion Sub-program
-8
Break Point List
The break point list displays the status of break points of the program being debugged, and you
can:
Set or delete break points in a line or task.
Open a program with break points from the list.
Read the status of break point in individual motion tasks.
Note: When the debug operation is aborted, the information on the set break points will be cleared.
[Procedures]
Opening the Break Point List
Select Edit - Break Point List (Ctrl+ B) from the menu bar.
-9
Deleting Break Points
In the break point list, select the break point to be deleted, and then click the Delete Button.
Or, click the Add Button to display the break point setting dialog box. Select the program type,
program name, task name, and block number, and then click the Delete Button.
-10