Sending command with Modbus

Michael Kalmbach

Posted on 29.06.2023 16:34

I'm trying to read in from an instrument using the modbus plugin. The documentation for my instrument says "put the instrument into remote mode (a "1" command to register 100)." How do I send a "1" command?

Gregor Šmit

Posted on 05.07.2023 08:45

Dear Michael,


thank you for reaching out to us. If you would like to send 1 to the register 100 you will need to add a channel under Coils with address 100 and size 1. Then in measure mode please add Input control and select Coils 100 and enter 1. I have attached images for additional explanation.


Kind regards.


Attached files:
Michael Kalmbach

Posted on 06.07.2023 15:30

Hey Gregor,


Thank you for the quick response! Looking at your screenshots I see you have a plugin called Modbus C, is that different in some way from Modbus M (the plugin I have)? I can't figure out how to tie the input control to a specific channel.

Gregor Šmit

Posted on 07.07.2023 09:23

Dear Michael,


There is a difference between Modbus C (Client) and Modbus S (Server). The Modbus Client module will send commands to remote Modbus Server devices to read the data from their Modbus registers and will write this data to Dewesoft’s channels. There was a name change and you are using Modbus M (Master) which is now named Modbus Client.


I can't figure out how to tie the input control to a specific channel.

In measure mode you add Input control and select the appropriate Coils channel, from the Channels list on the right side. If the display type of the Input field is set to Input field then you can simply write 1 in the Input widget - please know that you should leave the Design mode. In the attachment is a video on how I achieved this.


Kind regards.


Attached files:
Michael Kalmbach

Posted on 12.07.2023 19:55

I'm seeing now what I was confused about. When I add an input control I don't have the option of connecting it to any channel (modbus or otherwise). Is there a setting I need to change somewhere to make the input control functional?

Gregor Šmit

Posted on 13.07.2023 13:41

Dear Michael,


you should be able to see the Modbus channel Coils 100. Do you have the channel Coils 100 set to used? Can you send us an image or a video of your setup or a setup file?


Kind regards.

Michael Kalmbach

Posted on 14.07.2023 15:26

Here you go, let me know if you need anything else.

Rok Kmetič
Customer Support Engineer
Posted on 20.07.2023 07:28

Dear Michael,


I have used the provided setup file and connected it to my Modbus simulator (I have attached it). It didn't require much adjusting, just to establish the connection to the simulator. Then the value went through.


Please see the video.



Kind regards.


Attached files:
Michael Kalmbach

Posted on 20.07.2023 15:24

Hey Rok,


I appreciate the feedback. Unfortunately, as documented in the screenshot I attached, when I select the input control, I'm not able to assign a channel to it. I used that same Modbus simulator.

Rok Kmetič
Customer Support Engineer
Posted on 21.07.2023 07:51

Dear Michael,


your attached picture is missing. Just to be sure can you check if the channel is ''used''? I have made another video where it is shown that if the channel is not ''used'' in the channel setup menu it does not appear in the measurement screen.


Kind regards.


Attached files:
Michael Kalmbach

Posted on 21.07.2023 17:05

I meant the screenshot in my previous post. The channel is used. It's all setup correctly per what your team has shown but still won't show up.


Attached files:
Primoz Lapi
Customer Support Engineer
Posted on 28.07.2023 13:32

Hi,


Could you send us the current setup file that you are using, so that we can check your settings?

Richard Barbosa

Posted on 18.08.2023 17:39

Hello Michael,


Did you fix the Modbus issue? I'm having the same issue trying to add the coil to the input control.


I can see the coil channel in the measure window but when I select the input control the information from the coil channel doesn't appear.

Rok Kmetič
Customer Support Engineer
Posted on 21.08.2023 10:55

Dear Richard and Michael,


could you please provide us with the setup file that is causing the problem?

Or make a screen recording of the steps needed to reproduce the problem.


Kind regards,

Rok

Login to reply to this topic. If you don't have account yet, you can signup for free account .