omron — String-Related Functions

String-Related Functions Examples of String Functions The instruction: TYPE $ERROR(-504) outputs the text *Unexpected end of file* to the screen. The instructions: $message = "The length of this line is: " TYPE $ENCODE($message, /I0, LEN($message)+14), " characters." output the message: The length of this line is: 42 characters. eV+Language User's Guide, v2.x, 18318-000 Rev A Page 83 Keyword Function POS Return the starting character position of a substring in a string. $TRANSB Return a 48-byte string containing the binary representation of a transformation value. $TRUNCATE Return all characters in the input string until an ASCII NUL (or the end of the string) is encountered.

$UNPACK Return a substring from an array of 128-character string variables. VAL Return the real value represented by the characters in the input string.