SlideShare a Scribd company logo
1 of 11
Interfaci
                                                                    ng to
                                                                     7-
                                                                  Segment
                                                                  Numeric
                                                                  Displays




7-Segment Numeric LED Displays

In industrial PLC applications, one of the old, but simpler methods of displaying numeric
information is to use one or more 7-Segment numeric displays connected to an output card
of a PLC... Although it is possible to build such a display yourself, it is far more common to
employ a pre-manufactured product such as the 4-digit panel mount unit shown at the top of
this page...

To correctly interface a PLC to such a display, it helps to first understand what basic
electronic components are typically employed in their makeup, and how this effects our task
of interfacing to, and programming such a unit... Although both LED and LCD numeric
displays are readily available, and interfaced similarly, we'll concentrate on the more
common LED units in the examples to follow...
BCD to 7-Segment Decoder c/w 4-bit Latch

Once 7-Segment LED displays became readily available, a simple IC known as a "BCD to 7-
Segment decoder" was quickly developed to simplify their use... Binary formatted data
presented to this IC's inputs results in the IC's outputs being placed into the correct state to
display the equivalent numeral (0 to 9) on a 7-Segment display...

Although BCD to 7-Segment decoder ICs are available without built in latches, this particular
IC includes a built in 4-bit latch which we will make use of in later examples... For now the
latch is set to simply allow input data to freely pass through to the decoder...
In the above diagram, the 4 toggle switches, SW0 to SW3 are used to select the desired
numeral (0-9) that will appear on the 7-Segment display... By using a decoder, it's now
simply a matter of setting the correct 4-bit BCD pattern feeding the inputs of the decoder,
and the decoder takes care of the rest...




                            BCD Input Data
                      SW3     SW2    SW1     SW0     Numeral Displayed
                        0      0       0       0              0
                        0      0       0       1              1
0       0       1       0              2
                        0       0       1       1              3
                        0       1       0       0              4
                        0       1       0       1              5
                        0       1       1       0              6
                        0       1       1       1              7
                        1       0       0       0              8
                        1       0       0       1              9




The decoder section also has two additional inputs... Lamp Test (LT) turns all segments on
so you can verify at once that all display segments are working, or identify display units that
need to be replaced... This input is normally left at logic 1... The Blanking (BL) input is just
the reverse; it forces the entire display off... This is used in many cases to blank out leading
or trailing zeros from a long display... LT will override BL so you can test even blanked-out
display digits...

One should also note that the same circuit could conceivably be controlled by a PLC, if 4
output bits from a 5VDC PLC output card were used in place of the 4 switches shown... If an
8-bit output card were available, then two such circuits (2 digits) could be controlled... A 16-
bit card would in turn allow us to control four such circuits (4 digits)..etc...




Parallel Non-Multiplexed Multiple Digit Display
The figure (above) on the left is taken from the LogixPro I/O simulator screen, and depicts a
common method of interfacing to a 4 digit display... The figures on the right are taken from
the data sheet of a pre-manufactured 4 digit display unit which could be readily employed in
this particular application...

The manufactured unit does contain four separate circuits, and each circuit (digit) has it's
own decoder, but compared to our earlier circuit example, this unit employs additional
components and circuitry making it far more versatile and easy to use...

Note that there are 4 "Strobe" lines shown; one for each digit... These strobe lines control
built in IC latches which provide us with the option of multiplexing the digits, or displays, if
we wished to do so... In the above non-multiplexed application, the strobes are permanently
enabled allowing data to simply pass through from the BCD inputs and be displayed as
normal...

Also note that this particular unit is designed for 24VDC use... This is by far the most
common DC voltage level used in industrial installations, and PLC I/O cards designed for
such use are therefore extremely common... In comparison to 5VDC circuits, 24VDC circuits
can typically tolerate far greater supply voltage excursions, are less sensitive to the effects
of contact resistance, and more tolerant of electrically noisy environments...




Multiplexed Digits

