The document provides a list of functions along with their descriptions, detailing various mathematical and logical operations. Functions include basic arithmetic operations, trigonometric functions, string manipulation, and comparison operations. Each function is defined with its corresponding input parameters and expected output.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
3 views1 page
Structure Text Programming - Codesys 11
The document provides a list of functions along with their descriptions, detailing various mathematical and logical operations. Functions include basic arithmetic operations, trigonometric functions, string manipulation, and comparison operations. Each function is defined with its corresponding input parameters and expected output.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1
339
Function Description
ABS(A); absolute value of A
ACOS(A); the inverse cosine of A ADD(A,B,...); add A+B+... AND(A,B,...); logical and of inputs A,B,... ASIN(A); the inverse sine of A ATAN(A); the inverse tangent of A BCD_TO_INT(A); converts a BCD to an integer CONCAT(A,B,...); will return strings A,B,... joined together COS(A); finds the cosine of A CTD(CD:=A,LD:=B,PV:=C); down counter active <=0, A decreases, B loads preset CTU(CU:=A,R:=B,PV:=C); up counter active >=C, A decreases, B resets CTUD(CU:=A,CD:=B,R:=C,LD: up/down counter combined functions of the up and =D,PV:=E); down counters DELETE(IN:=A,L:=B,P:=C); will delete B characters at position C in string A DIV(A,B); A/B EQ(A,B,C,...); will compare A=B=C=... EXP(A); finds e**A where e is the natural number EXPT(A,B); A**B FIND(IN1:=A,IN2:=B); will find the start of string B in string A F_TRIG(A); a falling edge trigger GE(A,B,C,...); will compare A>=B, B>=C, C>=... GT(A,B,C,...); will compare A>B, B>C, C>... INSERT(IN1:=A,IN2:=B,P:=C); will insert string B into A at position C INT_TO_BCD(A); converts an integer to BCD INT_TO_REAL(A); converts A from integer to real LE(A,B,C,...); will compare A<=B, B<=C, C<=... LEFT(IN:=A,L:=B); will return the left B characters of string A LEN(A); will return the length of string A LIMIT(MN:=A,IN:=B,MX:=C); checks to see if B>=A and B<=C LN(A); natural log of A LOG(A); base 10 log of A LT(A,B,C,...); will compare A<B, B<C, C<... MAX(A,B,...); outputs the maximum of A,B,... MID(IN:=A,L:=B,P:=C); will return B characters starting at C of string A MIN(A,B,...); outputs the minimum of A,B,... MOD(A,B); the remainder or fractional part of A/B MOVE(A); outputs the input, the same as := MUL(A,B,...); multiply values A*B*.... MUX(A,B,C,...); the value of A will select output B,C,... NE(A,B); will compare A <> B NOT(A); logical not of A OR(A,B,...); logical or of inputs A,B,...