Setting up the Yaskawa Motoman Controller

Preparation

This description was created for the Yaskawa Motoman controller models DX200, FS100, YRC1000 and YRC1000micro (also YRC1000u). If you have any problems, please contact Mikado Support. The setup procedure differs depending on whether a Standard Pendant (small screen at the top, keypad at the bottom) or a Smart Pendant (large touchscreen, buttons on the right in the frame) is used.

Note on the Smart Pendant: Since software version 2.1, the Smart Pendant has a Classic Interface interface which emulates the Standard Pendant. This means that instructions for the Standard Pendant can also be applied to the Smart Pendant. The Classic Interface can be found under Menu → System Settings → Classic Interface → Start Classic Interface.

Software Pendant: All instructions for the Standard Pendant can alternatively be implemented with the Windows software Software Pendant.

Network configuration

A network connection between the two systems is required for communication between the robot controller and Mikado controller. To do this, first connect an Ethernet port of the Yaskawa controller to an Ethernet port of the Mikado controller. A fixed IP address and a corresponding subnet mask must then be set for both the Mikado Controller and the robot controller. The network configuration of the Mikado Controller is explained in more detail in section Network adapter. Network settings for the Yaskawa controller can be made as follows:

For this step, the controller must be started in Maintenance Mode.

Standard Pendant: To start the controller in Maintenance Mode, the Main Menu button must be held down continuously while the controller is freshly switched on and booting up. The button can be released when the logo appears on the pendant screen. Alternatively, a restart can be triggered directly into maintenance mode via System Info → CPU Reset.

Smart Pendant: From version 2.1, the Smart Pendant can emulate the interface of the Standard Pendant via Menu → System Settings → Classic Interface. By selecting Maintenance Mode instead of Connect via Special Mode → Maintenance Mode, this emulated interface can be started in Maintenance Mode.

Im Maintenance Mode:

Standard counterpart: Set security level to Management (or Advanced), then the IP address of the controller can be set under System → Setup → Option Function → Lan Interface Setting. To activate the management security level: System → Security, default password is 16x the number 9.

Smart Pendant: Under Menu → System Settings → Controller → IP Address the current IP address of the Motoman controller can be read out and changed if necessary.

Warning

Make sure that the IP addresses of the Mikado Controller and Yaskawa Controller are in the same address space and that the subnet masks match.

To enable Mikado to establish a connection, the IP address of the Yaskawa Motoman controller must be known. To do this, enter the IP address of the robot controller in the Mikado Assistant during the cell creation process or in the Robot section of an existing cell (“Parameters” -> “Robot” -> “Robot IP”).

Setting up the robot controller

Overview

The controller side of the Yaskawa Motoman ROS driver is called MotoRos and is a MotoPlus application. It uses a socket interface and several parallel applications. The standard setup for Mikado uses only a 6-joint manipulator without additional axes. The MotoRos application acts on the Motoman controller as a server for clients on the Mikado PC.

Copying the files

The files required for the setup are located in the folder: /opt/isys-vision/mikado/robot_programs/motoman/.

The directory can also be opened via the Mikado Assistant using the corresponding button (“Parameters” -> “Robot” -> “Open directory”).

The MotoRos program is located in the MotoRos subfolder, for the YRC1000 controller for example in MotoRos/YRC1000/MotoRosYRC1_/MotoRosYRC1_1910.out.

The job file INIT_ROS.JBI and IONAME.DAT for standard single-arm setups are located in the subfolder Inform/DX200, FS100, YRC1000/single_arm/.

These files should be copied to a USB data carrier, which is then inserted into the pendant.

Import MotoRos

FS100, DX200, YRC:

For this step, the controller must be started in Maintenance Mode.

Standard Pendant: To start the controller in Maintenance Mode, the Main Menu button must be held down continuously while the controller is freshly switched on and booting up. The button can be released when the logo appears on the pendant screen.

Smart Pendant: From version 2.1, the Smart Pendant can emulate the interface of the Standard Pendant via Menu → System Settings → Classic Interface. By selecting Maintenance Mode instead of Connect via Special Mode → Maintenance Mode, this emulated interface can be started in Maintenance Mode.

