Chapter 22 String manipulation instructions
594 Rockwell Automation Publication 2080-RM001D-EN-E - February 2015
ASCII yields the ASCII code for characters in strings.
Arguments
Parameter Parameter Type Data Type Description
EN Input BOOL Function enable.
When EN = TRUE, display the ASCII code for
characters.
When EN = FALSE, no display operation.
IN Input STRING Any non-empty string.
Pos Input DINT Position of the selected character in set [1..
len] (len is the length of the IN string).
ASCII Output DINT Code of the selected character (in set [0 ..
255]) yields 0 is Pos is out of the string.
ENO Output BOOL Enable out.
ASCII function language examples
Function block diagram
Ladder diagram