F332_DROFF

Redundant instruction

NOTE

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

Converts real number data (range: -2,147,483,000 to 2,147,483,000) specified by s to signed 32-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 (DINT, DWORD)

Converted double 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 32-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 32-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