=====Connecting Limit Switches===== The completed YAML example will be placed in the Documentation section. ---- ==== Option A: Standard Limit Switch ====

Connecting a Standard Limit Switch

It can be connected to a regular switch or button. Such accessories have no polarity distinction and only possess on/off functionality. They can be connected to normally closed or normally open circuits.

🔌Wiring:

⚙️Configuration:

⚠️GPIO Special Notes:

===Example diagram=== {{:pibot_cnc_laser_series:v496_pro:connect_limit_switches:normall.png?nolink&1000|}} If you want to use GPIO.26 as a general-purpose input, you need to select the corresponding function on the GPIO.26 function switch. For details, please refer to the relevant pinout and jumpers config section. ===Example Yaml code=== motor0: limit_neg_pin: gpio.39:low control: safety_door_pin: NO_PIN reset_pin: gpio.39:low probe: pin: gpio.2:pu:low toolsetter_pin: NO_PIN check_mode_start: true hard_stop: false ---- ====Option B: 5V Limit Switch====

5V Powered Switch Configuration

A 5V powered switch offers higher precision than a standard switch. Please follow these connection and configuration steps carefully.

🔌Wiring Instructions:

⚙️YAML Configuration:

⚠️Important Notes:

===Example diagram=== {{:pibot_cnc_laser_series:v496_pro:connect_limit_switches:screenshot_-_2025-11-23t003603.243.png?nolink&1000|}} ===Example Yaml code=== motor0: limit_neg_pin: gpio.39 limit_pos_pin: gpio.36:low ---- ====Option C: 12-24V Limit Switch====

High-Voltage Industrial Switch Configuration (6V-24V)

Switches powered by Vmot-main voltage (6V to 24V) offer higher precision than 5V switches. These are commonly used in industrial applications and are available in PNP or NPN types. Their functionality is similar to NO (Normally Open) or NC (Normally Closed) configurations, providing open/closed output states.

🔌Wiring Instructions:

⚙️YAML Configuration:

⚠️Important Notes:

===Example diagram=== please connect a resistor of 2.2kΩ or higher in series with the signal terminal when using a 24V supply. {{:pibot_cnc_laser_series:v496_pro:connect_limit_switches:screenshot_-_2025-11-23t021944.902.png?nolink&1200|}} Please refer to the technical manual provided by the specific product for wiring. Sometimes they refer to VCC as V+ and GND as V-. ===Example Yaml code=== motor0: limit_neg_pin: gpio.39 limit_pos_pin: gpio.36:low ---- ==== Option D: Regarding Mixed Use ====

Switch Compatibility Guide

Understanding Mixed Usage Requirements

✓ Compatible Configuration

Standard switches can be safely used in combination with both 5V and Vmot-main switches.

Reason: Not voltage-dependent

✗ Incompatible Combination

5V and Vmot-main switches cannot be used together in the same system.

Reason: Different voltage requirements (5V vs 6V-24V)

Key Technical Points:

----