Standard.lib Library - SMB MAT-LC-C Series User Manual

Plc based motion controller
Table of Contents

Advertisement

(in)
TIME_TO_<type>
(in)
TOD_TO_<type>(i
n)
DATE_TO_<type>(
in)
DT_TO_<type>(in)
STRING_TO_<typ
e>(in)
TRUNC(in)
ABS(in)
SQRT(in)
LN(in)
LOG(in)
EXP(in)
SIN(in)
COS(in)
TAN(in)
ASIN(in)
ACOS(in)
ATAN(in)
EXPT(in,expt)
<Remark> Please get detailed usage information in the relevant appendix of the CODESYS
library.
I.2

Standard.lib library

Table I-2 Standard.lib file instruction
LEN(in)
LEFT(str,size)
RIGHT(str,size)
MID(str,size,pos)
CONCAT('str1','str2')
INSERT('str1','str2',pos)
DELETE('str1',len,pos)
REPLACE('str1','str2',len
,pos)
FIND('str1','str2')
TIME_TO_<type>
TOD_TO__<type>
DATE_TO_<type>
DT_TO_<type>
STRING_TO_<typ
e>
TRUNC
ABS
SQRT
LN
LOG
EXP
SIN
COS
TAN
ASIN
ACOS
ATAN
EXPT expt
In ST
LEN
LEFT
RIGHT
MID
CONCAT 'str2'
INSERT 'str2',p
DELETE len,pos
REPLACE
'str2',len,pos
FIND 'str2'
another basic type.
TIME operand type is converted to another
basic type.
TOD operand type is converted to another
basic type.
DATE operand type is converted to
another basic type.
DT operand type is converted to another
basic type.
The string operand type is converted to
another primitive type, and in must contain
a valid value of the requested type.
Convert from REAL to INT.
Absolute value of operand in.
The square root of the operand in.
The natural logarithm of the operand in.
The base 10 logarithm of the operand in.
The power of the operand in.
Sine of operand in.
Cosine of operand in.
Tangent of operand in.
Arc sine of operand in.
Arc cosine of operand in.
Arc tangent of operand in.
The power of the operand in with expt.
In AWL
The string length of the operand in
The first string to the left of the known size
of the string str.
The first string to the right of the known
size of the string str.
Partial str string of known size at POS.
The union of two subsequent strings.
Insert string str1 into string str2 at pos
Delete part of the string (length len),
starting at pos of str1.
The replacement length string is str2, and
the starting position is pos of str1.
Find the partial string str2 in str1.
160
Description

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the MAT-LC-C Series and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

Mat-lc-c0 seriesMat-lc-c06Mat-lc-c07

Table of Contents