Skip to content

Optional Function

Handle-manipulated robotic arm

This article mainly introduces the installation methods and button definitions of two types of gamepads: the Microsoft X - Box 360 pad and the Logitech Gamepad F710.

Diagram

Overview of handle (Microsoft X-Box 360 pad)

The handle utilizes 2.4 GHz technology for wireless communication and is equipped with a receiver. It has a working radius of 15 m (this distance is dependent upon the service environment), and consists of 15 keys and two joysticks.

Picture of handle

Control method

  1. Make sure that the robotic arm is dis-energized, and install the 2.4 GHz receiver into USB port, as shown in follow Figure.

Installation of handle receiver

  1. Wait for the robotic arm to get started, and switch the handle's on/off key to "ON". Turn on the power supply to the handle. When the controller beeper emits a beep, it indicates that the connection is successful.

On/off key of handle

  1. Introduction to keys and control modes of the handle.

Keys on the handle

  • SELECT Button: A short press toggles between position and attitude teaching and joint teaching control.
  • MODE Button: A long press switches the handle mode. The indicator light at the front of the handle can switch between red and green, representing XInput and DirectInput handle modes respectively. A successful mode switch is confirmed by a beep from the controller when the button is held down.

Position and orientation control mode

Before switching to the position and orientation control mode, it is necessary to adjust the robotic arm to resemble the configuration shown in Figure 12.6 either through drag-and-drop teaching or single-joint control mode, to facilitate position and orientation control. The left direction keys, and L1 and L2 keys on the handle shown in the position and attitude diagram respectively control the motions of the robotic arm in X+, X-, Y+, Y-, Z+, and Z- directions. See follow Table for details.

Orientation of robotic arm before position and orientation control through the handle

Single-joint control mode

After switching to the single-joint control mode, the left direction keys, L1 and L2 keys, the right function keys, and R1 and R2 keys on the handle respectively control the forward and reverse motions of each joint.

Functions of handle keys

Handle keysHow to usePosition and orientation control modeSingle-joint control mode
MODE keyPressSwitch between two modes
Left direction key - UpPress/HoldMotion in Y+ direction on base frameJoint 1 moves in the forward direction
Left direction key - DownPress/HoldMotion in Y- direction on base frameJoint 1 moves in the reverse direction
Left direction key - LeftPress/HoldMotion in X+ direction on base frameJoint 2 moves in the forward direction
Left direction key - RightPress/HoldMotion in X- direction on base frameJoint 2 moves in the reverse direction
Left L1 keyPress/HoldMotion in Z+ direction on base frameJoint 3 moves in the forward direction
Left L2 keyPress/HoldMotion in Z- direction on base frameJoint 3 moves in the reverse direction
Right function key - YPress/HoldOrientation change in Y+ directionJoint 4 moves in the forward direction
Right function key - APress/HoldOrientation change in Y- directionJoint 4 moves in the reverse direction
Right function key - XPress/HoldOrientation change in X+ directionJoint 5 moves in the forward direction
Right function key - BPress/HoldOrientation change in X- directionJoint 5 moves in the reverse direction
Right R1 keyPress/HoldOrientation change in Z+ directionJoint 6 moves in the forward direction.
Right R2 keyPress/HoldOrientation change in Z- directionJoint 6 moves in the reverse direction

Overview of handle (Logitech Gamepad F710)

The gamepad uses 2.4G technology for wireless communication, features dual vibration feedback motors, and a 4 axis directional joystick. It is equipped with one receiver that supports hot swapping.

alt text

Control method

  1. Make sure that the robotic arm is dis-energized, and install the 2.4 GHz receiver into USB port 1, as shown in follow Figure.

Installation of handle receiver

  1. Wait for the robotic arm to get started. Turn on the power supply to the handle. When the controller beeper emits a beep, it indicates that the connection is successful.
  2. Introduction to keys and control modes of the handle.

alt text

  • START Button: A short press toggles between position and attitude teaching and joint teaching control.
  • Input Mode Switch Button: Switches the gamepad mode. Toggle the switch to change the gamepad mode. Hearing a beep from the controller indicates a successful switch.

Position and orientation control mode

Before switching to the position and orientation control mode, it is necessary to adjust the robotic arm to resemble the configuration shown in Figure 12.6 either through drag-and-drop teaching or single-joint control mode, to facilitate position and orientation control. The left direction keys, and LT and LB keys on the handle shown in the position and attitude diagram respectively control the motions of the robotic arm in X+, X-, Y+, Y-, Z+, and Z- directions. See follow Table for details.

Orientation of robotic arm before position and orientation control through the handle

Single-joint control mode

After switching to the single-joint control mode, the left direction keys, LB and LT keys, the right function keys, and RB and RT keys on the handle respectively control the forward and reverse motions of each joint.

Functions of handle keys

