EXP
EXP, EXPP
EXP instruction computes the natural log of the source and saves the result to the Destination.
(It supports only in XP and PLC-S CPU series)
| |
S | Source |
D | Destination |
Instruction | Device address | No. of Steps | Flag | |||||||||||||||
M | X | Y | K | L | F | T | C | S | Z | D | @D | Int. |
| Error | Zero | Carry | ||
EXP EXPP | S | o | o | o | o | o | - | - | - | - | o | o | o | - | 3 | o | - | - |
D | o | - | o | o | o | - | - | - | - | o | o | o | - |
When enabled, the EXP instruction calculates the natural log of source and saves the result in Destination.
The natural log (e) is 2.71828.
The source must be greater than zero.
Example)
If D100 is greater than 0, M00 will be turned ON.
If M00 is ON, the FLT instruction converts D100 to float value and saves its result to D90.
The EXP instruction calculates the natural log of D90 and saves its result in D80.