When you are building or upgrading a machine, every control and safety decision comes back to one question: what job is this part actually doing? In the sensors encoders machine safety space, two very different components often sit in the same parts drawer: a low-cost rotary encoder for operator input and a dedicated safety interlock switch for guarding automated equipment. This head-to-head compares the EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft at $2.50 with the Keyence GS-M51P Safety Interlock Switch Non-Contact Safety Sensor at $100.00, so you can match the right part to your application.
Quick Verdict
If you need a hand-operated dial with an integrated push button for panel control, the EC11 is the obvious choice. If you need a non-contact switch that monitors a machine guard door and sends a digital safety signal, the Keyence GS-M51P belongs in the safety circuit. They are not interchangeable replacements; they solve different stages of the same machine.
Comparison at a Glance
| Product | Listed Price | Price Bar | What It Does |
|---|---|---|---|
| EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft | USD 2.50 | Rotary encoder with push-to-actuate switch for panel input | |
| Keyence GS-M51P Safety Interlock Switch Non-Contact Safety Sensor | USD 100.00 | Non-contact interlock switch with digital DC output for guard monitoring |
Where Each Product Wins
- EC11 rotary encoder: Wins on manual control and price. It is a new, through-hole PCB component that supplies both rotation and a push switch in one part.
- Keyence GS-M51P: Wins on industrial safety monitoring. It is a non-contact interlock switch with digital output and DC operation, made for machine doors and guards.
Product Notes
EC11 360 Degree Rotary Encoder PCB Mount Push Switch D Shaft

The EC11 is a through-hole rotary encoder with a D-shaped shaft and an integrated push-to-actuate switch. It gives you 20 pulses per revolution, so controller firmware can track direction and rotation for volume, menu, position, or tuning adjustments. The 15 mm shaft length gives you room for a knob, and the 7-pin PCB mount keeps wiring straightforward. At a listed price of $2.50, this new component is a low-cost way to add physical control to a hobby project, test bench, or small panel. The limitation is duty: its switch contacts are rated at 5 volts at 10 mA, so it is intended for signal-level inputs, not power switching. It also does not have the machine-safety features of an interlock switch. For manual operator input, this is a practical fit; for guard-door monitoring, keep looking.
Keyence GS-M51P Safety Interlock Switch Non-Contact Safety Sensor

The Keyence GS-M51P is a non-contact safety interlock switch built for industrial machine guarding and safety monitoring. It runs on DC and provides a digital output, so it can feed a signal into safety circuits, robotics, packaging equipment, CNC machines, and other automated systems. This particular unit is in used condition, having been professionally removed from a working industrial automation system. Its listed $100.00 price is far above the EC11, but it is solving a different problem: helping monitor doors and guards rather than reading operator dial movements. The limitation is that it is not a general-purpose encoder or push button. If you are building a machine with a guard door that needs to signal a safety controller, this is the type of component that fits. For front-panel control, it is not the right tool.
Final Choice by Use Case
- For a user-facing control dial: Choose the EC11 360 Degree Rotary Encoder. You get rotation plus a push switch on a through-hole PCB-mounted part.
- For a machine safety guard circuit: Choose the Keyence GS-M51P. It provides non-contact interlock monitoring with a digital DC output for industrial automation.