3. Instructions
LOG
Instruction
LOGARITHM
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
S
First source word
R
First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
AR
S
OK
OK
OK
OK
R
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
490
Mnemonic
Variations
LOG
@LOG
Block program areas
Step program areas
OK
OK
Description
Indirect DM/EM
addresses
@DM
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
Label
ER
• ON if the source data is not recognized as floating-point data.
• ON if the source data is negative.
• ON if the source data is not a number (NaN).
• OFF in all other cases.
• ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
OF
• ON if the absolute value of the result is too large to be expressed as a 32-bit floating-point value.
• OFF in all other cases.
UF
OFF
N
• ON if the result is negative.
• OFF in all other cases.
Function
code
Calculates the natural (base e) logarithm of a 32-
468
bit floating-point number and places the result in
the specified result words.
LOG
LOG(468)
S: First source word
S
R
R: First result word
Subroutines
Interrupt tasks
OK
Data type
Registers
Con-
stants
*DM
DR
IR
*EM
OK
OK
---
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
SFC action or
transition programs
OK
OK
Size
REAL
2
REAL
2
Flags
Pulse
TR
bits
bits
Indirect
TK
CF
using IR
OK
---
---
---
---
Need help?
Do you have a question about the CJ - INSTRUCTIONS REFERENCE MANUAL 07-2009 and is the answer not in the manual?
Questions and answers