CHR

CHR 1:

Interface

FUNCTION CHR : STRING
VAR_INPUT
    c : BYTE;
END_VAR

Description

The function Chr returns the character corresponding to the ASCII code in the input variable c to a string.

Background

Received characters arrive as bytes at the PLC system, and must often be further processed in the form of strings.