ASC
Interface
FUNCTION ASC : BYTE
VAR_INPUT
str : STRING;
END_VAR
Description
The function Asc returns the ASCII code of the first character of the input sting as one byte.
Background
Transmission data is often available as a string of characters. If it is to be sent, the individual characters are required as bytes.