Delta AS Series Programming Manual page 333

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
0103
D
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
the remainder in D.
2.
Only the 32-bit instructions can use the 32-bit counter.
3.
When the sign bit is 0, the value is a positive one. When the sign bit is 1, the value is a negative one.
4.
Dividing 16-bit values:
The operand D occupies two consecutive devices. The quotient is stored in D, and the remainder is stored in D+1.
6 - 5 4
/
P
Y
M
S
T
S
1
S
2
D
S
1
b15..............b0
b15..............b0
/
Operand
,S
,D
S
1
2
C
HC
D
FR
SM
Pulse instruction
AS
: Dividend
: Divisor
: Quotient; remainder
by the signed binary value in S
1
Quotient
S
D
2
b15..............b0 b15..............b0
=
Function
Dividing binary numbers
SR
E
K
16#
16-bit instruction
32-bit instruction
AS
, and stores the quotient and
2
Remainder
D+1
"$"
F
AS

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents