User manual

Instruction Set
Compute 3-16
compute instructions continued...
Instruction Description
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).
Natural Log
LN
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
When the input conditions are true, take the natural log of the Source (N7:0) and store the result
in the Destination (F8:20). The Source must be positive (greater than 0).
DIVIDE
Source A N7:3
3
Source B N7:4
1
Dest N7:12
3
DIV
Status Bit Description
Calways resets
V sets if division by zero or overflow; otherwise resets
Z sets if the result is zero; otherwise resets
S sets if the result is negative; otherwise resets
NATURAL LOG
Source N7:0
5
Destination F8:20
1.609438
LN
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