Delta AS Series Programming Manual page 366

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
0204
D
INT
Device
X
Y
M
S
D
Data
type
S
D
Symbol
Explanation
1.
This instruction converts a single-precision floating-point number in S into a binary integer, then rounds the binary
floating-point number down to the nearest whole digit to becomes a binary integer, and then the instruction stores
the binary integer in D.
2.
The source device S used in the INT instruction occupies two registers, and D used in INT occupies one register.
3.
The source device S used in the DINT instruction occupies two registers, and D used in DINT also occupies two
registers.
4.
The operand D used in the INT instruction cannot be the 32-bit counter, but not the device E.
5.
The INT instruction is the opposite of the FLT instruction .
6.
When the conversion result is zero, SM600 is ON.
7.
During the conversion, if the floating-point number is rounded down to the nearest whole digit, SM601 is ON.
8.
When the conversion result exceeds the range, SM602 is ON.
9.
For the INT/IINTP instructions, the range of conversion result is between -32,768 and 32,767.
10.
For the DINT/DINTP instructions, the range of conversion result is between -2,147,483,648 and 2,147,483,647.
Operand
P
S, D
S
T
C
HC
Pulse instruction
: Source device
S
: Conversion result
D
Ch a pt er 6 A pp l i e d I n s tr uc t io ns
Converting a 32-bit floating-point number
D
FR
SM
SR
16-bit instruction
AS
AS
Function
into a binary integer
E
K
16#
"$"
32-bit instruction
AS
6 - 8 7
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents