![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243221.webp)
206
Motion Perfect Tools
Section 7-5
Creating and Opening Programs
There are several ways that programs can be opened or created.
Opening Programs
Existing programs can be edited by opening an Editor Window using one of
the following methods.
• Select Edit from the Program Menu and then selecting the required pro-
gram.
• Click the Edit Button on the Control Panel to open an Editor Window for
the selected program.
• Double-click a program in the Program List Box on the Control Panel.
Creating Programs
New programs can be created using one of the following methods.
• Select New from the Program Menu. The default name can be changed
before opening the Editor Window. Click into the Program Name Text
Box, enter the new name and then press the Edit Button.
• Click the Create New program button on the Control Panel.
When opening an Editor Window, Motion Perfect performs a CRC check
between the program on the MC Unit and the program in the project. If the
CRCs are different, the user will be advised to perform a project check to
obtain further information on the differences.
Basic Editing Operations
The basic editing operations that can be used in an Editor Window are out-
lined below. The operation can be accessed by selecting the corresponding
button on the top of the Editor Window or can be selected from one of the
menu's of the window.The operations correspond to the buttons displayed in
the picture below (from left to right).
Saving Program
This enables the user to force the program to be saved on the computer hard-
disk. Motion Perfect saves the file automatically when the Editor Window is
closed or the program is compiled.
Printing Program
This will print the code of the program.
Cut, Copy and Paste
Windows-style cut, copy paste operation can be performed using the mouse
and/or the keyboard. Use the following procedure to cut or copy text.
Select the text, and cut or copy it to the clipboard.
Move the cursor to the insert point, and paste the text on the clipboard.
Listing and Jumping to
Labels
A list of all labels in the program in the current Editor Window will be dis-
played. To jump to a specific label, click the desired label in the display to
enter it in the text box at the bottom of the window and press the OK button.
The cursor will move to the specified label in the program. Alternatively, a
specific line number can be selected by entering the value of the line number
text box at the bottom of the window, and the pressing the OK button.
Finding Text
The program in the current Editor Window can be searched for a specific text
string. One can specify the search to be case sensitive and the search direc-
tion. The user can continue the program while the Find Window is displayed,
by simply clicking back to the Editor Window. The Find Window will remain on
the display until the Cancel Button is clicked.