Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
Standard Library¶
IronPLC provides the standard functions and function blocks defined by IEC 61131-3. These are available in all programming languages.
Functions¶
Function |
Description |
Status |
|---|---|---|
Absolute value |
Not yet supported |
|
Square root |
Not yet supported |
|
Natural logarithm |
Not yet supported |
|
Base-10 logarithm |
Not yet supported |
|
Natural exponential |
Not yet supported |
|
Exponentiation |
Supported (INT) |
|
Sine |
Not yet supported |
|
Cosine |
Not yet supported |
|
Tangent |
Not yet supported |
|
Arc sine |
Not yet supported |
|
Arc cosine |
Not yet supported |
|
Arc tangent |
Not yet supported |
|
Addition |
Supported (INT) |
|
Subtraction |
Supported (INT) |
|
Multiplication |
Supported (INT) |
|
Division |
Supported (INT) |
|
Modulo |
Supported (INT) |
|
Greater than |
Supported (INT) |
|
Greater than or equal |
Supported (INT) |
|
Equal |
Supported (INT) |
|
Less than or equal |
Supported (INT) |
|
Less than |
Supported (INT) |
|
Not equal |
Supported (INT) |
|
Binary selection |
Not yet supported |
|
Maximum |
Not yet supported |
|
Minimum |
Not yet supported |
|
Clamp to range |
Not yet supported |
|
Multiplexer |
Not yet supported |
|
Shift left |
Not yet supported |
|
Shift right |
Not yet supported |
|
Rotate left |
Not yet supported |
|
Rotate right |
Not yet supported |
|
String length |
Not yet supported |
|
Left substring |
Not yet supported |
|
Right substring |
Not yet supported |
|
Middle substring |
Not yet supported |
|
String concatenation |
Not yet supported |
|
String insertion |
Not yet supported |
|
String deletion |
Not yet supported |
|
String replacement |
Not yet supported |
|
String search |
Not yet supported |
|
Type conversion functions |
Not yet supported |
Function Blocks¶
Function Block |
Description |
Status |
|---|---|---|
On-delay timer |
Not yet supported |
|
Off-delay timer |
Not yet supported |
|
Pulse timer |
Not yet supported |
|
Count up |
Not yet supported |
|
Count down |
Not yet supported |
|
Count up/down |
Not yet supported |
|
Rising edge detection |
Not yet supported |
|
Falling edge detection |
Not yet supported |
|
Set/reset flip-flop |
Not yet supported |
|
Reset/set flip-flop |
Not yet supported |