MIME 4450 Lec 10 10 1 26
Watch on YouTube →
Overview
The lecture reviews Boolean logic and PLC memory circuits, then focuses on getting Siemens TIA Portal running and using sequential logic and data structures to build larger automation systems. It explains why state diagrams suit cylinder-driven processes, how Siemens data blocks, arrays, UDTs, and function blocks organize recipes and production data, and assigns a traffic-light project that must defer Auto/Manual changes until a cycle ends.
Key takeaways
- A PLC operation needs memory when it must continue after the operator releases a start button; seal-in and set/reset circuits are two common ways to retain that state.
- A traffic-light mode selector should not immediately replace the active sequence: store the Auto/Manual request and apply it only when the current cycle reaches its end.
- State diagrams make cylinder-driven processes easier to program and troubleshoot by assigning each machine position a numbered state and an explicit transition condition.
- In Siemens TIA Portal, arrays belong in data blocks, while UDTs bundle typed part attributes such as weight and color so production data can move with the physical part.
- Breaking a large sequential task into stages and encoding its moves in an array—such as the Rubik’s Cube solver’s 32-bit move words—can make the control code far simpler than one monolithic routine.
- Automation projects increasingly require communication among distributed PLCs, robots, vision systems, motion controllers, and HMIs; a PLC is no longer an isolated system.
Chapters
- Homework 4 earned up to 50/50 for attempting all 10 problems; one ChatGPT-generated submission also received full credit despite concerns about learning.
- A Siemens distributor described a new AI programming product priced at $2,000 per year that generates Siemens PLC code from spoken or typed instructions.
- Generated PLC programs may or may not work, so engineers still need to understand and verify the logic.
- Pump 1 turns on when either Bay 1 or Bay 2 is in use; Pump 2 responds to both bays being used or a bay serving a tall truck.
- Pump 3 requires both bays in use plus a tall truck in at least one bay, combining AND and OR conditions.
- Other homework examples cover X AND Y OR Z, exclusive-OR behavior for switches V and W, and a car-start circuit requiring the key, passenger conditions, and closed doors.
- Problem 12 converts an FBD into ladder: Input 1 OR Input 2 feeds a positive-edge detector.
- The detected edge is combined with Input 3 to set memory bit B; negated Input 4 resets B.
- The output is driven by B, illustrating how edge detection and a set/reset memory element map into ladder logic.
- A memory circuit is needed when an operation must continue after a person releases the start button and stop only after reaching another condition.
- Two standard implementations are a seal-in circuit and a set/reset circuit; either can express the required retained state.
- Normally open versus normally closed field contacts should be selected with failure behavior in mind, including what happens if a wire falls off or a switch fails.
- Commissioning requires physically checking each wire and testing failures; a contact choice that handles one fault may not protect against every fault.
- Students need Siemens professional software installed locally to continue the PLC course and connect programs to hardware.
- TIA Portal installation requires two downloads, identified as disc 1 and disc 2, rather than the single download previously expected.
- The Siemens Automation License Manager transfers the license key from the installation media or drive to the computer’s C: drive.
- The instructor offered loaner computers and help with setup for students blocked by installation or licensing.
- TIA Portal v20 communication settings require specific checkboxes that were missed in an earlier project setup; similar settings apply in v19.
- Starter projects with communication settings already configured will be posted for both v19 and v20.
- Siemens hardware was described as less expensive than Allen-Bradley, with an example price of roughly $370–$380 versus about $1,000, despite difficult software setup.
- The class is moving beyond PLC fundamentals toward vision systems, robots, and eventually integrating those technologies into a complete cell.
- The intended project connects a PLC to a vision system and robot, giving students practice beyond a single programming specialty.
- Working software is a prerequisite for connecting a laptop program to the PLC and building integrated projects.
- Week 5 assignment modifies the existing traffic-light program, which uses six timers and a seventh timer for its normal sequence.
- Add a selector switch: Auto runs the normal traffic-light cycle, while Manual produces flashing red in one direction and flashing yellow in the other.
- A direct switch between modes is unsafe if it can change a green light to red mid-cycle; the transition must wait until the current cycle finishes.
- That deferred mode change requires a memory element to retain the request until the cycle boundary.
- A state diagram represents a process as a sequence of numbered positions, moving to the next state when its transition condition is satisfied.
- State-based programming is especially useful for pneumatic or hydraulic cylinders that travel between end positions.
- State numbers make troubleshooting concrete: asking which state is active identifies the condition needed for the next step.
- A New York steel plant moved reheated billets through conveyors, a charging table, and a furnace before downstream forming into rebar.
- The process was modeled as three cooperating state tables, each controlling part of the transfer sequence.
- A key interlock prevented loading more billets until two had been removed, while a large cylinder pushed the billet mass into the furnace.
- The example shows how breaking a complex material-handling process into linked sequences can produce workable PLC logic.
- The lecture distinguishes state diagrams from runoff drawings used to represent cylinder behavior and machine sequences.
- A process may have separate Auto, Manual, and Homing sequences; Homing returns the equipment to its defined starting position.
- Each state is mutually exclusive, and its transition conditions determine when the program advances to the next numbered state.
- Chapter 13 introduces arrays for recipe steps and other sequential data; Siemens arrays are created inside a data block, or DB.
- Recipe execution can copy the active step into a working area, then write results back so production records preserve what was actually used.
- Recording measurements matters: adding 5 pounds instead of a target 4.8 pounds of an ingredient could affect product quality and must be traceable.
- A UDT groups differently typed fields for a part—such as color, weight, and other parameters—so production information can travel with that part.
- The Rubik’s Cube project uses six stepper motors and breaks solving into stages, including the white cross, white corners, second layer, and yellow-side steps.
- Moves can be encoded as 32-bit words whose bits represent cube conditions and actions, then processed by a program that checks the applicable move.
- Building the move table in Excel makes it easy to insert or copy rows, then paste the resulting data into a Siemens DB array.
- Solving one stage at a time keeps the control program manageable compared with encoding the entire cube-solving process as one massive routine.
- Siemens function blocks can hold major program logic and use static variables scoped within each FB; OB1 can call multiple FBs.
- Data blocks store arrays and other information associated with function blocks, separating persistent data from the main program structure.
- Chapter 15 covers HMIs, which connect operator screens to PLC functions.
- Chapter 16 covers communications between PLCs and other devices; modern processes distribute control across PLCs, robots, servos, and HMIs rather than relying on one oversized PLC.
- Chapter 17 introduces single-axis motion control for a stepper or servo motor, while Chapter 18 covers timing and Chapter 19 covers PID control.
- Chapter 20 addresses safety PLCs and safety programming, which will be revisited later in the course.
- A project may count a safety PLC as two devices, but it must still connect to a dissimilar system such as a robot or vision system.
- The course’s integration goal is to connect multiple computerized systems rather than treating a PLC as an isolated controller.
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Wm_T Evans.