Attention
IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.
Functions
IEC 61131-3 defines a set of standard functions available in all
programming languages. Functions are stateless — they produce the same
output for the same inputs every time.
Numeric Functions
Function |
Description |
Status |
ABS |
Absolute value |
Not yet supported |
SQRT |
Square root |
Not yet supported |
LN |
Natural logarithm |
Not yet supported |
LOG |
Base-10 logarithm |
Not yet supported |
EXP |
Natural exponential |
Not yet supported |
EXPT |
Exponentiation |
Supported |
Trigonometric Functions
Function |
Description |
Status |
SIN |
Sine |
Not yet supported |
COS |
Cosine |
Not yet supported |
TAN |
Tangent |
Not yet supported |
ASIN |
Arc sine |
Not yet supported |
ACOS |
Arc cosine |
Not yet supported |
ATAN |
Arc tangent |
Not yet supported |
Arithmetic Functions
Function |
Description |
Status |
ADD |
Addition |
Supported |
SUB |
Subtraction |
Supported |
MUL |
Multiplication |
Supported |
DIV |
Division |
Supported |
MOD |
Modulo |
Supported |
Comparison Functions
Function |
Description |
Status |
GT |
Greater than |
Supported |
GE |
Greater than or equal |
Supported |
EQ |
Equal |
Supported |
LE |
Less than or equal |
Supported |
LT |
Less than |
Supported |
NE |
Not equal |
Supported |
Selection Functions
Function |
Description |
Status |
SEL |
Binary selection |
Not yet supported |
MAX |
Maximum |
Not yet supported |
MIN |
Minimum |
Not yet supported |
LIMIT |
Clamp to range |
Not yet supported |
MUX |
Multiplexer |
Not yet supported |
Bit String Functions
Function |
Description |
Status |
SHL |
Shift left |
Not yet supported |
SHR |
Shift right |
Not yet supported |
ROL |
Rotate left |
Not yet supported |
ROR |
Rotate right |
Not yet supported |
String Functions
Function |
Description |
Status |
LEN |
String length |
Not yet supported |
LEFT |
Left substring |
Not yet supported |
RIGHT |
Right substring |
Not yet supported |
MID |
Middle substring |
Not yet supported |
CONCAT |
String concatenation |
Not yet supported |
INSERT |
String insertion |
Not yet supported |
DELETE |
String deletion |
Not yet supported |
REPLACE |
String replacement |
Not yet supported |
FIND |
String search |
Not yet supported |
Type Conversion Functions
Function |
Description |
Status |
Type conversions |
Type conversion functions (*_TO_*) |
Not yet supported |