On 09/17/2013 09:40 PM, andy pugh wrote:
> On 17 September 2013 19:48, Thomas Kaiser <c...@kaiser-linux.li> wrote:
>
>> I have to implement spindle speed control and tool changer for a lathe.
>> I will do this in classic ladder. Should I put everything in one program
>> or should I split it in two independent classic ladder instances, e.g.
>> spindle.clp and toolchanger.clp.
>
> I don't think that spindle speed control is complicated enough to
> require a ladder.
> It basically comes down to linking motion.spindle-speed-out to a
> pwmgen or DAC, optionally via a PID component if closed-loop control
> is needed.

It is an old Schaublin lathe. No pwmgen, DAC or PID!

It has a 3 phase motor which can be run in low or high speed and change 
direction. A "variator" which can adjust speed in a defined range and a 
gear for low or high speed. It is not very complicated, but I think no 
HAL component exists for this setup. Does one exist ?

I have to turn on the spindle an adjust the "variator motor" to the 
right speed. And so on with the low/high speed of the motor and the gear 
for low/high speed.

For me, classic ladder is the way to go.

Thomas




------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. 
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to