Quantcast

How can I execute a Command Line Command via logic in RemoteConnect

FAQ000233154

15 February 2022

Summary

How can I execute a Command Line Command via logic in RemoteConnect. For example, you would like to auto restart DNP3 services in the event that the DNP3 communications became unresponsive.

Solution

In order to  execute a subset of the SCADAPack's command line functions, you can use the Device_ExecuteCommand function block. The commands in the image here can be used with this function block:
Device_ExecuteCommand function block help



In order to get some information regards the status of DNP communications, the SYS_StatsETH System Data shows the Ethernet DNP3 Statistics. For example, SYS_StatsETH_1_DNP3FramesRx will show the DNP3 frames received via ethernet port Eth1.
 
 SYS_StatsETH System Data help page


Then the command to input into the Device_ExecuteCommand function block would be:
RESTART DNP