![background image](http://html1.mh-extra.com/html/omron/r88a-mcw151-drt-e/r88a-mcw151-drt-e_operation-manual_742243218.webp)
203
Desktop Appearance
Section 7-4
Programs are compiled before execution. If there are any compilation errors
in the program, a window will appear briefly describing the error and giving the
number of the line containing the error. You can correct the error and repeat
the process.
Shortcut Buttons
Underneath the Program List Box you can find four shortcut buttons which are
used for (from left to right):
• Controller configuration
• Full controller directory
• Create new program
• Halt all programs
Selected Program Box
The Select Program box displays the current selected program and the avail-
able buttons, which can be performed on the selected program. These five
available functions are (from left to right):
• Run
• Step
• Stop
• Edit
• Set power up mode
Refer to 5-5-3 Program Execution and 6-3-166 RUNTYPE for details on set-
ting the power up mode.
Free Memory
The Free Memory field indicates the remaining free memory available on the
controller.
Motion Stop
The Motion Stop button stops all programs and cancels all moves in case of
emergency.
7-4-2
Editing and Running Simple Programs
This section provides a couple of typical examples of a simple programming
session using Motion Perfect. The following procedure assumes that the MC
Unit is already on-line with Motion Perfect and a new project has been cre-
ated.
Example 1
1,2,3...
1.
Create a new program in the new project by selecting New from the Pro-
gram Menu or by clicking on the Control Panel’s shortcut button “Create
New Program”.
2.
Name your program ‘OP1’ and click the OK Button.
3.
Using the editor, enter a simple program to flash output 8. Type the pro-
gram in lower case. When you press the Return Key, Motion Perfect will
update the program on the computer and in the MC Unit, and will replace
the BASIC keywords with their tokenised versions in upper case.
loop:
OP(8,ON)
WA(1000)
OP(8,OFF)
WA(1000)
GOTO loop
The program can now be run, stepped and stopped without closing the Editor
Window. The Program Menu can be used, but it is easier to use the Control
Panel as described in the previous section. The Editor Window has similar
buttons itself to do the same.
Note The command line will also remain available for immediate commands if the
Terminal Window is open.