C h a p t e r 5 A p p l i e d I n s t r u c t i o n s
API
Instruction code
Operand
Function
174
D
MULR
P
S
1
, S
2
, D
Floating-point
multiplication
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
1
S
2
D
Pulse instruction 16-bit instruction 32-bit instruction (9 steps)
–
E xp la nat io n
S
1
and
S
2
can be floating-point values.
S
1
: Multiplicand;
S
2
: Multiplier;
D
: Product
S
1
and
S
2
can be floating-point values, or data registers in which
floating-point values are stored.
If
S
1
and
S
2
are data registers in which floating-point values are stored,
the function of API 172 DMULR is the same as the function of API 122
DEMUL.
The floating-point value in
S
1
is multiplied by the floating-point value in
S
2
, and the product is stored in
D
.
S
1
and
S
2
can be the same register. If the instruction DSUBR is used
under the circumstances, the value in the register is multiplied by itself
whenever the conditional contact is ON in a scan cycle. Generally, the
pulse instruction DMULRP is used.
If the absolute value of an oepration result is greater than the maximum
floating-point value available, a carry flag will be ON.
If the absolute value of an oepration reuslt is less than the minimum
floating-point value available, a borrow flag will be ON.
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
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.
E xamp le 1
When X0.0 is ON, the floating-point value F1.23456 is multiplied by the
floating-point value F1.0, and the product F1.23456 is stored in (D11,
D10).
X0.0
D MU LR
F 1.23456
D 10
F 1.0
E xamp le 2
When X0.0 is ON, the floating-point value in (D1, D0) is multiplied by
the floating-point value in (D11, D10), and the product is stored in (D21,
D20).
X0.1
D0
D10
D20
DMULR
5 - 1 0 5
Содержание AH500
Страница 9: ...viii...
Страница 52: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Panasonic CN5 series servo drive 2 31...
Страница 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Страница 54: ...Chapter 2 Hardware Specifications and Wiring Wiring AH10PM 5A and a Mitsubishi MJR2 series servo drive 2 33...
Страница 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Страница 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Страница 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Страница 376: ...Chapter 6 Data Transmission Table of Contents 6 1 Functions 6 2 6 2 Parameters 6 2 6 3 Usage 6 5 6 1...
Страница 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Страница 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Страница 436: ...Chapter 8 Electronic Cam 8 17...
Страница 482: ...Chapter 10 High speed Counters and High speed Timers 3 The cyclic mode is used to measure a frequency 10 7...
Страница 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Страница 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Страница 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Страница 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...
Страница 547: ...AH500 Motion Control Module Manual A 4 MEMO...