Communication and I/O Control

You are currently viewing the documentation for the latest version (2.1.1). 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 chapter introduces how external devices (such as PLCs), the Mech-MSR software, and laser profilers interact in 3D measurement and inspection applications.

Overview

External devices (such as PLCs) can communicate with the Mech-MSR software in the following ways:

  • Protocol-based communication

    External devices can interact with the Mech-MSR software using standard or custom industrial communication protocols.

    Mech-MSR supports various communication protocols, such as TCP ASCII, PROFINET, Mitsubishi MELSEC (MC), EtherNet/IP, Modbus TCP, and Siemens S7. For more information, refer to Protocol-Based Communication.

  • I/O control

    External devices interact with the Mech-MSR software through the general-purpose digital input or output (DI/DO) terminals of the laser profiler. This method is suitable for production scenarios that require fast response or a fixed cycle time. For more information, refer to I/O Control.

In the process, Mech-MSR needs to obtain data (surface data or point cloud) from the laser profiler. The data acquisition trigger source of the laser profiler can be one of the following:

  • Software trigger (from Mech-MSR)

  • External trigger (from a PLC, photoelectric sensor, etc.)

Typical Interaction Methods

Method Triggering a Mech-MSR project to run Data acquisition trigger source of the laser profiler How an external device obtains results

Method 1

Communication commands

Software

Communication commands

Method 2

Run upon Image Update

External

TCP ASCII protocol or DO signals

Method 3

DI signal

External

TCP ASCII protocol or DO signals

Method 4

Communication commands

External

Communication commands

Method 5

DI signal

Software

DO signal

Method 1: Protocol-Based Communication + Software Trigger

In this method, the communication between the external device and the Mech-MSR software is based on industrial protocols, and the laser profiler is triggered by Mech-MSR to acquire data.

Advantage

The laser profiler’s parameter group can be easily switched in Mech-MSR.

Disadvantage

Communication and software triggers both introduce uncertain time delays. The trigger link contains multiple non-instantaneous steps, making precise timing control difficult. Therefore, this method is not suitable for scenarios requiring acquisition synchronized with the motion platform or acquisition at a fixed rate.

method 1

The interaction between an external device, Mech-MSR, and the laser profiler is as follows:

  1. The external device sends a command to trigger the Mech-MSR project to run.

  2. The Mech-MSR project starts to run and triggers the laser profiler to acquire data.

  3. Upon Mech-MSR receiving the acquired data, the project continues its execution until completion.

  4. According to the commands sent by the external device, Mech-MSR returns results to the external device accordingly.

Method 2: Run upon Image Update + External Trigger

In this method, the external device triggers the laser profiler to acquire data. Mech-MSR automatically runs the corresponding project upon receiving the acquired data (namely that Run upon Image Update is enabled) and sends the project execution result to the external device through the TCP ASCII protocol or DO signals.

Advantage

External trigger introduces no delay and provides fast response.

Disadvantage

The laser profiler’s parameter group cannot be switched, and thus this method is not suitable when multiple Mech-MSR projects share the same laser profiler. The laser profiler’s parameter group cannot vary from project to project.

method 2

The interaction between an external device, Mech-MSR, and the laser profiler is as follows:

  1. The external device triggers the laser profiler to acquire data.

  2. Run upon Image Update is enabled for the project that uses this laser profiler in Mech-MSR. The project starts to run automatically upon receiving the data acquired by the laser profiler.

  3. According to the configuration, Mech-MSR sends the project execution results of the project to the external device.

    There are two ways for the external device to obtain the project execution results:

    • Obtaining all results in a timely manner through the Auto-push result feature supported by the TCP ASCII protocol.

    • Based on the DO configuration in Mech-MSR, obtaining the overall quality judgment result (OK or NG) of the Mech-MSR project through the general DO terminals of the laser profiler.

Method 3: DI Trigger + External Trigger

In this method, the external device triggers the laser profiler to acquire data, triggers the Mech-MSR project to run through general-purpose DI terminals, and obtains the project results through the TCP ASCII protocol or DO signals.

Advantage

External trigger introduces no delay and provides fast response.

Disadvantage

The laser profiler’s parameter group cannot be switched, and thus this method is not suitable when multiple Mech-MSR projects share the same laser profiler. The laser profiler’s parameter group cannot vary from project to project.

method 3

The interaction between an external device, Mech-MSR, and the laser profiler is as follows:

  1. The external device triggers the laser profiler to acquire data.

  2. Based on the DI configuration in Mech-MSR, the external device triggers the corresponding Mech-MSR project to run through the general-purpose DI terminals of the laser profiler.

  3. According to the configuration, Mech-MSR sends the project execution results of the project to the external device.

    There are two ways for the external device to obtain the project execution results:

    • Obtaining all results in a timely manner through the Auto-push result feature supported by the TCP ASCII protocol.

    • Based on the DO configuration in Mech-MSR, obtaining the overall quality judgment result (OK or NG) of the Mech-MSR project through the general DO terminals of the laser profiler.

Method 4: Protocol-Based Communication + External Trigger

In this method, the external device triggers the laser profiler to acquire data and communicates with the Mech-MSR software based on industrial protocols.

Advantage

External trigger introduces no delay and provides fast response.

Disadvantage

The laser profiler’s parameter group cannot be switched, and thus this method is not suitable when multiple Mech-MSR projects share the same laser profiler. The laser profiler’s parameter group cannot vary from project to project.

method 4

The interaction between an external device, Mech-MSR, and the laser profiler is as follows:

  1. The external device triggers the laser profiler to acquire data.

  2. The external device sends a command to trigger the Mech-MSR project to run.

  3. According to the commands sent by the external device, Mech-MSR returns results to the external device accordingly.

Method 5: DI Trigger + Software Trigger

In this method, the external device triggers the Mech-MSR project to run via a general-purpose DI terminal of the lase profiler and obtains the project execution result through DO signals. The laser profiler is triggered by Mech-MSR to acquire data.

Advantage

Pure hardware connection, with no programming required.

Disadvantage

External devices can only obtain the overall quality judgment result (OK or NG) of the project; measurement values and their individual judgment results are not available.

method 5

The interaction between an external device, Mech-MSR, and the laser profiler is as follows:

  1. Based on the DI configuration in Mech-MSR, the external device triggers the corresponding Mech-MSR project to run through the general-purpose DI terminals of the laser profiler.

  2. The Mech-MSR project starts to run and triggers the laser profiler to acquire data.

  3. Based on the DO configuration in Mech-MSR, the external device obtains the overall quality judgment result (OK or NG) of the Mech-MSR project through the general-purpose DO terminals of the laser profiler.

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.