lathe spindle question

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

midy
Posts: 293
Joined: Wed Oct 11, 2017 12:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

lathe spindle question

Post by midy »

When switching from auto spindle control to manual, the software sets spindle speed to zero (or very low) Is there a parameter to make it stay at 100% ? Small problem I know but would save pressing the button every time I switch.
cheers


cncsnw
Community Expert
Posts: 4503
Joined: Wed Mar 24, 2010 5:48 pm

Re: lathe spindle question

Post by cncsnw »

That is a function of the PLC program.

Typical PLC logic is like this:

Code: Select all

;--Adjust spindle override when entering manual or auto spin mode
;Set the override value to 100% when spin auto mode is first selected
IF SpinAutoManPD && !SpinAutoModeLED
  THEN SV_PLC_SPINDLE_KNOB = 100,
       SET SpinAutoModeLED

;Set the override value to 10% whenever manual mode is entered
IF SpinAutoManPD && SpinAutoModeLED
  THEN SV_PLC_SPINDLE_KNOB = 10, RST SpinAutoModeLED
As you can see, it sets the spindle override percentage to 10% on an auto-to-manual mode switch. This results in a speed that is 5% of the maximum RPM for the current spindle range (10% of half speed).

You can change that behavior to whatever you want, by changing the second SV_PLC_SPINDLE_KNOB assignment, saving your changes, and recompiling the PLC program.


midy
Posts: 293
Joined: Wed Oct 11, 2017 12:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: lathe spindle question

Post by midy »

Ok, I think I get what to do but not sure where to find this piece of code to change it?


cnckeith
Site Admin
Posts: 8853
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: lathe spindle question

Post by cnckeith »

default is 50% of max RPM. this is a safety feature so spindle doesn't go to max rpm when you switch to manual.

what is your max rpm set to for this machine? post a fresh report.zip so we can see how you have things setup.
Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html


midy
Posts: 293
Joined: Wed Oct 11, 2017 12:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: lathe spindle question

Post by midy »

When switching from auto spindle control to manual, the software sets spindle speed to zero (or very low) Is there a parameter to make it stay at 100% ? Small problem I know but would save pressing the button every time I switch.
cheers
I never did get this sorted

;--Adjust spindle override when entering manual or auto spin mode
;Set the override value to 100% when spin auto mode is first selected
IF SpinAutoManPD && !SpinAutoModeLED
THEN SV_PLC_SPINDLE_KNOB = 100,
SET SpinAutoModeLED

;Set the override value to 10% whenever manual mode is entered
IF SpinAutoManPD && SpinAutoModeLED
THEN SV_PLC_SPINDLE_KNOB = 10, RST SpinAutoModeLED

Can somebody tell me what/how and where to do with this code please to get my solutuion?


suntravel
Community Expert
Posts: 3457
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: lathe spindle question

Post by suntravel »

You have to learn to work with the PLC, edit and compile....

Easy to implement the code from Marc if your NP++ is set up as recommended

Uwe


midy
Posts: 293
Joined: Wed Oct 11, 2017 12:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: lathe spindle question

Post by midy »

I guess it would help if I knew what the PLC is? Or how to find it?


suntravel
Community Expert
Posts: 3457
Joined: Thu Sep 23, 2021 3:49 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 6433DB0446C1-08115074
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Germany

Re: lathe spindle question

Post by suntravel »

Related reading:

https://www.centroidcnc.com/centroid_di ... manual.pdf

The file to edit is acorn_lathe_plc.src in the cnct folder

Uwe


midy
Posts: 293
Joined: Wed Oct 11, 2017 12:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: lathe spindle question

Post by midy »

Thanks, thats what i was after


midy
Posts: 293
Joined: Wed Oct 11, 2017 12:20 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: lathe spindle question

Post by midy »

Oh, I'm not sure if re-compiling is above my pay grade. I've managed to make the change in the code though but not sure about compiling...hmm


Post Reply