Sum (Sum) - IDEC MICROSmart FC6A Series Ladder Programming Manual

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

Advertisement

SUM (Sum)

SUM(*)
ADD/XOR
*****
Valid Devices
Device
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
For valid device address ranges, see "Device Addresses" on page 2-1.
When T (timer) or C (counter) is used as S1, the timer/counter current value (TC or CC) is displayed.
When F (float) data is selected, only a 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 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 FC6A Series MICROSmart.
When S2 is 0 or exceeds 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 FC6A Series MICROSmart. For user program execution errors, see "User Program Execution Errors" on page 3-10.
Valid Data Types
Calculation
ADD
W (word)
X
I (integer)
X
D (double word)
X
L (long)
X
F (float)
X
Quantity of Source and Destination Devices
Depending on the ADD or XOR operation for W (word) and I (integer) data, the destination uses a different quantity of devices.
Operation
ADD
XOR
S1
S2
D1
*****
*****
Function
First device address to calculate
Quantity of data blocks
Destination to store results
XOR
When ADD is selected, all data types can be used.
X
When XOR is selected, only W (word) data can be used.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source or
destination, 1 point (word or integer data) or 2 points (double-word, long, or float data) are used.
W (word), I (integer)
S1, S2:
1 word device
D1:
2 word devices
S1, S2, D1:
1 word device
FC6A S
MICROS
ERIES
MART
Calculates the total of assigned data, depending on the calculation option.
ADD:
When input is on, N blocks of 16- or 32-bit data starting at device assigned by S1 are
added together and the result is stored to the device assigned by D1. S2 specifies the
quantity of data blocks.
XOR:
When input is on, N blocks of 16-bit data starting at the device assigned by S1 are
XORed and the result is stored to the device assigned by D1. S2 specifies the quantity of
data blocks.
I
Q
S1, D1:
S2:
L
P
M
ADDER
ROGRAMMING
ANUAL
7: B
A
INARY
RITHMETIC
M
R
T
C
D
P
X
X
X
X
X
D (double word), L (long), F (float)
2 word devices
1 word device
FC9Y-B1726
I
NSTRUCTIONS
Constant
Repeat
X
7-15

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents