Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
EXPT¶
Returns the result of raising a base to an exponent.
IEC 61131-3 |
Section 2.5.1.5.2 |
Support |
Supported |
Signatures¶
# |
Input (IN1) |
Input (IN2) |
Return Type |
Support |
|---|---|---|---|---|
1 |
|
|
|
Supported |
2 |
|
|
|
Supported |
3 |
|
|
|
Supported |
4 |
|
|
|
Not yet supported |
5 |
|
|
|
Supported |
6 |
|
|
|
Supported |
Description¶
Returns IN1 raised to the power IN2. EXPT(a, b) computes
ab. For integer types, the exponent must be non-negative.
The operator form is **.
Example¶
result := EXPT(2, 10); (* result = 1024 *)
value := 3 ** 4; (* value = 81, operator form *)