comanding axis movement from within a component

More
9 years 8 months ago #88758 by JR1050
I am working on a piece of equipment similar to a chain type tool changer, instead of swapping tools in a spindle, it swaps small pallets to a tombstone in a VMC. The idea is to use the plc side of lcnc, implementing a component actuated by a simple m code. Present plan is to use a RPI3 and a 7i90 to control it
Most of the logic is pretty straight forward, chain indexs to an empty spot , a pushing mechanism pushes the pallet on the tombstone, which is then locked in place, pusher goes home, cycle starts again.
This is where the bug in the ointment shows up, customer insists on using a stepper motor, belt driven linear actuator. Can I command this stepper from within a component?
I would imagine there is a way to control steppers(or servos for that matter) that could be used for things like advancing toolchangers with out actually assigning them an axis.
Any suggestions?

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

More
9 years 8 months ago #88762 by Todd Zuercher
A step generator (software or hardware stepgen) does not need to be assigned to a joint or axis. It can just be sent position or velocity command. This should work fine I think if it is just commanded to move until some input(s) goes true or false (say from a proximity switch).

Are you planning to control the whole machine with the RPI3 or just the pallet changer? If the machine is running on Linuxcnc from another PC, there would be no reason to add the RPI3.
The following user(s) said Thank You: JR1050

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

More
9 years 8 months ago #88767 by JR1050
Thank you for the prompt answer. Are there any examples of something like this available?

The machine will be controlled by its control, fanuc, Mazak ect. Ill end up writing a macro that will direct an m code(in the machine control, not lcnc) to actuate a relay, which in turn will send a signal to the RPI to start the indexing . The program in the lcnc will be an mcode that calls a component, although, i may just be able to actuate the pallet changer with out any cnc (on the pi side) g or m codes at all. Its kinda similar to a toolchanger i did a few years ago, except the toolchanger was all hydraulic.
It was proposed to control the pallet changer from the machine, i saw it as an expensive proposition and the idea of programming it ladder---ugh, plus no gui. Im making progress with the RPI3 and ive kept a log of what it takes to do the image, patch the kernel and load machinekit. As soon as i successfully get the spi working, I was thinking about proposing a Wiki page .

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

More
9 years 8 months ago #88771 by Todd Zuercher
In that case an off the shelf PLC is probably a better choice.

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

More
9 years 8 months ago #88773 by JR1050
a standard plc was also discussed, it seemed a stripped down lcnc installation would be a bit more flexible, it seems to offer more programming options, build your own gui and numerous hardware options, less expensive,plus im famliar with it. Thanks for your help .

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

More
9 years 8 months ago #88810 by andypugh
Maybe even just an Arduino responding to commands on a serial line.
I am pretty sure that there are step-generator libraries for the Arduino.

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

Time to create page: 0.182 seconds
Powered by Kunena Forum