On/Off MPG movement/bounce

More
09 May 2023 10:04 #271008 by Epicenter02
On/Off MPG movement/bounce was created by Epicenter02
Hello everyone,
I have a 3 axis cnc machine, and Im using a simple pulse generator to jog it around, but Im having an issue.. There is a on and off switch to turn the MPG wheel on and off. MPG has V+ , V- , A , B on it. If i cut V+ linuxcnc registers an impulse. If i turn it back on it also registers an impulse. The selected axis moves a single step in any direction. This can be fatal for the instrument the spindle is carryi​​​​​ng. I have an ilowpass filter set, but it still counts the impulse when turning the MPG wheel on or off. Ive also tried to cut A and B with two separate contacts and leave the MPG on but still does the same?

Please Log in or Create an account to join the conversation.

More
09 May 2023 11:10 #271014 by Aciera
Replied by Aciera on topic On/Off MPG movement/bounce
wouldn't it be possible to use hal pins like' axis.x.jog-enable' to enable/disable the MPG?

Please Log in or Create an account to join the conversation.

More
09 May 2023 11:15 - 09 May 2023 11:16 #271016 by Epicenter02
Replied by Epicenter02 on topic On/Off MPG movement/bounce
Next to the MPG there are also 3 push buttons for positive jogging, negative jogging and rapid jogging with highest speeds that are possible for the machine. They are working separately from the MPG..
Last edit: 09 May 2023 11:16 by Epicenter02.

Please Log in or Create an account to join the conversation.

More
09 May 2023 11:19 #271017 by Aciera
Replied by Aciera on topic On/Off MPG movement/bounce
does the mpg not determine the jogging direction by whether you turn it CW or CCW?

Please Log in or Create an account to join the conversation.

More
09 May 2023 11:31 #271019 by Epicenter02
Replied by Epicenter02 on topic On/Off MPG movement/bounce
MPG is runnung fine, its a 100 section/position working from 5v to 12v. Its mainly used as a remote and for precise movement. It does change direction whenurned CW or CCW. The issue comes when i switch it off and cut the power supply. It does 1 single step in a random direction on the selected axis. Does the same when supplied with power...

Please Log in or Create an account to join the conversation.

More
09 May 2023 12:48 #271024 by Aciera
Replied by Aciera on topic On/Off MPG movement/bounce
Just cutting power or the pulse lines is likely to cause the signal on the relevant inputs into linuxcnc to change, so that is not really the way to disable an input device like that. Hence my suggestion to deactivate the mpg in linuxcnc hal. Since you don't seem to have any need for the jog direction buttons you could maybe use those two inputs to activate/deactivate the jogging using the suggested hal pins.

Please Log in or Create an account to join the conversation.

Time to create page: 0.085 seconds
Powered by Kunena Forum