Programming chapter 3 – Rockwell Automation 1772-AF4,D17726.5.3 User Manual, AUX FUNCT PROM User Manual
Page 50
Advertising
Programming
Chapter 3
3Ć42
4.
You can enter base y and exponent x values from the keyboard of the
industrial terminal or through ladder diagram functions. Entry of y - 124
in word 200 and 2 - 02.0 in word 201 produces the result 15376 when the
power function executes. Figure 3.41 shows how the result is stored as
1.53(10)
4
. The result is truncated.
Figure 3.41
AF4 Power Function Format After Execution
17 16 15 14 13 12 11 10 7 6 5 4 3 2 1 0
Bit No.
Data Address
Result Address
D
E
E = Enable Bit (1 = Function in Progress)
D = Done Bit (1 = Function Complete)
11510
S = Sign Bit (1 = Negative)
S
S
ER
S
Base y
Exponent x
Result Base, r
s (Power of 10)
ER = Error Bit (1 = Overflow when y > 9.99(10) )
x
099.
200
201
300
301
1
2
4
0
2
0
1
5
3
0
0
4
(0)
(0)
(0)
(1) (0)
(0)
Advertising