F72_A2HEX

Redundant instruction

NOTE

This is a redundant instruction. It is replaced by: FP_ASCII_TO_HEX

Converts the ASCII codes that express the hexadecimal characters starting from the 16-bit area specified by s1 to hexadecimal numbers if the trigger EN is in the ON-state. s2 specifies the number of ASCII (number of characters) to be converted. The converted result is stored in the area starting from the 16-bit area specified by d. ASCII code requires 8 bits (one byte) to express one hexadecimal character. Upon conversion to a hexadecimal number, the data length will thus be half the length of the ASCII code source data.

Parameters

Input

s1_Start (WORD)

starting 16-bit area for ASCII code (source)

s2_Number (INT)

specifies number of source data bytes to be converted

Output

d_Start (WORD, INT, UINT)

starting 16-bit area for storing converted data (destination)

Remarks

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the number of bytes specified by s2 exceeds the area specified by s1.

  • if the converted result exceeds the area specified by d.

  • if the data specified by s2 is recognized as "0".

  • if ASCII code, not a hexadecimal number (0 to F), is specified.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the number of bytes specified by s2 exceeds the area specified by s1.

  • if the converted result exceeds the area specified by d.

  • if the data specified by s2 is recognized as "0".

  • if ASCII code, not a hexadecimal number (0 to F), is specified.

Related topics:

Modified on: 2019-01-24Feedback on this pagePanasonic hotline