> For the complete documentation index, see [llms.txt](https://wiki.codeandcompile.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.codeandcompile.com/factory-automation/digital-twin/simumatik/04-motor-control-with-codesys.md).

# 04: Motor Control with Codesys

Learn how to control the operation and direction of AC motor using Codesys ladder logic. Interfacing of Simumatik and Codesys is achieved via OPC UA connection

{% embed url="<https://youtu.be/YHBSx-luAHY>" %}
