Gentlemen - I think we're getting closer - but as always - the devil is in the detail. Can I push a little deeper.
When probing, the Mach3 parallel port driver issues a step pulse, then immediately checks the PROBE input to see if it's gone active. If so, then it knows the probe is complete.
Well not quite complete - we're not done yet. What then "goes on" between the PP and "Mach3"? i.e. the probe trips. Then...? (see the next bit for what I'm getting at)
With the SS, Mach3 tells the SS to probe. The SS issues the step pulses, and tests the PROBE input. When the PROBE input goes active, the SS stops stepping
Well not quite - it DECELERATES to a stop. How does it (the SS) know how to do a deceleration curve?
and sends the position back to Mach3.
Ah - one of my earlier questions - How?
Cheers - and let's keep it cool guys - I'm grateful for ALL your input.
Ian
The SS *knows* what the accleration and velocity settings are for all axes. So, when it needs to do an acceleration, or deceleration, it knows how to do it. Mach3, through the SS plug-in, does not tell the SS "issue a step pulse on this axis", it tells it "move this axis to this position", and the SS hardware handles all the details of the move. And the step pulses, including accleration and deceleration ramps, are generated entirely by hardware. The firmware on the SS simply programs the hardware so it knows what to do. Once motion starts, the hardware is doing everything autonamously.
Communications between Mach3 and the SS is by messages, not parallel port pin signals. Each message consists of a sequence of bytes, some short, some long, using a protocol defined specifically for SS. Those messages tell the SS to do things like "jog this axis at this speed", "move this axis to this position", "set this output to this state", "read this input", "home this axis", etc. Of course, the actual communications is far more complex than that, but that is the general idea. Messages are flowing pretty much continuously, with the PC telling the SS what to do, and the SS returning status to Mach3, so it knows what it needs to know about what is going on. But, with the SS, the PC is doing FAR less work than it does using the PP, because all the "heavy lifting" is done by the SS itself. The PC is left to run the UI, and do the trajectory planning, but no longer needs to concern itself with the details of the trajectory execution.
Regards,
Ray L.