User manual

Instruction Set
Conversion 3-25
conversion instructions continued...
Instruction Description
Convert to Degrees
DEG
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
Converts radians (the value in Source A) to degrees and stores the result in the Destination
(Source times 180/π).
Convert to Radians
RAD
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
Converts degrees (the value in Source A) to radians and stores the result in the Destination
(Source times π/180).
RADIANS TO DEGREE
Source F8:7
0.7853982
Destination F8:8
45
DEG
Status Bit Description
Calways resets
V sets if overflow is generated; otherwise resets
Z sets if the result is zero; otherwise resets
S sets if the result is negative; otherwise resets
DEGREES TO RADIAN
Source N7:9
45
Destination F8:10
0.7853982
RAD
Status Bit Description
Calways resets
V sets if overflow is generated; otherwise resets
Z sets if the result is zero; otherwise resets
S sets if the result is negative; otherwise resets