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 Smart Pendant 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.

Software requirements

The minimum requirements for the controller software, which can be viewed under System Info → Version:

Controller

Version

YRC1000

YAS2.80

YRC1000micro

YBS2.45

DX200

DN2.21

FS100

FS3.30

A software version that is too low can, among other things, trigger alarm 1020; see Error codes / Alarms.

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 (YRC1000: LAN2 oder LAN3). 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) System → Security, default password: 16 times the digit 9), then the IP address of the controller can be set under System → Setup → Option Function → Lan Interface Setting. Any changes must then be confirmed by pressing Enter to apply them.

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.

Hint

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 (Robot → Connection).

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/motoman_files.

The directory can also be opened via the Mikado Assistant using the corresponding button (Robot → Connection → Open directory).

  • The MotoRos subfolder contains the MotoROS program files. As the programs are controller-specific, they are located in further subfolders corresponding to the various robot controller models. For the YRC1000 controller, for example, the required files are located in MotoRos/YRC1000/.... From the available files, you need to select a single suitable MotoROS program.

    • The file name consists of the controller type, the version number and the update rate at which the robot position is sent to Mikado, e.g. MotoRosYRC1_19122_200hz.out

    • MotoROS files with a name that ends on _noStartJob are configured for applications with control transfer, see Giving up control over the robot temporarily.

  • The Inform subfolder contains the job file INIT_ROS.JBI and the configuration file IONAME.DAT. In this case too, the correct files must be selected from several available options in the relevant subfolders. For standard single-arm setups, the files from the subfolder Inform/DX200, FS100, YRC1000/single_arm/ should be used. The other subfolders and files are intended for special setups, e.g. those with additional external axes.

The selected files must be copied to a USB storage device and then inserted into the Pendant or the robot controller for file transfer. All files must be stored in the root directory of the storage device, or in a subdirectory with a simple name.

The next section explains how to copy these files to the robot controller.

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): System → Security, default password: 16 times the digit 9

  2. go to System → Setup, select Option Function

    • Set MotoPlus Func to USED

      • If the message Initialise related files? SRAMDRV.DAT appears, you can confirm it by selecting YES

    • Set MOTOMAN DRIVER to USED

  3. 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

  4. if the file is not in the root directory of the USB memory device, navigate to the corresponding folder using Motoplus APL → Folder

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

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

Restart in Online Mode:

  1. Set key switch to TEACH mode

  2. Exit Maintenance Mode

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

      • System → CPU Reset, Online, select Reset, or power off and on

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

  3. Only for DX200 and YRC:

    • 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.

  4. Check MotoROS status:

    1. go to MotoPlus APL → MotoPlus MONITOR → Application Run Flow

      • ensure, that exactly one version of MotoROS is installed and active

    2. go to MotoPlus APL → MotoPlus MONITOR → Application Property List

      • ensure there is exactly one entry for MotoROS, with two sub-entries:

    Application Property List with MotoROS version number

    Application Property List with MotoROS version number

    1. If there are conflicts with other installed MotoPlus applications (e.g. because of thread priorities), they should be visible here.

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) System Info → Security, default password: 16 times the digit 9

  2. select the USB memory under Ext Memory → Device

  3. navigate to the correct folder in Ext Memory → Folder

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

  5. verify under Job → Select Job 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) System Info → Security, default password: 16 times the digit 9

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

  4. Activate the pseudo input CMD REMOTE SEL. The signal number is #87015 (YRC) or #82015 (FS100, DX200)

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

    2. Press Interlock + Select together to activate the input

  5. If GPIO via Yaskawa IO-Board is used: ensure, that Pseudo Input Sig #87013 (YRC) or #82013 (FS100, DX200) is active

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

  7. 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.

Hint

Mikado can move the robot only while it is in the remote mode. Mikado will always show a red Motion Possible status while the robot is in teach or auto mode.

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.

Error codes / Alarms

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.

Hint

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

  • Alarms 1020, 1050, and 4207: This error indicates that the MotoROS application cannot be loaded. The cause may be a corrupted file, a faulty USB drive, or an incompatible Yaskawa controller software version; see Software requirements.

  • 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.

  • 4414: Excessive Segment: 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:

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

    • If this error occurs without any apparent external influence (e.g., due to minor positional changes at the end of a rapid movement), it is possible to allow the robot driver to perform new attempts if necessary, i.e., to attempt again to start the movement. When the robot arm is still “settling” into position, this allows repeat attempts, so the movement can be successfully executed after the expected start position has been reached.

      To do this, you can configure a parameter in the file launch/manipulator.launch.xml:

      • The value for retry_traj_on_invalid_start_pos must be set to a positive number, e.g., "5":

      <include file="$(find motoman_driver)/launch/robot_interface_streaming_yrc1000.launch">
        <arg name="robot_ip" value="$(arg robot_ip)" />
        <arg name="retry_traj_on_invalid_start_pos" value="5" />
      </include>
      
      • In older cells, created with versions of the mikado-robots-motoman package prior to 3.2.0, the line <arg name="retry_traj_on_invalid_start_pos" value="0" /> does not yet exist.

        It must be inserted immediately after the line <include...$(motoman_driver)/launch/robot_interface_streaming....

      Warning

      The value should not be set higher than 10, as otherwise unexpected deviations in the robot’s position might be ignored, and a movement command might be sent to the robot due to this setting, although it is in an unexpected starting position.

  • For MotoROS 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.

  • For detailed error analysis it is possible to establish a telnet connection to the robot from a Konsole window on the Mikado controller.

    After Mikado restart a message Starting new connection to should be visible. If the telnet connection attempt fails or no such messages are visible, the network communication is probably faulty.

    If ping <ROBOT_IP> works, but telnet <ROBOT_IP> or the robot connection of Mikado fails (no message Starting new connection in the telnet output), then one possible cause is that multiple network interfaces of the Mikado controller are configured to be in the same sub-net / IP range.

    $ telnet 192.168.255.1
    
    Trying 192.168.255.1...
    Connected to 192.168.255.1.
    Escape character is '^]'.
    
    VxWorks login: MOTOMANrobot
    Password:
    
    # nach Mikado Neustart: wenn solche Meldungen sichtbar sind,
    # funktioniert zumindest die Netzwerkkommunikation:
    
    Starting new connection to the ... Server
    

    The Mikado robot status Motion Possible should turn green, as soon as the telnet connection prints In StartTrajMode. With this message MotoROS indicates it is ready to move the robot.

    Warning

    Avoid pressing the key combination Ctrl+C while the telnet session is in the foreground, as this command is sent to the robot and causes issues there. The connection can be terminated using Ctrl+D.

