OPC UA Commands

You are currently viewing the documentation for the latest version (2.2.2). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

In this interface, the Communication Component serves as the OPC UA server, and the robot/PLC serves as the client. All data is exposed as named nodes under the MechMind object, and the client reads and writes the value of a node by its node name.

OPC UA addresses data by node names. For the node data types and meanings, see OPC UA Nodes.

Trigger Handshake

Each command follows the same level-based handshake (consistent with the Siemens PLC Snap7 protocol):

  1. Write the input nodes (PROJECT_NUM/POINT_TYPE, etc.).

  2. Write COMMAND = command code.

  3. Set CMD_TRIGGER to 1.

  4. Wait for TRIGGER_ACKNOWLEDGE = 1 (the server has accepted the command).

  5. Set CMD_TRIGGER to 0 (reset by the robot itself).

  6. Wait for TRIGGER_ACKNOWLEDGE = 0 (command completed), and then read STATUS_CODE and the result nodes.

Node Data type Direction Meaning

COMMAND

Int32

Input

Command code (cmd_type)

CMD_TRIGGER

Boolean

Input

Trigger bit: set to 1 to issue a command, and reset to 0 after reading the results

TRIGGER_ACKNOWLEDGE

Boolean

Output

Trigger acknowledge: set to 1 when the server accepts the command, and reset to 0 when the command is completed (falling edge = completed)

STATUS_CODE

Int32

Output

Status code (success/error)

HEARTBEAT

Boolean

Output

Heartbeat, toggles periodically

It is recommended to use the falling edge of TRIGGER_ACKNOWLEDGE to determine completion: the server executes a command synchronously within the same cycle before resetting the ACK. Therefore, when the ACK returns to 0, the results are guaranteed to be ready.

Command 101: Trigger Mech-Vision Project

Description

This command triggers the Mech-Vision project to run. This command does not return poses. For the calling sequence, see the six steps in Trigger Handshake.

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

POSE_COUNT_REQ

Int32

Expected number of poses (0 = all)

POINT_TYPE

Int32

Pose type: 0 = none, 1 = current point, 2 = current flange pose, 3 = predefined joints

ROBOT_JPS

Float[6]

Robot joints (by pose type)

ROBOT_POSE

Float[6]

Robot flange pose (by pose type)

Output Parameters

Only common nodes (TRIGGER_ACKNOWLEDGE, STATUS_CODE).

Command 102: Get Vision Results

Description

This command obtains the vision results output by Mech-Vision (a series of vision points).

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

Output Parameters

Node Data type Description

SEND_POSE_COUNT

Int32

Number of poses

SEND_POSE

Float[240]

Pose block (40 × 6, sliced by count)

SEND_LABEL

Int32[40]

Labels

SEND_TOOL_INDEX

Int32[40]

Tool numbers

Command 103: Switch Mech-Vision Parameter Recipe

Description

This command switches the parameter recipe used by the Mech-Vision project.

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

MODEL_NUM

Int32

Parameter recipe ID

Output Parameters

Only common nodes.

Command 105: Get Planned Path from Mech-Vision

Description

This command obtains the planned path (a series of waypoints) from Mech-Vision.

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

POINT_TYPE

Int32

Pose type: 1 = joints, 2 = pose

Output Parameters

SEND_POSE_COUNT/SEND_POSE/SEND_LABEL/SEND_TOOL_INDEX (same as Command 102).

Command 106: Get Gripper DO List from Mech-Vision

Description

This command obtains the vision DO list (multi-section gripper).

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

DO_NUM_PER_GROUP

Int32

Number of DO signals per group

Output Parameters

Node Data type Description

DO_LIST

Int32[64]

DO signal list

Command 110: Get Custom Data from Mech-Vision

Description

This command obtains custom vision data.

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

Output Parameters

Node Data type Description

SEND_POSE_COUNT

Int32

Number of data entries

CUSTOM_DATA

Float[400]

Custom data, 40 × 10

SEND_POSE

Float[240]

Pose block

Command 111: Get Vision Move Data from Mech-Vision

Description

This command obtains the vision move planning data from Mech-Vision.

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

POINT_TYPE

Int32

Result type: 1 or 2

Output Parameters

Node Data type Description

SEND_POSE_COUNT

