High−level Instructions
3 − 728
Description
Converts real number data (range: −2,147,483,000 to 2,147,483,000) specified by S+1 and S to signed
32-bit integer data (rounding the first decimal point off to integer) when the trigger turns on. The converted
data is stored in D+1 and D.
Signed 32-bit
integer data
15 0
D:
Real number
data
Lower word
D+1:
Higher word
15 0
S:
Lower word
S+1:
Higher word
Precaution during programming
For FP0, this instruction F332 (DROFF) cannot be programmed in the interrupt program.
Flag conditions
・Error flag (R9007): Turns on and stays on when:
・Error flag (R9008): Turns on for an instant when:
− The area specified using the index modifier exceeds the limit.
− If data other than real number data is specified in S+1 and S.
− The converted data exceeds the range of 32-bit integer data.
・= flag (R900B): Turns on for an instant when the converted data is recognized as “0”.