Im Maintenance Mode:

  1. Increase the security level to Management (or Advanced). To activate the management security level: System → Security, default password is 16x the number 9

  2. go to System → Setup, select Option Function

  3. Set MotoPlus Func to USED

  4. Set MOTOMAN DRIVER to USED

  5. select the USB memory under Motoplus APL → Device. Note: The port USB1:Controller is located on the controller, USB:Pendant or USB:PHG are located on the back of the Teach Pendant

  6. under Motoplus APL → Load (User App) select the file MotoRosXXXXX.out with Select and confirm with Enter

  7. under Motoplus APL → File List verify that MotoROS has been installed and that no other MotoPlus applications have been loaded onto the controller

Only for DX200 and YRC:

  1. Set key switch to TEACH mode

  2. Maintenance Mode beenden

    1. Standard Pendant: Restart controller to start again without maintenance mode

    2. Classic Interface: Exit maintenance mode via the power button on the top right to exit the Classic Interface

Within 30 seconds of the reboot, the alarm 8001 [10] Speed FB enabled, reboot now should appear. After restarting again, no more alarms should appear. If further alarms appear, the MotoRos Troubleshooting page can help.

Set up INFORM code

The MotoROS application uses the INIT_ROS INFORM job. The file INIT_ROS.JBI mentioned in section Copying the files must now be copied to the controller together with the IONAME.DAT file. The IONAME.DAT file contains the names of MotoRos output signals.

For the next steps, you should insert a USB memory with the two files into the teach pendant and start the controller normally (not in Mainenance Mode). Both files should be in the same folder.

Standard Pendant or Software Pendant or Classic Interface:

  1. Increase the security level to Management (or Advanced). To activate the management security level: System Info → Security, default password is 16x the number 9

  2. select the USB memory under Ext Memory → Device

  3. under Ext Memory → Load → Job select and load the INIT_ROS.JBI job

  4. under Job → Select Job verify that INIT_ROS has been installed correctly

Smart Pendant:

  1. zu Menu → Utility → File Transfer navigieren

  2. Select To Controller

  3. if the file is not in the root directory of the USB memory device, navigate to the corresponding folder using Change Folder

  4. In the job list, check the box in front of the INIT_ROS.JBI job and select Copy Files to Controller

  5. Answer the file transfer dialog with Yes

Controller configuration

Now you can verify whether the robot controller can receive commands in Remote mode:

Standard Pendant or Classic Interface:

  1. select Teach mode on the pendant using the key switch

  2. Increase the security level to Management (or Advanced). To activate the management security level: System Info → Security, default password is 16x the number 9

  3. select In/Out → Pseudo Input Sig on the counterpart

  4. Activate the pseudo input CMD REMOTE SEL. The signal number is #87015 for YRC and #82015 for FS100 and DX200 controllers

    1. move the cursor to the circle next to the appropriate input

    2. Press Interlock + Select together to activate the input

  5. Select Setup → Operate Cond. Move the cursor to the Cycle Switch in xxx Mode entries. Set all these entries to Cycle.

  6. select Remote mode on the pendant using the key switch

Smart Pendant:

  1. start the Classic Interface via Menu → System Settings → Classic Interface and select Connect

  2. select Teach mode on the pendant using the key switch

  3. Select Setup → Operate Cond. Move the cursor to the Cycle Switch in xxx Mode entries. Set all these entries to Cycle.

  4. select the power button at the top right and return to the Smart Pendant interface with Disconnect

  5. select Remote mode on the pendant using the key switch

CMD REMOTE SEL is always active with the Smart Pendant and does not need to be explicitly activated.

Connection test with Mikado

The robot controller should be fully powered up before Mikado is started. After starting Mikado, the robot should audibly activate the servomotors and display a green status in the bottom left of the status display if Remote mode has been selected on the counterpart via the key switch.

If Mikado cannot establish a connection after completing the configuration, the robot controller must be restarted.

Weiteres & Troubleshooting

Error code description: http://wiki.ros.org/motoman_driver/Troubleshooting

A Mikado-independent guide to setting up MotoRos on the controller: ROS Wiki Tutorial

Yaskawa Motoman Dokumentation: https://www.motoman.com/en-us/service-training/product-documentation

Yaskawa Motoman download area for the software counterpart: https://software.yaskawa.eu.com/programs

Yaskawa Motoman Smart Pendant updates to install version 2.1 or newer: https://yaskawapartners.com/download/smart-pendant-software/

Servomotor

In the standard configuration of the controller, the servomotors are switched to a power-saving mode after a certain period of inactivity. This is ended automatically as soon as the robot receives a new movement task.

