PROFINET Interface Commands

You are currently viewing the documentation for the latest version (2.1.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.

This guide introduces the PROFINET commands for the Standard Interface communication.

For details about the sending and receiving of command data, please refer to the Communication Control Workflow.

Command 101: Trigger Mech-Vision Project

Description

This command triggers the Mech-Vision project to run. When the Mech-Vision project is running, the vision system triggers the camera to capture images and then process the returned images with algorithms to produce a series of vision points or waypoints.

  • Vision point: An object recognized by Mech-Vision. A vision point has information including the object pose, label, dimensions, and custom data.

  • Waypoint: Each point that the robot reaches when moving along the planned path. A waypoint has information including the robot pose, label, and motion type.

Calling Sequence

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 101

VISION_PROJ_NUM

UINT8

1 UINT8

Mech-Vision project ID

REQ_POSE_NUM

UINT8

1 UINT8

Expected number of vision points or waypoints

ROBOT_POSE_TYPE

UINT8

1 UINT8

Robot pose type

ROBOT_POSE_JPS, ROBOT_POSE_TCP

SINT32

6 SINT32, 6 SINT32

Robot pose: ROBOT_POSE_JPS for joint position data, ROBOT_POSE_TCP for flange pose data

VISION_PROJ_NUM

You can check the ID of a Mech-Vision project in the “Project List” panel. The number before the name of a project is its ID.

REQ_POSE_NUM

This parameter specifies the number of vision points or waypoints expected to be returned by the Mech-Vision project.

If the Mech-Vision project has a Path Planning Step, this parameter indicates the expected number of waypoints. Otherwise, it indicates the expected number of vision points.
  • 0: Obtain all vision points or waypoints from the Mech-Vision project.

  • A positive integer: Obtain the specific number of vision points or waypoints from the Mech-Vision project.

    • If the total amount of vision points or waypoints output by the Mech-Vision project is smaller than the parameter value, this command will obtain the number of all vision points or waypoints.

    • If the total amount of vision points or waypoints output by the Mech-Vision project is larger than or equal to the parameter value, this command will obtain the number of vision points or waypoints as specified by this parameter.

ROBOT_POSE_TYPE, ROBOT_POSE_JPS/ROBOT_POSE_TCP

  • The robot pose type specifies the type of the pose of the real robot to be input to the Mech-Vision project. The value range is from 0 to 3.

  • The value of the robot pose is decided by that of the robot pose type.

The following table explains the relationship between ROBOT_POSE_TYPE and ROBOT_POSE_JPS/ROBOT_POSE_TCP.

ROBOT_POSE_TYPE ROBOT_POSE_JPS ROBOT_POSE_TCP Description Applicable scenario

0

0, 0, 0, 0, 0, 0

0, 0, 0, 0, 0, 0

The command does not send the robot pose to the Mech-Vision project.

If the Path Planning Step is used in the Mech-Vision project, the start point of the planned path will be the Home point set in the path planning tool.

This setting should be used if the camera is mounted in eye to hand mode and the project does not require images to be captured beforehand.

1

Current joint positions of the robot

Current flange pose of the robot

The robot joint positions and flange pose must be input to the Mech-Vision project.

This setting should be used when the camera is mounted in eye in hand mode.

This setting is recommended for most scenarios except those involving gantry robots.

2

0, 0, 0, 0, 0, 0

Current flange pose of the robot

The robot flange pose must be input to the Mech-Vision project.

This setting is recommended for scenarios involving gantry robots.

3

Custom joint positions of the robot

0, 0, 0, 0, 0, 0

This command sends custom joint positions to the Mech-Vision project.

These joint positions will be sent to the Path Planning Step in the Mech-Vision project as the start point, where the robot will move from this start point to the first waypoint of the planned path.

This setting should be used if the camera is mounted in eye to hand mode and the project requires images to be captured beforehand.

The joint positions and flange pose of the robot are floating-point numbers. Therefore, you must first multiply the floating-point values by 10,000 to convert them into 32-bit signed integers before storing them in the ROBOT_POSE_JPS or ROBOT_POSE_TCP arrays.

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 1102 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

Command 102: Get Vision Result

Description

This command obtains vision result, namely, a series of vision points, from Mech-Vision. The object pose of the vision point (namely, the output of the poses port of the Output Step) will be automatically converted to the robot’s TCP by the vision system. The process is as follows.

get tcp
  1. Convert the object pose from the form of quaternions to Euler angles.

  2. Rotate the object’s pose around the X-axis by 180° to orient its Z-axis downward.

    convert tcp

Calling Sequence

This command should be called AFTER Command 101: Trigger Mech-Vision Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 102

VISION_PROJ_NUM

UINT8

1 UINT8

Mech-Vision project ID

VISION_PROJ_NUM

You can check the ID of a Mech-Vision project in the “Project List” panel. The number before the name of a project is its ID.

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

SEND_POSE_NUM

UINT8

1 UINT8

Number of vision points

SEND_POSE_TYPE

UINT8

1 UINT8

Pose type

TARGET_POSE

SINT32

6 SINT32

Pose of a single vision point

TARGET_LABEL

SINT32

1 SINT32

Label of a single vision point

STATUS_CODE

Status code 1100 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

SEND_POSE_NUM

This parameter indicates the number of obtained vision points.

SEND_POSE_TYPE

This parameter indicates the pose type of the vision point. Its default value is 2, which stands for TCP.

TARGET_POSE

This parameter indicates the pose of a single vision point in the obtained vision results, with the pose type being TCP.

You must divide the values in the TARGET_POSE array by 10,000 to obtain the pose data.
The vision system automatically converts the object poses of vision points (i.e., data from the "poses" port of the "Output" step) into the corresponding TCPs.
get tcp
  1. Convert the object pose from the form of quaternions to Euler angles.

  2. Rotate the object’s pose around the X-axis by 180° to orient its Z-axis downward.

    convert tcp

TARGET_LABEL

This parameter indicates the label of a single vision point in the obtained vision results. Labels and poses are one-to-one paired.

  • A label must be an integer-formatted string.

  • If no label information is available, the label value defaults to 0.

Command 103: Switch Mech-Vision Parameter Recipe

Description

This command triggers Mech-Vision to switch the parameter recipe used by the project. The image below shows how to manually switch the parameter recipe for a Mech-Vision project. For details about parameter recipes, see the Parameter Recipe guide.

set recipe

Calling Sequence

This command should be called BEFORE Command 101: Trigger Mech-Vision Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 103

VISION_PROJ_NUM

UINT8

1 UINT8

Mech-Vision project ID

VISION_RECP_NUM

UINT8

1 UINT8

Parameter recipe ID

VISION_PROJ_NUM

You can check the ID of a Mech-Vision project in the “Project List” panel. The number before the name of a project is its ID.

VISION_RECP_NUM

The ID of the parameter recipe in the Mech-Vision project. The ID is a positive integer, from 1 to 99. For details on how to check the parameter recipe ID, see View the Parameter Recipe ID.

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 1107 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

Command 105: Get Planned Path from Mech-Vision

Description

This command obtains the path planned by the Mech-Vision project as a series of waypoints. The path is planned by the path planning tool, which you may enter by clicking Config wizard as shown in the image below. For details about Path Planning Step, see Path Planning.

Set the Port Type parameter of the “Output” Step in Mech-Vision to “Predefined (robot path)”.
get plan path step

Calling Sequence

This command should be called AFTER Command 101: Trigger Mech-Vision Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 105

VISION_PROJ_NUM

UINT8

1 UINT8

Mech-Vision project ID

REQ_POSE_TYPE

UINT8

1 UINT8

Waypoint pose type

VISION_PROJ_NUM

You can check the ID of a Mech-Vision project in the “Project List” panel. The number before the name of a project is its ID.

REQ_POSE_TYPE

This parameter specifies the type of waypoint poses to be obtained.

  • 1: Robot’s Joint positions (JPs)

  • 2: Tool pose of the robot

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

SEND_POSE_NUM

UINT8

1 UINT8

Number of waypoints

SEND_POSE_TYPE

UINT8

1 UINT8

Waypoint pose type

VISUAL_PT_INDEX

UINT8

1 UINT8

Position of “Vision Move” in the planned path

TARGET_POSE

SINT32

6 SINT32

Pose of a single waypoint

TARGET_LABEL

SINT32

1 SINT32

Label of a single waypoint

TARGET_TOOL_ID

SINT32

1 SINT32

The ID of the tool to be used for a single waypoint

STATUS_CODE

Status code 1103 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

SEND_POSE_NUM

This parameter indicates the number of obtained waypoints.

SEND_POSE_TYPE

This parameter indicates the pose type of waypoints. The value of this parameter is the same as that of the REQ_POSE_TYPE parameter.

  • 1: Robot’s Joint positions (JPs)

  • 2: Tool pose of the robot

VISUAL_PT_INDEX

This parameter indicates the position of the Vision Move waypoint corresponding to the “Vision Move” Step of the path planning tool in the entire path. If the path does not contain a “Vision Move” waypoint, the value of this parameter is 0.

If the planned path consists of waypoints “Fixed-Point Move_1, Fixed-Point Move_2, Vision Move, Fixed-Point Move_3” in sequence, the position of the Vision Move waypoint is 3.

In the scenario where the robot needs to send this command multiple times to receive the entire path, this parameter has slightly different interpretations in the responses. In the first response, it indicates the position of the Vision Move waypoint in the entire path, while in subsequent responses, this parameter indicates the position of the Vision Move waypoint among the remaining waypoints.

TARGET_POSE

This parameter indicates the pose of a single waypoint in the obtained planned path. The pose type can be TCP or JPs. The pose type is decided by the REQ_POSE_TYPE parameter in the command sent by the robot.

You must divide the values in the TARGET_POSE array by 10,000 to obtain the pose data.

TARGET_LABEL

This parameter indicates the label of a singe waypoint in the obtained planned path. Labels and poses are one-to-one paired.

  • A label must be an integer-formatted string.

  • If no label information is available, the label value defaults to 0.

TARGET_TOOL_ID

This parameter indicates the tool IDs of a single waypoint in the obtained planned path. Tool IDs are set in the path planning tool. The tool IDs and poses are one-to-one paired.

Command 201: Trigger Mech-Viz Project

Description

This command starts the Mech-Viz project to run. Mech-Viz plans the robot’s motion path based on the vision result output by Mech-Vision.

Right-click the project name in the “Resources” panel in Mech-Viz and select Autoload Project.

Calling Sequence

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 201

ROBOT_POSE_TYPE

UINT8

1 UINT8

Robot pose type

ROBOT_POSE_JPS, ROBOT_POSE_TCP

SINT32

6 SINT32, 6 SINT32

Robot pose: ROBOT_POSE_JPS for joint position data, ROBOT_POSE_TCP for flange pose data

REQ_POSE_TYPE, ROBOT_POSE_JPS/ROBOT_POSE_TCP

  • Robot pose type specifies the type of the pose of the real robot to be input to the Mech-Viz project. The value range is 0 to 2.

  • The value of the robot pose is decided by that of the robot pose type.

The following table explains the relationship between ROBOT_POSE_TYPE and ROBOT_POSE_JPS/ROBOT_POSE_TCP.

ROBOT_POSE_TYPE ROBOT_POSE_JPS ROBOT_POSE_TCP Description Applicable scenario

0

0, 0, 0, 0, 0, 0

0, 0, 0, 0, 0, 0

The robot pose does not need to be sent to Mech-Viz. The simulated robot in Mech-Viz will move from the set home position to the first waypoint.

The project is in the eye-to-hand setup. This setting is not recommended.

1

Current joint positions of the robot

Current flange pose of the robot

Robot joint positions and flange pose must be input to Mech-Viz. The simulated robot in Mech-Viz moves from the input joint positions to the first waypoint.

This setting is recommended for projects in the eye-in-hand setup.

2

Custom joint positions of the robot

0, 0, 0, 0, 0, 0

The robot joint positions of a point determined by teaching must be input to Mech-Viz. The input joint positions are used to trigger Mech-Viz to plan the next path in advance while the robot is not in the camera capture region, as shown below. The simulated robot in Mech-Viz moves from the input joint positions to the first waypoint.

This setting is recommended for projects in the eye-to-hand setup.

The joint positions and flange pose of the robot are floating-point numbers. Therefore, you must first multiply the floating-point values by 10,000 to convert them into 32-bit signed integers before storing them in the ROBOT_POSE_JPS or ROBOT_POSE_TCP arrays.
Why robot pose type 2 is recommended when the camera is mounted in eye to hand mode?

In eye to hand mode, the camera can perform image capturing for the next round of path planning before the robot returns to the image capture region and picking region, thus shortening the cycle time. The image below demonstrates how a robot works in the placing region.

If robot pose type is set to 1, the robot will send the current pose to Mech-Viz. It is possible that the real robot moves to other positions before reaching the first waypoint. However, the simulated robot moves directly to the first waypoint of the Mech-Viz project from the pose sent by the robot. Consequently, there may be a mismatch between the paths of the real robot and simulated robot. This mismatch can potentially lead to unpredicted safety hazards, especially if a collision is detected in the path of the simulated robot.

On the other hand, if robot pose type is set to 2, the robot will send the image-capturing pose set by teaching to Mech-Viz. Thus, the real robot can trigger the next round of path planning in Mech-Viz when the real robot is in the image-capturing region and the cycle time can be shortened.

In conclusion, robot pose type should be set to 2 for projects in eye to hand mode.

robot example

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 2103 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

Command 202: Stop Mech-Viz Project

Description

This command stops the Mech-Viz project.

Calling Sequence

This command should be called AFTER Command 201: Trigger Mech-Viz Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 202

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 2104 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

Command 203: Set Exit Port for Branch by Msg in Mech-Viz

Description

This command sets the exit port for the Branch by Msg Step. When the next Step is a Branch by Msg Step, the Mech-Viz project will wait for this command to specify the exit port.

set branch

Calling Sequence

This command should be called AFTER Command 201: Trigger Mech-Viz Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 203

VIZ_TASK_NAME

UINT8

1 UINT8

Branch by Msg Step ID

VIZ_TASK_VALUE

UINT8

1 UINT8

Number of the exit port of the Branch by Msg Step

VIZ_TASK_NAME

This parameter specifies the Step ID of the “Branch by Msg” Step. The value is a positive integer. The Step ID is displayed in the Step parameter panel. For example, the Step ID of the Step in the image above is 1.

VIZ_TASK_VALUE

This parameter specifies the exit port of the “Branch by Msg” Step. The value is a positive integer. When the parameter value is set to “N”, the Mech-Viz project exits from the port with an ID of “N-1” of the “Branch by Msg” Step. Assume that you set VIZ_TASK_NAME to 2 and VIZ_TASK_VALUE to 1. When the Mech-Viz project execution reaches the Branch by Msg Step No.2 after the PLC sends this command to the vision system, the project will take exit port 0 of the Branch by Msg Step No.2.

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 2105 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

Command 204: Set Current Index for Mech-Viz

Description

This command sets the value of the Current Index parameter of index-type Steps. Index-type Steps are Steps that include the Index section, which include Move by Grid, Move by List, Custom Pallet Pattern, and Predefined Pallet Pattern.

set index

Calling Sequence

Index-type Steps are often preceded by a “Branch by Msg” Step. The robot should call commands in this order: Command 201: Trigger Mech-Viz Project, Command 204: Set Current Index for Mech-Viz, and Command 203: Set Exit Port for Branch by Msg in Mech-Viz. This is to ensure that Mech-Viz has enough time to set the Current Index value.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 204

VIZ_TASK_NAME

UINT8

1 UINT8

Step ID of the index-type Step

VIZ_TASK_VALUE

UINT8

1 UINT8

Value of the Current Index parameter of the index-type Step

VIZ_TASK_NAME

This parameter specifies the Step ID of the Index-type Step. The value is a positive integer. The Step ID is displayed in the Step parameter panel. For example, the Step ID of the Step in the image above is 3.

VIZ_TASK_VALUE

This parameter specifies the Current Index for an index-type Step. The value is a positive integer. When this parameter value is set to N, the current index of the corresponding Step is N-1. Assume that you set VIZ_TASK_NAME to 2 and VIZ_TASK_VALUE to 1. After the PLC sends this command to the vision system, the current index value of the step with Step No. 2 will be 0.

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 2106 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

Command 205: Get Planned Path from Mech-Viz

Description

This command obtains the path planned by the Mech-Viz project as a series of waypoints.

Waypoint: Each point that the robot reaches when moving along the planned path. A waypoint has information including the robot pose, label, and motion type. Waypoints can be divided into two categories:

  • Vision Move waypoint: Waypoint corresponding to the Vision Move Step.

  • Non-Vision Move waypoints, which refer to the waypoints corresponding to move-type Steps other than the Vision Move Step.

Calling Sequence

This command should be called AFTER Command 201: Trigger Mech-Viz Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 205

REQ_POSE_TYPE

UINT8

1 UINT8

Waypoint pose type

REQ_POSE_TYPE

This parameter specifies the type of waypoint poses to be obtained.

  • 1: Robot’s Joint positions (JPs)

  • 2: Tool pose of the robot

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

SEND_POSE_NUM

UINT8

1 UINT8

Number of waypoints

SEND_POSE_TYPE

UINT8

1 UINT8

Waypoint pose type

VISUAL_PT_INDEX

UINT8

1 UINT8

Position of “Vision Move” in the planned path

TARGET_POSE

SINT32

6 SINT32

Pose of a single waypoint

TARGET_LABEL

SINT32

1 SINT32

Label of a single waypoint

TARGET_TOOL_ID

SINT32

1 SINT32

The ID of the tool to be used for a single waypoint

STATUS_CODE

Status code 2100 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

SEND_POSE_NUM

This parameter indicates the number of obtained waypoints.

SEND_POSE_TYPE

This parameter indicates the pose type of waypoints. The value of this parameter is the same as that of the REQ_POSE_TYPE parameter.

  • 1: Robot’s Joint positions (JPs)

  • 2: Tool pose of the robot

VISUAL_PT_INDEX

This parameter specifies the position of the Vision Move waypoint (i.e., the waypoint corresponding to the “Vision Move” Step in the Mech-Viz project) in the planned path. If the path does not contain a “Vision Move” waypoint, the value of this parameter is 0.

If the planned path consists of waypoints “Fixed-Point Move_1, Fixed-Point Move_2, Vision Move, Fixed-Point Move_3” in sequence, the position of the Vision Move waypoint is 3.

In the scenario where the robot needs to send this command multiple times to receive the entire path, this parameter has slightly different interpretations in the responses. In the first response, it indicates the position of the Vision Move waypoint in the entire path, while in subsequent responses, this parameter indicates the position of the Vision Move waypoint among the remaining waypoints.

TARGET_POSE

This parameter indicates the pose of a single waypoint in the obtained planned path. The pose type can be TCP or JPs. The pose type is decided by the REQ_POSE_TYPE parameter in the command sent by the robot.

You must divide the values in the TARGET_POSE array by 10,000 to obtain the pose data.

TARGET_LABEL

This parameter indicates the label of a singe waypoint in the obtained planned path. Labels and poses are one-to-one paired.

  • A label must be an integer-formatted string.

  • If no label information is available, the label value defaults to 0.

TARGET_TOOL_ID

This parameter indicates the tool IDs of a single waypoint in the obtained planned path. Tool IDs are set in the Mech-Viz project. The tool IDs and poses are one-to-one paired.

Command 206: Get Gripper DO List from Mech-Viz

Description

This command obtains the control signal list for the multi-section vacuum gripper from the Mech-Viz project. Before using this command, you must perform the following configurations in Mech-Viz.

  • In the Vision Move Step of Mech-Viz, set Select Picking Method to Box depalletizing.

    vision move viz
  • In Mech-Viz, double-click the tool name, select Depalletizing vacuum gripper for Tool type, click Configure depalletizing vacuum gripper, and then configure the DO signals according to needs.

    sucker viz

Calling Sequence

This command must be called AFTER Command 205: Get Planned Path from Mech-Viz. This means that the PLC must obtain the planned path and then obtain gripper DO signals of the Vision Move waypoint.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 206

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

DO_LIST

BITS8

8 BITS8

64 DO signals returned by the vision system

STATUS_CODE

Status code 2102 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

DO_LIST

This parameter indicates the 64 DO signals returned by the vision system. DO_LIST consists of 8 (0 to 7) bytes. Each byte consists of 8 bits (0 to 7). Therefore, the 0 to 63 bits of DO_LIST correspond to 0 to 63 DO signals. For example, bit 0 of DO_LIST corresponds to DO 0. If the value of this bit is True, the DO signal is active; if the value is False, the DO signal is inactive.

Command 501: Input Object Dimensions to Mech-Vision Project

Description

This command dynamically inputs object dimensions into the Mech-Vision project. The object dimensions are the values of the Box Size Settings parameters in the “Read Object Dimensions” Step.

When you use this command, only one Read Object Dimensions Step is allowed in the Mech-Vision project. Otherwise, the vision system will return an error.
read object dimensions

Calling Sequence

This command should be called BEFORE Command 101: Trigger Mech-Vision Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 501

VISION_PROJ_NUM

UINT8

1 UINT8

Mech-Vision project ID

EXT_INPUT_DATA

SINT32

10 SINT32

Object dimensions (length, width, height) to be input to the Mech-Vision project

VISION_PROJ_NUM

You can check the ID of a Mech-Vision project in the “Project List” panel. The number before the name of a project is its ID.

EXT_INPUT_DATA

This parameter indicates the object dimensions (in mm) to be input to the Mech-Vision project. These values are read by the “Read Object Dimensions” Step and set for the parameters Length on X-axis, Length on Y-axis and Length on Z-axis.

The object dimensions must first be multiplied by 10,000 to convert them into 32-bit signed integers before being stored in EXT_INPUT_DATA[0–2].

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 1108 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

Command 601: Get Message from Notify Step

Description

When the Mech-Vision project or Mech-Viz project is executing the Notify Step, the vision system returns the message predefined in the Notify Step.

Before sending this command, complete the following settings for the Notify Step.

  • For a Notify Step in the Mech-Vision project:

    1. Connect the “Notify” Step to the right side of another Step. The “Output” Step is taken as an example in the image below.

      notify 1
    2. Select Trigger Control Flow Given Output in the parameter panel of the “Output” Step.

      notify 5
    3. In the parameter panel of the “Notify” Step, enter Standard Interface Notify (a required value) for the Service Name. Enter a positive integer for Message, for example, 1001.

      notify 2
  • For a “Notify” Step in the Mech-Viz project:

    1. Connect the “Notify” Step to a proper Step in the workflow.

      notify 3
    2. In the parameter panel of the “Notify” Step, select Standard Interface. Enter a positive integer for Message, for example, 1000.

      notify 4

Calling Sequence

This command should be called immediately AFTER Command 101: Trigger Mech-Vision Project or Command 201: Trigger Mech-Viz Project.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 601

Output Parameters

Name Data type Size Description

NOTIFY_MSG

SINT32

1 SINT32

Message from the Notify Step

NOTIFY_MSG

Value in the Message text box of the “Notify” Step.

When the Notify Step is executed in the Mech-Vision or Mech-Viz project, the message remains in the buffer of the vision system for only three second. Therefore, you should consider the timing of calling this command to ensure successful message retrieval. Additionally, after receiving the message, the PLC should clear the data in the register.

Command 901: Get Software Status

Description

This command checks if the Mech-Vision project is ready.

Input Parameters

Name Data type Size Description

COMMAND

SINT32

1 SINT32

Command code is 901

Output Parameters

Name Data type Size Description

STATUS_CODE

SINT32

1 SINT32

Status code

STATUS_CODE

Status code 1101 is returned for a successful command execution. For a failed command execution, the specific error code is returned. For details, refer to Status Codes and Troubleshooting.

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.