Professional Documents
Culture Documents
A B = A + B
A + B = A B
Algorithm rules:
1. Split sequence into groups
2. The groups are to be executed one by one, where each time only
a single group is active.
3. Within the group, a cylinder may have a + command (A+) or "-"
command (A-), but not both.
4. Each group requires a unique memory element (Flip-Flop), so
saving money requires minimal number of groups. In other words,
groups must be as large as possible, as long as they con't conflict
with previous rule
Starting condition is and AND operation for all CR's, except for CR1 and
CR2.
Control valves with return springs: if any cylinder is kept in the same
position for several groups, add it to the group. However, if the last
group contain only returning commands, it could be eliminated. In such
a case, don't forget to AND its termination state with START and change
unset cond. for the last group.
On-Delay timers: add branch for actuating a timer. If grouped in the
end, add it to set condition of next CR. If grouped in the beginning, add
it to actuation condition of process.
0+ A= A
A 1 = A
A + AB = A
A + A' B = A + B
A A = A
( A + B )( A + C ) = A + BC
A A = 0
.
1+ A =1
AND
AB + A ' B + BC = AB + A ' C
A B
OR
A+ B
A
0
0
1
1
NOT
A
0
1
A B
A
0
0
1
1
B
0
1
0
1
F
1
1
1
0
A+ B
A
0
0
1
1
B
0
1
0
1
F
1
0
0
0
XOR
A B
A
0
0
1
1
B
0
1
0
1
F
0
1
1
0
XNOR
A B
A B
A
0
0
1
1
B
0
1
0
1
F
1
0
0
1
A+ A= A
A + A =1
A B + A C = A (B + C )
Karnaugh map
A maximal cell is a cell that could not be increased.
Essential cell: by the task, the option than is not covered by other
options
Cells Select Recommendation
1. Identify and mark all basic squares that are contained in a single max
cell
2. Mark those maximal cells in the map.
3. If exist the appropriate max cells will be considered as ESSENTIAL.
4. Select all the appropriate cells as ESSENTIAL (if exist).
5. Check if there exist more function 1s that were not covered by
ESSENTIAL cells.
6. If exist select minimal cells group that completes the function (with
minimum literals)
Note : In some cases there exist several minimal solution, with same
number of literals
7. Write the function in a format of sum of products
Examples for PLC:
LOAD x3
AND cr1
OR cr2
AND NOT cr3
OUT cr8
AND x5
OUT y12
LOAD cr8
AND x4
OUT y13
LOAD cr3
AND x6
OR y4
STORE NOT x3
OR x5
AND store
LOAD x1
STORE x2
TMR1
200
------OUT cr1
Industrial
Automation 035008
:
:
A
B
F
0
0
0
0
1
0
1
0
0
1
1
1
NAND
NOR
B
0
1
0
1
F
0
1
1
1
F
1
0
System Analysis:
Target- eliminate unused states, transitions and modify rows merging
Method:
- parse existing merged table into primitive form
- draw primitive flow diagram
- modify rows merging
- check if all states are reachable, if not- eliminate unused states
and its transitions
- draw merge diagram and select best merge
Double cycle cylinder:
Multiple group valves replacement
Simplifications: