aashiqkamal

Hello, OpenPLC community,

I've developed a PyDNP3 master program as a TCP client, enabling me to send messages (calling functions by specifying group and variation) to OpenPLC acting as a TCP server. The OpenPLC's GUI interface indicates a successful connection with the TCP client, and Wireshark traces confirm the exchange of successful messages between them.

For testing purposes, I'd like to set specific values in the DNP3 responses within the OpenPLC simulation, which currently lacks LEDs, Arduino, or other physical devices. Is it possible to manually configure response values in the OpenPLC simulation environment, and if so, how can this be accomplished?

I would greatly appreciate any guidance or recommendations for tutorials on configuring DNP3 response values in the OpenPLC simulation environment.

Thank you for your assistance!

Reply 0 0
thiagoralves
OpenPLC runtime is, well, a runtime, which means it will run exactly as a PLC should run. A lot of people use it to simulate PLCs just because it is free, but essentially you can treat it as a normal PLC. If you're running this with no physical I/O, the only difference is that you won't be able to see things being activated in real life, but software-wise there is no difference.
 
With that being said, response values will be send according to the PLC program that the runtime is running. SCADA protocols on OpenPLC are tied to located variables, so if you define a variable at any located region (like %QX0.0 for example), then that will be sent on your DNP3 responses. You can upload the blink example, and just locate the blink led variable at %QX0.0 and you will see that the variable is changing from 0 to 1 at every 500ms when you make your DNP3 requests.
Reply 0 0
Reply