Fnc126 - Log10 / Floating Point Common Logarithm - Mitsubishi Electric MELSEC FX3U Programming Manual

Melsec fx series programmable logic controllers
Table of Contents

Advertisement

FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
18.14 FNC126 – LOG10 / Floating Point Common Logarithm
Outline
This instruction executes the common logarithm operation.
1. Instruction format
FNC 126
D
LOG10
2. Set data
Operand Type
S
D
3. Applicable devices
Bit Devices
Oper-
and
System User
Type
X Y M T C S D .b KnX KnY KnM KnS T C D R U \G
S
D
Explanation of function and operation
1. 32-bit operation (DLOG10 and DLOG10P)
Common logarithm [logarithm whose base is "10"] of [
is stored to [
D
Command
input
FNC126
DLOG10
• Only a positive value can be set in [
executed for a negative value.)
Errors
An operation error occurs in the following cases; The error flag M8067 turns ON, and the error code is stored
in D8067.
• When a negative value is specified in
• When "0" is specified in
534
Mnemonic
16-bit Instruction
P
Head device number storing binary floating point data used in the common
logarithm operation
Head device number storing the operation result
Digit Specification
+1,
]. A real number can be directly specified as
D
S
D
S
(error code: K6706)
S
18.14 FNC126 – LOG10 / Floating Point Common Logarithm
→ For handling of floating point, refer to Subsection 5.1.3.
Operation Condition
32-bit Instruction
Description
Word Devices
Special
System User
Unit
+1,
S
S
+1
S
S
log
10
Binary floating point
(real number)
+1,
]. (The common logarithm operation cannot be
S
(error code: K6706)
S
18 Floating Point – FNC110 to FNC139
Mnemonic
Operation Condition
DLOG10
9 steps
DLOG10P
Real number (binary)
Others
Con-
Real
Index
stant
Number
V Z Modify K H
E
] is calculated, and the operation result
.
S
+1
D
Binary floating point
(real number)
Continuous
Operation
Pulse (Single)
Operation
Data Type
Charac-
Pointer
ter String
" "
P
D

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec fx3ucMelsec fx3g

Table of Contents