By making use of the 4-bit latches that are built into the 4511 IC, we can easily multiplex the
digits if so desired... By properly controlling the state of each latch enable pin (LE) we can
use the same input data lines (4 switches) to selectively write to each 7-Segment display
independently... With just a minor modification to our circuit, we will be able to essentially
treat each digit as a unique 4-bit memory location where BCD data of our choosing can be
stored and retained...
In the above schematic diagram, each display may be written to separately... First the BCD
equivalent of the desired numeral (0-9) is set using the 4 data switches... If SW1 is then
closed, the current BCD input data will enter the latch of the upper 4511 IC, and will be
passed on to the decoder causing the numeral to displayed... if SW1 is then opened, the
latch will retain the current data, but will now ignore any changes on it's inputs... The desired
numeral will continue to be displayed by the upper LED display until power is lost, or SW1 is
again closed and new data is allowed to enter it's latch...

The Lower 7-Segment display may be written to in a similar fashion... Set the BCD
equivalent of the desired digit using the 4 data switches, then close SW2 momentarily to
store and retain the current BCD data... We might say that we are strobing the data into the
display...

We could readily replace the 4 data switches and 2 latch switches if we had 6 5VDC outputs
available on our PLC... If we wished to add additional digits, we would require 1 more PLC
output for each digit added... By multiplexing the data in this fashion we would only require 8
PLC outputs to control a 4 digit display...




4 Digit Display configured for Multiplexed Digits




By using multiplexed data lines as shown above, we can dramatically reduce the number of
PLC outputs required (8) to control this 4 digit display... The down side is that writing a
ladder logic program to update a display wired in this fashion will be somewhat more
complicated then one written to control 4 digits wired in parallel...

If you have been looking closely, you may have questioned the purpose of the dual inline
sockets located on the wiring PCB of this manufactured display unit.. Well essentially the 16
data lines are internally connected in parallel with these sockets, and this allows us to easily
add additional units by simply interconnecting them using a flat ribbon cable assembly...
Multiple 4 Digit Displays configured for Multiplexed Digits
For those with a fundamental knowledge of computers, you'll likely note that we have
essentially created a 4-bit data bus, and the strobe lines are in effect our address bus... We
can continue to add additional digits, and for each digit added we will require 1 additional
Interfacing to

More Related Content

What's hot

Keypad interfacing 8051 -NANOCDAC
Keypad interfacing 8051 -NANOCDACKeypad interfacing 8051 -NANOCDAC
Keypad interfacing 8051 -NANOCDACnanocdac
 
The functional design scheme of the dedicated keyboard chip kb core based on ...
The functional design scheme of the dedicated keyboard chip kb core based on ...The functional design scheme of the dedicated keyboard chip kb core based on ...
The functional design scheme of the dedicated keyboard chip kb core based on ...Vinsion Chan
 
7-Segment Display
7-Segment Display7-Segment Display
7-Segment DisplayMay Ann Mas
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051DominicHendry
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3Jeni Shah
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingAnkur Mahajan
 
아두이노 Digital/Analog IO
아두이노 Digital/Analog IO아두이노 Digital/Analog IO
아두이노 Digital/Analog IOJungHoon Lee
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2WanNurdiana
 
Combinational Logic with MSI and LSI
Combinational Logic with MSI and LSICombinational Logic with MSI and LSI
Combinational Logic with MSI and LSISikder Tahsin Al-Amin
 
Digital Logic Gates and RAID Explained v1.3
Digital Logic Gates and RAID Explained v1.3Digital Logic Gates and RAID Explained v1.3
Digital Logic Gates and RAID Explained v1.3Howard Wong
 
Call and message using arduino and gsm module
Call and message using arduino and gsm moduleCall and message using arduino and gsm module
Call and message using arduino and gsm modulejosnihmurni2907
 
Encoder and decoder
Encoder and decoder Encoder and decoder
Encoder and decoder dinesh aitha
 
Bcd to 7 segment display
Bcd to 7 segment displayBcd to 7 segment display
Bcd to 7 segment displayMaulik Sanchela
 
LOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVLOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVDeepak Yadav
 
Magnetic door lock using arduino
Magnetic door lock using arduinoMagnetic door lock using arduino
Magnetic door lock using arduinoSravanthi Sinha
 
