Lecture video
Video unavailable here? Watch on YouTube. Captions and playback speed are available in the player.
Study ESP32 vs PLC: One Robot Task, Two Control Designs | Practical Robotics 05. Use the accompanying model, numerical example and practical task to connect the topic to a measurable engineering result. Notes are original supplemental material, not a transcript.
Learning Objectives
- Explain the role of plc scan, latching and interlocks in the engineering system.
- Calculate the worked quantity with consistent units.
- Design a measurement that can reveal an implementation failure.
Study guide
Original companion notes. These notes support the topic of this lesson. They are not a transcript or a claim about the exact contents, hardware settings or examples in the video.
Lesson focus: ESP32 vs PLC: One Robot Task, Two Control Designs | Practical Robotics 05
Hold speed, initial state, environment and success criteria constant when comparing methods.
PLC scan, latching and interlocks
A conventional cyclic PLC reads inputs, executes logic and updates outputs. A momentary Start needs a stored run request; a Stop or fault must dominate the request. The physical safety circuit and drive safety function remain independent of ordinary application logic.
Model, units and assumptions
Boolean values equal one only when their condition is satisfied. StopOK is a healthy, permitted run condition, not an assumption that a network message can provide a safety function. After power restoration the initial Run state is false.
Worked engineering example
If Run is true and Start is released, Run stays true only while Enable and StopOK remain true and Fault remains false. If StopOK becomes false in the same scan as Start becomes true, the output is false because stop has priority.
Practical task and evidence
Apply the following procedure to the topic of this lesson: ESP32 vs PLC: One Robot Task, Two Control Designs | Practical Robotics 05.
- Write a truth table covering Start, StopOK, Fault and the previous Run state.
- Simulate a stuck Start input and loss of permissive conditions.
- Verify restart prevention and fault reset behavior without connecting an energized actuator.
Submit: a diagram or interface table, a short timestamped dataset, the calculation with units, and a paragraph explaining the largest observed limitation.
Check your understanding
Question. Previous Run = 1, Start = 1, Enable = 1, StopOK = 0, Fault = 0. What is the next Run?
Show worked answer
Run = 0. The stop condition dominates the start request.
Extension. Change one assumption in the model and explain which measurement would reveal that it no longer holds.
Summary
Suggested Reading & Resources
- ReadingCODESYS Structured Text referenceOpen ↗
Primary documentation or original technical reference; check the version used in your lab.