Remap M5
19 Aug 2015 16:29 #61541
by REEEN
Hello, I'm trying to remap the spindle m5 command.
My spindle amp is a bit dumb, if I run the M5 command the spindle-enable command goes false and so normal spindles should stop with a ramp.
But this one doesnt it takes very long for the spindle to stop.
So I tried a remap command that does the following
The spindle first gets a command for 1 rev /min and then the M103 is set, this code simply waits for a spindle is stopped input and then M5 is asserted.
The problem is that if I set the ini line linke this:
REMAP =M5 modalgroup=7 ngc=m5
It won't work when I run M5
but if :
REMAP =M401 modalgroup=7 ngc=m5
If I run M401 now it works perfectly.
I think linuxcnc does not use my remapped command....
Any Ideas ?
Greets REEEN
My spindle amp is a bit dumb, if I run the M5 command the spindle-enable command goes false and so normal spindles should stop with a ramp.
But this one doesnt it takes very long for the spindle to stop.
So I tried a remap command that does the following
o<m5> sub
S1 (zuerst Spindel Drehzahl auf 1 setzen zum bremsen)
M103 (warten bis Spindel Stillsteht)
M5
o<m5> endsub
M2
The spindle first gets a command for 1 rev /min and then the M103 is set, this code simply waits for a spindle is stopped input and then M5 is asserted.
The problem is that if I set the ini line linke this:
REMAP =M5 modalgroup=7 ngc=m5
It won't work when I run M5
but if :
REMAP =M401 modalgroup=7 ngc=m5
If I run M401 now it works perfectly.
I think linuxcnc does not use my remapped command....
Any Ideas ?
Greets REEEN
Please Log in or Create an account to join the conversation.
19 Aug 2015 16:56 #61542
by ArcEye
Hi
Why do you think you can remap M5?
As far as i can see you can't.
www.linuxcnc.org/docs/html/remap/structu...r_by_remapping_codes
regards
Why do you think you can remap M5?
As far as i can see you can't.
14.1. Existing codes which can be remapped
The current set of existing codes open to redefinition is:
Tx (Prepare)
M6 (Change tool)
M61 (Set tool number)
M0 (pause a running program temporarily)
M1 (pause a running program temporarily if the optional stop switch is on)
M60 (exchange pallet shuttles and then pause a running program temporarily)
S (set spindle speed)
F (set feed)
www.linuxcnc.org/docs/html/remap/structu...r_by_remapping_codes
regards
Please Log in or Create an account to join the conversation.
20 Aug 2015 18:04 #61578
by andypugh
I think that might be better anyway.
www.linuxcnc.org/docs/html/man/man9/timedelay.9.html
Just keep the spindle enabled for a second after speed command goes to zero
I will do it with some hal then.
I think that might be better anyway.
www.linuxcnc.org/docs/html/man/man9/timedelay.9.html
Just keep the spindle enabled for a second after speed command goes to zero
Please Log in or Create an account to join the conversation.
Time to create page: 0.069 seconds