beautypg.com

Preface – Rockwell Automation 1761 MicroLogix 1000 Programmable Controllers User Manual

Page 152

background image

Preface

MicroLogix 1000 Programmable Controllers User Manual

9–4

Example

The integer value 9760 stored at N7:3 is converted to BCD and the BCD equivalent
is stored in N7:0. The maximum BCD value is 9999.

TOD

TO BCD
Source

N7:3
9760

Dest

N7:0
9760

MPS displays the destination value in
BCD format.

9

7

6

0

9

7

6

0

N7:3 Decimal

0010 0110 0010 0000

N7:0 4-digit BCD

1001 0111 0110 0000

MSB

LSB