8: B
INARY
A
RITHMETIC
I
NSTRUCTIONS
8-10
FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
Repeat Operation in the DIV Instruction
Since the DIV (division) instruction (except the float data type) uses two destination devices, the quotient and remainder are
stored as described below. Source devices S1 and S2 and destination device D1 can be designated to repeat individually or in
combination. When destination device D1 is not designated to repeat, the final result is set to destination device D1 (quotient) and
D1+1 (remainder). When repeat is designated, consecutive devices as many as the repeat cycles starting with the designated
device are used.
Division instructions in the float data type do not generate remainders and use two consecutive data registers to store quotients.
When repeat is designated for destination of the float data type, consecutive data registers as many as the repeat cycles are used.
Repeat One Source Device
Data Type: Word and Integer
When only S1 (source) is designated to repeat, the final result is set to destination devices D1 and D1+1.
Data Type: Double Word and Long
When only S1 (source) is designated to repeat, the final result is set to destination devices D1·D1+1 and D1+2·D1+3.
Data Type: Float
When only S1 (source) is designated to repeat, the final result is set to destination devices D1·D1+1.
Repeat Destination Device Only
Data Type: Word and Integer
When only D1 (destination) is designated to repeat, the same result is set to 6 devices starting with D1.
Data Type: Double Word and Long
When only D1 (destination) is designated to repeat, the same result is set to 6 devices starting with D1·D1+1.
Data Type: Float
When only D1 (destination) is designated to repeat, the same result is set to 3 devices starting with D1·D1+1.
I1
REP
3
S1 R
D10
D1 –
D30
D10
S1 (Repeat = 3)
D1 (Repeat = 0)
S2 –
D20
S2 (Repeat = 0)
÷
(D30)
D20
(D31)
D11
D12
÷
÷
D20
D20
(D30)
D30
(D31)
D31
Quotient
Remainder
SOTU
DIV(W)
I1
REP
3
S1 R
D10
D1 –
D30
D10·D11
S1 (Repeat = 3)
D1 (Repeat = 0)
S2 –
D20
S2 (Repeat = 0)
÷
(D30·D31)
D20·D21
(D32·D33)
D12·D13
D14·D15
÷
÷
D20·D21
D20·D21
(D30·D31)
D30·D31
(D32·D33)
D32·D33
Quotient
Remainder
SOTU
DIV(D)
I1
REP
3
S1 R
D10
D1 –
D30
D12·D13
D10·D11
D14·D15
S1 (Repeat = 3)
D1 (Repeat = 0)
S2 –
D20
S2 (Repeat = 0)
÷
÷
÷
(D30·D31)
(D30·D31)
D30·D31
D20·D21
D20·D21
D20·D21
SOTU
DIV(F)
Quotient
I1
REP
3
S1 –
D10
D1 R
D30
D10
S1 (Repeat = 0)
D1 (Repeat = 3)
S2 –
D20
S2 (Repeat = 0)
÷
D30
D20
D33
D10
D10
÷
÷
D20
D20
D31
D32
D34
D35
Quotient
Remainder
SOTU
DIV(W)
I1
REP
3
S1 –
D10
D1 R
D30
D10·D11
S1 (Repeat = 0)
D1 (Repeat = 3)
S2 –
D20
S2 (Repeat = 0)
÷
D30·D31
D20·D21
D36·D37
D10·D11
D10·D11
÷
÷
D20·D21
D20·D21
D32·D33
D34·D35
D38·D39
D40·D41
Quotient
Remainder
SOTU
DIV(D)
I1
REP
3
S1 –
D10
D1 R
D30
D10·D11
D10·D11
D10·D11
S1 (Repeat = 0)
D1 (Repeat = 3)
S2 –
D20
S2 (Repeat = 0)
÷
÷
÷
D32·D33
D30·D31
D34·D35
D20·D21
D20·D21
D20·D21
SOTU
DIV(F)
Quotient
Summary of Contents for microsmart pentra
Page 1: ...FT1A SERIES FC9Y B1382 Ladder Programming Manual ...
Page 6: ...Preface 5 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 104: ...7 DATA COMPARISON INSTRUCTIONS 7 10 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 122: ...8 BINARY ARITHMETIC INSTRUCTIONS 8 18 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 138: ...10 SHIFT ROTATE INSTRUCTIONS 10 12 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 162: ...11 DATA CONVERSION INSTRUCTIONS 11 24 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 188: ...12 CALENDAR COMPARISON INSTRUCTIONS 12 26 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 198: ...15 REFRESH INSTRUCTIONS 15 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 202: ...16 INTERRUPT CONTROL INSTRUCTIONS 16 4 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...
Page 266: ...20 DUAL TEACHING TIMER INSTRUCTIONS 20 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 318: ...25 USER COMMUNICATION INSTRUCTIONS 25 22 FT1A SMARTAXIS USER S MANUAL FT9Y B1382 ...