beautypg.com

Rockwell Automation 1775-S4B,D17756.5.3 User Manual SCANNER/MSG HND User Manual

Page 145

background image

Floating Point Values on the 1775ĆS4B Scanner

Appendix B

BĆ4

Figure B.1

Floating Point Conversion User Program (continued)

Rung Number RS2

(L)

B0000

02

MOV

A < = B < = C

A : WF000:0006

1.00000EĆ38

B : WF000:0002

0

C : WF000:0007

9.99999EĆ1

00004

LBL

MUL

A + B = R

A : WF000:0002

0

B : WF000:0008

1.00000E1

R : WF000:0002

0

Rung Number RS3

(CU)

C0002

17

CTU

COUNTER UP C0002

CP = 40

CA = 40

(DN)

C0002

15

(JMP)

00005

C0002

15

Rung Number RS5

(L)

B0000

03

GRT

A > B

A : WF000:0002

0

B : WF000:0009

9.99999E0

DIV

A / B = R

A : WF000:0002

0

B : WF000:0008

1.00000E1

R : WF000:0002

0

Rung Number RS4

(L)

B0000

01

LIM

A < = B < = C

A : WF000:0010

1.00000E0

B : WF000:0002

0

C : WF000:0009

9.99999E0

Rung Number RS6