Configure Custom Communication Trigger Rules
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:
-
On the Trigger configuration tab of Communication Configuration, click Add trigger rule.
-
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.
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. |
-
On the Trigger configuration tab of Communication Configuration, click Add trigger rule.
-
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.
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.