HEXCHRNIBBLE_TO_BYTE

HEXCHRNIBBLE_TO_BYTE 1:

This function converts a hexadecimal nibble into its decimal value.

HEXCHRNIBBLE_TO_BYTE 2: Return value

Name

Type

Description

HEXCHRNIBBLE_TO_BYTE

BYTE

 

HEXCHRNIBBLE_TO_BYTE 3: Inputs

VAR_INPUT
    chr : STRING(1);
END_VAR

Name

Type

Description

chr

STRING(1)

Hexadecimal nibble (‘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)