22.11.9.5 Hexadecimal Text-To-Integer Conversion

This function converts a hexadecimal string to binary data. Convert the hexadecimal integer text in Parameter 2 (Convert-From Data Buffer) into an integer, and store it in Parameter 1(Convert-to Address).

_hexasc2bin (Conversion result address, Conversion source buffer)

Example expression 1 (When the data length is 16 bits)

_hexasc2bin ([w:[#INTERNAL]LS0100], databuf0)

The content of "databuf0" is as follows:

The above data are converted as follows:

Example expression 2 (When the data length is 32 bits)

_hexasc2bin ([w:[#INTERNAL]LS0100], databuf0)

The content of "databuf0" is as follows:

The above data are converted as follows: