PLC Variable Scope: Local, Global, Input & Output | IEC 61131-3 Tutorial #04

Опубликовано: 17 Июнь 2026
на канале: MN Automation Academy
122
7

Defining the correct Data Type is only half the battle. To write modular and secure PLC software, you must control Variable Scope.

Scope determines the visibility of a variable—who can read it, and who can write to it. In this video, we explore the IEC 61131-3 principles of Encapsulation. We learn how to define strict interfaces for our Function Blocks and avoid the pitfalls of overusing Global Variables.

We cover the syntax and specific use cases for Local variables, Inputs, Outputs, In-Out references, and Globals within the CoDeSys environment.

🚀 FAST TRACK YOUR LEARNING:
🎓 Join the MN Automation Academy: https://mnautomationacademy.com/
📘 Get the Course Textbook (Amazon): https://www.amazon.com/dp/B0FP9T5VQX
📂 Download CoDeSys (Free):    • How to Download & Install CoDeSys for FREE...