Hello!
Does anyone know how to realize the communication of Codesys and matlab?
I installed codesysV3.5 and matlabR2017 on the same computer.In codesysV3.5οΌ there was a project to control the robot, and the movement of the robot could be controlled by changing the parameters. I want to use matlab to process the data returned by the sensor on the robot, and calculate the new parameters, and then send them to codesys for real-time control. But I don't know how to implement communication between matlab and codesys. Does anyone know it? Or is my idea feasible?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Edwin Schwellinger hat geschrieben:
Hi,
does matlab have an embedded OPCUA client?
This would be a good solution to do this. OPCUA Server is embedded in all CODESYS SL runtimes.
BR
Edwin
Thank you for your suggestion. I had created a OPC Server on CODESYS and set up a OPC client with matlab which connected the server successfully.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
ligz17 hat geschrieben:
Thank you for your suggestion. I had created a OPC Server on CODESYS and set up a OPC client with matlab which connected the server successfully.
Hi ligz17,
I am trying to implement the same communication: CODESYS OPCUA server with raspberry pi to Matlab OPCUA client.
Unfortunately I did not succeed. Could you post more details of your solution?
I connect with other clients such as python or UAexpert. But not with Matlab or Simulink
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
jorgev hat geschrieben:
Hi ligz17,
I am trying to implement the same communication: CODESYS OPCUA server with raspberry pi to Matlab OPCUA client.
Unfortunately I did not succeed. Could you post more details of your solution?
I connect with other clients such as python or UAexpert. But not with Matlab or Simulink
I successfully connected with the OPC UA SERVER at the raspberry with the entries below.
Hello!
Does anyone know how to realize the communication of Codesys and matlab?
I installed codesysV3.5 and matlabR2017 on the same computer.In codesysV3.5οΌ there was a project to control the robot, and the movement of the robot could be controlled by changing the parameters. I want to use matlab to process the data returned by the sensor on the robot, and calculate the new parameters, and then send them to codesys for real-time control. But I don't know how to implement communication between matlab and codesys. Does anyone know it? Or is my idea feasible?
Hi,
does matlab have an embedded OPCUA client?
This would be a good solution to do this. OPCUA Server is embedded in all CODESYS SL runtimes.
BR
Edwin
Thank you for your suggestion. I had created a OPC Server on CODESYS and set up a OPC client with matlab which connected the server successfully.
Hi ligz17,
I am trying to implement the same communication: CODESYS OPCUA server with raspberry pi to Matlab OPCUA client.
Unfortunately I did not succeed. Could you post more details of your solution?
I connect with other clients such as python or UAexpert. But not with Matlab or Simulink
I successfully connected with the OPC UA SERVER at the raspberry with the entries below.
MATLAB CODE:
uaObj = opcua('opc.tcp://192.168.100.11:4840/OPCUAServer', 'None', 'None', uint8(0));
connect(uaObj)
Mathworks has suggested to use this undocumented technique until they release a patch/fix to handle better this connection errors.