Instruction Set Quick Reference

D-9

 

 

Instruction

Description

 

 

CLR

CLR

Dest D9:34 0000

Clear

CLR

When the input conditions are true, clear decimal file 9, word (set to zero).

Status

Description

Bit

 

C

always reset

 

 

V

always reset

 

 

Z

always set

 

 

S

always reset

 

 

COS

COSINE

Source F8:13 0.7853982

DestF8:14 0.7071068

Cosine

COS

When input conditions go true, take the cosine of the value in F8:13 and store the result in F8:14.

Status

Description

Bit

 

C

always resets

Vsets if overflow is generated; otherwise resets

Zsets if the result is zero; otherwise resets

Ssets if the result is negative; otherwise resets

Instruction

Description

 

 

 

DIV

 

 

 

 

 

 

DIVIDE

 

 

Source A

N7:3

 

 

 

3

 

Source B

N7:4

 

 

 

1

 

Dest

N7:12

 

 

 

3

Division

DIV

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

Status

Description

Bit

 

 

 

C

always resets

Vsets if division by zero or overflow; otherwise resets

Zsets if the result is zero;

otherwise resets; undefined if overflow is set

Ssets if the result is negative;

otherwise resets; undefined if overflow is set

Publication 1785-UM012D-EN-P - July 2005

Page 309
Image 309
Bradley Smoker PLC-5 user manual Clr, Cos, Div