Convert from bcd (frd), Changes to the math register, Updates to arithmetic status bits – Rockwell Automation 1761-HHP-B30 MicroLogix 1000 with Hand-Held Programmer (HHP) User Manual

Page 186: Entering the instruction

Advertising
background image

Chapter 11
Using Data Handling Instructions

11–3

P 0 0 0

T O D

S R C

N 1 1

0

P 0 0 0

T O D

D E S T

S 1 3

0 0 0 0 0 0 0 0 H

Changes to the Math Register

Contains the 5-digit BCD result of the conversion. This result is valid at
overflow.

Important: To convert numbers larger than 9999 decimal, the destination

must be the Math Register (S13). You must reset the Minor
Error Bit (S5/0) to prevent an error.

Use this instruction to convert BCD values to integer values.

The source parameter can be a word address in a data file, or it can be the
math register, S13. The destination must be a word address.

Updates to Arithmetic Status Bits

With this Bit:

The Controller:

S0/0

Carry (C)

always resets.

S0/1

Overflow (V)

sets if non-BCD value is contained at the source or the
value to be converted is greater than 32,767; otherwise
reset. On overflow, the minor error flag is also set.

S0/2

Zero (Z)

sets if destination value is zero.

S0/3

Sign (S)

always resets.

Entering the Instruction

You enter the instruction from within the program monitor functional area.
As you enter the instruction, you can return to previously entered operands
by pressing this key:

Then if you want to edit that operand, press

DEL

or

FUN-DEL

and enter new

parameters. Press

ENT

to accept the operand and move on to the next one.

Once the entire instruction is entered, if you want to edit the instruction’s
parameters you must go into the overwrite mode. (See page 17–4.)

ANB

0

ENT

ANB

0

1

FUN

To enter the function code, press:

FRD

FROM BCD
Source

N7:14

0000

Dest

N7:12

0

Execution Times (

µ

sec) when:

True

False

56.88

5.52

Ladder representation:

Convert from BCD (FRD)

Advertising