Bradley Smoker PLC-5 user manual Subtract, Tangent, To the power of Y XPY

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 313
Image 313

Instruction Set Quick Reference

D-13

 

 

Instruction

Description

 

 

 

SUB

 

 

 

 

 

 

SUBTRACT

 

 

Source A

N7:3

 

 

 

3

 

Source B

N7:4

 

 

 

1

 

Dest

N7:12

 

 

 

2

Subtract

SUB

When the input conditions are true, subtract the value in Sour B (N7:4) from the value in Source A (N7:3) and store the result the Destination (N7:12).

Status

Description

Bit

 

Csets if borrow is generated; otherwise resets

Vsets if underflow is generated; otherwise resets

Z

sets if the result is zero; otherwise resets

Ssets if the result is negative; otherwise resets

TAN

TANGENT

Source F8:15 0.7853982

DestF8:16 1.000000

Tangent

TAN

When input conditions go true, take the tangent of the value in F8:15 and store the result in F8:16.

Status

Description

Bit

 

C

always resets

 

 

V

sets if overflow is generated;

otherwise resets

 

Zsets if the result is zero; otherwise resets

Ssets if the result is negative; otherwise resets

 

XPY

 

 

 

 

 

 

X TO POWER OF Y

 

 

Source A

N7:4

 

 

 

5

 

Source B

N7:5

 

 

 

2

 

Dest

N7:6

 

 

 

25

 

 

 

 

X to the power of Y XPY

When input conditions go true, take the the value in N7:4, raise it to the power stored in N7:5, and store the result in

Status

Description

Bit

 

C

always resets

 

 

V

sets if overflow is generated;

otherwise resets

 

Zsets if the result is zero; otherwise resets

Ssets if the result is negative; otherwise resets

Publication 1785-UM012D-EN-P - July 2005

Page 313
Image 313
Bradley Smoker PLC-5 user manual Subtract, Tangent, To the power of Y XPY