Bradley Smoker PLC-5 user manual Bit Modify and Move Instructions, Rad, Mvm

Models: PLC-5

1 388
Download 388 pages 13.97 Kb
Page 316
Image 316

D-16Instruction Set Quick Reference

Instruction

Description

 

 

RAD

DEGREES TO RADIAN

SourceN7:9

 

45

Dest

F8:10

 

0.785398

Convert to Radians

RAD

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

Status

Description

Bit

 

 

 

C

always resets

Vsets if overflow generated; otherwise resets

Z sets if result is zero; otherwise resets

S sets if result is negative; otherwise resets

Bit Modify and Move Instructions

Instruction

Description

 

 

 

MOV

 

 

 

 

 

 

MOVE

 

 

Source

N7:3

 

 

 

20

 

Dest

F8:12

 

 

 

20.000000

 

 

 

 

Move

MOV

When the input conditions are true, move a copy of the value in Source (N7:3) to the Destination (F8:12), converting from one data type to another This overwrites the original value in the Destination.

Status

Description

Bit

 

C

always resets

Vsets if overflow is generated during floating point-to-integer conversion; otherwise resets

Zsets if the destination value is zero; otherwise resets

S sets if result MSB is set; otherwise resets

MVM

MASKED MOVE

Source D9:3 478F

Mask D9:5 00FF

Dest D9:12 008F

Masked Move

MVM

When the input conditions are true, the controller passes the value in the Source (D9:3) through the Mask (D9:5) and stores t result in the Destination (D9:12). This overwrites the original value in the Destination.

Status Description

Bit

Calways resets

V always resets

Z sets if the result is zero; otherwise resets

Ssets if most significant bit of resulting value is set; otherwise resets.

Publication 1785-UM012D-EN-P - July 2005

Page 316
Image 316
Bradley Smoker PLC-5 user manual Bit Modify and Move Instructions, Rad, Mvm