eBook: Integration and Automation of Manufacturing Systems
   



TOC PREV NEXT

10.19 ASCII FUNCTIONS


ASCII functions can be used to interpret and manipulate strings in PLCs.

These functions include,

ABL(channel, control, )- reports the number of ASCII characters including line endings
ACB(channel, control, ) - reports the numbers of ASCII characters in buffer
ACI(string, dest) - convert ASCII string to integer
ACN(string, string,dest) - concatenate strings
AEX(string, start, length, dest) - this will cut a segment of a string out of a larger string
AIC(integer, string) - convert an integer to a string
AHL(channel, mask, mask, control) - does data handshaking
ARD(channel, dest, control, length) - will get characters from the ASCII buffer
ARL(channel, dest, control, length) - will get characters from an ASCII buffer
ASC(string, start, string, result) - this will look for one string inside another
AWT(channel, string, control, length) - will write characters to an ASCII output

An example of this function is given below,



Try the problem below,



TOC PREV NEXT

Search for More:

Custom Search