Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! 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.