IDEC FC4A-C10R2 User Manual page 242

Fc4a series microsmart micro programmable logic controller
Table of Contents

Advertisement

12: B
C
OOLEAN
OMPUTATION
Valid Operands
Operand
S1 (Source 1)
S2 (Source 2)
D1 (Destination 1)
For the valid operand number range, see pages 6-1 and 6-2.
Internal relays M0 through M1277 can be designated as D1. Special internal relays cannot be designated as D1.
When T (timer) or C (counter) is used as S1 or S2, the timer/counter current value is read out. When T (timer) or C
(counter) is used as D1, the data is written in as a preset value which can be 0 through 65535.
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 as required.
Valid Data Types
W (word)
I (integer)
X
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.
Q11
Q10
0
0
0 0
0 0
0
1
M17
M10
M8120
XORW(W)
SOTU
I1
12-2
I
NSTRUCTIONS
Function
Data for computation
Data for computation
Destination to store results
When a bit operand such as I (input), Q (output), M (internal relay), or R (shift register) is
designated as the source or destination, 16 points are used. When repeat is designated for a
bit operand, the quantity of operand bits increases in 16-point increments.
When a word operand such as T (timer), C (counter), or D (data register) is designated as the
source or destination, 1 point is used. When repeat is designated for a word operand, the
quantity of operand words increases in 1-point increments.
Q0
Q7
10 points
0 1 0 1 0 1 0
1
M7
M0
S1 –
S2 –
D1 –
M0
Q0
Q0
« FC4A M
I
Q
X
X
X
X
X
This program will invert the status of the shaded outputs at the
left from on to off, and those not shaded from off to on.
Ten outputs Q0 through Q11 are assigned to 10 internal
S
relays M0 through M11.
M0
S
M2
Five internal relays M0, M2, M4, M6, and M10 are set by
initialize pulse special internal relay M8120.
S
M4
S
M6
S
M10
When input I1 is turned on, the XORW instruction is exe-
REP
cuted to invert the status of outputs Q0, Q2, Q4, Q6,
and Q10.
S
U
'
M
ICRO
MART
SER
S
ANUAL
M
R
T
C
D
Constant
X
X
X
X
X
X
X
X
X
X
X
X
X
X
»
Repeat
X
1-99
X
1-99
1-99

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents