Redundant instruction
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.
Input
Real number data (source).
Output
Converted integer data for result (destination).
F331_ROFF cannot be programmed in the interrupt program.
Instead of using F331_ROFF, you can use variables of the type REAL with the more flexible instruction REAL_TO_INT.
if data other than real number data is specified in s.
if the converted data exceeds the range of 16-bit integer data.
if data other than real number data is specified in s.
if the converted data exceeds the range of 16-bit integer data.
if the result of processing is recognized as "0".