Section 6.2: From Flat Programming to OOP | SimpleMotor FB | PLC + SCADA Hands-on Guide
This video is a hands-on guide for Section 6.2 of the textbook Control and SCADA Systems by Dr. Chau Truong. In this exercise, we convert a simple motor start/stop control program from flat programming into an object-oriented PLC structure. The motor logic is encapsulated inside a SimpleMotor Function Block, and multiple independent motor instances are created using separate Data Blocks. The video also demonstrates how WinCC Unified can connect to these motor instances using flat HMI tags and absolute DB addresses. Main steps covered: Create a new PLC and HMI setup for the OOP exercises Create the SimpleMotor Function Block Define Start, Stop, and Cmd inside the FB Implement the motor latch logic inside the FB Disable optimized block access for absolute SCADA addressing Create SimpleMotor instances for Motor 1, Motor 2, and Motor 3 Call the SimpleMotor instances in OB1 Create flat HMI tags for each motor instance Use absolute DB addresses for Start, Stop, and Cmd Create the flat SCADA screen for three motors Configure Start and Stop button events Configure motor status and rotation animations Compile and download the PLC program Run HMI Runtime and verify that each motor works independently Textbook: Control and SCADA Systems Author: Dr. Chau Truong #PLC #SCADA #TIAPortal #PLCSIMAdvanced #WinCCUnified #OOP #FunctionBlock #IndustrialAutomation

Intro to PLC Programming for Controls and Automation Engineering Full Course!

PLC Troubleshooting 101. Basic Steps to Diagnose and Fix Your Machine

How to Program Allen Bradley PLC Training for Beginners

Allen Bradley PLC Programming Sequencer Tutorial. Sequence Control

Using Large Language Models | Build Your Own LLM Workshop #1

Linus Torvalds: AI Is Changing Linux Fast

The FULL VIDEO of Trump they didn’t want released

the true reason C++ always wins

User Training: Schneider Electric EcoStruxure Control Expert (Unity Pro)

NestJS Full Course for Beginners in 2026 | Build a Production-Ready API

Pink Ombre Aura Screen | 3 Hours and 1 Second | No Sound

People Who Messed With The Royal Guard and Regretted It!

Designing Data-Intensive Applications: Chapters 1 and 2

Co-Creator of Haskell: Functional Programming, Thinking in Types, Useless Languages | Simon Jones

How to Start Coding | Programming for Beginners | Learn Coding | Intellipaat

Framed Art Screensaver Spring | TV Art Slideshow Modern | Floral Frame Background

No Celebrity Has ZERO Filter Like Harrison Ford _ and It’s HILARIOUS!

How To Think SO CLEARLY People Assume You're A Genius

SC02. Siemens TIA Portal Sequence Control Programming

