beautypg.com

Programming chapter 3 – Rockwell Automation 1772-AF1,D17726.5.1 User Manual MINI-PLC-2/15 User Manual

Page 23

background image

Programming

Chapter 3

3Ć15

Figure 3.10

General AF1 Multiplication Function Word and Digit Format

17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0

S

Digit 1

(MSD)

Digit 2

Digit 3

Bit No.

Data Address

m

Digit 5

Digit 6

Digit 4

(LSD)

Operand 1

S

Digit 1

(MSD)

Digit 2

Digit 3

Digit 5

Digit 6

Digit 4

(LSD)

Operand 2

S

Digit 1

(MSD)

Digit 2

Digit 3

Result Address

n

Digit 5

Digit 4

Result

D

E

m + 1

m + 2

m + 3

n + 1

E = Enable Bit (1 = Function in Progress)

S = Sign Bit (1= Negative)

D = Done Bit (1 = Function Complete)

MSD = Most Significant Digit

LSD = Least Significant Digit

11487

Digit 8

Digit 9

Digit 11

Digit 12

Digit 10

(LSD)

Digit 6

Digit 7

n + 2

n + 3