-

GET_CHAR

Type Function
Description Extracts one character out of a string. The string from which the character is to be extracted is applied to the IN input. The number of the character to be extracted is specified at the N input. The output value represents the number of the character in ASCII code (observe the following notes).
Notes
  • If IN > 0 (string length > 0) and N <= IN, the function returns the ASCII code number of the extracted character.
  • If the above condition is not true, the function returns the value 0 (see also the error behavior below).
Parameters Inputs

IN

N

Output

OUT
Error behavior Error behavior
Additional information EN/ENO behavior
ExampleExample in ST