Delta Electronics AH500 Manual page 199

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
123
D
EDIV
Device
X
Y
M
S
1
S
2
D
 S
 The binary floating-point value in S
E xp la nat io n
 If S
 If the value in S
 If the absolute value of an oepration result is greater than the maximum
 If the absolute value of an oepration reuslt is less than the minimum
 If an operation result is 0, a zero flag will be ON.
 SM1064 is the zero flag in an Ox motion subroutine, and SM968 is the
 SM1065 is the borrow flag in an Ox motion subroutine, and SM969 is the
 SM1066 is the carry flag in an Ox motion subroutine, and SM970 is the
 SM1049 is the operation error flag in an Ox motion subroutine, and
 When X0.1 is ON, the binary floating-point value in (D1, D0) is divided by
E xamp le 1
 When X0.2 is ON, the binary floating-point value in (D1, D0) is divided by
E xamp le 2
A dditio nal
re mark
Operand
P
S
1
S
K
16#
F
Pulse instruction 16-bit instruction 32-bit instruction (9 steps)
: Dividend; S
: Divisor; D: Quotient and remainder
1
2
value in S
, and the quotient is stored in D.
2
is a floating-point value, the instruction will be used to divide the
1
floating-point value by the binary floating-point value in S
floating-point value, the instruction will be used to divide the binary
floating-point value in S
1
is 0, an operation error will occur, the instruciton will not
2
be executed, an operation error flag will be ON, and the error code
16#0E19 will appear.
floating-point value available, a carry flag will be ON.
floating-point value available, a borrow flag will be ON.
zero flag in O100.
borrow flag in O100.
carry flag in O100.
SM953 is the operation error flag in O100.
the binary floating-point value in (D11, D10), and the quotient is stored in
(D21, D20).
X0.1
DEDIV
F1234.0, and the quotient is stored in (D11, D10).
X0.2
DEDIV
Please refer to section 5.3 for more information about performing
operations on floating-point numbers.
Binary floating-point
, S
, D
2
division
KnM KnS
D
W
is divided by the binary floating-point
1
by the floating-point value.
D0
D10
F1234.0
D0
Function
T
C
V
Z
. If S
is a
2
2
D20
D10
5 - 8 4

Advertisement

Table of Contents
loading

Table of Contents