Saturday, October 11, 2014

PLC logic operations


The following are some simple logic operations for PLC programming. X: Input, M: Output. Simulations are conducted on Fatek PLC simulator.

If X0=1 and X1=1 then M0=1

Table of probabilities:


X0
X1
M0
0
0
0
1
0
0
0
1
0
1
1
1








If only X0=1 and X1=0 then M1=1

Table of probabilities:

X0
X1
M1
0
0
0
1
0
1
0
1
0
1
1
0












If X0=1 or X1=1 then M3=1

Table of probabilities:

X0
X1
M3
0
0
0
1
0
1
0
1
1
1
1
1






 If  one only of contacts X0 or X1 equals 0 then M5=1

Table of probabilities:

X0
X1
M5
0
0
1
1
0
1
0
1
1
1
1
0