Hello Guest it is October 04, 2023, 12:46:15 PM

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.

Messages - soruud

Pages: 1 2 3 »
Mach4 General Discussion / Mach4 Spindle lag problems
« on: September 25, 2018, 06:09:36 AM »
Hi. I got a serious problem with my Mach4 Spindle.

Spindle are running, and 1 or more axis are moving But when all axis movement stops my spindle does an short halt. Not long, but I can see it on the spindle and
hear clicking noise from the servo spindle motor. If 2 axis are moving and 1 axis stops it's ok. It happens only when last axis stops. This happens both in manual
and G-code running mode. There is no difference whenether I move axis with external buttons or buttons onscreen.
I tested several orginal WX4 screensets, and are pretty sure this error must be in MAch4 Core or maybe some settings in my SmoothStepper ???

My machine setup are like this:

Mach4 (latest release)
ESS SmoothStepper
Pokeys 57U for external button panel
Spindle 1,8kw AC Servomotor
X and Y 750w AC Servomotor
Z 1,3kw AC Servomotor
A 200w AC Servomotor
PLC for lubrication, tool release and some safety stuff

Any suggestions anyone ? This is kinda gamebreaking.

Mach4 General Discussion / PMC. Need help to toggle an output
« on: September 24, 2018, 04:05:30 PM »
Hi. I need help to make my external panel button toggle an Mach4 output. This is for Airblow. I already used the M07 for Mist.
I would prefer to do this in PMC, but can do it in LUA too. Just need some help to make it work.

My button is at my Pokeys pin 40, and my Mach4  Output is 11.  (For LUA solution my button will be mapped to Mach4 input 40)
In G-code I just use M111 (ON) and M211 (OFF), so I just need to make it work on external button for override.

Can someone please help me type a LUA script or attach an PMC file for me ???

By the way.. Is it possible to make PMC run an M-code? If so please show me how. That would end my problem  :)

I would also like to do my FeedRate Override and Spindle speed +-10% buttons in PMC if possible. Today I am doing this in Pokeys Pedant, and it kinda sux.

Thanx :)

Mach4 General Discussion / Re: Mach4 Coolant Toogle Problems
« on: September 22, 2018, 03:20:21 PM »
Thank you very much. By the way it helped me to invert my contacts in PMC :)

Mach4 General Discussion / Re: Mach4 Coolant Toogle Problems
« on: September 22, 2018, 02:32:12 AM »
Hi. I attached 2 of my attempts in an RAR file. I would very much like to try your PMC files. I guess it will be easy to adjust them for my setup.
Are you using Pokeys for buttons?

Mach4 General Discussion / Mach4 Coolant Toogle Problems
« on: September 21, 2018, 02:53:30 PM »
Hi. I got a big problem when setting up panel button to toggle coolant on/off.
I tried to do it in PMC Ladder, but every time Mach4 starts my water pump starts as well :(
Then I tried to to it in screen load script, and the same thing happen.

This is my script:

[mc.ISIG_INPUT38] = function (state)
if (state == 1) then
     local inst = mc.mcGetInstance();
     local sigh = mc.mcSignalGetHandle(inst, mc.OSIG_COOLANTON);
     local sigState = mc.mcSignalGetState(sigh);
     if (sigState == 0) then
         local OSigCool = mc.mcSignalGetHandle (inst,mc.OSIG_COOLANTON)
         mc.mcCntlSetLastError(inst, "Coolant On")
         local OSigCool = mc.mcSignalGetHandle (inst,mc.OSIG_COOLANTON)
         mc.mcCntlSetLastError(inst, "Coolant Off")

Please help me. What is wrong with my script? And why is my functions in PMC running without me pushing my button?

PoKeys / Re: Spindle VFD feedback
« on: July 07, 2017, 07:27:50 AM »
As far as I know Mach3 dont use the feedback for adjustment of true spindle rpm. This is the main reason why I are going for Servomotor as Spindle. I newer got my VFD to output correct rpm to spindle by far.
You can read out the true Spindle RPM in Mach3, but Mach3 will not adjust it.

Mach4 Toolbox / Re: Axis movment indicator LED
« on: July 02, 2017, 07:55:12 AM »
Hi. Thank you for taking your time. But I just found out I didnt define what Mach version I use :) I use Mach4, so I guess I will need to do it
another way. If I am not wrong your solution  is for Mach3 right? I dont think Mach4 use VB.

SOR. ;)

Mach4 Toolbox / Axis movment indicator LED
« on: June 28, 2017, 03:23:18 PM »
Hi. I would like to make LED's on my panel to light up to indicate movment on each axis. So when my x-axis moves in positive direction I want 1 output to be activated, both if
axis are started by an G-code or by me hitting X+ jog button or using my jog wheel... Same for each axis and direction.
I really tryed to do this, but no luck so far.

Can some one help me with this one ?


Mach4 General Discussion / Re: Mach4 Rotary Feedrate
« on: June 19, 2017, 03:56:02 PM »
What happend if you define it as A-axis? Will that help?

Mach4 General Discussion / Re: Need some minor LUA adjustments...
« on: June 08, 2017, 06:42:40 AM »
Hi Craig. I am back yes :) Weekend was just awesome. I will check out your link. So far many has tryed to fix this, but no fix yet as far as I know.
I think I can live without it if I must, but nice to have if I can.


Pages: 1 2 3 »