mberntsen
I've been fiddling with this for some time now, but I can't find any documentation or other helpful information about my problem.
I've got a very basic program, when I compile it I get these variables after the glue-up:
Generating glueVars...
varName: __IX101_0 varType: BOOL
...
varName: __IW104 varType: WORD
...
varName: __MD0 varType: REAL
Compiling main program...
Compilation finished successfully!

What settings should I use for scadabr to monitor these values?

My DNP3 IP properties:
Name: test
Export ID: D_225599
Source address: 1
Slave address: 10
Host: <ip here>
Port: 20000

The above settings suggest a goot connection, for openplc reports an incomming connection on start.

Point settings:
Name: test1
Export ID: some_id
Index: 0
Data Type: ANALOG OUTPUT
Operation Mode: Direct Operate
Quote 0 0
thiagoralves
It’s a lot easier to use Modbus instead of DNP3. There are some configurations you must do in dnp3.cfg if you want to use DNP3 (like offset address). On Modbus:

%IX101.0 = Input Status 808
%IW104 = Input Register 104
%MD0 = Holding Register 2048

More information at http://www.openplcproject.com/scada
Quote 0 0
Mauzzam
Yes you are right , its much easier to use Modbus with ScadaBr .
I am stuck.
I am testing ScadaBr with DNP3 Simulator but not able to achieve the anything.  Even I have googled this topic but not found any appropriate materials . Could you please help me or suggest any step by step tutorial for ScadaBr with DNP3 only. Thanks
Quote 0 0
thiagoralves
It seems that ScadaBR DNP3 driver is broken. I couldn’t manage to make it work properly. It would read values (sometimes) but never write back commands to the outstation. I think ScadaBR DNP3 driver will need to be rewritten
Quote 0 0
Mauzzam
Thanks, I have setup OpenPLC and tried to configure it as DNP3 Slave , but found any DNP3 device type Under Slave device section. Please correct me if my approach is incorrect.
Quote 0 0
thiagoralves
The Slave section is for you to add other slave devices (remote I/Os) to the OpenPLC runtime. These slave devices can be arduino boards, esp8266 boards, or generic Modbus/TCP or Modbus/RTU remote I/Os.

To configure DNP3 parameters you must edit the /webserver/dnp3.cfg file inside your OpenPLC_v3 folder.
Quote 0 0
Mauzzam
Thanks for quick response...

Could you please provide dnp3.cfg file for sample or their parameters.

Thanks
Quote 0 0
thiagoralves
Have you checked OpenPLC_v3/webserver/dnp3.cfg on your installation? You will see a sample file in there, with comments about each available option.
Quote 0 0
Mauzzam
Yes I got it. I am very new to all this.

So after editing the parameters, how would I use those on  OpenPLC_v3 application console.


Quote 0 0
thiagoralves
You won't. In fact, there is no application console on OpenPLC. Just save the file and start OpenPLC. When the runtime starts, it will read the file and behave as defined in the cfg file. You will see on the dashboard logs that DNP3 service will start and wait for connections from your DNP3 Master.
Quote 0 0
Mauzzam
Thanks , 
I have un-commented dnp3.cfg file's parameters and started both the applications(OpenPlc and ScadaBr). But getting below error logs on OpenPlc console


OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Device DNP3 is disconnected. Attempting to reconnect...
Connection failed on MB device DNP3: No such file or directory
Warning: Persistent Storage file not found
Quote 0 0
thiagoralves
Delete your misconfigured DNP3 slave device and you won't see these errors anymore.
Quote 0 0
thiagoralves
Just to clarify, you should not add slave devices to use OpenPLC as a DNP3 outstation (DNP3 Slave). As I said earlier, the Slave device tab is for attaching external remote I/O devices to OpenPLC, which is a completely different thing. To use OpenPLC with DNP3, the only required things are to enable DNP3 on the Settings and to properly configure the dnp3.cfg file.
Quote 0 0
Mauzzam
Is it possible to extend ScadaBr support to some other Data source
Quote 0 0