Scott.Thompson

I was wondering if anyone else is using mySCADA software as the HMI/Historian for your OpenPLC projects?  The software is available at http://www.myscada.org.  The company operates out of the Czech republic.  You may use their software free of charge as long as it's for non-commerical purposes.  They sell a home edition for about $30 that can be used for home projects.

We are using OpenPLC for a project that involves replicating an electrical grid for an experiment.  The OpenPLC software is perfect for this project as we are using Raspberry Pi and Arduino hardware as a cost reduction measure.

Here's my observations so far:

- The software is simple to set up and use on Windows.  The cost (free) is certainly great.
- Just using the "Hello World" experiment, it only took my partner and I about 30 minutes to enable a SCADA to support the OpenPLC software on the simulated PLC.  The software is well documented with videos, making it very simple to use for the first time.
- We have never had any luck using the myDESIGNER software on Linux.  We've tried running it with both USER and ROOT permissions, but it never gives us an option to start a new project.  We have a ticket in for the problem now.  I'll let everyone know what they say.
- When writing COILS, mySCADA likes to send out MODBUS to "write mulitiple coils" even if it's only writing a single coil.  Their logic presents a problem when writing to OpenPLC.  Assume you have 10 coils set up on your PLC (%QX0.0 - %QX1.2).  If you write to %QX0.0 to turn the coil off, the software will turn off 8 coils (%QX0.0 - %QX0.7).  Looking at the MODBUS over the wire, it looks as if mySCADA is sending out a byte rather than a single bit.

Wondering if anyone else has used this software?  Any observations?

- Scott

Quote 0 0
thiagoralves
OpenPLC’s default SCADA software is ScadaBR. I’m planning to update OpenPLC website to add tutorials and more information about how to setup ScadaBR with OpenPLC. All the experience I’ve had with it has been great.
Quote 2 0
Josef Bernhardt
A tutorial for openscada would be very helpful! Can I help?
Quote 0 0
thiagoralves
A tutorial for openscada would be very helpful! Can I help?

Yes please! If you have anything on openscada, myscada or even ScadaBR, please post it here or directly on the website. We have changed the website a bit and now it runs off GitHub! This means that anyone can edit the website contents and submit for approval. There is a little "edit this page" link at the bottom of every page. We did this in the hope that the community will be able to collaborate more in improving documentation for the project.
Quote 0 0
Josef Bernhardt
I found a little tutorial on a website, I'm looking at that! Maybe an engineer from Brazil will help me, who could translate the Portuguese manual!
Here the german webseite of the tutorial !
http://sensors.egnite.de/netzwerksensoren-und-datenlogger/support-und-service/querx-tutorials/querx-und-scadabr/

Quote 0 0
Scott.Thompson

For MySCADA, please see if this video helps:



I narrated this about 14 months ago and it already needs an update, to include removing some of the defunct organizations from the PowerPoint.  We envisioned doing something much more broad for Ladder Logic but I just never finished the project.

mySCADA has now changed their software licensing model.  You used to be able to use it indefinitely as long as you didn't exceed 30 tags (points).  Now you have a 2 hour limit to use the software.  After that, you need to reboot the system in order to get another 2 hours.  It is no longer ideal for home projects.  A 150 tag license is about $2K.

To my original post... mySCADA uses a Code 15 in Modbus/TCP to write coils and writes with a full byte.  When you write coil address "0" it's going to write a full byte on an OpenPLC system that addresses bits.  Normally, I keep my coils one byte apart to handle this problem (i.e. 0, 8, 16, 24, etc.)  If you see a setting I'm missing while you are using the software, please let me know. 

Best Regards,
Scott Thompson

Quote 0 0
Josef Bernhardt
Hi,
yesterday i installed scadabr and made my first attempts. Unfortunately I am not so enthusiastic about the operation and performance of the program.

This software also looks quite interesting for the Raspberry PI:

https://jacekhryniewicz.wixsite.com/website/scada-raspberry-pi--advanced-hmi--gsp

ScadaRaspberryPI.jpg 



Quote 0 0
thiagoralves
AdvancedHMI is also a good alternative. Very easy to use and operate. The only issue with these HMIs is that they are all commercial, even AdvancedHMI. They have a “free” version, but not an open source version, which means that they can change at any moment the rules around their “free” version, just like myScada did recently. So far, ScadaBR (and its fork Scada-LTS) is the only fully open source HMI solution. I wish I could have more free time to work on this more, because ScadaBR has a lot of potential. It just needs to be modernized with html5 standards and new java code that supports newer versions of tomcat. Then it would be great! For now it relies on old technology which makes it hard to install and operate.
Quote 0 0
Rox
for HMI I played with Node red with  installed nodered-contrib-modbus, totally free and  HMI Modbus on Android phone and tablet also free but has ads on free version. .
Quote 0 0
Josef Bernhardt
Hi,
I am currently testing the OpenPLCMega software with the Arduino Mega 2560. When reading the A / D converter via Modbus, I noticed that the values are very high!
Voltage 0.5V -> 6528
Voltage 1.0V -> 13184
Voltage 1.5V -> 19904
Voltage 2.0V -> 26560
I thought it was a 10 bit converter with values between 0..1023?
Is there any information about setting the converter? Client.jpg 
Quote 0 0
Josef Bernhardt
Excuse me,
I found the part in the Arduino program that is responsible for the calculation. It's the line:

// modbus.Ireg (i, (analogRead (pinMask_AIN [i]) * 64));
modbus.Ireg (i, (analogRead (pinMask_AIN [i]))); // 0..1023 0-2.56V

Furthermore I switched the reference to internal with:
analogReference (INTERNAL2V56); // 0..1023 0-2.56V

Quote 0 0
thiagoralves
As a standard, all OpenPLC analog inputs are 16-bits, from 0 to 65535. If the hardware ADC has a smaller resolution, it is scaled up in software (multiplied) to match the 16 bits. That way, software written for the UniPi would run unmodified on Arduinos, Neurons, etc
Quote 0 0
Josef Bernhardt
OK, I understand !
Quote 0 0