Article translated with the assistance of AI tools. Images and parts of the content will still be reviewed.
In this video, we show how to configure MasterTool IEC XE (CoDeSys) with Simulink from Matlab through the OPC DA interface.
MasterTool uses the CoDeSys OPC Server DA to communicate with the OPC Client DA function block in the Simulink environment.
MasterTool has a program running with a PID block that has its input and output mapped in the OPC Server interface to receive and send data to Simulink, respectively.
In addition to the OPC function, a function representing a first-order system was added to Simulink, with a small delay at the input to simulate dead time. The analog output of the PID function is the input for the process executed in Simulink, and the output of Simulink is the input for the PID function running in the MasterTool Simulator, the programming tool for the Nexto Series and Nexto Xpress.
The applications created for this video are available for download at the links below.
Comments
0 comments
Please sign in to leave a comment.