cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

KepWare Publish data IoTGateway MQTT using demand poll in Modbus

JL_10428205
1-Newbie

KepWare Publish data IoTGateway MQTT using demand poll in Modbus

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,

 

1 ACCEPTED SOLUTION

Accepted Solutions
wcui
14-Alexandrite
(To:JL_10428205)

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.

wcui_0-1666234476541.png

 

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.

wcui_1-1666234717355.png

 

The driver help can be opened from kepware configuration windows as below.

wcui_2-1666234893648.png

 

View solution in original post

1 REPLY 1
wcui
14-Alexandrite
(To:JL_10428205)

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.

wcui_0-1666234476541.png

 

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.

wcui_1-1666234717355.png

 

The driver help can be opened from kepware configuration windows as below.

wcui_2-1666234893648.png

 

Top Tags