F331_ROFF

Redundant instruction

NOTE

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

Converts real number data (range: +32767.49 to -32768.49) specified by s to signed 16-bit integer data (rounding the first decimal point off to integer). The converted data is stored in d.

Parameters

Input

s (REAL)

Real number data (source).

Output

d (INT)

Converted integer data for result (destination).

Remarks

Error flags

sys_bIsOperationErrorHold (turns to TRUE and remains TRUE)
  • if data other than real number data is specified in s.

  • if the converted data exceeds the range of 16-bit integer data.

sys_bIsOperationErrorNonHold (turns to TRUE for one scan)
  • if data other than real number data is specified in s.

  • if the converted data exceeds the range of 16-bit integer data.

sys_bIsEqual (turns to TRUE and remains TRUE)

if the result of processing is recognized as "0".

Related topics:

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