ctag
Hi,

I'm writing a basic UI for creating the Modbus configuration file. The project's still in an non-useful alpha state, but I hope to bring real functionality soon.

Screenshot
2016-07-21-192537_1280x800_scrot.png 
Right now the program is just a simple interface which allows you to create any number of devices and then specify their parameters. You cannot export to a configuration file yet.

The project has a To Do list built into the readme. I'm open to additions, suggestions, bugs, etc.

The project's source.

Thanks!
Reply 2 0
thiagoralves
Good job ctag, it looks awesome! This is much better than editing the config file on a text editor. I have only one suggestion. Is it possible to have the list of devices on the left (on a tree view) and the parameters on the right? I think it is more intuitive... [smile]
Reply 0 0
ctag
That's an excellent idea! Implemented now:

2016-07-22-143221_666x520_scrot.png 
Reply 2 0
ctag
The utility now saves a config file [biggrin]

Next up will be reading an existing config file.
Reply 1 0
vorrias
Hi ctag

Very nice HMI. Is it in C++ or Python?. We are doing a similar in Python. When we ready we will publish it here.
Reply 0 0
vorrias
Sorry ctag looking it again it is a modbus configurator. A nice addition of course towards making better PLCOPEN things.
Reply 0 0
ctag
Hi vorrias,

Yeah, this is just the configuration file maker, in C++/Qt. I'm looking forward to seeing the HMI [smile]

I don't like HTML, but this configuration generator really lends itself to a webpage, so I'm making another version which is just a page that lets you do the same thing. A demo of it can be viewed at https://ctag.github.io/modbusconf/.
Reply 0 0
ctag
The HTML page now lets you create multiple devices and download a config for them all. No error checking is done on user input. Only tested on Chromium.

@thiagoralves, does slave_id have a requirement to be unique for the config?
Reply 0 0
thiagoralves

ctag wrote:
The HTML page now lets you create multiple devices and download a config for them all. No error checking is done on user input. Only tested on Chromium.

The website looks very nice! It is much easier to create the config file now. Thanks! [thumb]

ctag wrote:
@thiagoralves, does slave_id have a requirement to be unique for the config?

It only needs to be unique for the RTU devices or for devices that have the same IP. I mean, that's the case of a TCP->RTU converter on the network. All modbus requests go to the same IP (the converter) and then it forwards the message to the proper device according to the slave_id. Different devices with different IPs can have the same slave_id. However, I don't think it should be a requirement on the program to validate this parameter.

Just a few comments:
1) Is it possible to insert a drop down menu on the Protocol field?
2) Is it possible to grey out fields according to the Protocol selection?
3) What about separating the first parameters (up to RTU Stop Bits) on an area called "Device Configuration", and the last parameters on an area called "I/O Configuration"?

Reply 0 0
ctag
Cool, in that case the system will expect the user to know what they're doing [tongue]

Good ideas [biggrin] they're implemented now. Let's get the functionality to where you want it, and then we can skin it to match and make it a page on openPLCproject.com?
Reply 0 0
ctag
If TCP is selected, should the config file have empty values for RTU parameters like the sample config does?
Reply 0 0
thiagoralves
ctag wrote:
Let's get the functionality to where you want it, and then we can skin it to match and make it a page on openPLCproject.com?

That will be perfect. I created the website on Wix though, so I don't know how much independent code I can add. I know that I can add a pure HTML block, but if you used CSS, php, etc then it might be a little more complicated.

ctag wrote:
If TCP is selected, should the config file have empty values for RTU parameters like the sample config does?

The parser will just skip those parameters if TCP is selected. However, it's always safe to leave them blank [smile]
Reply 0 0
ctag
Cool, the web version now puts in blank values for RTU if protocol is TCP.

Also, you can now open an existing config file in the web version and it will parse it and let you make changes. \o/

I'll do some polishing and wait for more changes and suggestions, then I've decided I want to do a second pass on the javascript and see if I can make it not dependent on jQuery.
Reply 0 0
thiagoralves
If you want, instead of hosting the configuration file maker in the OpenPLC website, we can host it in yours or anywhere else and have a link on the OpenPLC website pointing to it.
Reply 0 0
ctag
That'd be fine too, I'd be inclined to use the github-pages link for that then.
Reply 0 0
Reply