Binary numbers and types of variables

The numeral system that the people use is the decimal system, this is, Exist 10 different symbols which are combined to make any number. The 10 symbols are the numbers 0 to 9. In order to represent the decimal number 121, the following operation is done:

1×102+2×101+1×100=100+20+1=121

In this example can see that, in order to obtain the number, the position of each symbols (that can be any between 0 to 9) in multiplied by the base (10 for decimal system, for the 10 symbols) to the power of position of the symbol begun since the number 0, in others words, the symbol on the position zero is multiplied by 1 (100 =1), the symbol on the second position is multiplied by 10 (101=10), the symbol in the third position is multiplied by 100 (102=100) and so on.

The binary system works in similar way to the decimal system, but in the in the binary system the number de symbols is two, 0 and 1, for example, to represent the number 121 in binary, the following operation is done:

1×26+1×25+1×24+1×23+0x22+0x21+1×20= 64+32+16+8+0+0+1=121

The representation of the number 121 in binary is 1111001b, the “b” means that the representation of the number is in binary and differentiates it one million, one hundred eleven thousand, one in decimal. In this point, it can be asking how it has obtained the patron of 1’s and 0’s to represent the number 121 in binary. There are several ways; one very simple is to set 1’s from left to right progressively. If it put a 1 on a determined position and the value is higher that the desired value, then, the value on this position must be a 0. For the number 121, if it begins with a 1 on the position 7, the value obtained is 127, which is greater than 121, for this reason it begin with a 1 on the position 6. The next table summarizes the procedure.

Position

Cumulative sum

Value in the position

6

2position=26=64

1

5

64+32=96

1

4

96+16=112

1

3

112+8=120

1

2

120+4=124 > 121

0

1

120+2=122 >121

0

0

120+1=121

1

 

Each position (or digit) of a binary number also is called bit, in the case of the example above, the number 121 is represented with 7 bits. The number of bits is important because it determinate the range of values that can have a binary number, for example, an 8-bits number can have a value between 0 and 255 (2n-1, where n is the number of bits). Since the point of view electronic, the fact each digit has only two values is very important, this gives simplicity to each digit that can be represented as a switch open or closed, or with a cut-off o saturated transistor, among others.

La combinaciones de 1’s y 0’s también sirven para representar códigos, como por ejemplo el código ASCII. Por ejemplo el número 01111001b representa el número 121, representa la letra “y” en el código ASCII y representa el número 79 en código BCD entre otros.

The importance of the binary numbers in the PLC use is in the fact that the microprocessors with which are constructed executing its operations using as arguments binary variables. These binary variables can be of different types, the most used are: Boolean (or bit), integers, float point, characters and string of characters. The integers and float point variables are called analog variables.

The boolean variables, also called bit or logical, are binary representations with only one bit or digit, in such sense, only can have the values 0 and 1, that normally are interpreted as false o true respectively.

The integer variables are memory registers that can keep numbers of n-bits, where n, typically, is multiple of 2, for example 4, 8, 16, 32 and 64 bits. The number of bits, as it was mentioned before, determines the range of the values that the variable has. The binary numbers can be positives including the zero, in this case the code is called pure binary, or positives, negatives and zero, in this case the code is called 2-complement binary. The next table shows the range for the integers according to the number of bits.

Number de bits Range (binary) Range (binary 2-complement)
4 (nibble) 0 to 15 -8 to 7
8 (byte) 0 to 255 -128 to +127
16 0 to 65,535 -32,768 to +32,767
32 0 to 4,294,967,295 -2,147,483,648 to +2,147,483,647
64 0 to 18,446,744,073,709,551,615 -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807

 

The point float variables, also called real, have decimals. The representation of a float point is done with standards as IEEE 754. With this standard and simple precision, numbers from -1.17549449×10-38 to 3.40282346×1038 can be represented.

A character is a symbol of the ASCII table (letters, numbers, symbols and control characters) represented with 8 bits. If 2 or more characters are concatenated is called string of characters and is used to locate words and phrases.

