Advertisement
Guest User

Untitled

a guest
Apr 27th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Why is BCD = Decimal in PLC?
  2. 16 Bits | xxxx | xxxx | xxxx | xxxx | /BINARY/
  3. ---> | | | |
  4. 4 bits/digit D4 D3 D2 D1 /HEX/
  5.  
  6. example
  7. D300 = 1234 | 0001 | 0010 | 0011 | 0100 |
  8. ----> 1 2 3 4
  9.  
  10. example
  11. D300 = 2F6B | 0010 | 1111 | 0110 | 1011 |
  12. ----> 2 F 6 B
  13.  
  14. example (OP!)
  15. D300 = 0100 | 0000 | 0001 | 0000 | 0000 |
  16. ----> 0 1 0 0
  17.  
  18. Decimal BCD HEX
  19. 1 0001 0001
  20. 2 0002 0002
  21. 3 0003 0003
  22. 4 0004 0004
  23. 5 0005 0005
  24. 6 0006 0006
  25. 7 0007 0007
  26. 8 0008 0008
  27. 9 0009 0009
  28. 10 0010 000A
  29. 11 0011 000B
  30. 12 0012 000C
  31. 13 0013 000D
  32. 14 0014 000E
  33. 15 0015 000F
  34. 16 0016 0010
  35. 17 0017 0011
  36. 18 0018 0012
  37. 19 0019 0013
  38. 20 0020 0014
  39. ...etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement