Mitsubishi Electronics QSERIES Smoker User Manual


  Open as PDF
of 1204
 
7-299
LOGD(P)
1
2
3
4
6
6
7
8
7.12 Special function instructions
7.12.24 Natural logarithm operation on floating-point data (Double precision) (LOGD(P))
Program Example
(1) The following program seeks the natural logarithm of the value "10" set by D50, and stores
the result at D30 to D33.
[Ladder Mode]
[List Mode]
[Operation]
Sets data used for natural logarithm
operation ( ).
Converts the operation data into a 64-bit
floating-point real number ( ).
Executes natural logarithm operation ( ).
1
2
3
Step Instruction Device
10
64-bit floating-point
real number
64-bit floating-point
real number
D50
MOV
b15 b0
BIN value
10
Conversion to
floating-point
FLTD
LOG operation
LOGD
D41
10
D40D43D42
D31
2.302585
D30D33 D32
1
2
3