beautypg.com

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

Page 147

background image

Floating Point Values on the 1775ĆS4B Scanner

Appendix B

BĆ6

Figure B.1

Floating Point Conversion User Program (continued)

Rung Number RS12

MUL

A * B = R

A : WF000:0005

2.29999EĆ1

B : WF000:0011

1.00000E6

R : WH000:0001

230000

SUB

A Ć B = R

A : WF000:0002

0

B : WF000:0004

1.00000E0

R : WF000:0005

2.29999EĆ1

MOV

MOVE FROM A TO R

A : WH000:0000

1

R : WH000:0004

1.00000E0

Rung Number RS13

MOV

MOVE FROM A TO R

A : WF000:0000

0

R : WF000:0001

0

B0000

01

NEG

Ć A = R

A : WH000:0000

1

R : WH000:0000

B0000

04

Rung Number RS14

MOV

MOVE FROM A TO R

A : WCACC:0001

0

R : WH000:0002

37

GRT

A > B

A : WCACC:0001

0

B : WN000:0002

0