Editing editing and temporary registration – Yaskawa MP900 Series Machine Controller for Standard Operation User Manual
Page 338

5.5 Debugging Motion Programs
5-43
5
3 In the following program, the MPS101 subroutine, which has been called from the MPM001 main pro-
gram using the Step In command, is active. In addition, the MPM002 program, which is unrelated to
the debug operations, is open.
In this example, MPM002, which is unrelated to the active window MPS101, can be edited, but
MPM001 cannot be edited because it is still in the debug operations. MPM002 cannot be saved.
Editing
Editing and Temporary Registration
The edit operation is based on the Motion Editor edit functions. Press the SHIFT + Enter
Keys or selecting Debug (T) and then Code Generator (L) to temporarily store altered data
on the Machine Controller. To register the data permanently, select File (F) and then Save
(S). Refer to the next section Updating Files for details.
Temporary registration on the Machine Controller is designed to perform a test run for
debug operations. Update the file only when there are no problems with the test run.
If the temporary save step is omitted and editing executed, the steps for temporarily saving
the data will be executed automatically. The compilation will be executed first and, if no
errors occur, the temporary save step will be executed. The execution is disabled if an error
occurs during compilation.
An example of the editing operation is shown below.
1. Set the edit cursor at line 6 to insert an allocation statement.
・
・
・
00005
MPM001
・
・
・
・
・
・
00005
MPS101
・
・
・
・
・
・
00005
MPM002
・
・
・
Main program
Motion Editor
Motion Editor
Motion Editor
Subroutine
opened from the
main program
Program unrelated to
the debug operations
00004
00005
00006
dw12=12;
dw13=13;
;
Cursor