F95_ASC

Redundant instruction

NOTE

This is a redundant F instruction.

Converts the character constants specified by s to hexadecimal ASCII code. The hexadecimal code is stored in 6 words starting from the 16-bit area specified by d.

Parameters

Input

sconstant, no variables possible

Character constants, max. 12 letters (source).

Output

d (WORD, INT, UINT)

Starting 16-bit area for storing 6-word ASCII code (destination).

Example

  1. Character constants

  2. Data register

  3. ASCII HEX code

  4. ASCII character

  5. SPACE

Remarks

If the number of character constants specified by s is less than 12, the ASCII code 16#20 (SPACE) is stored in the extra destination area, e.g. s = ’12345’, d[0] = 3231, d[1] = 3433, d[2] = 2035, d[3] = 2020, d[4] = 2020, d[5] = 2020.

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if the last area for ASCII code exceeds the limit (6 words: six 16-bit areas).

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if the last area for ASCII code exceeds the limit (6 words: six 16-bit areas).

Related topics:

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