Handle keysHow to usePosition and orientation control modeSingle-joint control mode
MODE keyPressSwitch between two modes
Left direction key - UpPress/HoldMotion in Y+ direction on base frameJoint 1 moves in the forward direction
Left direction key - DownPress/HoldMotion in Y- direction on base frameJoint 1 moves in the reverse direction
Left direction key - LeftPress/HoldMotion in X+ direction on base frameJoint 2 moves in the forward direction
Left direction key - RightPress/HoldMotion in X- direction on base frameJoint 2 moves in the reverse direction
Left LB keyPress/HoldMotion in Z+ direction on base frameJoint 3 moves in the forward direction
Left LT keyPress/HoldMotion in Z- direction on base frameJoint 3 moves in the reverse direction
Right function key - YPress/HoldOrientation change in Y+ directionJoint 4 moves in the forward direction
Right function key - APress/HoldOrientation change in Y- directionJoint 4 moves in the reverse direction
Right function key - XPress/HoldOrientation change in X+ directionJoint 5 moves in the forward direction
Right function key - BPress/HoldOrientation change in X- directionJoint 5 moves in the reverse direction
Right RB keyPress/HoldOrientation change in Z+ directionJoint 6 moves in the forward direction.
Right RT keyPress/HoldOrientation change in Z- directionJoint 6 moves in the reverse direction

IO extension

Function introduction

In different scenarios, the number of IOs of the robotic arm may not be enough to meet the actual demand. In this case, an external IO controller is needed. The external IO controller mentioned herein can connect eight external digital input sensors and eight external digital output signal ports.

Both the bottom controller of the robotic arm and the end of the robotic arm can connect external IO controllers. Here an example of a connection to the interface of the robotic arm controller is given. If customers wish to connect an external IO controller to the interface at the end of the robotic arm, please refer to the robotic arm protocol or interface document.

Use of serial IO controller

Serial IO controller

Equipment wiring

Interface at end of robotic armSerial IO controller
Power output (pink/brown)DC12−24 V +
Power supply GND (gray/purple)DC12−24 V -
RS485_A (yellow)RS485A
RS485_B (green and yellow)RS485B

The power supply to the IO controller has a wide-range voltage from 12 V to 24 V. After the wiring is completed, it is necessary to set the robotic arm controller to output the corresponding voltage according to the power supply required by the sensor.

Serial IO controller and 16-wire cable

Wiring of controller: 485 interface and 24 V power supplyWiring of controller: connection of physical wires
Wiring of controller: 485 interface and 24 V power supplyWiring of controller: connection of physical wires

Setting of communication and power supply of robotic arm

There are several ways to enable end-effector communication and power supply for the robotic arm. Here, we take setting the controller's RTU communication protocol via the JSON protocol as an example.

Use SocketTool to send the following JSON protocol string to the controller through TCP:

  1. Configure the communication port ModbusRTU mode.
json
{"command":"set_controller_rs485_mode","mode":1,"baudrate":115200}

After the command is issued successfully, the SocketTool will receive feedback from the controller, as shown below:

json
{"command":"set_controller_rs485_mode","set_state":true}
  • If the returned value of set_state is true, it indicates that the setting is successful.

  • If the returned value of set_state is false, it indicates that the setting fails.

  1. Set the power output with an output voltage of 24 V.
json
{"command":"set_voltage","voltage_type":3}

After the command is issued successfully, the SocketTool will receive feedback from the controller, as shown below:

json
{"command":"set_voltage","state":true}
  1. Write single-coil data, and set relay 1 of serial IO controller to output.
json
{"command":"write_modbus_rtu_coils","address":10,"data":[1],"type":1,"device":1}

After the command is issued successfully, the SocketTool will receive feedback from the controller, as shown below:

json
{"command":"write_modbus_rtu_coils","write_state":true}
  1. Write single-coil data, and set relay 1 of serial IO controller to close the output.
json
{"command":"write_modbus_rtu_coils","address":10,"data":[0],"type":1,"device":1}

After the command is issued successfully, the SocketTool will receive feedback from the controller, as shown below:

json
{"command":"write_modbus_rtu_coils","write_state":true}
  1. Read the discrete input, and read signal 0.
json
{"command":"read_modbus_rtu_input_status","address":0,"device":1,"num":1,"type":1}

After the command is issued successfully, the SocketTool will receive feedback from the controller, as shown below:

json
{"command":"read_modbus_rtu_input_status","read_state":true}
  1. The test completes. Set the communication port to R485 serial mode.
json
{"command":"set_controller_rs485_mode","mode":0,"baudrate":115200}

After the command is issued successfully, the SocketTool will receive feedback from the controller, as shown below:

json
{"command":"set_controller_rs485_mode","set_state":true}
  1. Set the power output with an output voltage of 0 V.
json
{"command":"set_voltage","voltage_type":0}

After the command is issued successfully, the SocketTool will receive feedback from the controller, as shown below:

json
{"command":"set_voltage","state":true}

Field-effect transistor module

Function introduction

There are four channels of multiplexing digital IO at the controller position of the robotic arm, which can be switched to digital output through the teach pendant or commands, but the default output current is 2 mA only. For control of high-power equipment, such as motors, bulbs, relays, and solenoid valves, the field-effect transistor module can be optionally configured.

The controlled power at the output end of field-effect transistor module is within 100 W.

Field-effect transistor module

Use of field-effect transistor module

The robotic arm IOs should be set to the output mode, and connect the input signals of the field-effect transistor module respectively.

The specific wiring method is as shown in the figure below:

Wiring diagram of field-effect transistor module