gomezander
I'm trying to implement the Simulink-OpenPLC interface with a Simulink model I'm currently working on. At first the interface worked fine, but after adding more inputs the interface showed a socket binding error. I thought that the problem may be related to my model, so I made a simple Simulink model and started to test the interface as I added more inputs and outputs progressively. At first the model worked fine, but when adding more than 6 inputs and 6 outputs the same socket binding problem appeared.
 
Looking at the interface logs, it seems that the interface takes extra inputs for some reason. For this case, I configured 8 analog inputs and outputs, and in the logs we can see 16 analog inputs. As I have only configured 8 analog inputs, the extra 8 inputs take the port values of the analog outputs, so when the interface tries to connect the actual analog outputs the ports are already used and the socket binding error appears.
 
Any suggestions on where does his problem come from / how to solve it?
 
Screenshots and files of the Simulink model, interface, console logs and OpenPLC program that I'm using are attached below.
Reply 0 0
Reply