Getting Started With Firefly
Getting Started With FireflyGetting Started With Firefly
Getting Started With FireflyNYCCTfab
 

What's hot (20)

Keypad interfacing 8051 -NANOCDAC
Keypad interfacing 8051 -NANOCDACKeypad interfacing 8051 -NANOCDAC
Keypad interfacing 8051 -NANOCDAC
 
The functional design scheme of the dedicated keyboard chip kb core based on ...
The functional design scheme of the dedicated keyboard chip kb core based on ...The functional design scheme of the dedicated keyboard chip kb core based on ...
The functional design scheme of the dedicated keyboard chip kb core based on ...
 
7-Segment Display
7-Segment Display7-Segment Display
7-Segment Display
 
Key board interfacing with 8051
Key board interfacing with 8051Key board interfacing with 8051
Key board interfacing with 8051
 
Arduino cic3
Arduino cic3Arduino cic3
Arduino cic3
 
Microcontroller 8051 and its interfacing
Microcontroller 8051 and its interfacingMicrocontroller 8051 and its interfacing
Microcontroller 8051 and its interfacing
 
아두이노 Digital/Analog IO
아두이노 Digital/Analog IO아두이노 Digital/Analog IO
아두이노 Digital/Analog IO
 
Coa presentation1
Coa presentation1Coa presentation1
Coa presentation1
 
Mci ppt
Mci pptMci ppt
Mci ppt
 
Mux decod pld2_vs2
Mux decod pld2_vs2Mux decod pld2_vs2
Mux decod pld2_vs2
 
Combinational Logic with MSI and LSI
Combinational Logic with MSI and LSICombinational Logic with MSI and LSI
Combinational Logic with MSI and LSI
 
Lcd interfacing
Lcd interfacingLcd interfacing
Lcd interfacing
 
Digital Logic Gates and RAID Explained v1.3
Digital Logic Gates and RAID Explained v1.3Digital Logic Gates and RAID Explained v1.3
Digital Logic Gates and RAID Explained v1.3
 
Call and message using arduino and gsm module
Call and message using arduino and gsm moduleCall and message using arduino and gsm module
Call and message using arduino and gsm module
 
Encoder and decoder
Encoder and decoder Encoder and decoder
Encoder and decoder
 
Bcd to 7 segment display
Bcd to 7 segment displayBcd to 7 segment display
Bcd to 7 segment display
 
LOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAVLOGIC GATES - SARTHAK YADAV
LOGIC GATES - SARTHAK YADAV
 
Password based door locksystem
Password  based door locksystemPassword  based door locksystem
Password based door locksystem
 
Magnetic door lock using arduino
Magnetic door lock using arduinoMagnetic door lock using arduino
Magnetic door lock using arduino
 
Getting Started With Firefly
Getting Started With FireflyGetting Started With Firefly
Getting Started With Firefly
 

Similar to Interfacing to

Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA BoardCustomizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA BoardBharat Biyani
 
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counterOmkar Rane
 
Counter digital electronics
Counter digital electronics Counter digital electronics
Counter digital electronics Sooraj Maurya
 
microcontroller and embedded system
microcontroller and embedded systemmicrocontroller and embedded system
microcontroller and embedded systempradeep rana
 
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptxPROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptxSanjayV73
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310DHEERAJ DHAKAR
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpgaHossam Hassan
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptxSachinKupade
 
BOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPROBOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPROMohan Tangudu
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3Abhishekvb
 
Micro c lab3(ssd)
Micro c lab3(ssd)Micro c lab3(ssd)
Micro c lab3(ssd)Mashood
 
Introduction to embedded system & density based traffic light system
Introduction to embedded system & density based traffic light systemIntroduction to embedded system & density based traffic light system
Introduction to embedded system & density based traffic light systemRani Loganathan
 

Similar to Interfacing to (20)

Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA BoardCustomizable Microprocessor design on Nexys 3 Spartan FPGA Board
Customizable Microprocessor design on Nexys 3 Spartan FPGA Board
 
