MIME 4450 Lec 4 9 10 26
Overview
The class introduces Boolean digital logic as a practical foundation for PLCs, distributed control systems, and function block diagram programming, covering gates, Boolean expressions, De Morgan’s theorem, ladder logic, and Karnaugh maps. It also connects logic design to engineering practice: verify data error protection, test every circuit before startup, and prioritize working, reliable systems over unnecessary simplification.
Key takeaways
- Gray-code absolute encoders change one bit per position step, limiting a misread caused by sensor timing differences to one count.
- Industrial measurement data needs error protection: a scale-to-controller connection without checks can silently corrupt financial records.
- De Morgan’s theorem makes negated control conditions manageable by switching AND and OR while negating each input.
- A working Boolean program should still be tested circuit by circuit before startup, including every input, output, and controller response.
- Practical control engineering combines programming with equipment selection, specification writing, mechanical and electrical understanding, and process planning.
Chapters
- A digital logic assignment is due the following Tuesday; the first quiz is planned for the end of week three.
- The approximately 20-minute, open-notes quiz is worth 50 points and covers robotics reading plus several Boolean assignment questions, not relays.
- Students have card-swipe access to North Engineering 1100 and keypad access to room 2350 with code 4575#.
- Room 1100 contains most robots, PLCs, and vision equipment, but its heat may require switching the order of PLC and robotics work.
- Digital logic and robotics texts are available online, avoiding the need to buy books that may cost around $200.
- Robotics quiz questions will be basic, such as identifying a robot from a picture; safe-mode speed is given as 250 millimeters per second.
- The course combines computers with mechanical and electrical systems and manufacturing processes, so success does not depend on being an expert coder.
- The planned course sequence proceeds from robotics to PLCs and vision, with later coverage of Hiwonder ROS robots and possibly databases.
- A Gray-code absolute encoder changes only one bit between adjacent positions.
- If one sensing LED reads slightly ahead or behind the others, the one-bit transition limits the position error to one count.
- Traditional absolute encoders often used costly glass disks, while incremental encoders are presented as the more favorable alternative.
- A cattle-processing system transmitted scale weights to a central computer without error-code protection, risking incorrect payments to ranchers or the company.
- When purchasing equipment, ask what error checks protect its data and how the supplier guarantees that measurements arrive intact.
- A separate glass-plant example involved a 460-volt panel with only about 18 inches of working clearance, despite a 36-inch requirement discussed in class.
- The practical response was to alert the project manager, complete the startup, and require the clearance issue to be corrected before another system was installed.
- An inverter or NOT gate flips a Boolean value: 1 becomes 0 and 0 becomes 1.
- Negation can be shown with an overbar, a dot, or a bubble on a logic symbol; each represents the opposite of variable A.
- A timing diagram places time on the horizontal axis and tracks a signal as it switches between zero and one.
- Timing diagrams can show how signals change over seconds, milliseconds, or microseconds.
- An AND gate outputs 1 only when all its inputs are 1; an OR gate outputs 1 when at least one input is 1.
- An exclusive-OR outputs 1 when exactly one of its two inputs is 1, not when both are 1.
- The spoken words “and,” “or,” and “this or that but not both” map directly to these Boolean functions.
- An AND symbol can be represented in function-block notation with an ampersand, while an OR can be represented by a greater-than-or-equal-to-one condition.
- A NAND is an AND followed by negation, and a NOR is an OR followed by negation.
- Function Block Diagram (FBD) uses connected logic blocks and appears in PLC and Distributed Control System programming.
- FBD is one of several graphical control languages, alongside ladder logic; vision-system programming can also use sequential graphical blocks.
- Programmable logic arrays and PAL or GAL chips can implement logic functions, although this course focuses on computer-programmed controllers.
- Boolean variables such as A, B, and C represent real inputs like limit switches or valves, each treated as zero or one.
- The expression A AND B AND C = D can be written with Boolean notation, words, a ladder diagram, or an FBD block.
- Procedural programming languages express the same relationship with assignments such as D equals A AND B AND C.
- The control platform changes the notation, but the underlying logic function remains the same.
- Boolean algebra includes associative, distributive, identity, and other rules, but students are not expected to memorize the full set.
- A AND 1 simplifies to A, while A AND NOT A is always zero because a signal cannot be both on and off.
- The practical priority is that a control program works; if a fault appears once, investigate and fix it because the failure can recur.
- Logic simplification is useful to know, but excessive rewriting is not necessary when the existing program works reliably.
- Negating an AND expression changes the operator to OR and negates each input: NOT(A AND B) equals NOT A OR NOT B.
- Negating an OR expression changes the operator to AND and negates each input: NOT(A OR B) equals NOT A AND NOT B.
- The working rule is to break the overbar, switch AND to OR or OR to AND, and negate each term.
- This method is especially useful when a control task requires the negative of a complicated Boolean condition.
- A chain of timer outputs T1 through T6 creates sequential time delays that can drive a simple traffic-light cycle.
- Combinations such as T1 active and T2 inactive can represent individual signal phases; red can be derived as the negation of green and yellow together.
- A pedestrian request adds a seventh timer for an all-red walk interval, with a seal-in circuit holding the request until the sequence resets.
- De Morgan’s theorem rewrites reset conditions into ladder logic without requiring an extra intermediate variable.
- Control engineers may spend only 30 to 50 percent of their time programming; equipment selection, specifications, and system planning take substantial time too.
- Experience with PLCs, robots, or vision systems can improve hiring prospects and pay, even when programming is not a full-time responsibility.
- A student working on a truck production line faced a reported cost of $45,000 for each minute without production, illustrating the pressure of startup programming.
- Complex negated ladder conditions can be transformed systematically by switching AND and OR and negating each condition.
- Truth tables enumerate input and output combinations, and feedback from an output to an input can create memory circuits.
- Rather than analyzing every possible truth table as a separate exercise, startup requires checking every input, output, and program circuit.
- Each circuit must be tested to confirm that field signals arrive correctly and that the controller produces the intended response.
- A Karnaugh map arranges truth-table values so groups of adjacent ones or zeros can simplify a Boolean expression.
- Larger groups eliminate more variables; Karnaugh maps suit roughly three or four variables, while Quine–McCluskey methods can handle larger expressions.
- Logic minimization is optional when a working design is reliable, since engineering time can be more valuable than reducing the number of Boolean terms.
- The digital logic assignment is due Tuesday, and the class ends with a reminder that the current grading arrangement may not always apply.
Transcript excerpt
0:04 Okay. How's everybody doing today? >> Any questions anybody has? Uh there's some questions that come up about um and I'll write I'll write the answers down as best I can. Um about um when we're going to be doing things and and and what I expect and all that kind of thing. So um uh this this week we're basically covering uh the 8th and the 10th we're covering digital logic. Okay. And I'm hoping to get through it today and there is an assignment that's posted that is due next Tuesday. So there is an
0:51 assignment on your assignment list of some problems in this book a bit of digital that I want you to do. U now next week the 15th and the 17th uh on the 15th we're going to talk about relays. There is an experiment that I would suggest if you have time to do it to do. If you don't do it, it's not the end of the world. But predominantly on Tuesday, we will talk about relays. Okay. On Thursday, we'll start talking about PLC's or excuse me, uh, robots and and and then we'll have that quiz.
1:38 So, at the end of week three, this is this is the end of week two. At the end of week three, we'll have our first quiz. So, you hand in an assignment, you do a quiz, they're all 50 points. They're all equal. So, at the end of week three, you'll have this quiz. It'll be about 20 minutes worth. And it will be on what you read in the book. Okay? It'll be on the the book on robotics. And just a couple of questions, simple questions, nothing catastrophic. And three or four of the things from the the the assignment on the boolean. Okay.
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
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.