Physical System
▲
▼
MOTOR UNIT
Safety Sensor Beam
Input Controls
UP Button (U)
DOWN Button (D)
Safety Switch (S)
S=0
S=1
✓
PATH CLEAR
Boolean Functions
Motor UP Output
Mup = U
Mup = 0
Mup = 0
Motor moves UP when the UP button is pressed. No safety check needed for upward motion.
Motor DOWN Output
Mdown = D · S
Mdown = 0 · 1
Mdown = 0
Motor moves DOWN only when DOWN button is pressed AND safety sensor detects clear path (S=1).
Click the UP/DOWN buttons to toggle • Click the safety switch to toggle obstruction
Truth Table
U
D
S
Mup
Mdown
Variable Key
U
UP button (1 = pressed)
D
DOWN button (1 = pressed)
S
Safety (1 = clear, 0 = blocked)
Mup
Motor UP output
Mdown
Motor DOWN output