Is there a way, a configuration, or a Grbl setting that would invert how the Door Sensor works? I have an IR emitter that my X32 detects as 'closed' when the IR is blocked and as 'open' when the IR. I need the functionality to be reversed; when the IR is not blocked I want the Door Sensor to think the door is closed and therefore operational. When the IR is blocked I need the machine to pause. If the Door Sensor is not the way to accomplish this, what may be some alternatives?
Thank you for the response. What value should I enter in the Grbl Settings $14 (Limit Pins invert, mask) to invert only the Door Sensor? I've tried setting the value to '3' for the 'safety door' as well as other decimal and binary options all of which have had no affect; the Door Sensor is not getting reversed when restarting. I am using the most recent Blackbox X32 and have flashed with the Door option.
Enter $$=14 into the Serial Console to access grblHAL's "help" for that command [18:54:55] [ $$=14 ] $14: Invert control pins as bitfield: ;unknown [18:54:55] [ $$=14 ] 1 - Feed hold (2) [18:54:55] [ $$=14 ] 2 - Cycle start (4) [18:54:55] [ $$=14 ] 3 - Safety door (8) [18:54:55] [ $$=14 ] 6 - EStop (64) [18:54:55] [ $$=14 ] Inverts the control signals (active low). [18:54:55] [ $$=14 ] NOTE: Block delete, Optional stop, EStop and Probe connected are optional signals, availability is driver dependent. Door's value to enter is [8]
the doc says <control mask> = bitmask where bit 0 = reset, 1 = feed hold, 2 = cycle start, 3 = safety door, 4 = block delete, 5 = stop disable, 6 = e-stop, 7 = probe connected those are bit positions, not values. bit 3 has a decimal value of 8 in the binary system so $14=8 should invert the door