Delta AS Series Programming Manual page 355

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l
API
Instruction code
0118
Device
X
S
1
S
2
D
Data
type
S
1
S
2
D
Symbol
_6
Explanation
1.
This instruction divides the signed binary value in S
2.
Only the 32-bit instruction can use an HC device.
3.
Sign bit=0 (Positive number); sign bit =1 (Negative number)
4.
16-bit binary division:
The quotient is stored in D.
6 - 7 6
DIV16
P
DIV32
Y
M
S
T
C
S
1
S
2
D
S
1
b15..............b0
Operand
,S
,D
S
1
2
HC
D
FR
SM
Pulse instruction
AS
: Dividend
: Divisor
: Quotient; remainder
by the signed binary value in S
1
Quotient
S
2
b15..............b0
b15..............b0
/
=
Function
Dividing 16-bit binary numbers
Dividing 32-bit binary numbers
SR
E
K
16#
16-bit instruction
32-bit instruction
AS
, and stores the quotient in D.
2
D
"$"
F
AS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents