4.
Starting use
4. Starting use
This chapter explains the series of software operations in a tutorial method for first-time users of this personal
computer support software.
Here, a robot program will be created using the personal computer support software, and the program operation
will be confirmed with simulation. Then, the program will be downloaded to the robot controller and the
operation confirmed by operating the actual robot.
4.1. Starting
First, start by starting up the personal computer support software.
(1) Connect the cable with the following procedure.
Connect the personal computer and controller with an RS-232-C
cable(RS-MAXY-CBL or RS-AT-RCBL).
Connect the personal computer side to the standard RS-232-C
connector (RS-232-C serial port).
Connect the controller side to the RS-232-C connector on the
front of the controller.
(2) Turn the controller power ON.
(3) Start up the personal computer support software with the
following procedure.
Turn the personal computer power ON. The following Main
screen will start up automatically. If the screen does not start up,
select the Windows [Start] button, and then [Program] →
[MELFA ENG](or [MELFA mini ENG]) → [CRn-500 PC
Support Software].
Fig. 4-1 Main screen
(Note)
When using Windows NT, double-click on the MelfaTool.exe icon in the folder
(normally C:/Program Files/Melfa ENG) in which the personal computer tools are installed.
Fig. 4-2 Windows screen when Start button is selected)
Basic functions 4-19
4. Starting use
4.2. Creating a program
Next, try editing an actual program.
(1) Starting the program editing tool
Click on the [Program Edit] button on the Main screen. The program editing tool, as shown below, will start up.
The editing screen will appear.
Fig. 4-3 Entire screen from Main screen to Program editing screen
(2) Newly creating a program file
To create a new program file, first click on [New] under the [File] menu, or click on the button.
The following type of editing screen will appear.
Command editing screen
Position variable editing screen
Fig. 4-4 Editing screen
4-20 Basic Windows operations
4. Starting use
(3) Editing the program
Here, a simple program using the three positions P10, P11 and P12 will be created. The program contents will
move the robot in order between the three points. The list is shown below.
Program name: P100
10 GETM 1 ‘Declare to move mechanism No. 1 robot
20 MOV P10 ‘Move to position P10
30 MOV P11 ‘Move to position P11
40 MOV P12 ‘Move to position P12
An example for inputting the first line is shown. The upper side of the editing window is the program command
statement editing screen.
Input as shown below using the keyboard, and then press the Enter key.
(1st line: "10 GETM 1")
The cursor will move to the next line. To change the contents of the program line, change the contents at the
line, and then always press the Enter key at that line.
Input line return!
(Press Enter key)
Input the remaining program in the same manner.
(Editing window containing the following program.)
Creating a program 4-21
4. Starting use
4.3. Teaching a position
(1) Editing the position variable
Next, edit the values of the position variables P10, P11 and P12 input in the program command statement to the
following values. The values marked with an × in the table are not input here.
Caution: The following values are for
the RV-20VA type robot.
Position variable name X Y Z A B C L1 L 2 Flag1 Flag2
P10 1060 -680 870 × × × × × 6 0
P11 900 300 1800 × × × × × 6 0
P12 933 0 1588 × × × × × 6 0
(Unit:mm)
(2) Add a position variable.
The lower side of the editing screen is the position variable editing screen.
List of Cartesian type variables
List of joint type variables
Fig. 4-5 Position variable editing screen
Input the position variable P10 value as shown below.
When the [Add] button is clicked on, the Position variable addition screen will appear.
4-22 Teaching a position
4. Starting use
Fig. 4-6 Addition screen
Input the variable name "P10" in the [Variable Name] area.
(Variable name area)
Input each value (X: 1060, Y: -680, Z: 870, Posture; 6, Multi-rotation: 0) in the [X] [Y] [Z] [Posture] and
[Multi-Rotation] areas.
(Value input area)
In this case, the [Additional axis 1] [Additional axis 2] [A] [B] and [C] values are not defined, so remove the
checks.
Remove check
(Removing the check)
heck the described details, and click on the [Add] button. The position variables will be registered into the
program, and the P10 position variable will appear in the position variable list as shown below.
Fig. 4-7 State with P10 in list
Add the remaining two position variables in the same manner.
Teaching a position 4-23
4. Starting use
4.4. Confirming the operation with simulation
Next, try confirming the operation of the created robot program using simulation. Select [Execute, Stop] →
[Automatic Operation] from the [Simulation] menu.
Select
Fig. 4-8 Simulation menu
The following type of robot type and hand/workpiece setting screen will appear. In this case, select "RV-20A"
from the model list, and click on the [OK] button.
Click
Select RV-20A
Not used in this case
(Model and hand/workpiece setting screen)
The following type of simulation screen will appear, and simulation of the robot will start. Confirm that the robot
moves as written in the program.
4-24 Confirming the operation with simulation
4. Starting use
Try changing the viewpoint.
The viewpoint can also be changed by the following
mouse operations:
• Left button (left and right) →Rotation of Z-axis center
• Left button (up and down) → Rotation of X-axis center
• Left + right buttons (left and right) →
Rotation of Y-axis center
• Right button (up, down, left and right) → Move
• [Shift] key + left button (up and down) →
Enlargement/reduction
Fig. 4-9 Simulation screen
Did the robot move correctly? If it moved correctly, try changing the position variable value and moving the robot.
Refer to the Robot Language Instruction Manual enclosed with the controller for the definitions of the position
variables.
Caution
When not using the RV-20A type robot, change the program position variable values to match the
model being used. Then check the movement with simulation, and then check the movement with
the actual robot, as explained in the following section.
After confirming the movement, select [Simulation] under the [Simulation View] menu, and close the Simulation
screen.
Select
Fig. 4-10 Simulation menu
Confirming the operation with simulation 4-25
4. Starting use
4.5. Saving the program
After confirming the robot movement with simulation, save the program in the controller with the following
procedure. Here, the program will be saved in the controller with the name "100".
Click on [Save As->Robot] under the [File] menu, or click on the button. A screen for designating the
program.
A window for designating program name appears when [Save As -> Robot] is selected.
Fig. 4-11 File dialog
When button is clicked, a dialog shown on the right appears. Select [ROBOT] and click on the [OK]
button.
(Caution: When saving the program in the personal computer, click on the radio button next to "PC".)
Fig. 4-12 Select a target
Input "100" in the [File Name] area, and then click on the [OK] button.
To save the program in a robot controller other than robot controller 1, select the robot controller you want to
save the program to.
Fig. 4-13 File name and OK button
A dialog showing the save work progression will appear, and the edited program will be saved in the robot
controller.
Fig. 4-14 Screen announcing save
4-26 Saving the program
4. Starting use
4.6. Exiting the editing screen
Click on "Close" under the [File] menu, or click on the [x] button on the editing screen. The editing screen will
close. This completes the program editing work.
Fig. 4-15 "Close" in menu and Exit button
Exiting the editing screen 4-27
4. Starting use
4.7. Confirming the movement
Try starting the "P100" program with the robot controller's operating panel. Did the program run as anticipated?
Try monitoring the robot movement
When the [Monitoring Tool] button on the Main screen is clicked on, the monitoring tool will start.
Click on [(4) Program Monitor] to start the program monitor.
Fig. 4-16 monitor menu
Look at the program monitor and confirm the robot movement and program.
Fig. 4-17 Program monitor
4-28 Confirming the movement
4. Starting use
4.8. Exiting the operations
Did the robot move correct? Finally, exit the personal computer support software.
(1) Exiting the “Personal Computer Support Software”
Exit the program editing tool and monitoring tool. Each tool will exit when [Exit] is selected from under the [File]
menu.
Fig. 4-18 Exiting the application
(2) Exiting window
Exit windows by selecting [Shut Down…] -> [Shut down the computer?] -> [OK] under the [Start] button. Do not
turn the personal computer off until a message indicating that it is okay to turn the personal computer power
OFF appears on the screen. Depending on the personal computer, the power may turn OFF automatically.
Setting the screen 4-29
4. Starting use
4-30 Confirming the movement