Binary Logic Systems Chapter 06 Binary Logic Systems
Binary Logic Systems Chapter 06 – Binary Logic Systems EMEC 125
Why Binary Logic Systems? • Documents need to be understood by people with very different backgrounds. People who could need the documentation are: • • Management Process Designers Operations Staffs Maintenance Technicians Electrical and Control System Professionals Logic Device Programmers Supervisory Control and Data Acquisition (SCADA) System Configurators
Binary Logic Diagrams • ISA-5. 2 -1976 (R 1992) Binary Logic Diagrams for Process Operations and Scientific Apparatus Makers Association (SAMA) PMC 22. 1 Functional Diagramming of Instrument and Control Systems. Both address binary logic diagrams. • Elements of these standard are now included in ANSI/ISA-5. 1
Terms You Should Know Before Proceeding • Discrete Control • “On/off control. One of the two output values is equal to zero. ” (International Society of Automation, 2003, p. 150) • A better definition would be: A signal that is either fully ON or fully OFF with no values in-between. • Binary • “ 1. A term applied to a signal or device that has only two discrete positions or states. When used in its simplest form, as in “binary signal” (as opposed to “analog signal”), the term denotes an “on-off” or “high-low” state, that is, one that does not represent continuously varying quantities. [ANSI-ISA-5. 11984 (R 1992)]. ” (International Society of Automation, 2003, p. 49).
Terms You Should Know Before Proceeding • Analog • “ 1. Having the form of continuously variable physical quantities, as in data. Contrast with digital. 2. The representation of numerical quantities by means of physical variables, such as translation, rotation, voltage or resistance. 3. A waveform is analog if it is continuous and varies over an arbitrary range. Contrast with digital. ” (International Society of Automation, 2003, p. 21). • Another way to define Analog is: A continually varying signal that can be fully ON, fully OFF or any level in between. (International Society of Automation, 2003, p. 21).
Terms You Should Know Before Proceeding • Process Variable • “ 1. Any variable property of a process. The term process variable is used in the relevant standard to apply to all variables other than instrument signals [ANSI/ISA-5. 1 -1984 (R 1992)]. 2. In the treatment of material, any characteristic or measurable attribute whose value changes with changes in prevailing conditions. Common variables are flow, level, pressure and temperature. ” (International Society of Automation, 2003, p. 392). • Control Variable (Controlled Variable) • “ 1. The variable that the control system attempts to keep at the set point value. The set point may be constant or variable. 2. The part of a process to be controlled (flow, level, temperature, pressure, etc. ). ” (International Society of Automation, 2003, p. 109).
Combining Analog and On-Off Control • Combining analog and on/off control schemes can be defined by using: • • Process control descriptions Instrument diagrams Functional diagrams Electrical schematic diagrams • These documents can be used independently or together depending upon the phase of design, construction or operation.
Process Control Descriptions • The more complex the process, the more detail that is required in a Process Control Description. The following areas to be included, but not limited to, in a Process Description: • Process Description • Title of the system • General description • Form • Control Description • More specific data on how the system will perform • Loop-by-loop descriptions • Format
The Binary Concept – Multiple Input • This two-state binary concept, applied to gates, can be the basis for making decisions in ladder logic. • The gate is a device that has one or more inputs and one output. • The gate will perform a logical decision based on the status of its inputs and produce a result at its one output.
Using Gates to Make Decisions • The logical AND gate or function. • All inputs must be true to obtain an output. Air Conditioner Switch Cold Air Blower Switch The automotive air conditioning to work, the Air Conditioner must be turned on and the Blower must be turned on.
Using Gates to Make Decisions • The logical OR gate or function. • Any one input must be true to obtain an output. Passenger Door Switch Dome Light Driver Door Switch The automotive dome light will be on when the passenger door OR the driver door or both door switch(s) is activated.
The AND Function • The AND function has two or more inputs and one output. The input signals are labeled A, B, C, etc. and the output signal is labeled Y. • A binary 1 represents the presence of a voltage (signal). A binary 0 represents the absence of voltage (no signal, 0 V or ground). • Logic functions can be represented using a truth table. The truth table lists all possible input status conditions with the corresponding output status for each set of input condition. A B Inputs Output Two input AND gate Y
An AND Gate Application • An AND gate functions like switches in series. • The light will only be ON when switch A AND switch B are both closed. PB 1 = 1 PB 2 = 1 LT 1 ON
The OR Function • The OR function has two or more inputs and one output. The input signals are labeled A, B, C, etc. and the output signal is labeled Y. • A binary 1 represents the presence of a voltage (signal). A binary 0 represents the absence of voltage (no signal, 0 V or ground). • Logic functions can be represented using a truth table. The truth table lists all possible input status conditions with the corresponding output status for each set of input condition. A B Output Inputs Two input OR gate Y
An OR Gate Application • An OR gate functions like switches in parallel. • The light will be ON when either or both switch A OR switch B are closed. PB 3 = 1 PB 4 = 0 LT 2 ON
The NOT Function (Inverter) • The NOT function gate, also called an inverter, has one input and one output. • The NOT gate functions like its name states, it inverts the input signal status. • If the input is a 1 the output is a 0. • If the input is a 0, the output is a 1. A Input A (not A)
A NOT Gate Application • The NOT gate functions like a normally closed switch. • The light will be ON if the switch is NOT being activated and OFF when the switch IS being activated. PB 5 Input PB 5 (not PB 5)
The NAND Function PB 6 • The NAND gate functions like an AND gate with an INVERTER on its output. • The only time that the output of a NAND gate is a 0 is when all the inputs are a binary 1. Light PB 7 Two input NAND gate
The NOR Function PB 8 • The NOR gate functions like an OR gate with an INVERTER on its output. • The only time that the output of a NOR gate is a 1 is when all the inputs are a binary 0. LT 5 PB 9 Two input NOR gate
The XOR (Exclusive- OR) Function • The XOR gate has two inputs and one output. • The output of this gate is a 1 when the two inputs are opposite to each other. Therefore, one input a 1 and the other a 0. • The output of this gate is a 0 when both inputs are the same, either two 0’s or two 1’s. PB 10 PB 11 LT 6
AND Gate Circuits Electromechanical Ladder Diagram PLC/PAC Ladder Diagram LS 10 A Inputs Output Two input AND gate SOL 010
OR Gate Circuits Electromechanical Ladder Diagram PLC/PAC Ladder Diagram LS 011 LS 012 Output Inputs Two input OR gate Sol 011
Combinations of Gates Electromechanical Ladder Diagram PLC/PAC Ladder Diagram LS 013 LS 014 Inputs CR LT 013 Output
Combination of Gates Electromechanical Ladder Diagram PLC/PAC Ladder Diagram LS 015 LS 016 Inputs CR 01 CR 02 LT 016 Output
Combination of Gates Electromechanical Ladder Diagram PLC/PAC Ladder Diagram LS 017 LS 031 Inputs LS 018 Output AH 017
Combination of Gates Electromechanical Ladder Diagram PLC/PAC Ladder Diagram PB 019 PB 020 Inputs PB 021 PB 022 Output LT 019
Combination of Gates Electromechanical Ladder Diagram PLC/PAC Ladder Diagram Why is this instruction programmed open? CR 6 Inputs LS 021 CR 6 SOL 021 Output
Combination of Gates Electromechanical Ladder Diagram Why are these instruction programmed open? PLC/PAC Ladder Diagram This is an XOR circuit
Combination of Gates Electromechanical Ladder Diagram Draw the PLC/PAC ladder diagram for this logic A B Inputs C D M Output
Control Description (From ANSI/ISA-5. 1) • Control system design for: • Small volumes for long and short periods should allow tank to fill to a high level to automatically start the pump and then to stop the pump at a low level. • Large volumes for long periods should allow the pump t run continuously and maintain a fixed level with a level-to-flow cascade control loop. • Pump (run, or operation) control is selected by a three-position Hand-Off. Auto (H-O-A) selector switch: • Selector switch is in “HAND” position. • Selector switch is in “AUTO” position. • Pump should be stopped at any time: • Automatically if low level is exceeded. • By operation the stop pushbutton. • Switching the H-O-A selector to “OFF” position. ISA 5. 1 (2009). pdf
Instrument Diagram
Functional Diagram Symbols
Binary Logic – AND & OR Gates AND OR A B C Y 0 0 0 1 1 0 0 0 1 0 1 1 0 0 1 1 A B C Y 0 0 0 1 1 0 1 0 1 1 0 0 1 1 1 1 0 1 1 1
Binary Logic – NOT & Memory NOT Memory A A 0 1 1 0 A B C D 1 0 0 0 1 2 1 0 3 0 0 1 0 4 0 1 5 0 0 0 1 6 1 1 1 0 7 0 0 1 0 8 1 1 0 1
Electrical Schematic – Ladder Diagram
Logic Diagram Example
Function Block Diagram – Allen Bradley (FYI)
Function Block Diagram – Siemens (FYI)
Functional Diagram
Functional Diagram
Lab. Volt Electrical
Convert Ladder to Logic Gates
Convert Ladder to Logic Gates
Convert this Logic to Ladder
Summary • This chapter discussed discrete control (on/off control) in a process plant. • Logic diagrams will aid in the understanding of how Safety Instrumented Systems (SIS) work. • Functional diagram symbols were discussed along with an example of how they are used. • Basic logic gates have been discussed, along with the symbols used to represent them.
References CEmark. com & European. Authorized-Representative. eu. (1996 -2015). What is CE Marking (CE Mark)? Retrieved June 17, 2015, from Welkang Tech Consulting: http: //www. ce-marking. org/what-is-cemarking. html Charlet, T. (2016, September 8). How to Replace an Evaporator Temperature Sensor (Switch). Retrieved November 22, 2016, from Your Mechanic: https: //www. yourmechanic. com/article/how-to-replace-anevaporator-temperature-sensor-switch-by-timothy-charlet International Society of Automation. (2003). Automation, Systems, and Instrumentation Dictonary (4 th ed. ). Research Triangle Park: International Society of Automation. Retrieved from http: //app. knovel. com/hotlink/toc/id: kp. ASIDE 005/automation-systems-instrumentation/automationsystems-instrumentation International Society of Automation. (2009, September 18). ANSI/ISA-5. 1 -2009 Instrumentation Symbols and Identification. American National Standard. Research Triangle Park, North Carolina: International Society of Automation. Kirk, W. F. , Weedon, A. T. , & Kirk, P. (2014). Instrumentation and Process Control (6 th ed. ). Orland Park, Illinois: American Technical Publishers.
References Lipták, G. B. (Ed. ). (1995). Process Measurement and Analysis (3 rd ed. ). Radnor, Pennsylvania: Chilton Book Company. Mc. Avinew, T. , & Mulley, R. (2004). Control System Documentation Applying Symbols and Identification (2 nd ed. ). Research Triangle Park, North Carolina, USA: International Society of Automation. Meier, F. A. , & Meier, A. C. (2011). Instrumentation and Control Systems Documentation (2 nd ed. ). Research Triangle Park, North Carolina: International Society of Automation. Ruelas, E. (2016, January 6). Symptoms of a Bad or Failing AC Control Switch. Retrieved September 8, 2016, from Your Mechanic: https: //www. yourmechanic. com/article/symptoms-of-a-bad-or-failing-ac-controlswitch Shutterstock. (n. d. ). Car Air Conditioner. Retrieved September 8, 2016, from Shutterstock: https: //www. shutterstock. com/search/car+air+conditioner Sourceingmap. (n. d. ). Car Vehicle Interior Door Courtesy Light Switch Button Part. Retrieved September 8, 2016, from Amazon. co. uk: https: //www. amazon. co. uk/Vehicle-Interior-Courtesy-Switch. Button/dp/B 00 B 0 QLVSS
References Wu, E. (2012, June 18). 2011 Chevy Camaro equipped with LED Interior Dome Lights. Retrieved September 8, 2016, from i. JDMTOY Blog for Automotive Lighting: http: //ijdmtoy. com/BLOG/wordpress/2012/06/18/2011 -chevy-camaro-equipped-with-led-interior-domelights/ Thomas, E. C. (2015). Introduction to Process Technology (4 th ed. ). Boston, MA: Cengage Learning.
- Slides: 48