Programming chapter 3 – Rockwell Automation 1772-AF4,D17726.5.3 User Manual, AUX FUNCT PROM User Manual

Page 59

Advertising
background image

Programming

Chapter 3

3Ć51

Figure 3.51

General AF4 Cosine Function Word and Digit Format

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

Digit 1

(MSD)

Digit 2

Bit No.

Data Address

m

Digit 2

Operand

Digit 5

Result Address

n

Result

D

E

n + 1

E = Enable Bit (1 = Function in Progress)

S = Sign Bit (1 = Negative)
MSD = Most Significant Digit

LSD = Least Significant Digit

11517

Digit 3

(LSD)

Digit 3

Digit 1

(MSD)

Digit 4

Digit 6

(LSD)

D = Done Bit (1 = Function Complete)

S

S

3.

Enter a data address and a result address.

If we enter a data address of 205 and a result address of 310, the AF4
establishes the data table format shown in Figure 3.52. The data address, word
205, is reserved for the three digits of the angle whose cosine we want. The
result address, word 310, is reserved for the most significant three digits of the
cosine; the least significant three digits are stored in the next higher address,
word 311.

Figure 3.52

AF4 Cosine Function Format After Address Entry

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

Digit 1

(MSD)

Digit 2

Bit No.

Data Address

Digit 2

Operand

Digit 5

Result Address

Result

D

E

E = Enable Bit (1 = Function in Progress)

S = Sign Bit (1 = Negative)
MSD = Most Significant Digit

LSD = Least Significant Digit

11518

Digit 3

(LSD)

Digit 3

Digit 1

(MSD)

Digit 4

Digit 6

(LSD)

D = Done Bit (1 = Function Complete)

S

S

205

310

311

Advertising