I/O address ranges

The Mikado application only uses General Input and General Output addresses for I/O access.

The first valid Mikado I/O address for Motoman robots has index 1, but the Motoman Teach counterparts use the 1-based notation Out#001 and In#001 for general purpose I/O signals. This notation uses continuous indices, not to be confused with the global Motoman addresses of the format #87015.

Example: The Mikado output with index 1 is mapped to the Motoman address #10010 which is also referred to as Out#001 on the counterpart.

Yaskawa Motoman addresses are written in decimal notation, but the last digit describes an 8-bit byte, which is why only the digits 0-7 are valid here. The address range 10010 - 15127 therefore contains, for example, 512 bytes and 4096 valid bit addresses.

Mikado I/O addresses are continuously mapped to valid Motoman addresses, therefore Mikado input 9 corresponds to Motoman addresses In#009 and `#00020.

Address ranges of various controllers

Controller

General Input

General Output

Pseudo Input

FS100

10 - 1287

10010 - 11287

82010 - 82207

DX200

10 - 5127

10010 - 15127

82010 - 82207

YRC1000(u)

10 - 5127

10010 - 15127

82010 - 87207

MotoROS uses some fixed outputs, these are named in the IONAME.DAT:

OUT#889 ROS_READY
OUT#890 ROS_DONE
OUT#891 INIT_DONE
OUT#892 CONNECTION_SRV
OUT#893 MOTION_SERVER
OUT#894 STATE_SERVER
OUT#895 IO_SERVER
OUT#896 FAILURE

Enter acceleration limits in joint_limits.yaml

The acceleration limits of the Motoman manipulators are application-dependent and not freely accessible to the public, which is why Mikado initially uses an acceleration limit of \(1\ rad / s^2\). Especially for small and fast manipulators, it is recommended to explicitly specify higher acceleration limits for the joints in joint_limits.yaml by setting has_acceleration_limits to true and max_acceleration to the desired limit in \(rad/s^2\).

joint_1_s:
  min_position: -2.967
  max_position: 2.967
  has_acceleration_limits: true
  max_acceleration: 8.11

Caution: Acceleration limits that are set too high can lead to problems such as incorrectly detected collisions and movement aborts as well as alarm messages on the robot controller.

In the joint_limits.yaml file, the robot’s range of motion can also be restricted by reducing the min and max position of individual joints in order to prevent undesirable robot configurations when moving to Cartesian poses.

Fehlercodes / Alarm

After an alarm has occurred, details of the fault can be displayed on the control panel. There you will also find an error subcode, information on the affected joint and possible causes of the error. Information on previous alarms can be found in the standard counterpart under System Info → Alarm History. There you can switch between the display of main alarms and subordinate alarms.

If a subordinate alarm has occurred (error code 4000 or greater), this must be acknowledged by the user on the teach pendant before Mikado can move the robot again.

After a main alarm (error code 0000-3999) has occurred, the Yaskawa controller must be restarted (CPU reset or main switch Off&On).

Error 4315 Collision detected and error 1303 Arithmetic error indicate unexpected collisions or unexpectedly high resistances. If these messages occur without the robot touching its surroundings, the collision detection threshold values (Smart Pendant: Robot → Collision detection → Mode 8 (default)) should be checked and adjusted if necessary. By adapting the tool properties mass and center of gravity to reality, the reliability of collision detection can be increased and the threshold values can be lowered.

If the acceleration limits in the file joint_limits.yaml are set too high, the error 4414: Excessive Segment may also occur in addition to these two errors. The error subcode indicates the affected robot joint with an acceleration limit that is set too high.

If the start position sent to the robot deviates from the current position of the robot, various error messages may occur:

  • Fehler 3011: Trajectory start position doesn't match current robot position.

  • For error 5012, the log contains the description Incremental move rejected on MotoROS side (5012). In a connected Telnet console, the messages mpExRcsIncrementMove returned: -1 and ERROR: Controller is not ready (code: 5012). Can't process ROS_MSG_JOINT_TRAJ_PT_FULL visible.

  • These errors can occur in particular if the workpiece held by the gripper is a double fit with another part of the robot cell: The double fit can lead to a passive movement of the robot arm, as well as to an opposite movement as soon as the gripper opens again. Since the gripper opening is often directly followed by a robot movement command, there may be a deviation from the last received robot position and the error patterns mentioned above.