Treb63 wrote:Hi,
Many thanks for this professional piece of programming it has brought Mach back to my area of expertise (32 years cnc service engineer) and away from the usual Router style of machine interface.
I'm happy to hear that you like it!
Treb63 wrote:
My question is I am experiencing a strange situation which could be a Mach issue and not a MSM issue...
OK, I'm thinking this is not a MSM issue. Here's the logic: the only entity that is handling key strokes
is Mach itself. In fact, there is no mach interface to let a script intercept keystrokes and try to handle them. This is why there are keys that I can't "fix" in MSM to act as key in windows should (example: the tab key should shift between DROs, but mach has it permanently assigned to open the fly out tab).
Treb63 wrote:
... that being, I have a x/y arcade style joystick set to jog the x and y axis via the oem codes and an input via my BOB,
So there is just one input pin being used by the jostick? That seems odd to me as it would mean that the
the joystick is either on or off. If that is so, how does the joy stick tell mach what axis and which direction to jog?
Treb63 wrote:when I jog at say 15% everything is fine when I select 100% via the 'shift' key
plus the joystick input it speeds up the axis movement as it should which is great
OK, That's the same action Mach does for arrow key jogging.
Treb63 wrote:however if I select step mode
The action of step mode is further dependent on the MPG mode that is set.
If you are in "S" (single step) in the MSM jog panel, you should get one step - period - no matter how many input events there are (this is commonly how a MPG does single step per pmg click). In "M" mode (multi-step) you should get 1 step for every input event.
AS far as I know, these modes were created for MPG control. Perhaps you don't have an MPG defined in ports & pins (as you have a joy stick) - in that case all kinds of odd stuff could be happening as you would be sending MPG commands without an MPG - that's the type of thing that I think mach should fault on, but it often try's to do the proverbial 'right thing" - but goes wonky instead.
Treb63 wrote:and say 0.1mm increment all works well until I select the shift key then the direction input (to speed up the step move) if I let go of the shift key before the step input the axis keeps moving in that direction without stopping in rapid requiring a very rapid e stop and potentially a lot of damage.
[/quote]
so to see if I understand this:
1) shift key down
2) direction key down
3) direction key up
4) shift key up
works OK?
but
1) shift key down
2) direction key down
3) shift key up
4) direction key up
sounds like this causes the "Direction key up" event to not be seen in mach - and that would cause mach to act as if a jog key is permanently held down. Not a good situation.
This sound at first pass like a mach bug to me. But I'm not 100% sure I hace the details correct yet.
What has be uncertain is the action of the joystick and how it's telling mach what axis to jog.
If this is via the Mach OEM code for jog axis, then I have no idea how or even if mach is supposed to be handling the interaction between a shift key and an OEM jog command.
Treb63 wrote:
I suspect this may be at fault with mach itself or the U300 board which up till now has performed faultlessly but thought I would just check here to see if anyone else has found the same effect?
regards
Rob
Sine the motion boards do not handle keystroke input to mach, I'd guess mach over the U300.
However, if this is a Chinese "U300", well I've had real bad luck with a lot of the chinese boards - they tend to weird stuff and I've thrown more than one in the scrap heap.
I'm curious, are you running MSM pro and have you done any probing operations?
I know many of the cheap Chinese motion boards fail to execute probe commands correctly. So if yours is working I'd like to know that.
Dave