User manual

Instruction Set
Compute 3-17
compute instructions continued...
Instruction Description
Log to the Base 10
LOG
(Enhanced, Ethernet, and
ControlNet PLC-5 processors
only)
When the input conditions are true, take the log base 10 of the Source (N7:2) and store
the result in the Destination (F8:3). The Source must be positive (greater than 0).
Multiply
MUL
When the input conditions are true, multiply the value in Source A (N7:3) by the value in
Source B (N7:4) store the result in the Destination (N7:12).
LOG BASE 10
Source N7:2
5
Destination F8:3
0.6989700
LOG
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
MULTIPLY
Source A N7:3
3
Source B N7:4
1
Dest N7:12
3
MUL
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