Тёмный

What is Binary Coded Decimal (BCD) and How is it Used in Automation? 

RealPars
Подписаться 1,1 млн
Просмотров 72 тыс.
50% 1

▶ C'mon over to realpars.com where you can learn PLC programming faster and easier than you ever thought possible!
=============================
▶ Check out the full blog post over at
realpars.com/bcd/
=============================
As computers evolved from very early transistor-based models to the desktop personal computers, instruction registers were 8-bits in length with computing, having to adapt to the standard decimal-based system.
Specific instructions used by programmers early on were designed with 8-bits in length to facilitate all of computing. These instructions have been maintained throughout the years of computer development, and will most likely continue to be used in the future.
Within computers, each of the 8-bits has only two values for representing either a logic 1 (or True) and a logic 0 (or False). This is what is referred to as Boolean in computer science.
Boolean logic and expressions make the system of using binary numbers perfect for use in digital or electronic circuits and systems. And, the BCD system offers relative ease of conversion between machine-readable and human-readable numerals.
An advantage of the Binary Coded Decimal system is each decimal digit is denoted by a group of 4 binary digits and that it allows easy conversion between decimal a base-10 system and binary a base-2 system.
A disadvantage is BCD code does not use all the states between binary 1010 for the decimal 10 and binary 1111 for the decimal 15.
The binary numbering system used in computers is a Base-2 numbering system that follows the same set of rules used with base-10 numbering system or decimal.
Binary-coded decimal or BCD is a code using a series of binary digits or bits that when decoded represents a decimal digit. A decimal number contains 10 digits, zero to nine.
So, each decimal digit 0 through 9 is represented by a series of four binary bits where the numerical value when decoded is equivalent to a decimal digit. In BCD we will use binary numbers from 0000-1001, which are equivalent to decimal 0-9.
Using the decimal number 5 for example, 5 in BCD is represented by 0101 and 2 in BCD is represented by 0010 and 15 in BCD is represented by 0001 0101.
The decimal weight of each decimal digit to the left increases by a factor of 10. With the BCD number system, the binary weight of each digit increases by a factor of 2.
The first digit has a weight of 1, the second digit has a weight of 2, the third digit has a weight of 4, and the fourth digit has a weight of 8.
Keep in mind, Binary-coded decimal is not the same as binary to decimal conversion.
When we use a table to explain and expand out the weighted values, using 16 bits, we can convert the decimal numbers into their binary equivalents.
By adding together all the decimal number values from right to left from each of the bit positions that are represented by a 1 gives us the decimal equivalent.
However, for the same decimal number, the BCD form representation is not the same as binary to decimal conversion.
Electronic circuits and systems can be divided into two types of circuits, analog and digital.
Analog Circuits amplify varying voltage levels that can alternate between a positive and negative value over a period of time and Digital Circuits produce distinct positive or negative voltage levels representing either a logic level 1 or a logic level 0 state.
Voltages used in digital circuits could be any value, however, in digital and computer systems they are below 10 volts.
In digital circuits voltages are called logic levels and typically one voltage level will represent a HIGH state and a LOW state. A binary number system will use both of these two states.
Some PLCs for example, Siemens S7 standard timer, and counter data types use Binary Coded Decimal in their data structures because these structures go back to when engineers had to deal with things like these thumbwheels and 7 segment displays.
In fact, the S7 timer setpoints are still entered as S5T# 2S for a two-second setpoint. These timers use three BCD digits or 12 bits and two extra bits for the time base. This is true for counters in which they only count from 0 to +999.
=============================
Missed our most recent videos? Watch them here:
realpars.com/actuator/
realpars.com/inner-join/
realpars.com/p-id/
=============================
To stay up to date with our last videos and more lessons, make sure to subscribe to this RU-vid channel:
goo.gl/Y6DRiN
=============================
TWEET THIS VIDEO ctt.ac/aV41h
=============================
Like us on Facebook: / therealpars
Follow us on Twitter: / realpars
Follow us on LinkedIn / realpars
Follow us on Instagram / realparsdotcom
#RealPars #BCD #Automation

Опубликовано:

 

