How to stop spindle 3 mm before end of the line ?

More
18 Sep 2014 14:19 #51303 by Nick
What does this line do?
M68 E0 Q323.36218

and here
M64 P0
M68 E0 Q323.36218
G4 P0.1
M65 P0

you turn on the spindle, wait 0.1sec and turn it off?

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

More
18 Sep 2014 17:42 - 18 Sep 2014 17:53 #51304 by Woj123
M68 E0 Q323.36218 - that line do nothing

Pump starts after M65 P0 ( but only when starts move ) , so if we do G04 P0.5 after M65 P0 pump will wait 0.5s ( the pump starts with the movement)

what I need is:
1.pump starts ( no move )
2. G04 P0.5 ( wait a bit)
3 move ( drawing a line)

thanks for help
Last edit: 18 Sep 2014 17:53 by Woj123.

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

More
18 Sep 2014 22:53 #51309 by BigJohnT
Just move a tiny amount to start the pump like 0.000001.

JT

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

More
19 Sep 2014 16:07 #51334 by Nick
That looks very strange!

Immediate digital out should turn on immediate not only when the movement starts...

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

More
19 Sep 2014 16:43 #51337 by Woj123
Nick,
Can you check my "hal" files - mayby there is something wrong
Attachments:

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

More
19 Sep 2014 17:40 #51339 by Nick
I think the problem is somewhere here:
net len => sum2.0.in0
net max <= sum2.0.out
net max => wcomp.0.max

because when we reset integ, it will be = 0 and it can be not inside wcomp's window.
You can try to define wcomp's min to some value...

change this
net min => wcomp.0.min
net min => sum2.0.in1
setp sum2.0.gain1 -1
to
setp wcomp.0.min -1
setp sum2.0.in1 -1

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

More
26 Sep 2014 17:51 #51591 by Woj123
Nick,
today I have checked all one more time agine ( with very slow speed)

I set min to 3 mm

After
G01 Z1.500000 F100.0(Penetrate)
I put for instance:
M64 P0
M68 E0 Q323.36218
G4 P2
M65 P0

so maschine is going to Z1.5mm , than waiting 2 seconds than starts moving ,THAN AFTER 3 MM PUMP IS TURNNIG ON than 3 mm before end of the line is turnning off.

Is there any way to turn pump on when maschine goes to Z1.5 mm?

Thanks for help

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

More
01 Oct 2014 18:43 #51708 by Nick
Have you tried what I've posted just before?

just try to replace
net min => wcomp.0.min
to
setp wcomp.0.min 0
The following user(s) said Thank You: Woj123

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

More
01 Oct 2014 18:49 #51709 by Woj123
As you told me I did :
setp wcomp.0.min -1

but there was some "debug" problem

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

More
01 Oct 2014 19:10 #51711 by Nick
what problem exactly?
post the whole error (inside tag code )
The following user(s) said Thank You: Woj123

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

Time to create page: 0.167 seconds
Powered by Kunena Forum