Hi,
I am a newcomer to the world of CNC, and I am just starting to play around with Mach3 (3.043.066). I have started to look at probing, and after a couple of "interesting" results I would like to try and run in some form of simulated mode, without hardware connected.
I was thinking that using Config / Ports & Pins /Input Signals and then emulating the Probe Input with a Hotkey may work. I have set it up as follows:
Probe Enabled, Port #1, Pin #13, Active Low, Emulated, HotKey 65.
Initial results looked promising, as I had a led (OEMLED(825)) on the screen that would turn green when I pressed the hotkey. I could also test the state of this LED in code and output a message showing the correct state. So far, so good.
Next part of the code uses G31 to move the probe and the IsMoving() function to determine when the probe movement has stopped. This code works ok in the "real world", but in simulation the LED goes on with the hotkey but and the probe keeps moving. I guess that some other means signals G31 that the probe has stopped moving; it does not rely directly on the state of the Probe Input pin.
Is there a way to simulate the probe making contact with the work piece that G31 will respond to.
I realise there are a number of probing routines out there, sometimes I just feel like re-inventing the wheel to keep the grey matter from stagnating too much!