Mitsubishi Electric M800VW Series Programming Manual page 422

Plc programming
Hide thumbs Also See for M800VW Series:
Table of Contents

Advertisement

M800V/M80V Series PLC Programming Manual (1/2)
8 Function Instructions
8.11 Special Function Instructions
 Program example
 The following program seeks the natural logarithm of the value "10" set by D50, and stores the result at D30 and D31.
SM400
0
9
32-bit floating-point real
number
[Ladder mode]
Inputs the data used for natural
MOV K10 D50
logarithm operation (1).
Converts the operation data
FLT D50 D40
into a 32-bit floating-point
real number (2).
LOG D40 D30
Executes natural logarithm
operation (3).
END
[Operation]
(1)
10
MOV
(3)LOG
operation
D41
D40
10
LOG
401
Steps
0
1
3
6
9
D50
b15
b0
10
BIN value
(2)Conversion to floating-point
real number
FLT
D31
D30
2.302585
32-bit floating-point real
number
[List mode]
Inst.
Device
LD
SM400
MOV
K10
D50
FLT
D50
D40
LOG
D40
D30
END
IB-1501667-B

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents