garretfick
Hi,

I'm trying to map REAL values to DNP3 and getting a bit stuck. I'm trying to match an existing outstation DNP3 interface, so my goal is to replicate the assignment to the same type and point number.

Currently, we use analog inputs (30) and analog output status (40) using the same point numbers, e.g. 0-10 for each. The data types are all REAL. How can this be achieved with OpenPLC?

I think I need to use %MDx (since they are 32-bit values), but I don't see how say those are analog inputs/analog output status values.

If my needs are beyond what is currently capable, I could contribute changes (but pointing me in the right direction would be very helpful).

Thanks,

Garret
Reply 0 0
garretfick
Following up on my own question - as far as I can tell from webserver/dnp3.cpp, values are always cast to int before sending to opendnp3, so it seems that real would never be possible. The mystery grows..

As I dig more, my understand is that the I, B, W items should specify data width, but it seems they are declaring data types.
Reply 0 0
thiagoralves
The implementation of DNP3 on OpenPLC is very experimental. It uses opendnp3 library to handle all dnp3 calls. The entire implementation is on the dnp3.cpp file. True REAL variables are not implemented, just 16, 32, and 64 bit integers. You can implement REAL variables making the right library calls with the %MDx buffers
Reply 0 0
Reply