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.
Tip
Examples on supported function pages are interactive — you can edit and run them directly in the IronPLC Playground.
Functions¶
Function |
Description |
Status |
|---|---|---|
Absolute value |
Supported |
|
Square root |
Supported (REAL, LREAL) |
|
Natural logarithm |
Supported (REAL, LREAL) |
|
Base-10 logarithm |
Supported (REAL, LREAL) |
|
Natural exponential |
Supported (REAL, LREAL) |
|
Exponentiation |
Supported |
|
Sine |
Supported (REAL, LREAL) |
|
Cosine |
Supported (REAL, LREAL) |
|
Tangent |
Supported (REAL, LREAL) |
|
Arc sine |
Supported (REAL, LREAL) |
|
Arc cosine |
Supported (REAL, LREAL) |
|
Arc tangent |
Supported (REAL, LREAL) |
|
Addition |
Supported |
|
Subtraction |
Supported |
|
Multiplication |
Supported |
|
Division |
Supported |
|
Modulo |
Supported |
|
Greater than |
Supported |
|
Greater than or equal |
Supported |
|
Equal |
Supported |
|
Less than or equal |
Supported |
|
Less than |
Supported |
|
Not equal |
Supported |
|
Binary selection |
Supported |
|
Maximum |
Supported |
|
Minimum |
Supported |
|
Clamp to range |
Supported |
|
Multiplexer |
Supported |
|
Shift left |
Supported |
|
Shift right |
Supported |
|
Rotate left |
Supported |
|
Rotate right |
Supported |
|
String length |
Supported |
|
Left substring |
Supported |
|
Right substring |
Supported |
|
Middle substring |
Supported |
|
String concatenation |
Supported |
|
String insertion |
Supported |
|
String deletion |
Supported |
|
String replacement |
Supported |
|
String search |
Supported |
|
Type conversion functions |
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 |