CHR

The function Chr returns the character corresponding to the ASCII code in the input variable c to a string.
Interface
FUNCTION CHR : STRING
VAR_INPUT
c : BYTE;
END_VARBackground:
Received characters arrive as bytes at the PLC system, and must often be further processed in the form of strings.
Requirements
Development environment | Target platform | PLC libraries to include |
|---|---|---|
TwinCAT v3.1.4012 | PC or CX (x86, x64, Arm®) | Tc2_SerialCom |