Configure Custom Communication Trigger Rules

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.

This section describes how to configure custom communication trigger rules in Mech-MSR.

Custom trigger rules define when a custom communication service triggers the execution of the specified project. When a custom communication service meets the configured trigger condition, the software automatically triggers the corresponding custom communication project.

For example, when using the custom communication mode, you usually need to configure a separate custom communication project in Mech-MSR. This project is used to parse received data, execute logic judgments, and control other measurement projects. You can configure custom communication trigger rules to trigger the custom communication project.

Supported Matching Methods

Mech-MSR supports the matching methods described in the following table.

Matching Method Applicable Communication Services How to Configure the Trigger Condition

Any match

When the service reads or receives any data from the peer side, the software triggers the project.

All types of custom communication services

Select Any match in the Trigger condition column.

Contains match

When the data received by the service from the peer side contains specific content (the trigger value), the software triggers the project.

Custom communication services of the TCP Server/TCP Client type

Select Contains match in the Trigger condition column, and specify the trigger value.

Exact match

When the register variable value received by the service from the peer side is exactly identical to the trigger value, the software triggers the project.

PLC-type custom communication services

Select Exact match in the Trigger condition column, and specify the trigger value.

Range match

When the register variable value received by the service from the peer side falls within the specified range (including both boundary values), the software triggers the project.

PLC-type custom communication services

Select Range match in the Trigger condition column, and specify the range of the trigger value.

  • PLC-type custom communication services include Siemens S7 Client, Modbus TCP Master, and Mitsubishi MC Client custom communication services.

  • The 2D camera translation/rotation calibration receives calibration commands from custom communication services of the TCP Client or Server type. Make sure that the calibration commands do not conflict with the current trigger rules.

Configure Custom Communication Trigger Rules (TCP Server/TCP Client)

For a custom communication service of the TCP Server or TCP Client type, perform the following steps to configure trigger rules:

  1. On the Trigger configuration tab of Communication Configuration, click Add trigger rule.

  2. In the newly added configuration item, specify the configured custom communication service in the Communication service column, select the matching method in the Trigger condition column (if you select Contains match, specify the trigger value), and specify the project to be triggered in the Project to trigger column.

    config custom trigger tcp
    For a custom communication service of the TCP Server or TCP Client type, trigger conditions support Any match and Contains match. For details, see Supported Matching Methods.

Configure Custom Communication Trigger Rules (PLC-Type Services)

For a PLC-type custom communication service, perform the following steps to configure trigger rules:

  1. On the Trigger configuration tab of Communication Configuration, click Add trigger rule.

  2. In the newly added configuration item, specify the configured custom communication service and the register variable used to trigger the project in the Communication service column, select the matching method in the Trigger condition column (if you select Exact match, specify the trigger value; if you select Range match, specify the range of the trigger value), and then specify the project to be triggered in the Project to trigger column.

    config custom trigger plc
    • For a PLC-type custom communication service, trigger conditions support Any match, Exact match, and Range match. For details, see Supported Matching Methods.

    • A PLC-type trigger rule supports reading only the lower 16-bit registers of the variable. Therefore, the trigger value range is -32768 to 32767.

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.