5:
Binary
Arithmetic
Instructions
FC5A
MicroSmart
User’s
Manual FC9Y
‐
B1273
5
‐
17
Carry
and
Borrow
In
advanced
instructions
involving
D
(double
word),
L
(long),
or
F
(floating
point)
data,
special
internal
relay
M8003
(carry
and
borrow)
is
turned
on
when
the
execution
of
the
instruction
results
in
the
following
value.
Carry
and
Borrow
in
Floating
‐
Point
Data
Processing
When
advanced
instructions
involving
floating
‐
point
data
are
executed,
special
internal
relay
M8003
(carry
and
borrow)
is
updated.
Examples:
SUM
•
Data
Type:
Word
Data
Type
M8003
Execution
Result
D
(double
word)
1
Out
of
the
range
between
0
to
4,294,967,295
L
(long)
1
Out
of
the
range
between
–2,147,483,648
to
2,147,483,647
F
(float)
1
See
the
figure
below.
M8003
Execution
Result
Value
1
0
Overflow
(out
of
the
range
between
–3.402823
10
38
and
3.402823
10
38
)
1
0
Not
zero
(within
the
range
between
–1.175495
10
–38
and
1.175495
10
–38
)
0
0
Zero
0
–1.175495
10
–38
M8003
1
1
1.175495
10
–38
0
–3.402823
10
38
0
Execution
Result
1
Overflow
0
1
3.402823
10
38
Overflow
Not
Zero
D1
D100
S1
D0
I0
SUM(W)
ADD
S2
4
SOTU
1
D0 (0001h)
2
D1 (0002h)
3
D2 (0003h)
4
D3 (0004h)
10
(0000000Ah)
D100
∙
D101
D1
D100
S1
D0
I0
SUM(W)
XOR
S2
4
SOTU
261
D0 (0105h)
758
D1 (02F6h)
775
D2 (0307h)
1032
D3 (0408h)
1276
D100 (04FCh)
XOR
Operation
D0
(0105h)
0000
0001
0000
0101
D1
(02F6h)
0000
0010
1111
0110
D2
(0307h)
0000
0011
0000
0111
XOR
D3
(0408h)
0000
0100
0000
1000
D100
(04FCh)
0000
0100
1111
1100
Summary of Contents for MICROSmart FC5A Series
Page 1: ...FC5A SERIES FC9Y B1273 1 User s Manual Advanced Volume ...
Page 2: ......
Page 8: ...Preface 6 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 14: ...TABLE OF CONTENTS vi FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 52: ...4 DATA COMPARISON INSTRUCTIONS 4 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 72: ...5 Binary Arithmetic Instructions 5 20 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 88: ...7 SHIFT ROTATE INSTRUCTIONS 7 12 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 112: ...8 DATA CONVERSION INSTRUCTIONS 8 24 FC5A MicroSmart User s Manual FC9Y B1273 ...
Page 138: ...11 PROGRAM BRANCHING INSTRUCTIONS 11 14 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 178: ...13 PULSE INSTRUCTIONS 13 32 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 202: ...14 PID INSTRUCTION 14 24 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 206: ...15 DUAL TEACHING TIMER INSTRUCTIONS 15 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 214: ...16 INTELLIGENT MODULE ACCESS INSTRUCTIONS 16 8 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 248: ...21 COMPUTER LINK COMMUNICATION 21 4 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 272: ...23 MODBUS TCP COMMUNICATION 23 10 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 332: ...25 EXPANSION RS232C RS485 COMMUNICATION 25 16 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...
Page 341: ...NOTE FC5A MICROSMART USER S MANUAL FC9Y B1273 1 ...
Page 342: ...NOTE 2 FC5A MICROSMART USER S MANUAL FC9Y B1273 ...