IDEC MICROSmart FC6A Series Ladder Programming Manual page 163

Automation organizer windldr
Hide thumbs Also See for MICROSmart FC6A Series:
Table of Contents

Advertisement

Examples: DIV
• Data Type: Word
DIV(W)
S1 –
D10
I2
Note: Since the destination uses two word devices in the division operation of word data, data register such as D7999 cannot be used as
destination device D1. When using a bit device, such as internal relay for destination, 32 internal relays are required; so internal relay such as
M7961 cannot be used as destination device D1.
• Data Type: Integer
DIV(I)
S1 –
D10
I2
Note: Since the destination uses two word devices in the division operation of integer data, data register such as D7999 cannot be used as
destination device D1. When using a bit device, such as internal relay for destination, 32 internal relays are required; so internal relay such as
M7961 cannot be used as destination device D1.
• Data Type: Double Word
DIV(D)
S1 –
D10
I1
100000
D10·D11
Note: Since the destination uses four word devices in the division operation of double-word data, data registers such as D7997 cannot be used as
destination device D1. When using a bit device such as internal relay for destination, 64 internal relays are required; so internal relay such as M7921
cannot be used as destination device D1.
• Data Type: Long
DIV(L)
S1 –
D10
I1
100000
D10·D11
Note: Since the destination uses four word devices in the division operation of long data, data registers such as D7997 cannot be used as
destination device D1. When using a bit device, such as internal relay for destination, 64 internal relays are required; so internal relay such as
M7921 cannot be used as destination device D1.
• Data Type: Float
DIV(F)
S1 –
D10
I1
4.43996
D10·D11
Note: Since the destination uses two word devices in the division operation of float data, data register such as D7999 cannot be used as destination
device D1.
S2 –
D1 –
REP
D20
D30
S2 –
D1 –
REP
D20
D30
S2 –
D1 –
REP
D20
D30
÷
70000
D20·D21
S2 –
D1 –
REP
D20
D30
÷
–70000
D20·D21
S2 –
D1 –
REP
D20
D30
÷
3.14
D20·D21
FC6A S
MICROS
ERIES
MART
7: B
50
D10
÷
D20
When input I2 is on, D10 data is divided by D20 data. The quotient is set to D30,
and the remainder is set to D31.
D10
50
÷
D20
D30·D31
D30·D31
D30·D31
L
P
M
ADDER
ROGRAMMING
ANUAL
A
INARY
RITHMETIC
7
7
D30
Quotient
–7
D30
–7
Quotient
1
D32·D33
Q
u
t o
e i
t n
–1
D32·D33
Q
u
t o
e i
t n
1.414
Quotient
FC9Y-B1726
I
NSTRUCTIONS
1
D31
Remainder
D31
1
Remainder
30000
R
e
m
a
n i
d
r e
30000
R
e
m
a
n i
d
r e
7-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents