7-298
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