schouksey
I am trying to eliminate web interface for openplc and I want to do all the task like compilation and running of .st code using CLI only in linux terminal, so I have installed each and everything but I am not able to connect to master VM using modbus (which I am able to do when I use web interface). I have also created a file inside directory.
OpenPLC_v3/webserver/core/
openplc_runtime.cfg
[GLOBAL]
LogLevel = trace
HardwareLayer = blank

[MODBUS]
Enabled = true
Port = 502

[DNP3]
Enabled = true
Port = 20000

[ENIP]
Enabled = true
Port = 44818
ubuntu22:~
[/CODE]nbsp;sudo netstat -tulnp | grep 502
ubuntu22:~[CODE]
nbsp;sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
3389                       ALLOW       Anywhere                  
22                         ALLOW       Anywhere                  
8080                       ALLOW       Anywhere                  
80                         ALLOW       Anywhere                  
443                        ALLOW       Anywhere                  
22/tcp                     ALLOW       Anywhere                  
502/tcp                    ALLOW       Anywhere                  
3389 (v6)                  ALLOW       Anywhere (v6)            
22 (v6)                    ALLOW       Anywhere (v6)            
8080 (v6)                  ALLOW       Anywhere (v6)            
80 (v6)                    ALLOW       Anywhere (v6)            
443 (v6)                   ALLOW       Anywhere (v6)            
22/tcp (v6)                ALLOW       Anywhere (v6)            
502/tcp (v6)               ALLOW       Anywhere (v6)            

ubuntu22~[CODE][/CODE]nbsp;sudo netstat -tulnp | grep 502
 
Can some one help me how to run the .st code . I want to run the .st code in slave linux Virtual machine and give inputs to that code and get output in master virtual machine using modbus/tcp , dnp3,Ethernet/IP.
 
 
Reply 0 0
thiagoralves
There are some important steps that are done in the webserver.py file, which are triggered by the web interface. You will have to replicate all of them to ensure the runtime runs the same way. For your particular case, most likely Modbus server hasn't been started because the runtime (openplc binary file) only starts that after it receives a command to do so through the interactive server. Check the openplc.py file for more details on the commands.
Reply 0 0
thiagoralves
By the way, where did you get information about this openplc_runtime.cfg file? I've never seen this file before, I'm pretty sure nothing parses it, and so most likely it has absolutely no effect on the runtime.
Reply 0 0
Reply