FX1N Power Calculation: Resolving Real-Number Limits

Ryan Tanaka2 min read
FX SeriesMitsubishiTechnical Reference
Licensed PE Working through this on a live machine? A Maine-licensed engineer can take it from here — included with IMD hardware, by the hour for everything else. Book an engineer

The FX1N cannot directly evaluate a fractional power such as 5.123^6.456. The available evidence identifies the blocking constraints: the FX1N does not support real-number arithmetic and has no logarithm, antilogarithm, or exponential instruction. Although the requested operands are described as real values in D10 and D12, that description conflicts with the stated FX1N capabilities; they must therefore be treated as an encoded integer or fixed-point representation unless external conversion is involved.

Why the FX1N Cannot Calculate b^x Directly

A fractional exponent normally requires real-number operations. The usable identity is:

result = exp(exponent * ln(base))

This path requires natural-logarithm, real multiplication, and natural-exponential operations, none of which are available on the FX1N according to the evidence. For this real-valued logarithmic method, the base must be greater than zero because ln(base) is defined only for positive, non-zero inputs.

Select a Practical Implementation Path

Path Supported conclusion Engineering consequence
Change PLC The FX3U can calculate the expression using logarithm and exponential operations. Requires an approved hardware migration and program conversion.
Add a computing device Another PLC, microcontroller, or PC can perform the calculation. Requires data exchange, result validation, and communication-failure handling.
Develop FX1N arithmetic Fixed-point arithmetic or mathematical series may be implemented manually. Requires ported code, bounded inputs, error analysis, and sufficient memory and execution time.

Apply and Verify the Chosen Method

  1. Confirm how D10 and D12 encode their decimal values. Do not treat them as native real numbers on the FX1N.
  2. If hardware migration is permitted, use a CPU with the required real, natural-logarithm, and natural-exponential capabilities. The evidence specifically identifies the FX3U for this calculation.
  3. If the FX1N must remain, move the calculation to an external computing device or develop a fixed-point approximation. Define the permitted base and exponent ranges before selecting scaling or series limits.
  4. Verify representative inputs against an independent calculation, including the requested 5.123^6.456 case and the supplied check case 2.12^2.34 = 5.80264384. Establish an application-specific error tolerance; none is provided in the evidence.

Implementation Constraints

A short direct FX1N instruction sequence is not supported by the available instruction set. A custom approximation is a software-development task rather than a substitute instruction: its correctness depends on the fixed-point scale, input bounds, convergence method, overflow handling, and required accuracy. Those requirements are not supplied, so no defensible register allocation or series implementation can be specified.

FAQ

Can an FX1N calculate a fractional power directly?

No. The FX1N lacks real-number, logarithm, and exponential operations required for a direct fractional-power calculation.

How do I calculate b raised to x on a Mitsubishi PLC?

On a CPU with natural-logarithm and natural-exponential support, calculate exp(x * ln(b)). For this real-valued method, require b > 0; the evidence specifically identifies the FX3U as capable.

Can I keep the FX1N and calculate 5.123 raised to 6.456?

Yes, but not with a short native instruction sequence. Use an external PLC, microcontroller, or PC, or develop and validate fixed-point approximation code with defined input limits and accuracy.

Back to blog