138 Comments

  1. Daniela Needham

    I see that your controlreal.com website may be missing out on approximately 1K visitors daily. Our AI powered traffic system is tailored to increase your site’s visibility: https://ln.run/VZn5V
    We’re offering a free trial that includes 4,000 targeted visitors to show the potential benefits. After the trial, we can supply up to 250K targeted visitors per month. This opportunity could greatly increase your website’s reach and traffic.

    Reply
  2. Fpgmtf

    stromectol tablets for sale – stromectol for humans tegretol 200mg uk

    Reply
  3. medartix.com

    Fantastic blog. Will read on…

    Reply
  4. cod voucher

    Hello, blame you as a replacement for actual blog! What theme in your blog?

    Reply
  5. viral bokep indo

    Hello just wanted to give you a quick heads up and let you know a few of the images aren’t loading correctly. I’m not sure why but I think its a linking issue. I’ve tried it in two different internet browsers and both show the same results.

    Reply
  6. 印傳單

    It is in point of fact a great and useful piece of info.I am glad that you shared this helpful information with us.Please stay us informed like this. Thank you for sharing.

    Reply
  7. Cfjyqx

    buy isotretinoin without a prescription – decadron pill buy cheap zyvox

    Reply
  8. mua like fb

    birthday invitations should be given as early as possible to avoid any surprises”

    Reply
  9. cheap seo

    I really like it when people get together and share views. Great blog, keep it up.

    Reply
  10. xxx porn

    Good day! Do you use Twitter? I’d like to follow you if that would be ok.I’m undoubtedly enjoying your blog and look forward to new updates.

    Reply
  11. Dedzjy

    amoxil for sale – ipratropium drug cost ipratropium

    Reply
  12. Angle valve

    Beneficial document helps make frequent advance, appreciate it write about, this pile-up connected with expertise is usually to hold finding out, focus is usually the beginning of money.

    Reply
  13. Table Centerpiece

    Muchos Gracias for your post.Much thanks again. Will read on…

    Reply
  14. biyapay 安全吗

    Really appreciate you sharing this post. Much obliged.

    Reply
  15. china Dropshipping

    I really like and appreciate your article.Thanks Again. Fantastic.

    Reply
  16. Dumpster rental near me

    Thanks-a-mundo for the blog.Really looking forward to read more. Cool.

    Reply
  17. linkin love ai

    Thanks so much for the post.Really thank you! Really Cool.

    Reply
  18. porn gokil

    A motivating discussion is definitely worth comment. There’s no doubt that that you need to publish more about this subject matter, it may not be a taboo subject but generally people don’t talk about such topics. To the next! Cheers!!

    Reply
  19. linkinlove

    wow, awesome article. Keep writing.

    Reply
  20. manual massage vs handheld

    Enjoyed every bit of your blog article.Really thank you! Much obliged.

    Reply
  21. Kasyna Internetowe Polska

    stromectol tablets for humans stromectol for humans for sale – ivermectin cream

    Reply
  22. Hack like

    Aw, this was an incredibly good post. Taking the time and actual effort to produce a very good articleÖ but what can I sayÖ I hesitate a whole lot and never manage to get nearly anything done.

    Reply
  23. western porn

    Hi there, everything is going perfectly here andofcourse every one is sharing facts, that’s genuinely excellent, keep up writing.

    Reply
  24. glass bong

    Great, thanks for sharing this article post. Keep writing.

    Reply
  25. Mua like

    Greetings! Very useful advice in this particular post! It’s the little changes which will make the greatest changes. Thanks a lot for sharing!

    Reply
  26. Zhenxi Metal Packaging

    Thanks again for the blog article.Really looking forward to read more. Cool.

    Reply
  27. Baixi Metal Can

    wow, awesome blog article.Much thanks again. Cool.

    Reply
  28. asian porn

    Very interesting points you have remarked, appreciate it for putting up. “I love acting. It is so much more real than life.” by Oscar Wilde.

    Reply
  29. taxi porn

    Aw, this was an exceptionally nice post. Finding the time and actual effort to make a top notch articleÖ but what can I sayÖ I procrastinate a lot and don’t seem to get nearly anything done.

    Reply
  30. 18+ porn

    When someone writes an piece of writing he/she maintains the thought of a user in his/her mind that how a user can be aware of it. So that’s why this piece of writing is amazing. Thanks!

    Reply
  31. togel4d

    Hi there, just became aware of your blog through Google, and foundthat it’s really informative. I’m gonna watch out for brussels.I’ll be grateful if you continue this in future. Lots of people will be benefited from your writing.Cheers!

    Reply
  32. onlyfans 18+

    Hey, thanks for the blog article.Really thank you! Much obliged.

    Reply
  33. blue salt trick

    Nice post. I was checking constantly this blog and I’m impressed! Extremely useful info specifically the last part 🙂 I care for such information a lot. I was looking for this particular information for a long time. Thank you and good luck.

    Reply
  34. Riverdale

    Oaijyq – citrato de sildenafila neo quimica bula Hrjexq pucsoh

    Reply
  35. 순천출장안마

    I value the article post.Really looking forward to read more. Cool.

    Reply
  36. Zturnd

    azithromycin 500mg generic – tindamax 300mg us buy nebivolol 5mg

    Reply
  37. gas mask

    Great, thanks for sharing this article post.Much thanks again. Really Great.

    Reply
  38. C-64

    That is a really good tip especially to those new to the blogosphere. Simple but very accurate infoÖ Many thanks for sharing this one. A must read article!

    Reply
  39. GeekBarVape

    I appreciate you sharing this article. Much obliged.

    Reply
  40. Aboqkx

    buy prednisolone 20mg online cheap – azipro 500mg over the counter where to buy progesterone without a prescription

    Reply
  41. Desierto de la Tatacoa camping

    Wisconsin Division of Revenue officials estimated that ifthe winner requires the cash prize the state would claim $36.four million ofthe winnings as tax revenue.

    Reply
  42. 印傳單

    You suggested it exceptionally well! retin-a

    Reply
  43. ice water hack

    What’s Going down i am new to this, I stumbled upon thisI’ve discovered It positively useful and ithas helped me out loads. I’m hoping to contribute &aid different customers like its helped me. Goodjob.

    Reply
  44. Amgorw

    buy lasix 100mg online cheap – buy cheap generic lasix order betnovate 20gm cream

    Reply
  45. Yihvtf

    neurontin 100mg oral – buy clomipramine without a prescription order generic sporanox

    Reply
  46. Nmipiy

    augmentin us – duloxetine online order duloxetine 20mg generic

    Reply
  47. Uueret

    buy monodox online – acticlate for sale online purchase glipizide without prescription

    Reply
  48. 发言稿

    Very informative article post. Awesome.

    Reply
  49. Conveyor belt

    Looking forward to reading more. Great article post.Really thank you! Keep writing.

    Reply
  50. Hoodies

    Great blog article.Really looking forward to read more.

    Reply
  51. datacenter proxies

    I am so grateful for your blog post.Much thanks again. Want more.

    Reply
  52. SheTopper Shades

    Thanks for the blog article. Much obliged.

    Reply
  53. nsfw ai

    Really enjoyed this article.Really looking forward to read more. Cool.

    Reply
  54. nsfw ai chat

    Major thankies for the post. Keep writing.

    Reply
  55. Explore new features

    chloroquine phosphate over the counter chloroquin

    Reply
  56. usmle pass program

    Your way of telling everything in this post is actually good, everyone be capable of effortlessly know it, Thanks a lot.

    Reply
  57. les mills body pump

    Really enjoyed this article.Thanks Again. Really Cool.

    Reply
  58. Jinhong Gas for sale

    I appreciate you sharing this blog.Really thank you! Awesome.

    Reply
  59. 深圳怡康婦產醫院評價

    Great, thanks for sharing this article post. Keep writing.

    Reply
  60. Dplslz

    augmentin 375mg pill – augmentin 375mg tablet duloxetine generic

    Reply
  61. 오피스타 홈페이지

    I think this is a real great blog article. Awesome.

    Reply
  62. krmoon

    I really enjoy the blog article.Really looking forward to read more.

    Reply
  63. Mkfooc

    buy rybelsus tablets – cost rybelsus 14mg buy periactin 4 mg pills

    Reply
  64. mag welding

    Thank you for your article.Thanks Again. Want more.

    Reply
  65. Express Agra tour from Delhi

    Great blog post. Fantastic.

    Reply
  66. expensive ornament brands

    A round of applause for your post. Awesome.

    Reply
  67. poppolive recharge

    Hey, thanks for the blog article. Will read on…

    Reply
  68. 菠菜投放广告

    Im obliged for the blog post.Really thank you! Great.

    Reply
  69. gas mask

    Looking forward to reading more. Great blog post.Much thanks again. Fantastic.

    Reply
  70. 토지노솔루션임대

    Wow, great post.Really looking forward to read more. Awesome.

    Reply
  71. 토지노솔루션임대

    Im obliged for the post.

    Reply
  72. 佳文网

    I really liked your article.Really looking forward to read more. Much obliged.

    Reply
  73. Zcfxzu

    buy tadalafil 10mg generic – tadalafil 5mg sale buy sildenafil 100mg online

    Reply
  74. Ggycrq

    sildenafil 50mg ca – sildenafil 50mg generic order tadalafil pills

    Reply
  75. sex dolls

    Im thankful for the blog.Really looking forward to read more. Really Great.

    Reply
  76. Plinko App

    What a stuff of un-ambiguity and preservenessof valuable knowledge on the topic of unpredicted feelings.

    Reply
  77. laptop cu gia re

    Thanks for the good writeup. It if truth be told was a entertainment account it. Glance complex to more added agreeable from you! By the way, how could we keep in touch?

    Reply
  78. Dich vu Tiktok

    hello!,I like your writing so so much! proportion we keep up a correspondence extra about your post on AOL? I require an expert in this area to solve my problem. May be that’s you! Looking ahead to peer you.

    Reply
  79. whatsapp網頁版登入

    Appreciate you sharing, great article.Thanks Again. Awesome.

    Reply
  80. vw classic parts

    woodland springs apartments marchwood apartments bridgepoint apartments

    Reply
  81. whatsapp官网

    I appreciate you sharing this blog article.Thanks Again. Really Cool.

    Reply
  82. vw classic parts

    What’s up colleagues, pleasant article and nice urging commented here,I am truly enjoying by these.

    Reply
  83. vw classic parts

    of any widgets I could add to my blog that automatically

    Reply
  84. to learn more

    definitely an interesting read. i usually dont comment. signed Dr Davids

    Reply
  85. Palmam

    buy atorvastatin 80mg generic – brand lipitor 80mg purchase lisinopril pill

    Reply
  86. Ratnagiri mango

    Thanks for sharing, this is a fantastic blog post.Thanks Again. Much obliged.

    Reply
  87. 現金網

    Major thankies for the blog article.Thanks Again. Fantastic.

    Reply
  88. Ctbjtc

    cenforce 100mg brand – order cenforce 100mg online cheap generic metformin

    Reply
  89. 網上彩票投注

    Very good post.Really looking forward to read more. Fantastic.

    Reply
  90. ip2world

    I appreciate you sharing this blog.Really thank you! Fantastic.

    Reply
  91. ip2

    Im thankful for the blog post.Really looking forward to read more. Really Cool.

    Reply
  92. lan pwr

    Really appreciate you sharing this article post. Want more.

    Reply
  93. Solar Panels

    A big thank you for your article. Awesome.

    Reply
  94. Status App

    Thanks again for the post.Thanks Again. Much obliged.

    Reply
  95. Nnhien

    order lipitor 20mg online – order zestril 5mg generic order lisinopril 5mg sale

    Reply
  96. vw parts catalog online

    I will right away take hold of your rss as I can not in finding your email subscription link or e-newsletter service. Do you have any? Please let me realize in order that I could subscribe. Thanks.

    Reply
  97. Status App

    Fantastic post.Thanks Again. Want more.

    Reply
  98. Huijue Group

    Really appreciate you sharing this post.Thanks Again. Great.

    Reply
  99. Wuxi Spark

    I think this is a real great blog. Fantastic.

    Reply
  100. 3phase-motor

    Say, you got a nice article.Really looking forward to read more. Great.

    Reply
  101. for more information

    I want to to thank you for this great read!! I absolutely enjoyed every bit of it. I have got you book marked to look at new stuff you postÖ

    Reply
  102. fillersfairy Botulax

    Looking forward to reading more. Great blog post.Thanks Again.

    Reply
  103. SciatiSoothe

    It¡¦s actually a great and helpful piece of information. I am glad that you simply shared this useful info with us. Please keep us informed like this. Thanks for sharing.

    Reply
  104. Tuqycu

    atorvastatin 40mg pills – amlodipine 5mg cost zestril us

    Reply
  105. Prime Biome

    I blog quite often and I genuinely thank you for your content.The article has truly peaked my interest. I will takea note of your blog and keep checking for new details about once a week.I opted in for your RSS feed too.

    Reply
  106. gaming LED

    Im thankful for the article post.Thanks Again. Want more.

    Reply
  107. Prime Biome

    Hello friends, its wonderful article on the topic oftutoringand entirely explained, keep it up all the time.

    Reply
  108. Mitolyn

    Excellent way of telling, and good post to get information aboutmy presentation subject matter, which i am going to deliver in institution of higher education.

    Reply
  109. Tonic Greens

    Hi there, I check your blogs like every week.Your writing style is awesome, keep up the good work!, , , , , , , , , , , , , , , , , , , , , , , , , , , ,, , , ,

    Reply
  110. Prodentim

    I do accept as true with all the ideas you have offered to your post.They’re very convincing and will certainly work. Nonetheless, the postsare very short for beginners. Could you please extend them a bitfrom next time? Thank you for the post.

    Reply
  111. rotontek.com

    Looking forward to reading more. Great blog post.Thanks Again. Want more.

    Reply
  112. FAT DISSOLVING

    I value the blog article.Really thank you! Awesome.

    Reply
  113. click here

    I needed to thank you for this good read!! I absolutely enjoyed every little bit of it. I have got you book-marked to check out new things you postÖ

    Reply
  114. Mjs Botulinum Toxin

    Im thankful for the article post. Will read on…

    Reply
  115. leon machine

    Major thanks for the post.Really thank you! Really Great.

    Reply
  116. JYP/JDC/JYF/YRT/JYZ series connector

    Thanks-a-mundo for the blog post.Much thanks again. Great.

    Reply
  117. China sourcing company

    I cannot thank you enough for the blog.Really looking forward to read more. Really Cool.

    Reply
  118. genting call girl

    I really enjoy the article post.Really thank you! Fantastic.

    Reply
  119. 佳文网

    Thank you for your article.Really looking forward to read more. Really Cool.

    Reply
  120. Status game

    I truly appreciate this blog article. Want more.

    Reply
  121. Kajlue

    buy omeprazole 20mg without prescription – lopressor pills tenormin canada

    Reply
  122. Danmajet

    I cannot thank you enough for the post.Really looking forward to read more.

    Reply
  123. Thanks for every other informative blog. The place else may just I am gettingthat type of information written in such a perfect means?I’ve a venture that I am just now running on, andI’ve been at the glance out for such info.

    Reply
  124. Moemate

    Very good blog post.Thanks Again. Fantastic.

    Reply
  125. rpsexdoll

    Thank you ever so for you article post.Thanks Again.

    Reply
  126. hawkrown

    Muchos Gracias for your article. Really Great.

    Reply
  127. go to

    Hello, of course this post is genuinely pleasant and Ihave learned lot of things from it on the topic of blogging.thanks.

    Reply
  128. visit

    I have read so many articles regarding the blogger lovers however thispiece of writing is in fact a nice article, keep it up.

    Reply
  129. Moemate

    Thanks so much for the post.Really thank you! Great.

    Reply
  130. browse

    I really like and appreciate your article post.Much thanks again. Keep writing.

    Reply
  131. Mzvigb

    buy medrol 4mg – lyrica 75mg us buy triamcinolone sale

    Reply
  132. guided meditation

    Very well written story. It will be helpful to anyone who usess it, including yours truly :). Keep doing what you are doing – for sure i will check out more posts.

    Reply
  133. done-for-you guided meditation scripts

    instagram takipci hilesi says:instagram sifresiz takipci hilesi yapmak herhangi bir sifre girmeden instagram takipci hilesi mumkunReply 11/09/2021 at 12:56 pm

    Reply
  134. dasatinib precio actualizado

    Just as good as your last post. I wish I had your blogging style.

    Reply
  135. pentagon.market

    I needed to thank you for this fantastic read!! I absolutely loved every bit of it. I’ve got you bookmarked to look at new things you postÖ

    Reply
  136. visit website

    Good article and right to the point. I am not sure if this is truly the best place to ask but do you people have any ideea where to get some professional writers? Thx 🙂

    Reply
  137. Lshwad

    clarinex sale – loratadine 10mg tablet purchase dapoxetine online

    Reply
  138. Wjhhsk

    buy cytotec 200mcg sale – order cytotec 200mcg pill cheap diltiazem 180mg

    Reply

Leave a Comment

Your email address will not be published. Required fields are marked *