Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
MIN¶
Returns the smaller of two inputs.
IEC 61131-3 |
Section 2.5.1.5.5 |
Support |
Supported |
Signatures¶
# |
Input (IN1) |
Input (IN2) |
Return Type |
Support |
|---|---|---|---|---|
1 |
|
|
|
Not yet supported |
2 |
|
|
|
Not yet supported |
3 |
|
|
|
Supported |
4 |
|
|
|
Not yet supported |
5 |
|
|
|
Not yet supported |
6 |
|
|
|
Not yet supported |
7 |
|
|
|
Not yet supported |
8 |
|
|
|
Not yet supported |
9 |
|
|
|
Supported |
10 |
|
|
|
Supported |
Description¶
Returns the smaller of IN1 and IN2. If both inputs are equal, the function returns that value.
Example¶
result := MIN(10, 20); (* result = 10 *)
result := MIN(-5, 3); (* result = -5 *)