Giving up control over the robot temporarily

After installation of the MotoROS program and the INIT_ROS job on the robot, INIT_ROS will always run automatically.

Usually Mikado then takes over control of the robot motion.

The task Execute robot program can be used to give up and take back motion control of the robot.

  • When providing the program name "robot_disable", control of the robot is temporarily given up. This guarantees that Mikado will not interfere when external PLCs or other robot jobs move the robot.

  • Running the task with program name "robot_enable" reverts this and will regain motion control for Mikado. If this task fails, the robot status signal of Mikado will show this as an error.

To prohibit Mikado from taking control of the robot after startup, the value control_on_startup should be set to false in config/manipulator.yaml.

If the output ROS_READY is not set when robot_enable is executed, MotoROS will report Error 5009 "ROS not ready".

The same error is generated, when ROS_READY is not set during Mikado launch and the file config/manipulator.yaml has control_on_startup set to true or if it is missing.

Running other INFORM jobs on the robot

There are different options for the combination of the MotoPlus Application MotoROS and INFORM:

  1. MotoROS is installed in a version with _noStartJob Suffix. This MotoROS will never force the execution of an INFORM Job.

    1. An INIT_ROS Job with a terminating RET return statement can be used. To transfer control to Mikado, invoke the job using CALL JOB:INIT_ROS. For details, see Call INIT_ROS and RET to the caller.

    2. No INIT_ROS job is used. The necessary Outputs ROS_READY and ROS_DONE are set in a different INFORM Job, see Setting of the required outputs without INIT_ROS.

  2. MotoROS is installed in a version without _noStartJob suffix. MotoROS then automatically starts the INFORM Job INIT_ROS and takes over robot control, independent of which INFORM job was running before that moment. The execution of other INFORM Jobs can be done from INIT_ROS using CALL JOB, see INIT_ROS as default job, other jobs might get run using CALL JOB.

Call INIT_ROS and RET to the caller

Run CALL JOB:INIT_ROS from another robot program to allow Mikado to move the robot.

Finally, control is given up again and RET causes the calling robot program to continue execution. Such a INIT_ROS.JBI example job file can be found in Inform/DX200, FS100, YRC1000/single_arm_noStartJob_ret/.

ROS_DONE is set as soon as robot_disable has been executed. For details see Giving up control over the robot temporarily.

Setting of the required outputs without INIT_ROS

Here no INIT_ROS job is used. The required outputs ROS_READY and ROS_DONE are set in a different INFORM job.

It’s necessary for the INFORM job to execute a WAIT statement while Mikado controls the robot, as this condition is checked by MotoROS.

ROS_DONE is set as soon as robot_disable has been executed. For details see Giving up control over the robot temporarily.

' reset MotoROS signals
DOUT OT#(890) OFF
DOUT OT#(889) OFF
' wait for MotoROS to notice
TIMER T=0.05
' set ROS_READY
' allows control by MotoROS
DOUT OT#(889) ON
WAIT OT#(890)=ON
' reset ROS_DONE
DOUT OT#(890) OFF
' Mikado gave up robot control

INIT_ROS as default job, other jobs might get run using CALL JOB

It’s possible to interrupt the execution of Mikado INFORM jobs on the robot controller temporarily in order to run other jobs.

For this, the alternative job file INIT_ROS.JBI from the folder Inform/DX200, FS100, YRC1000/single_arm_call_job_main can be used. More information on the installation of job files can be found under Copying the files.

This example INIT_ROS.JBI job checks two signals on start-up and, depending on the result, either hands control of the robot over to Mikado or calls the MAIN job instead:

IF ( IN#(1871)=ON AND IN#(1872)=OFF ) THEN
 CALL JOB:MAIN
ENDIF

Switching to another job only works when Mikado is not already in control of the robot or has released it, as described under Giving up control over the robot temporarily.

Reading and writing 16-bit registers

The task Execute robot program provides use of various special functions of Yaksawa robots in Mikado:

  • With the program name "read_mreg", a 16-bit register value can be read from the robot controller

    • The index of the register can be provided as the integer argument

    • The value read from the register will be in the output parameter return value

  • With the program name "read_mreg", a 16-bit register value can be read from the robot controller

    • The index of the register can be provided as the integer argument

    • The value to be written is passed as the double argument