F71_HEX2A

Redundant instruction

NOTE

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

Converts the data byte-wise from the 16-bit area specified by s1_Start to ASCII codes that express the equivalent hexadecimals if the trigger EN is in the TRUE-state. The number of bytes to be converted is specified by s3_Number. The converted result is stored in the area starting with the 16-bit area specified by d_Start. ASCII code requires 8 bits (one byte) to express one hexadecimal character. Upon conversion to ASCII, the data length will thus be twice the length of the source data.

Parameters

Input

s1_Start (WORD, INT, UINT)

starting 16-bit area for hexadecimal number (source)

s3_Number (INT)

specifies number of source data bytes to be converted

Output

d_Start (WORD, INT, UINT)

starting 16-bit area for storing ASCII code (destination)

Remarks

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the byte number specified by s3_Number exceeds the area specified by s1_Start

  • if the calculated result exceeds the area specified by d_Start.

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

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the byte number specified by s3_Number exceeds the area specified by s1_Start

  • if the calculated result exceeds the area specified by d_Start.

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

Related topics:

Modified on: 2019-06-04Feedback on this pagePanasonic hotline