Specific configuration for Beckhoff ADS interface

This section describes the steps required to set up communication via Beckhoff ADS.

Data types

Data type Mikado

Data type PLC

Remark

Bool

BOOL

Integer

INT

Double

REAL

Pose

ARRAY [1..6] OF REAL

The six values represent x,y,z,R1,R2 and R3 of the Mikado pose

PoseList

ARRAY [1..6*n] OF REAL

The length of the array must be a multiple of 6. Each 6 neighboring values represent a pose.

String

STRING

StringList

ARRAY [1..n] OF REAL

Mikado to PLC only. The length of the array is not subject to any restrictions.
The values within the Mikado-StringList are converted to doubles.

Note

If a PoseList or StringList in Mikado is longer than the available space on the PLC side, the Mikado-side list is truncated to the available length.

Configuration

In addition to the fieldbus adapter parameters, the following ADS-specific parameters can be set in the configuration file ads.yaml:

# for publishing joint state:
publish_robot_state: false # if true, the robot joint state is published every cycle
current_joint_position_array_name: MAIN.OutCurrentJointPositions # Name of main robot's joint positions on PLC
main_robot_prefix: "" # prefix as stated in the xacro-macro of main robot (works at least for staeubli)

# publishing additional robots (optional):
additional_robot1_prefix: "example_prefix" # prefix as stated in xacro-macro of additional robot
additional_robot1_variable: MAIN.OutJointPosOfRobotWithExamplePrefix # Name of additional robot's joint positions on PLC

additional_robot2_prefix: "example_prefix2"
additional_robot2_variable: MAIN.OutJointPosOfRobotWithExamplePrefix2
# .. and so on

# network settings:
local_net_id: ""
remote_ip: ""
remote_net_id: ""
remote_port: 851

# IOs
input_array_name: GVL.inputBytes  # IO-Name on PLC
output_array_name: GVL.outputBytes # IO-Name on PLC

# robot control:
enable_robot_control: false # if true, the robot is controlled via ADS-interface
publish_robot_status: false # if true, the robot status is published every cycle
trajectory_array_name: MAIN.InTrajectory
in_motion_name: MAIN.OutInMotion
writing_trajectory_allowed_name: MAIN.OutWritingTrajectoryAllowed