Attention
IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.
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 |
|---|---|
Absolute value |
|
Square root |
|
Natural logarithm |
|
Base-10 logarithm |
|
Natural exponential |
|
Exponentiation |
|
Sine |
|
Cosine |
|
Tangent |
|
Arc sine |
|
Arc cosine |
|
Arc tangent |
|
Addition |
|
Subtraction |
|
Multiplication |
|
Division |
|
Modulo |
|
Greater than |
|
Greater than or equal |
|
Equal |
|
Less than or equal |
|
Less than |
|
Not equal |
|
Binary selection |
|
Maximum |
|
Minimum |
|
Clamp to range |
|
Multiplexer |
|
Shift left |
|
Shift right |
|
Rotate left |
|
Rotate right |
|
String length |
|
Left substring |
|
Right substring |
|
Middle substring |
|
String concatenation |
|
String insertion |
|
String deletion |
|
String replacement |
|
String search |
|
Type conversion functions |
Function Blocks¶
Function Block |
Description |
|---|---|
On-delay timer |
|
Off-delay timer |
|
Pulse timer |
|
Count up |
|
Count down |
|
Count up/down |
|
Rising edge detection |
|
Falling edge detection |
|
Set/reset flip-flop |
|
Reset/set flip-flop |