Here the results.
Any outcome?
Initializing OpenPLC in RUN mode...
OpenPLC Runtime starting...
Interactive Server: Listening on port 43628
Interactive Server: waiting for new client...
PSM: Starting PSM...
Openning database
Enabling Modbus on port 502
Interactive Server: Client accepted! Creating thread for the new client ID: 6...
Interactive Server: waiting for new client...
Interactive Server: Thread created for client ID: 6
Issued start_modbus() command to start on port: 502
Server: Listening on port 502
Server: waiting for new client...
Interactive Server: client ID: 6 has closed the connection
Terminating interactive server connections
Disabling DNP3
Interactive Server: Client accepted! Creating thread for the new client ID: 6...
Interactive Server: waiting for new client...
Interactive Server: Thread created for client ID: 6
Issued stop_dnp3() command
Enabling EtherNet/IP on port 44818
Interactive Server: client ID: 6 has closed the connection
Terminating interactive server connections
Interactive Server: Client accepted! Creating thread for the new client ID: 6...
Interactive Server: waiting for new client...
Interactive Server: Thread created for client ID: 6
Issued start_enip() command to start on port: 44818
Server: Listening on port 44818
Server: waiting for new client...
Server: Client accepted! Creating thread for the new client ID: 9...
Server: waiting for new client...
Disabling Persistent Storage
Interactive Server: client ID: 6 has closed the connection
Terminating interactive server connections
Server: Thread created for client ID: 9
Interactive Server: Client accepted! Creating thread for the new client ID: 6...
Interactive Server: waiting for new client...
Interactive Server: Thread created for client ID: 6
Issued stop_pstorage() command
Interactive Server: client ID: 6 has closed the connection
Terminating interactive server connections
persistent.file removed!
Name: Hour
Location: %IW0
Type: INT
Name: Minute
Location: %IW1
Type: INT
Name: Seconde
Location: %IW2
Type: INT
Name: POMPE
Location: %QX0.0
Type: BOOL
Name: LIGHT
Location: %QX0.1
Type: BOOL
Name: CDE_MAN_PMP
Location: %IX0.3
Type: BOOL
Name: CDE_MAN_LIGHT
Location: %IX0.4
Type: BOOL
Name: CDE_STOP_AUTO
Location: %IX0.5
Type: BOOL
Name: IHM_CMD_PMP
Location: %QX10.0
Type: BOOL
Name: IHM_CDE_LIGHT
Location: %QX10.1
Type: BOOL
Name: IHM_CDE_HIVER
Location: %QX10.2
Type: BOOL
Name: IHM_CDE_00
Location: %QX11.0
Type: BOOL
Name: IHM_CDE_01
Location: %QX11.1
Type: BOOL
Name: IHM_CDE_02
Location: %QX11.2
Type: BOOL
Name: IHM_CDE_03
Location: %QX11.3
Type: BOOL
Name: IHM_CDE_04
Location: %QX11.4
Type: BOOL
Name: IHM_CDE_05
Location: %QX11.5
Type: BOOL
Name: IHM_CDE_06
Location: %QX11.6
Type: BOOL
Name: IHM_CDE_07
Location: %QX11.7
Type: BOOL
Name: IHM_CDE_08
Location: %QX12.0
Type: BOOL
Name: IHM_CDE_09
Location: %QX12.1
Type: BOOL
Name: IHM_CDE_10
Location: %QX12.2
Type: BOOL
Name: IHM_CDE_11
Location: %QX12.3
Type: BOOL
Name: IHM_CDE_12
Location: %QX12.4
Type: BOOL
Name: IHM_CDE_13
Location: %QX12.5
Type: BOOL
Name: IHM_CDE_14
Location: %QX12.6
Type: BOOL
Name: IHM_CDE_15
Location: %QX12.7
Type: BOOL
Name: IHM_CDE_16
Location: %QX13.0
Type: BOOL
Name: IHM_CDE_17
Location: %QX13.1
Type: BOOL
Name: IHM_CDE_18
Location: %QX13.2
Type: BOOL
Name: IHM_CDE_19
Location: %QX13.3
Type: BOOL
Name: IHM_CDE_20
Location: %QX13.4
Type: BOOL
Name: IHM_CDE_21
Location: %QX13.5
Type: BOOL
Name: IHM_CDE_22
Location: %QX13.6
Type: BOOL
Name: IHM_CDE_23
Location: %QX13.7
Type: BOOL
Name: Temp_EAU
Location: %IW10
Type: INT
* Serving Flask app 'webserver'
* Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
* Running on all addresses (0.0.0.0)
* Running on
http://127.0.0.1:8080* Running on
http://192.168.1.100:8080Press CTRL+C to quit
Exception in thread Thread-1 (run_server):
Traceback (most recent call last):
File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
self.run()
File "/usr/lib/python3.11/threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "/home/alex/OpenPLC_V3/webserver/core/psm/psm.py", line 132, in run_server
mtcp_server = ModbusTcpServer(context, address=("localhost", 2605))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/alex/OpenPLC_V3/.venv/lib/python3.11/site-packages/pymodbus/server/sync.py", line 338, in __init__
socketserver.ThreadingTCPServer.__init__(self, self.address,
File "/usr/lib/python3.11/socketserver.py", line 456, in __init__
self.server_bind()
File "/usr/lib/python3.11/socketserver.py", line 472, in server_bind
self.socket.bind(self.server_address)
OSError: [Errno 98] Address already in use
PSM: Connection to psm failed
PSM: Error connecting to psm!
PSM: PSM is disabled
Warning: Persistent Storage file not found
Setting main thread priority to RT
Locking main thread memory
Getting current time