Hello Guest it is April 19, 2024, 04:39:41 AM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - gesamtplan

Pages: 1
1
Hello,

maybe someone can help me. I have build a lathe with a servodrive on my spindle. it works very good and the setup with smoothstepper and the spindle as motor 5 works very good controlled via step/dir Signals and the encoder in loopback from the servo controller. It is very good described on the warp9 page.

But how do I setup this configuration with the spindle as c-axis. Tried to setup the spindle as c-Axis with my configured motor. But I can not choose such a configuration in smoothstepper. When a want to start with M4 nothing happens.

Does anyone know how such a setup works and who mach4 is doing this? Dont really undestand the logic behind the system in that case. I am a little confused...

2
Mach4 General Discussion / Lua Scripting with CycleStop()
« on: December 27, 2020, 03:54:20 PM »
Hello together,

I am a fresh forum user. So apologies if I do something wrong here.

I have a problem using my CNC Lathe. I installed an ServoDrive for the spindle. It all works good, but when I use the "Stop" Button on the Lathe Screen the Spindel goes instantly to zero and starts again to go ramped to zero.

I took a look in the ScreenScript and found the CycleStop() function

function CycleStop()
    mc.mcCntlCycleStop(inst);
    mc.mcSpindleSetDirection(inst, 0);
    mc.mcCntlSetLastError(inst, "Cycle Stopped");
end

the mc.mcCntlCycleStop(inst) makes the "0" command. When the function is not called the spindle goes normally to "0" in a ramp as it does when I push the M4 and M3 Buttons on the screen.
Is it possible to access the function mcCNTLCycleStop(inst) in any way to take a look what there is programmed?

Regards,
Rainer

Pages: 1