Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Why is BCD = Decimal in PLC?
- 16 Bits | xxxx | xxxx | xxxx | xxxx | /BINARY/
- ---> | | | |
- 4 bits/digit D4 D3 D2 D1 /HEX/
- example
- D300 = 1234 | 0001 | 0010 | 0011 | 0100 |
- ----> 1 2 3 4
- example
- D300 = 2F6B | 0010 | 1111 | 0110 | 1011 |
- ----> 2 F 6 B
- example (OP!)
- D300 = 0100 | 0000 | 0001 | 0000 | 0000 |
- ----> 0 1 0 0
- Decimal BCD HEX
- 1 0001 0001
- 2 0002 0002
- 3 0003 0003
- 4 0004 0004
- 5 0005 0005
- 6 0006 0006
- 7 0007 0007
- 8 0008 0008
- 9 0009 0009
- 10 0010 000A
- 11 0011 000B
- 12 0012 000C
- 13 0013 000D
- 14 0014 000E
- 15 0015 000F
- 16 0016 0010
- 17 0017 0011
- 18 0018 0012
- 19 0019 0013
- 20 0020 0014
- ...etc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement