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

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 (INT)

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

ADD

Addition

Supported (INT)

SUB

Subtraction

Supported (INT)

MUL

Multiplication

Supported (INT)

DIV

Division

Supported (INT)

MOD

Modulo

Supported (INT)

GT

Greater than

Supported (INT)

GE

Greater than or equal

Supported (INT)

EQ

Equal

Supported (INT)

LE

Less than or equal

Supported (INT)

LT

Less than

Supported (INT)

NE

Not equal

Supported (INT)

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

SHL

Shift left

Not yet supported

SHR

Shift right

Not yet supported

ROL

Rotate left

Not yet supported

ROR

Rotate right

Not yet supported

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 conversions

Type conversion functions

Not yet supported

Function Blocks

Function Block

Description

Status

TON

On-delay timer

Not yet supported

TOF

Off-delay timer

Not yet supported

TP

Pulse timer

Not yet supported

CTU

Count up

Not yet supported

CTD

Count down

Not yet supported

CTUD

Count up/down

Not yet supported

R_TRIG

Rising edge detection

Not yet supported

F_TRIG

Falling edge detection

Not yet supported

SR

Set/reset flip-flop

Not yet supported

RS

Reset/set flip-flop

Not yet supported