10 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 62   
@IngDzib
@IngDzib 4 года назад
Thank you Realpars for everything. Regards from Cancun Mexico...
@realpars
@realpars 4 года назад
You are very welcome, Wilberth! Happy learning.
@johnlansing2902
@johnlansing2902 4 года назад
Thank you for helping people who work out in the field
@realpars
@realpars 4 года назад
Thanks for your support, John!
@rafaelgarachecalix7110
@rafaelgarachecalix7110 4 года назад
Thanks, RealPars. Your information is really good for the user. Keep it up; the best contribution is information! Greetings from Nicaragua.
@realpars
@realpars 4 года назад
Thanks for your support, Rafeal! Happy learning!
@shubhamdubey3585
@shubhamdubey3585 4 года назад
Thank you real Pars always with good knowledge
@realpars
@realpars 4 года назад
Happy learning, Shubham! Thanks for your support.
@shashikalas4033
@shashikalas4033 3 года назад
thank you realpars team for informative videos,how 2421 and reflective codes usded in real time
@sjholmesbrown
@sjholmesbrown 4 года назад
BCD is used extensively in the OMRON CP and CJ series PLCs as well, in fact many of the instructions in CX-Programmer have a BCD and Binary version. Their more modern NJ/NX series use tag based data types that obscure the binary coding.
@realpars
@realpars 4 года назад
Thanks for sharing that information with us, Stephen!
@zackcarl7861
@zackcarl7861 2 года назад
What is omron cp and cj , series Plc , CX programmer ?
@zackcarl7861
@zackcarl7861 2 года назад
What's nj/nx series
@theflaminglionhotlionfox2140
@theflaminglionhotlionfox2140 2 года назад
You just said a bunch of letters mashed together that I don't understand.
@theuv143
@theuv143 4 года назад
Good work and keep going you are doing great work...
@realpars
@realpars 4 года назад
Thank you!
@salamhassan9376
@salamhassan9376 4 года назад
Thanks för your vido sir!
@aadilferoze3621
@aadilferoze3621 4 года назад
This is really awesome! It is an easy topic, but because we sometimes mix up between decimal to BCD conversions and Decimal to Binary conversions, it seems challenging! This video really cleared it up. Thanks Real Pars
@realpars
@realpars 4 года назад
Thanks a lot for your kind compliment! We are always extremely happy to hear such positive feedback! If you ever have any questions, feel free to reach out to us. Happy learning!
@jeanatienza1247
@jeanatienza1247 3 года назад
Thank you!
@devanandkumar8623
@devanandkumar8623 4 года назад
This is really awesome explanation which graphics.👌👍
@4.0Solutions
@4.0Solutions 4 года назад
Congrats on 400k subscribers!!!
@realpars
@realpars 4 года назад
Thank you!
@elmirelmir842
@elmirelmir842 4 года назад
Is it possible to have access to all videos by subscribing on the website or app? Because on the website, there are packs of videos with their specific price labels and it confuses me. I'm not sure whether I should pay for packs or just subscribe.
@realpars
@realpars 4 года назад
Hi Elmir, Thanks for your comment! My apologies for any confusion. You obtain full access to our complete course library (400+ video courses) by subscribing to either our monthly package for $19.99 a month or our yearly package for $119,- ($9.99 per month). You can subscribe through the following link bit.ly/2IpeCp3 Let us know if you have questions, feel free to contact us at hello@realpars.com
@vipinrana2377
@vipinrana2377 4 года назад
Great job sir
@realpars
@realpars 4 года назад
Thank you, Vipin!
@salamhassan9376
@salamhassan9376 4 года назад
Hi! We know that analog input is first converted to binary. which function on the PLC will process Analog Inputs.
@namangoku2649
@namangoku2649 4 года назад
Awesome as always
@realpars
@realpars 4 года назад
Thank you!
@namangoku2649
@namangoku2649 4 года назад
@@realpars welcome
@faisalnawaz7467
@faisalnawaz7467 4 года назад
Real pars at best
@Siddhartha13
@Siddhartha13 4 года назад
Can we get something on CNC in automation? Sinumerik 840D sl etc.
@Siddhartha13
@Siddhartha13 4 года назад
Terrific video as usual. Speaking of S5 Time. What about quick video on S5 PLCs and TTy protocol?
@methuselahbwalya9981
@methuselahbwalya9981 4 года назад
thank you for the sharing #realpars
@realpars
@realpars 4 года назад
You are very welcome, happy learning!
@ashwinrajk9932
@ashwinrajk9932 3 года назад
Good one
@realpars
@realpars 3 года назад
Thank you, Ashwinraj!
@safdarjamal4660
@safdarjamal4660 4 года назад
Thanks sir,, Please upload brief video on PID gain and PID controller.
@realpars
@realpars 4 года назад
Hey! Thanks for your comment and your suggestion. I will pass this on to our course developers! Thanks for sharing and happy learning!
@nomanmalik5215
@nomanmalik5215 4 года назад
thanks, it helped. Greetings from Pakistan
@realpars
@realpars 4 года назад
Great to hear that!
@vfdrepairinglab
@vfdrepairinglab 4 года назад
good job
@realpars
@realpars 4 года назад
Thank you!
@MM-vi9kh
@MM-vi9kh 4 года назад
Thanks RealPars, great video Is there a chance to teach us system architecture drawing?
@realpars
@realpars 4 года назад
Hey! Thanks for your comment and your suggestion. I will pass this on to our course developers! Thanks for sharing and happy learning!
@SanskaariLadka07
@SanskaariLadka07 3 года назад
Please make video on integer and D int. Boolean and real value and used where and which types signal in plc software. And thanks for this video from INDIA.
@charliechimples
@charliechimples 4 года назад
Great vid thanks for sharing. 🐵
@realpars
@realpars 4 года назад
You are welcome!
@alisahibzeynalov7553
@alisahibzeynalov7553 4 года назад
Where can I find plc and scada simulation sofwere?
@realpars
@realpars 4 года назад
Hi Alisahib, Thanks for your comment! We sell a variety of software and hardware in our online store shop.realpars.com/. Feel free to check it out, and if you have any questions please let us know - we're here to help! Happy learning!
@georgealbo
@georgealbo 11 месяцев назад
do you have videos on omron CP2E tutorials thanks
@realpars
@realpars 10 месяцев назад
Hi George, Thank you for your comment, but unfortunately we do not have any lessons on the older Omron series.
@PatrickTengmusic
@PatrickTengmusic 3 года назад
Do you have a special website to lean this form of computing? Thank you 🙏
@realpars
@realpars 3 года назад
Hi Patrick, Thanks for your comment! Sure, we do! We have a course library filled with over 400+ video courses. You obtain full access to our complete course library by subscribing to either our monthly package for €22.12 a month or our yearly package for €159.28 You can subscribe through the following link bit.ly/3ad3dGg I hope this helps- please let me know if you have any other questions, and I'll do my best to assist. Happy learning!
@PatrickTengmusic
@PatrickTengmusic 3 года назад
RealPars you don’t have Paypal method?
@dekunet
@dekunet 4 года назад
Please guys, do videos about simotion, profinet, profibus dp and pa...
@realpars
@realpars 4 года назад
Thanks for sharing your suggestion with us, Pedro! I have sent this over to our course developers. Happy learning!
@dennisrubio2375
@dennisrubio2375 Год назад
Great
@realpars
@realpars Год назад
Thank you!
@edwinso9351
@edwinso9351 4 года назад
Any video to show how to copy the programming file from PLC
@realpars
@realpars 4 года назад
Hey Edwin, Thanks for sharing your suggestion with us! I have sent this over to our course developers. Happy learning!
Далее
What is Remote I/O?
5:41
Просмотров 95 тыс.
Where did Bytes Come From? - Computerphile
11:31
Просмотров 475 тыс.
How to Program a Basic PID Loop in ControlLogix
13:12
Просмотров 375 тыс.
Visualizing Data with 7-Segment Displays
34:26
Просмотров 1,2 млн
Ep 007: Packed Binary Coded Decimal
11:47
Просмотров 5 тыс.
Why Use Binary? - Computerphile
8:29
Просмотров 664 тыс.
6 awesome application of 555-timers in circuits
22:47
What is the Difference Between PLC and DCS?
11:23
Просмотров 1,2 млн
What is SCADA?
8:09
Просмотров 1,3 млн
Binary to BCD | Logical Redstone #10
29:49
Просмотров 102 тыс.