Set up ABB Controller¶
Required options¶
The robot-side part of the ABB connection was written in RAPID and uses both parallel tasks and sockets. The following options are therefore required:
623-1: Multitasking
672-1: Socket Messaging (in newer RobotWare versions this is part of 616-1: PC Interface)
At least RobotWare OS version 5.13 is required for some socket options. For installation it is recommended to use RobotStudio, it is available in a free Basic version and is assumed in the following instructions.
Robot Web Services (RWS) is required for the direct control of grippers and IOs; this is included in RobotWare OS 6.0. Compatibility with RWS 2.0 (RobotWare OS 7.0) has not yet been implemented. Alternatively, grippers and IOs can also be controlled via Profinet or other fieldbuses.
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 ABB 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. We are working on a detailed description of the network configuration of the ABB controller. For the time being, information on the network configuration of the controller can be found in the manufacturer’s user manual.
Warning
Make sure that the IP addresses of the Mikado Controller and ABB Controller are in the same address space and that the subnet masks match.
Then enter the IP address of the robot controller in the Mikado Assistant under “Parameters” -> “Robot” in the corresponding field and save the settings.
Installing the programs¶
In order for the ABB robot to be controlled by Mikado, the corresponding programs must be copied to the robot controller and set up there. You can find the required RAPID programs at
/opt/isys-vision/mikado/robot_programs/abb/rapid
or directly via the corresponding button in the Mikado Assistant (“Parameters” -> “Robot” -> “Open directory”). Create a new folder called “ROS” on the robot controller and copy all files from the above-mentioned directory to it. The following section explains how to set up these programs on the robot controller in more detail.
Setting up the programs¶
The driver consists of three programs running in parallel:
ROS_stateServer.mod Transmits the current joint position and the state of the robot
ROS_motionServer.mod Receives trajectories from Mikado
ROS_motion.mod Executes the received trajectories
Separate tasks must now be created for these three programs. To do this, go to “Controller” -> “Configuration” -> “Controller” -> “Task”. You can now add the required tasks by right-clicking and selecting “New Task”:
Name |
Type |
TrustLevel |
Motion Task |
|---|---|---|---|
ROS_StateServer |
Semistatic |
NoSafety |
No |
ROS_MotionServer |
Semistatic |
SysStop |
No |
T_ROB1 |
Normal |
Yes |
Now you need to create some signals, go to “I/O System” -> “Signal” and add the following signals by right-clicking and selecting “New Signal”:
Name |
Type |
|---|---|
signalExecutionError |
Digital Output |
signalMotionPossible |
Digital Output |
signalMotorOn |
Digital Output |
signalRobotActive |
Digital Output |
signalRobotEStop |
Digital Output |
signalRobotNotMoving |
Digital Output |
signalRosMotionTaskExecuting |
Digital Output |
These must now be connected to the system outputs. To do this, go to “I/O System” -> “System Output” and right-click and add “New System Output”:
Signal name |
Status |
Arg 1 |
Arg 2 |
|---|---|---|---|
signalExecutionError |
Execution Error |
N/A |
T_ROB1 |
signalMotionPossible |
Runchain OK |
N/A |
N/A |
signalMotorOn |
Motors On State |
N/A |
N/A |
signalRobotActive |
Mechanical Unit Active |
ROB_1 |
N/A |
signalRobotEStop |
Emergency Stop |
N/A |
N/A |
signalRobotNotMoving |
Mechanical Unit Not Moving |
ROB_1 |
N/A |
signalRosMotionTaskExecuting |
Task Executing |
N/A |
T_ROB1 |
Now the autostart of the programs must be activated, go to “Controller” -> “Automatic Loading of Modules” and add “New Automatic Loading of Modules” by right-clicking:
File |
Task |
Installed |
All Tasks |
Hidden |
|---|---|---|---|---|
HOME:/ROS/ROS_common.sys |
NO |
YES |
NO |
|
HOME:/ROS/ROS_socket.sys |
NO |
YES |
NO |
|
HOME:/ROS/ROS_messages.sys |
NO |
YES |
NO |
|
HOME:/ROS/ROS_stateServer.mod |
ROS_StateServer |
NO |
NO |
NO |
HOME:/ROS/ROS_motionServer.mod |
ROS_MotionServer |
NO |
NO |
NO |
HOME:/ROS/ROS_motion.mod |
T_ROB1 |
NO |
NO |
NO |
After restarting the system (ideally P-Start), the robot can now be controlled by Mikado.
Robot Control¶
To control robots with Mikado, use Flex Pendant:
Auto Mode
Motors On
Reset program pointer
Start
If Mikado shows “No Motion Possible” in Mikado: is another machine running RobotStudio and currently in control of the robot? That machine needs to release control in order for Mikado to be able to gain control over the robot.
On “Timeout” in Mikado:
Can the robot be pinged?
ping robot-ipin Konsole
Are the three tasks ROS_StateServer, ROS_MotionServer and T_ROB1 running on the robot?
If necessary activate motors, reset program pointer and press Start on the Flex Pendant
Configuring gripper and IO with Robot Web Services 1.0 (only up to RobotWare OS 6.x)¶
Robot Web Services (RWS) is required for the direct control of grippers and IOs; this is included in RobotWare OS 6.0. Compatibility with RWS 2.0 (RobotWare OS 7.0) has not yet been implemented.
Alternatively, grippers and IOs can also be controlled via Profinet or other fieldbusses.
ABB’s Robot Web Service (RWS) is used to control simple grippers and IOs in general. Enter the following data in the config/manipulator.yaml file of your cell:
rws_username: Default User
rws_password: robotics
rws_port: 80
rws_digital_in_path: MIK_DI
rws_digital_out_path: MIK_DO
We recommend changing the user name and password on the controller!
Mikado uses internal numbers for the individual inputs and outputs, these are appended to the prefix rws_digital_in_path, so if input 23 is read in Mikado, din23 is read on the ABB IRC in this example.
If RWS is used, the access level has to be changed in RobotStudio, as the default level only allows reading access.
By mapping the IOs we can unlock access:
Configuration > I/O System > Signal
Right Click > New Signal …
Create new IO with a chosen name. Important: use the scheme prefix + number, e.g. MIK_DO1
Type of Signal: Digital Output
Assigned to Device: leave empty
Access Level: All (allows remote access)
Now a cross connection can be created:
Configuration > I/O System > Cross Connection
Right Click > New cross connection …
Name of choice
Resultant: name of the actual IO, e.g. ABB_0_DO1 or a fieldbus IO
The IO signal numbers for gripper operation can now be set in Mikado Assistant or in the file config/gripper.yaml.