Project Report On 0-9 decade counter
Project Report On 0-9 decade counterProject Report On 0-9 decade counter
Project Report On 0-9 decade counter
 
a simple bcd counter project
a simple bcd counter projecta simple bcd counter project
a simple bcd counter project
 
Arduino based applications part 2
Arduino based applications part 2Arduino based applications part 2
Arduino based applications part 2
 
Hd44780a00 dtasheet
Hd44780a00 dtasheetHd44780a00 dtasheet
Hd44780a00 dtasheet
 
Counter digital electronics
Counter digital electronics Counter digital electronics
Counter digital electronics
 
microcontroller and embedded system
microcontroller and embedded systemmicrocontroller and embedded system
microcontroller and embedded system
 
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptxPROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
PROGRAMMABLE KEYBOARD AND DISPLAY INTERFACE(8279).pptx
 
8051.pdf
8051.pdf8051.pdf
8051.pdf
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
 
Calculator design with lcd using fpga
Calculator design with lcd using fpgaCalculator design with lcd using fpga
Calculator design with lcd using fpga
 
Programming with 8085.pptx
Programming with 8085.pptxProgramming with 8085.pptx
Programming with 8085.pptx
 
BOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPROBOTTLE LINE SIMULLATION IN LOGIXPRO
BOTTLE LINE SIMULLATION IN LOGIXPRO
 
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
A Report on Bidirectional Visitor Counter using IR sensors and Arduino Uno R3
 
STLD-Combinational logic design
STLD-Combinational  logic design STLD-Combinational  logic design
STLD-Combinational logic design
 
Micro c lab3(ssd)
Micro c lab3(ssd)Micro c lab3(ssd)
Micro c lab3(ssd)
 
Assignment#4b
Assignment#4bAssignment#4b
Assignment#4b
 
LCD Interacing with 8051
LCD Interacing with 8051LCD Interacing with 8051
LCD Interacing with 8051
 
Introduction to embedded system & density based traffic light system
Introduction to embedded system & density based traffic light systemIntroduction to embedded system & density based traffic light system
Introduction to embedded system & density based traffic light system
 
Pin out lpc2129
Pin out lpc2129Pin out lpc2129
Pin out lpc2129
 

Recently uploaded

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 

Recently uploaded (20)

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 

Interfacing to

  • 1. Interfaci ng to 7- Segment Numeric Displays 7-Segment Numeric LED Displays In industrial PLC applications, one of the old, but simpler methods of displaying numeric information is to use one or more 7-Segment numeric displays connected to an output card of a PLC... Although it is possible to build such a display yourself, it is far more common to employ a pre-manufactured product such as the 4-digit panel mount unit shown at the top of this page... To correctly interface a PLC to such a display, it helps to first understand what basic electronic components are typically employed in their makeup, and how this effects our task of interfacing to, and programming such a unit... Although both LED and LCD numeric displays are readily available, and interfaced similarly, we'll concentrate on the more common LED units in the examples to follow...
  • 2. BCD to 7-Segment Decoder c/w 4-bit Latch Once 7-Segment LED displays became readily available, a simple IC known as a "BCD to 7- Segment decoder" was quickly developed to simplify their use... Binary formatted data presented to this IC's inputs results in the IC's outputs being placed into the correct state to display the equivalent numeral (0 to 9) on a 7-Segment display... Although BCD to 7-Segment decoder ICs are available without built in latches, this particular IC includes a built in 4-bit latch which we will make use of in later examples... For now the latch is set to simply allow input data to freely pass through to the decoder...
  • 3. In the above diagram, the 4 toggle switches, SW0 to SW3 are used to select the desired numeral (0-9) that will appear on the 7-Segment display... By using a decoder, it's now simply a matter of setting the correct 4-bit BCD pattern feeding the inputs of the decoder, and the decoder takes care of the rest... BCD Input Data SW3 SW2 SW1 SW0 Numeral Displayed 0 0 0 0 0 0 0 0 1 1
  • 4. 0 0 1 0 2 0 0 1 1 3 0 1 0 0 4 0 1 0 1 5 0 1 1 0 6 0 1 1 1 7 1 0 0 0 8 1 0 0 1 9 The decoder section also has two additional inputs... Lamp Test (LT) turns all segments on so you can verify at once that all display segments are working, or identify display units that need to be replaced... This input is normally left at logic 1... The Blanking (BL) input is just the reverse; it forces the entire display off... This is used in many cases to blank out leading or trailing zeros from a long display... LT will override BL so you can test even blanked-out display digits... One should also note that the same circuit could conceivably be controlled by a PLC, if 4 output bits from a 5VDC PLC output card were used in place of the 4 switches shown... If an 8-bit output card were available, then two such circuits (2 digits) could be controlled... A 16- bit card would in turn allow us to control four such circuits (4 digits)..etc... Parallel Non-Multiplexed Multiple Digit Display
  • 5. The figure (above) on the left is taken from the LogixPro I/O simulator screen, and depicts a common method of interfacing to a 4 digit display... The figures on the right are taken from the data sheet of a pre-manufactured 4 digit display unit which could be readily employed in this particular application... The manufactured unit does contain four separate circuits, and each circuit (digit) has it's own decoder, but compared to our earlier circuit example, this unit employs additional components and circuitry making it far more versatile and easy to use... Note that there are 4 "Strobe" lines shown; one for each digit... These strobe lines control built in IC latches which provide us with the option of multiplexing the digits, or displays, if we wished to do so... In the above non-multiplexed application, the strobes are permanently enabled allowing data to simply pass through from the BCD inputs and be displayed as normal... Also note that this particular unit is designed for 24VDC use... This is by far the most common DC voltage level used in industrial installations, and PLC I/O cards designed for such use are therefore extremely common... In comparison to 5VDC circuits, 24VDC circuits can typically tolerate far greater supply voltage excursions, are less sensitive to the effects
  • 6. of contact resistance, and more tolerant of electrically noisy environments... Multiplexed Digits By making use of the 4-bit latches that are built into the 4511 IC, we can easily multiplex the digits if so desired... By properly controlling the state of each latch enable pin (LE) we can use the same input data lines (4 switches) to selectively write to each 7-Segment display independently... With just a minor modification to our circuit, we will be able to essentially treat each digit as a unique 4-bit memory location where BCD data of our choosing can be stored and retained...
  • 7. In the above schematic diagram, each display may be written to separately... First the BCD equivalent of the desired numeral (0-9) is set using the 4 data switches... If SW1 is then closed, the current BCD input data will enter the latch of the upper 4511 IC, and will be passed on to the decoder causing the numeral to displayed... if SW1 is then opened, the latch will retain the current data, but will now ignore any changes on it's inputs... The desired numeral will continue to be displayed by the upper LED display until power is lost, or SW1 is again closed and new data is allowed to enter it's latch... The Lower 7-Segment display may be written to in a similar fashion... Set the BCD equivalent of the desired digit using the 4 data switches, then close SW2 momentarily to store and retain the current BCD data... We might say that we are strobing the data into the
  • 8. display... We could readily replace the 4 data switches and 2 latch switches if we had 6 5VDC outputs available on our PLC... If we wished to add additional digits, we would require 1 more PLC output for each digit added... By multiplexing the data in this fashion we would only require 8 PLC outputs to control a 4 digit display... 4 Digit Display configured for Multiplexed Digits By using multiplexed data lines as shown above, we can dramatically reduce the number of PLC outputs required (8) to control this 4 digit display... The down side is that writing a ladder logic program to update a display wired in this fashion will be somewhat more complicated then one written to control 4 digits wired in parallel... If you have been looking closely, you may have questioned the purpose of the dual inline sockets located on the wiring PCB of this manufactured display unit.. Well essentially the 16 data lines are internally connected in parallel with these sockets, and this allows us to easily add additional units by simply interconnecting them using a flat ribbon cable assembly...
  • 9. Multiple 4 Digit Displays configured for Multiplexed Digits
  • 10. For those with a fundamental knowledge of computers, you'll likely note that we have essentially created a 4-bit data bus, and the strobe lines are in effect our address bus... We can continue to add additional digits, and for each digit added we will require 1 additional