8: B
OOLEAN
C
OMPUTATION
I
NSTRUCTIONS
8-2
FC6A S
ERIES
MICROS
MART
L
ADDER
P
ROGRAMMING
M
ANUAL
FC9Y-B1726
Valid Devices
For valid device address ranges, see "Device Addresses" on page 2-1.
Special internal relays cannot be assigned as D1.
When T (timer) or C (counter) is used as S1 or S2, the timer/counter current value (TC or CC) is displayed. When T (timer) or C (counter) is used as
D1, the data is written in as a preset value (TP or CP) which can be 0 through 65,535.
Since the Boolean computation instructions are executed in each scan while input is on, a pulse input from a SOTU or SOTD instruction should be
used.
Valid Data Types
Example: XORW
To convert optional output status among a series of 10 output points, use the XORW instruction in combination with 10 internal
relay points.
Device
Function
I
Q
M
R
T
C
D
P
Constant
Repeat
S1 (Source 1)
Data for computation
X
X
X
X
X
X
X
—
X
1-99
S2 (Source 2)
Data for computation
X
X
X
X
X
X
X
—
X
1-99
D1 (Destination 1)
Destination to store results
—
X
X
X
X
X
—
—
1-99
W (word)
X
When a bit device such as I (input), Q (output), M (internal relay), or R (shift register) is assigned as the source
or destination, 16 points (word data) or 32 points (double-word data) are used. When repeat is assigned for a bit
device, the quantity of device bits increases in 16- or 32-point increments.
When a word device such as T (timer), C (counter), or D (data register) is assigned as the source or destination,
1 point (word data) or 2 points (double-word data) are used. When repeat is assigned for a word device, the
quantity of device words increases in 1- or 2-point increments.
I (integer)
—
D (double word)
X
L (long)
—
F (float)
—
0
0 0
0
0 0
1
1
0
0 1 0 1
0 1 0
Q0
Q7
Q10
Q11
10 points
M0
M7
M10
M17
This program will invert the status of the shaded outputs on the left from on to
off, and those not shaded from off to on.
M8120
REP
S1 –
M0
S2 –
Q0
D1 –
Q0
SOTU
I1
XORW(W)
M0
S
M2
S
M4
S
M6
S
M10
S
Ten outputs Q0 through Q11 are assigned to 10 internal relays M0
through M11.
Five internal relays M0, M2, M4, M6, and M10 are set by initialize pulse
special internal relay M8120.
When input I1 is turned on, the XORW instruction is executed to invert
the status of outputs Q0, Q2, Q4, Q6, and Q10.
Summary of Contents for MICROSmart FC6A Series
Page 1: ...B 1726 7 FC6A SERIES Ladder Programming Manual ...
Page 8: ...Preface 7 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 32: ...1 OPERATION BASICS 1 20 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 96: ...3 INSTRUCTIONS REFERENCE 3 18 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 130: ...4 BASIC INSTRUCTIONS 4 34 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 192: ...9 SHIFT ROTATE INSTRUCTIONS 9 12 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 272: ...12 DISPLAY INSTRUCTIONS 12 24 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 284: ...14 REFRESH INSTRUCTIONS 14 6 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 502: ...25 DATA LOG INSTRUCTIONS 25 22 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 546: ...26 SCRIPT 26 44 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...
Page 598: ...APPENDIX A 14 FC6A SERIES MICROSMART LADDER PROGRAMMING MANUAL FC9Y B1726 ...