Redundant instruction
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.
Input
starting 16-bit area for hexadecimal number (source)
specifies number of source data bytes to be converted
Output
starting 16-bit area for storing ASCII code (destination)
Remarks
Instead of using this F instruction, we recommend using the corresponding FP7 instruction: FP_HEX_TO_ASCII
The two characters that make up one byte are interchanged when stored. Two bytes are converted as one segment of data.
ASCII HEX codes to express hexadecimal characters:
Hexadecimal number |
ASCII HEX code |
---|---|
0 1 2 3 4 5 6 7 8 9 A B C D E F |
16#30 16#31 16#32 16#33 16#34 16#35 16#36 16#37 16#38 16#39 16#41 16#42 16#43 16#44 16#45 16#46 |
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".
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".