Automatic pause when spindle is started

More
10 years 8 months ago #70247 by Rubenv
Thanks Chris

You don't perhaps have a sample. I am still finding my way!

Ruben

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

More
10 years 8 months ago #70253 by Todd Zuercher
The RS485 solution would not use any parallel port io, it would use a serial port connection (ordinary com port or USB port via an rs485 adapter in both cases). Yes you can usually access all of the drives commands, readouts, and settings. But it is not necessarily easy to set up, and can take a fair bit of programming and configuration to accomplish especially if there isn't a driver specifically set up for your VFD.
If all you need is to turn on/off the drive, and wait for it to spin up. it will be far simpler just to use your parallel port io (if you don't have enough pins consider adding a second port with a pci card (you can have up to 3). If you don't want to do that, it might be easier just to insert a G4 P? pause after your spindle start command in your G-code.

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

More
10 years 8 months ago #70284 by Rubenv
Thanks Todd, will add that to a bucket for when I understand much more

Can anyone help me with a sample config for motion.feed-inhibit?

Would much appreciate it!

Ruben

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

More
10 years 8 months ago #70303 by Rubenv
Guys

This is what I have, but i don't get the motion enabled again. it works fine to stop the motion for 5 sec, but it stays that way...

i can't link the pin a second time..

loadrt timedelay count=1
addf timedelay.0 servo-thread
setp timedelay.0.on-delay 5
setp timedelay.0.off-delay 5
net spindle-on <=> motion.feed-inhibit
net spindle-on => timedelay.0.in
net spindle-ready <= timedelay.0.out
net spindle-ready => motion.feed-inhibit ---> here I get the error

please help?

Thanks
Ruben

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

More
10 years 8 months ago - 10 years 8 months ago #70307 by Todd Zuercher
You cant use the same pin twice. Also I think your logic is flawed. You are also going to need an xor2 or something to make it all work.
Something like
Code:
loadrt timedelay count=1 loadrt xor2 count=1 addf timedelay.0 servo-thread addf xor2.0 servo-thread setp timedelay.0.on-delay 5 setp timedelay.0.off-delay 5 net spindle-on => xor2.0.in0 net spindle-on => timedelay.0.in net spindle-timer <= timedelay.0.out net spindle-timer => xor2.0.in1 net spindle-ready <= xor2.0.out => motion.feed-inhibit
I think this is also going to pause the machine when you turn off the spindle. If that is what you want, if not just change the timedelay.0.off-delay to 0.
Last edit: 10 years 8 months ago by Todd Zuercher.
The following user(s) said Thank You: Rubenv

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

More
10 years 8 months ago - 10 years 8 months ago #70331 by cmorley
Last edit: 10 years 8 months ago by cmorley. Reason: logic was flawed :)

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

Time to create page: 0.151 seconds
Powered by Kunena Forum