Configure Custom Communication Trigger Rules

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

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. In addition, you need to configure custom communication trigger rules to trigger the custom communication project.

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

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, and specify the custom communication 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, the trigger condition defaults to "Trigger upon receiving data" and cannot be modified. When the service receives any data from the peer, the software triggers the custom communication project.

Configure Custom Communication Trigger Rules (PLC-Type Services)

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

PLC-type custom communication services include Siemens S7 Client, Modbus TCP Slave, and Mitsubishi MC Client custom communication services.
  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, specify the register variable value that satisfies the trigger condition in the Trigger condition column, and then specify the custom communication project to be triggered in the Project to trigger column.

    config custom trigger plc
    For a PLC-type custom communication service, when the service reads the specified register variable on the remote PLC and its value changes to the trigger value, the software triggers the custom communication project.

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.