Set up Mitsubishi Controller¶
Tested with CR75x-D controller, software version S7 17-02-28.
Network configuration¶
First, an Ethernet connection must be established. To do this, connect the Mitsubishi robot controller from its Ethernet port to a Mikado controller Ethernet port. A new connection should now be displayed in the menu bar at the bottom right of the Mikado controller. In the case of a direct connection, this must now be set to a fixed IP and subnet mask. How a Mikado controller receives a fixed IP is explained in section Network adapter.
The IP configuration must now also be adjusted on the robot controller side. To do this, open the Parameters sub-item of the main menu on the teach panel.
Image Mitsubishi parameters Open page¶
Select the Ethernet menu here.
Bild Mitsubishi TP Ethernet¶
In the view that now appears, you can set the IP address and the subnet mask.
Warning
An IP address in the same address space as the Mikado controller must be selected for the robot controller and the subnet masks must be identical.
In addition, the ports must be set as described below so that a data connection can be established as expected.
Image Mitsubishi example IP configuration¶
Select the OPT17 device or port 10007 and press the Set… button. A selection menu appears, for which you accept the following values:
Name |
Value |
|---|---|
Mode |
Server |
Port # |
10007 |
Protocol |
Data link |
Packet type |
CR |
Allocation |
COM8 |
Image Mitsubishi example port configuration¶
No role assignment is necessary for all other ports, or existing ones should be switched off by setting the Protocol parameter to the value No procedure:
Image Mitsubishi example Set port neutral¶
The changes must now be overwritten by the teach panel on the robot controller.
Image Mitsubishi Parameter Write¶
The controller must then be restarted.
Image Mitsubishi Controller restart¶
Now enter the selected IP address of the robot controller in the Mikado Assistant under “Parameters” -> “Robot” in the corresponding field and save the settings.
Configure connection¶
The Mikado controller expects explicit line termination to be switched on. You can check or set this via the parameter menu. Enter the name NETTERM here and select Read.
Image Find Mitsubishi Netterm parameters¶
You will then see the current setting in the Parameter edit dialog. Bits 1-8 should be set to 1. Otherwise, the values must be manually set to 1 and written to the controller.
Bild Mitsubishi Netterm Parameter editieren¶
Configure programs¶
During runtime, the Mikado controller runs a program on the robot controller that takes over control. This program must not be blocked by other programs running from the start.
Open the Slot table parameter dialog from the parameter menu.
Image Open Mitsubishi Program Slot dialog¶
If necessary, remove programs from the automatic start and restart the controller.
Bild Mitsubishi Controller Slot table parameter¶
The Mikado controller requires sufficient free memory space on the robot controller. To do this, select Program list from the selection menu.
Image Select Mitsubishi Controller Program List¶
A program overview opens showing the currently available programs and the free memory space.
Image Mitsubishi Controller Memory¶
Troubleshooting: Verbindung testen¶
Troubleshooting if there is no connection to the robot after configuration and restart. In the Status bar area, you can see whether the connection to the robot has been successfully established.
Check: Robot controller and Mikado controller have the same subnet mask and different fixed IPs in the same address space
Check: The status LED of the network port does not indicate an error
Check: Can the robot be reached via ping under the entered IP
Check: Is the robot capable of communicating via R3 protocol
Check: Is a carriage return sent with R3 communication
The necessary tools for executing the Ping command and sending R3 commands from the Mikado controller:
A console must be started on the Mikado controller. The ping command to be entered is then, for example:
ping 10.0.0.4
Pinging can be canceled by pressing Ctrl + C. A positive response would look like this:
ping 10.0.0.4
PING 10.0.0.4 (10.0.0.4) 56(84) bytes of data.
64 bytes from 10.0.0.4: icmp_seq=1 ttl=64 time=1.18 ms
64 bytes from 10.0.0.4: icmp_seq=2 ttl=64 time=0.448 ms
^C
--- 10.0.0.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 0.448/0.816/1.185/0.369 ms
To send R3 commands, open a telnet connection. A connection test runs via port 10002 and should return QOk as the response:
telnet [Roboter IP] 10002
Commands can then be sent directly to the robot via port 10003:
telnet [Roboter IP] 10003
For example, the speed factor could be read as:
1;1;OVRD
For example, the robot hand / gripper could be controlled with the following commands:
1;1;CNTLON
1;1;HNDON1
The controller’s responses must always be completed with a carriage return, i.e. the cursor must move to the beginning of the new line.
Image Mitsubishi Telnet OVRD Read parameters¶
Optional: Manual control¶
If the gripper is to be controlled via robot I/O, this must be adapted or tested. The hand I/Os can be used for this purpose. If you have connected your gripper to hand I/O Port 1, for example, enter the corresponding I/O numbers in the gripper configuration (gripper.yaml). At Mitsubishi, the manual I/O numbers are in the range 900-907, both for inputs and outputs. Alternatively, you can of course also use the general I/Os of the Mitsubishi controller (these usually start at index 0, see documentation of the robot controller used).
Extract from the example configuration for a gripper on ‘Hand Port 1’:
open_hand_signal_number: 900
close_hand_signal_number: 901
is_closed_signal_number: 900
is_open_signal_number: 901
You can now check on the teach pendant whether the gripper actions are triggered. To do this, open the manual menu (separate button at the top right of the teach panel) and press the Open and Close buttons, i.e. + and -. Make sure that the function is not inverted, i.e. that Open actually triggers an opening and not a closing.
Check picture Mitsubishi hand¶
Optional: Adjust base coordinate system¶
With Create a new cell, Mikado offers the option of setting the cell coordinate system independently of that of the robot. This is useful for overhead assembly, for example, in order to obtain an intuitive world coordinate system. In order to display poses in the same coordinate system on the teach panel, the origin of the robot must also be adjusted accordingly. This is not absolutely necessary, but facilitates the integration and teaching of poses. With the Mitsubishi robot controller, adjust the robot coordinate system as follows. Select the item Movement Parameter and then the sub-item Tool.
Image Mitsubishi menu coordinate system¶
In the following dialog, you can then change the origin of the robot accordingly. In the example shown, the base is rotated by 90° around the z-axis.
Image Mitsubishi Dialog Adjust coordinate system¶
The changes are applied using the Write command. The correctness can be easily checked on the Mikado robot page, which always displays the currently read robot pose. It should now match the one displayed in the teach panel.
Using Mitsubishi robots¶
Parameters and controls¶
Speed factor:
Set speed for robot movements. Clicking on Apply sets the set value on the robot controller. Please note that maximum values are stored in the System configuration, so that you may not be able to exceed a limit value.
Reclaim robot control:
Robot control can be withdrawn from Mikado Control under certain circumstances (e.g. if you switch to manual mode on the robot). Press this button to transfer control back to Mikado Control.
Send to robot:
Mitsubshi-specific R3 commands can be entered in the text field next to this button and sent to the robot. The response message is then displayed in raw form.
You can use this control element to send any commands to the robot directly via the user interface. For example, you can control the speed of the robot or address specific robot IOs. Further information on R3 and the individual commands can be found in your robot documentation.
Turning on the robot¶
Mikado and robot can be started at the same time.
Teach Pendant must be deactivated and the controller must operate in “Automatic” mode
Other notes¶
Teaching position:
Switch to manual mode.
Activate teach pendant and switch on servos.
Move to position in jog mode.
Click on “Accept current robot pose” in Mikado.
Values of the current robot pose:
The robot pose of the controller may differ from the pose displayed in the Mikado interface. However, this is only relevant if you want to use native robot programs in combination with Mikado.
Make sure that the base coordinate system is defined correctly (Mitsubishi Teach Pendant: Parameters → Movement Parameters → Tool). Set the transformation from world coordinates to the robot coordinate system here.
x/y/z coordinates may have a slight offset due to factory calibration.