EasyManuals Logo

Allen-Bradley micrologix 1500 Reference Manual

Allen-Bradley micrologix 1500
424 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #171 background imageLoading...
Page #171 background image
Publication 1762-RM001C-EN-P
Conversion Instructions 11-9
Updates to Math Status Bits
Changes to the Math Register
Contains the 5-digit BCD result of the conversion. This result is valid at
overflow.
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.
Table 11.12 Math Status Bits
With this Bit: The Controller:
S:0/0 Carry always resets
S:0/1 Overflow sets if BCD result is larger than 9999. On overflow, the minor error
flag is also set.
S:0/2 Zero Bit sets if result is zero, otherwise resets
S:0/3 Sign Bit sets if the source word is negative; otherwise resets
NOTE
To convert numbers larger than 9999 decimal, the
destination must be the Math Register (S:13). You must
reset the Minor Error Bit (S:5/0) to prevent an error.
TOD
To BCD
Source N7:3
9760<
Dest N10:0
9760<
TOD
9760N7:3 Decimal 0010 0110 0010 0000
9760N7:0 4-digit BCD1001 0111 0110 0000
MSB
LSB
The destination value is
displayed in BCD format.

Table of Contents

Other manuals for Allen-Bradley micrologix 1500

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Allen-Bradley micrologix 1500 and is the answer not in the manual?

Allen-Bradley micrologix 1500 Specifications

General IconGeneral
Processor Type16-bit
Programming LanguageLadder Logic
MountingDIN rail or panel mount
Programming SoftwareRSLogix 500
Communication PortsRS-232
Power Supply24V DC
Operating Temperature0°C to 55°C (32°F to 131°F)
Controller TypeProgrammable Logic Controller (PLC)

Related product manuals