Elements of the standard library
|
Structured Text |
Description |
|---|---|
|
LEN(in) |
String length of operand in |
|
LEFT(str,size) |
Left inital string of given size of string str |
|
RIGHT(str,size) |
Right initial string of given size of string str |
|
MID(str,size,pos) |
Partial string of str of given size at position pos |
|
CONCAT('str1','str2') |
Concatenation of two subsequent strings |
|
INSERT('str1','str2',pos) |
Insert string str1 in string str2 at position pos |
|
DELETE('str1',len,pos) |
Delete partial string (length len), start at position pos of str1 |
|
REPLACE('str1','str2',len,pos) |
Replace partial string of lenght len by str2, start at position pos of str1 |
|
FIND('str1','str2') |
Search for partial string str2 in str1 |
|
SR |
Bistable function block is set dominant |
|
RS |
Bistable function block is set back |
|
SEMA |
FB: Software Semaphor (interruptable) |
|
R_TRIG |
FB: rising edge is detected |
|
F_TRIG |
FB: falling edge is detected |
|
CTU |
FB: Counts upv |
|
CTD |
FB: Count down |
|
CTUD |
FB: Up/down counter |
|
TP |
FB: trigger |
|
TON |
FB: on delay timer |
|
TOF |
FB: off delay timer |
|
RTC |
FB: real-time clock |
-
String functions
-
Bistable function blocks
-
Trigger
-
Counter
-
Timer