PCC-IV Instruction Manual (Rev. 0.1)
Page 6-43
Section 6
– Blockware Functions
Technical Reference
F107 [LOGIC] User Defined Logic
Function
LOGIC
provides user configurable binary logic for up to three discrete Inputs. Parameters 3-6 allow
negating any Input or the Block Output. Parameter 1 selects the logical function used to combine Inputs A and B.
Parameter 2 selects the logical function used to combine Input C with the result of A and B. See figure below.
If only two Inputs are used: Connect Inputs A and B, leave Input C connected to the default Block 2 (D0), and
change Parameter 2 to a "2" (OR logic).
Inputs:
Result for each logical function:
A
B
AND
OR
NAND
NOR
0
0
0
0
1
1
0
1
0
1
1
0
1
0
0
1
1
0
1
1
1
1
0
0
---------------------------------------------------------------------------
NAME: LOGIC SINGLE USE FUNCTION: N OUTPUT TYPE: D
---------------------------------------------------------------------------------------------
Input Type Description Notes
_____________________________________________________________________________________________
1 D A INPUT
2 D B INPUT
3 D C INPUT
Parameter Description Default Max Min Code Notes
_____________________________________________________________________________________________
1 A-B LOGIC 1=AND 2=OR 3=NAND
4=NOR 1 4 1 2
2 (AB) - C LOGIC 1=AND 2=OR 1 2 1 2
3 INVERT INPUT A 0=NO 1=YES 0 1 0 2
4 INVERT INPUT B 0=NO 1=YES 0 1 0 2
5 INVERT INPUT C 0=NO 1=YES 0 1 0 2
6 INVERT OUTPUT 0=NO 1=YES 0 1 0 2
F110 [XOR] Exclusive OR Logic
Function
XOR
calculates the "Exclusive OR" logical function for two
discrete Inputs. XOR means If ONLY one Input is True (Exclusively),
Then the Output is True. See Truth Table:
----------------------------------------------------------
-----------------------------------
NAME: XOR SINGLE USE FUNCTION: N OUTPUT TYPE: D
---------------------------------------------------------------------------------------------
Input Type Description Notes
_____________________________________________________________________________________________
1 D A INPUT
2 D B INPUT
Parameter Description Default Max Min Code Notes
_____________________________________________________________________________________________
1 INVERT OUTPUT? 0=NO 1=YES 0 1 0 2
Inputs:
Result:
A
B
XOR
0
0
0
0
1
1
1
0
1
1
1
0
A
B
Output
NOT
P. 6
NOT
P. 5
NOT
P. 4
NOT
P. 3
* AND
OR
NAND
NOR
* AND
OR
C
P. 1
P. 2