LOG10D(P)
Operation Error
(1) In any of the following cases, an operation error occurs, the error flag (SM0) turns on, and an
error code is stored into SD0.
• The value specified by
• The value specified by
• The value of the specified device is not in the following range:
0,2
• The value of the specified device is
• The value resulted from the operation is within the range shown below.
(When an overflow occurs):
1024
2
Program Example
(1) This following program obtains the value for common logarithm of the 64-bit floating-point
data type real number specified by D600 to D603 when M0 is turned on. Then the program
stores the operation result into D123 to D126.
[Ladder Mode]
[Operation]
7-302
is negative.
S
is 0.
S
-1022
| value of specified device | < 2
| value of specified device |
D603 D602
Log
2.806
10
1024
0.
[List Mode]
Step
Instruction
D601 D600
D126 D125
(Error code: 4100)
(Error code: 4100)
(Error code: 4140)
(Error code: 4140)
(Error code: 4141)
Device
D124 D123
0.448088