Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi Expert Community,
I have an application that requires to read data using Modbus serial at a fix rate (for example every 5 minutes). The complete data read by Modbus should be published using IoT Gateway MQTT. However an additional requirement is that using the System tag for DemandPoll, the MQTT client should trigger a new Modbus acquisition and also get the new set of values published immediately.
Can you suggest how the scan rate in Modbus and in IoTGateway should be configured?
Regards,
Solved! Go to Solution.
To configure Polling mode for Modbus RTU serial driver, you can refer to the following section "Device - Scan Mode" in dirver help.
Basically add the _DemandPoll system tag to MQTT Agent and update the tag by MQTT Broker publishing to True.
For how to send tag data to MQTT borker with MQTT agent, please also rerfer to IOT Gateway plug-in help. You will need to add tags to Agent and configure Topic with Agent. If you have any technical issues during testing, I suggest to open a support case for further help.
The driver help can be opened from kepware configuration windows as below.
To configure Polling mode for Modbus RTU serial driver, you can refer to the following section "Device - Scan Mode" in dirver help.
Basically add the _DemandPoll system tag to MQTT Agent and update the tag by MQTT Broker publishing to True.
For how to send tag data to MQTT borker with MQTT agent, please also rerfer to IOT Gateway plug-in help. You will need to add tags to Agent and configure Topic with Agent. If you have any technical issues during testing, I suggest to open a support case for further help.
The driver help can be opened from kepware configuration windows as below.