FT1A S
MART
A
XIS
U
SER
’
S
M
ANUAL
FT9Y-B1382
8-15
8: B
INARY
A
RITHMETIC
I
NSTRUCTIONS
SUM (Sum)
Applicable CPU Modules
Valid Devices
For the valid device address range, see pages 6-1 and 6-2
(Basic Vol.).
When T (timer) or C (counter) is used as S1, the timer/counter current value (TC or CC) is read out.
When F (float) data type is selected, only data register can be designated as S1.
For source S2, 1 word is always used without regard to the data type.
When F (float) data type is selected and S1 does not comply with the normal floating-point format, a user program execution error will result,
turning on special internal relay M8004 and ERR LED on the CPU module.
When S2 is 0 or out of the correct value range for the selected device, a user program execution error will result, turning on special internal relay
M8004 and ERR LED on the CPU module.
For user program execution errors, see Chapter 4 “User Program Execution Errors” on page 4-21.
Valid Data Types
Quantity of Source and Destination Devices
Depending on the ADD or XOR operation for W (word) and I (integer) data types, the destination uses a different quantity of
devices.
Calculate the total of designated data, depending on the calculation option.
ADD:
When input is on, N blocks of 16- or 32-bit data starting at device designated by S1 are
added and the result is stored to device designated by D1. S2 specifies the quantity of
data blocks.
XOR:
When input is on, N blocks of 16-bit data starting at device designated by S1 are XORed
and the result is stored to device designated by D1. S2 specifies the quantity of data
blocks.
D1
*****
S1
*****
S2
*****
SUM(*)
ADD/XOR
FT1A-12
FT1A-24
FT1A-40
FT1A-48
FT1A-Touch
X
X
X
X
X
Device
Function
I
Q
M
R
T
C
D
Constant
Repeat
S1 (Source 1)
First device address to calculate
—
—
—
—
X
X
X
—
—
S2 (Source 2)
Quantity of data blocks
—
—
—
—
—
—
X
X
—
D1 (Destination 1)
Destination to store results
—
—
—
—
—
—
X
—
—
Calculation
ADD
XOR
When ADD is selected, all data types can be used.
When XOR is selected, only W (word) data type can be used.
When a word device such as T (timer), C (counter), or D (data register) is designated as the source or
destination, 1 point (word or integer data type) or 2 points (double-word, long, or float data type) are
used.
W (word)
X
X
I (integer)
X
—
D (double word)
X
—
L (long)
X
—
F (float)
X
—
Operation
W (word), I (integer)
D (double word), L (long), F (float)
ADD
S1, S2:
1 word device
S1, D1:
2 word devices
D1:
2 word devices
S2:
1 word device
XOR
S1, S2, D1:
1 word device
—
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 ...