HEXASCNIBBLE_TO_BYTE

This function converts the ASCII code of a hexadecimal nibble into the decimal value.
 Return value
Name  | Type  | Description  | 
|---|---|---|
HEXASCNIBBLE_TO_BYTE  | BYTE  | 
  | 
 Inputs
VAR_INPUT
    asc : BYTE;
END_VARName  | Type  | Description  | 
|---|---|---|
asc  | BYTE  | Ascii code of a hexadecimal nibble (ascii code from: ‘0’ to ‘9’ or ‘a’ to ‘f’ or ‘A’ to ‘F’).  | 
Return value  | Meaning  | 
|---|---|
0 to 15  | Successful, no error.  | 
255  | Error, wrong input parameter value.  | 
Requirements
Development environment  | Target platform  | PLC libraries to be integrated (category group)  | 
|---|---|---|
TwinCAT v3.1.0  | PC or CX (x86, x64, Arm®)  | Tc2_Utilities (System)  |