Not really. The problem is that you can invert the connector (by putting in a plug that doesn't have the locking/indexing part back-to-front), and you connect VCC to the signal pin (aka the switch).
At this point, when you press the switch together, you short VCC (which is on the Signal) to Ground.
There is no simple answer at this point. I convinced (and helped) bobc to change the layout on RAMPS-FD to mitigate this as much as possible for directly wiring up switches without PCB's on them (direct sire to the switches. Even then, with a switch on a PCB, if you make up a bad cable you're still going to short VCC to Gnd.
Probably the only way to avoid problems is to put a very small fuse (eg: 50-100mA) on either the endstop board, or on the electronics. You could put a small resistor in-line with the VCC (on the electronics) for switch endstops, but then you won't get full voltage to run an opto (not usually a problem) or a Hall-O (definitely a problem). You could put one in-line with the signal, but not sure how well that would work for normal conditions.
Re: Opto's/Hall-O's.
Correct. You will just most likely kill the Opto component/Hall effect chip if you get the wiring wrong. Specifically for that case, you need to get VCC and GND back to front, rather than VCC and Signal.
At this point, when you press the switch together, you short VCC (which is on the Signal) to Ground.
There is no simple answer at this point. I convinced (and helped) bobc to change the layout on RAMPS-FD to mitigate this as much as possible for directly wiring up switches without PCB's on them (direct sire to the switches. Even then, with a switch on a PCB, if you make up a bad cable you're still going to short VCC to Gnd.
Probably the only way to avoid problems is to put a very small fuse (eg: 50-100mA) on either the endstop board, or on the electronics. You could put a small resistor in-line with the VCC (on the electronics) for switch endstops, but then you won't get full voltage to run an opto (not usually a problem) or a Hall-O (definitely a problem). You could put one in-line with the signal, but not sure how well that would work for normal conditions.
Re: Opto's/Hall-O's.
Correct. You will just most likely kill the Opto component/Hall effect chip if you get the wiring wrong. Specifically for that case, you need to get VCC and GND back to front, rather than VCC and Signal.