High−level Instructions
3 − 718
Description
Converts real number data range: (+32767.99 to −32767.99) specified by S to signed 16-bit integer data (the
largest integer not exceeding the floating point data) when the trigger turns on. The converted data is stored
in D.
Signed 16-bit
integer data
15 0
D:
Real number
data
15 0
S:
Lower word
S+1:
Higher word
Precaution during programming
For FP0, this instruction F327 (INT) 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 16-bit integer data.
・= flag (R900B): Turns on for an instant when the converted data is recognized as “0”.