You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
How to establish MPI-connection with python-libnodave? #1
Hi
After long debugging sessions and tests direct with the libnodave I found the following working (only with Python 3, python 2.7 is always seg-faulting) solution:
Adapter is a Siemens RS232/MPI Adapter (via FTDI USB/RS232) connected to a S7-315DP CPU
You have to convert the python-libnodave to python3 by using "2to3" and apply the change:
self.buffer = ctypes.create_string_buffer(b'buffer')
Activity
keremcelenn commentedon May 20, 2021
Hello, did you solve the communication between mpi and python-plc? Can you help me?
mathias-ch1903 commentedon Oct 30, 2021
Hi
After long debugging sessions and tests direct with the libnodave I found the following working (only with Python 3, python 2.7 is always seg-faulting) solution:
-- snipp --
import libnodave
link = libnodave.libnodave()
def main():
if name == 'main':
main()
-- snapp --
Adapter is a Siemens RS232/MPI Adapter (via FTDI USB/RS232) connected to a S7-315DP CPU
You have to convert the python-libnodave to python3 by using "2to3" and apply the change:
self.buffer = ctypes.create_string_buffer(b'buffer')
self.buffer = ctypes.create_string_buffer('buffer')
Hopt it helps!