14 iec 61131-3 standard functions, Drive plc developer studio – Lenze DDS v2.3 User Manual

Page 293

Advertising
background image

Drive PLC Developer Studio

IEC 61131-3 Standard functions

14-1

l

DDS EN 2.3

14

IEC 61131-3 standard functions

Type conversion functions
Conversions between integer number types.
BOOL_TO

BOOL

è type X

TO_BOOL

Type X

è BOOL

TIME_TO / TIME_OF_DAY

TIME / TIME_OF_DAY

è type X

DATE_TO / DT_TO

DATE / DATE_AND_TIME

è type X

STRING_TO

STRING

è type X

TRUNC

REAL

è INT

Numerical functions
ABS

Absolute value

SQRT

Square root

LN

Natural logarithm

LOG

Logarithm to the base of 10

EXP

Exponential function

SIN

Sine calculation in radians

COS

Cosine calculation in radians

TAN

Tangent calculation in radians

ASIN

Arc sine calculation in radians

ACOS

Arc cosine calculation in radians

ATAN

Arc tangent calculation in radians

EXPT

Exponentiation of one variable to another

STRING functions
LEN

Returns the length of a string

LEFT

Returns a left start string of a string

RIGHT

Returns a right start string of a string

MID

Returns a segment of a string

CONCAT

Concatenates two strings

INSERT

Inserts a string into another string from a specific position

DELETE

Deletes a segment from a string from a specific position

REPLACE

Replaces a segment within a string with another string

FIND

Looks for a segment within a string

Bistable function blocks
SR

Bistable function block (dominant set)

RS

Bistable function block (dominant reset)

SEMA

Software semaphore (interruptible)

Edge detection
R_TRIG

Rising edge detector

F_TRIG

Falling edge detector

Counters
CTU

Up counter

CTD

Down counter

CTUD

Up and down counter

Timers
TP

Pulse encoder

TON

Timer on-delay

TOF

Timer off-delay

RTC*

Runtime clock*

* Not supported

Show/Hide Bookmarks

Advertising