Bradley Smoker PLC-5 user manual Conversion Instructions, Convert to Degrees

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 315
Image 315

Instruction Set Quick Reference

D-15

 

 

Conversion Instructions

Instruction

Description

 

 

 

FRD

 

 

 

 

 

 

FROM BCD

 

 

Source

D9:3

 

 

 

0037

 

Dest

N7:12

 

 

 

37

 

 

 

 

Convert from BCD FRD

When the input conditions are true, convert the BCD value in the Source (D9:3) to a integer value and store the result in the Destination (N7:12). The source must be in the range of

Status

Description

Bit

 

Calways resets

V always resets

Zsets if the destination value is zero; otherwise resets

S

always resets

 

TOD

 

 

 

 

 

 

TO BCD

 

 

Source

N7:3

 

 

 

44

 

Dest

D9:5

 

 

 

0044

 

 

 

 

Convert to BCD TOD

When the input conditions are true, convert the integer value in Source (N7:3) to a BCD format and store the result in the

Status

Description

Bit

 

 

 

C

always resets

Vsets if the source value is negative or greater than 9999 (i.e. outside of the range of 0-9999)

Zsets if the destinationvalue is zero; otherwise resets

S

always resets

DEG

RADIANS TO DEGREE

SourceF8:7 0.7853982

DestF8:8 45

Convert to Degrees

DEG

When the input conditions are true, convert radians (the value in Source A) to degrees and stores the result in the Destination (Source times 180/p).

Status

Description

Bit

 

 

 

C

always resets

Vsets if overflow generated; otherwise resets

Z

sets if result is zero; otherwise resets

Ssets if result is negative; otherwise resets

Publication 1785-UM012D-EN-P - July 2005

Page 315
Image 315
Bradley Smoker PLC-5 user manual Conversion Instructions, Convert to Degrees