Int32

Number of poses

SEND_POSE

Float[240]

Pose block

PLANNING_VISUAL_RESULT

Float[1600]

Planning vision results, 40 × 40

CUSTOM_DATA

Float[400]

Custom vision data, 40 × 10

PLANNING_VISUAL_MOVE_INDEX

Int32[120]

is_visual / move_type / speed, 40 each

Command 201: Trigger Mech-Viz Project

Description

This command triggers the Mech-Viz project to run. This command does not return poses.

Input Parameters

Node Data type Description

POINT_TYPE

Int32

Pose type: 0 = none, 1 = current point, 2 = predefined joints

ROBOT_JPS

Float[6]

Robot joints

ROBOT_POSE

Float[6]

Robot flange pose

Output Parameters

Only common nodes.

Command 202: Stop Mech-Viz Project

Description

This command stops the running Mech-Viz project.

Input Parameters

None (only common nodes).

Output Parameters

Only common nodes.

Command 203: Set Branch Exit in Mech-Viz

Description

This command sets the exit port of a branch.

Input Parameters

Node Data type Description

BRANCH_NAME

Int32

Branch name

BRANCH_OUTPORT

Int32

Exit port number

Output Parameters

Only common nodes.

Command 204: Set Current Index for Mech-Viz

Description

This command sets the current index of an Index-type move.

Input Parameters

Node Data type Description

INDEX_NAME

Int32

Name of the Index-type move

INDEX_ORDER

Int32

Index number

Output Parameters

Only common nodes.

Command 205: Get Planned Path from Mech-Viz

Description

This command obtains the planned path (a series of waypoints) from Mech-Viz.

Input Parameters

Node Data type Description

POINT_TYPE

Int32

Pose type: 1 = joints, 2 = pose

Output Parameters

SEND_POSE_COUNT/SEND_POSE/SEND_LABEL/SEND_TOOL_INDEX (same as Command 102).

Command 206: Get Gripper DO List from Mech-Viz

Description

This command obtains the DO list.

Input Parameters

Node Data type Description

DO_NUM_PER_GROUP

Int32

Number of DO signals per group

Output Parameters

Node Data type Description

DO_LIST

Int32[64]

DO signal list

Command 210: Get Vision Move Data or Custom Data from Mech-Viz

Description

This command obtains the vision move planning data or custom data from Mech-Viz.

Input Parameters

Node Data type Description

POINT_TYPE

Int32

Pose type: 1 = joints, 2 = pose

Output Parameters

Same as Command 111 (SEND_POSE_COUNT/SEND_POSE/PLANNING_VISUAL_RESULT/CUSTOM_DATA/PLANNING_VISUAL_MOVE_INDEX).

Command 501: Input Object Dimensions to Mech-Vision Project

Description

This command inputs the dimensions of an object (such as a carton) to Mech-Vision.

Input Parameters

Node Data type Description

PROJECT_NUM

Int32

Mech-Vision project ID

BOX_SIZE

Float[3]

Length/width/height (mm)

Output Parameters

Only common nodes.

Command 502: Input Outer Move Pose to Mech-Viz

Description

This command inputs a pose for the outer move of Mech-Viz.

Input Parameters

Node Data type Description

OUTER_POSE

Float[6]

Pose (XYZ + Euler angles)

Output Parameters

Only common nodes.

Command 601: Subscribe to Custom Messages

Description

This command registers a subscription to custom messages. Subscribed messages are returned asynchronously through the CUSTOM_MSG node. Input parameters: none (only common nodes).

Output Parameters

Node Data type Description

CUSTOM_MSG

Int32

Custom message code

Command 701: Calibration

Description

This command acquires calibration points for the hand-eye calibration (extrinsic calibration) of the Mech-Eye camera.

Input Parameters

Node Data type Description

ROBOT_MOVE_STATUS

Int32

Motion status: 1 = completed, 2 = failed

ROBOT_JPS

Float[6]

Current robot joints

ROBOT_POSE

Float[6]

Current robot flange pose

Output Parameters

Only common nodes.

Command 901: Get System Status

Description

This command checks whether the Mech-Vision project, Mech-Viz project, and camera are ready.

Input Parameters

None (only common nodes).

Output Parameters

Only common nodes.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.