------( )--|
Description: When sensor detects object (I0.0 HIGH), internal memory bit M0.0 is set.
Network 2: Timer Delay for Debouncing

| M0.0 TON |
|--| |--------(TON)--|
| T#200ms PT |
Description: Timer TON (Timer On-Delay) runs for 200ms to filter noise or vibration.
Network 3: Actuator Output
| TON.DN Q0.0 |
|--| |------------( )--|
Description: After timer done (TON.DN HIGH), PLC activates output Q0.0 to energize solenoid.
Network 4: Reset Logic
| I0.1 M0.0 |
|--| |---------(R )--|
Description: Manual reset button (I0.1) clears memory bit M0.0.
Key Programming Considerations:
1. Sensor Configuration: Ensure the sensor’s sensing distance, output type (NPN/PNP), and voltage match the PLC specifications. Adjust the sensor’s potentiometer (if available) for sensitivity tuning.
2. Noise Immunity: Use shielded cables and proper grounding to minimize electrical interference. The timer delay in the ladder logic adds software debouncing.
3. Fail-Safe Design: Incorporate fault detection, such as monitoring sensor signal continuity or adding a watchdog timer to alert operators if the sensor fails to trigger within expected intervals.
4. Diagnostics: Program PLC tags to log detection counts or sensor status for maintenance. For instance, create a counter (e.g., C1) incremented by each detection for productivity tracking.
Advanced Integration Example:
For systems requiring multiple sensors, expand the diagram to include parallel rungs in the ladder logic. Suppose a second proximity sensor (I0.2) checks if the sorting bin is full. Add interlock logic:
| I0.0 I0.2 M0.0 |
|--| |----|/|