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_VAR
Background:
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 (ARM, x86, x64) | Tc2_SerialCom |