Delta Electronics AH500 Manual page 205

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l
API
Instruction code
129
D
INT
Device
X
Y
M
S
D
E xp la nat io n
E xa mple
Operand
P
S, D
S
K
16#
F
Pulse instruction 16-bit instruction 32-bit instruction (5 steps)
S: Source device; D: Conversion result
The binary floating-point value in S is converted into a binary value. The
integer part of the binary value is stored in D, and the fractional part of
the binary value is dropped.
The instruction is the opposite of API 49 DFLT.
SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the
zero flag in O100.
SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is the
borrow flag in O100.
SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the
carry flag in O100.
SM1049 is the operation error flag in an Ox motion subroutine, and
SM953 is the operation error flag in O100.
If a conversion result is 0, a zero flag will be ON.
If the fractional part of a conversion result is dropped, a borrow flag will
be ON.
If a converesion result is not in the range of -2,147,483,648 to
2,147,483,647, a carry flag will be ON.
When X0.1 is ON, the binary floating-point value in (D21, D20) is
converted into a binary value. The integer part of the binary value is
stored in (D31, D30), and the fractional part of the binary value is
dropped.
X0.1
Converting a binary
floating-point number into a
binary integer
KnM KnS
D
W
DI NT
D20
Function
T
C
V
Z
D30
5 - 9 0

Advertisement

Table of Contents
loading

Table of Contents