Rockwell Automation 1772-LS_LSP,D17726.8.6 PROG/OPER MANUAL-MINI PLC-2/05 User Manual

Page 107

Advertising
background image

Math Instructions

Chapter 10

10Ć19

Figure 10.7

Optional ladder diagram for BCD to Binary Conversion

Executive Aux

Function

Function Number:

Data Addr:

Result Addr:

13

010

060

Start

060

2DE

G

050

000

G

051

734

G

If the operand is greater than (+) 32 767, the result 7FFFh is displayed. If the
operand is more negative than (-) 32 767, the result 8001 is displayed at the
result address. All negative values are stored as 2’s complement.

Keystrokes: You enter instructions to perform a BCD to Binary EAF
conversion by performing the following steps.

The first group of steps you perform enters the branch for the result (term F).

1.

Open the rung. Press the branch start key [ ].

2.

Press -[G]-.

3.

Enter <address>.

4.

Enter <data> if appropriate.

The second group of steps you perform enters the branch for the conversion
number (term E).

1.

Press the branch start key [ ].

2.

Press -[G]-.

3.

Enter <address>.

4.

Enter <data> if appropriate.

5.

Press -[G]-.

6.

Enter <address>.

7.

Enter <data> if appropriate.

8.

Close the branches. press the branch end key [ ].

9.

Close the rung. Press [SHIFT][EAF].

Advertising