Page 1 of 2

Tail stock in and out

Posted: Wed Dec 13, 2023 10:15 pm
by Clausing2020
I know I have seen some things about this. My tailstock goes in and out with two separate coils. How do I change the macro to fire different outputs. I have it set up to go out with output 42 and back in on output 39.

Thanks John

Re: Tail stock in and out

Posted: Wed Dec 13, 2023 11:35 pm
by cnckeith
post a fresh report.zip and your macro

Re: Tail stock in and out

Posted: Thu Dec 14, 2023 1:59 pm
by Clausing2020
Ok these are what I am reading are for the tail stock in out mfunc 32 and 33

Re: Tail stock in and out

Posted: Thu Dec 14, 2023 2:49 pm
by cncsnw
It is the PLC program that needs to change, not the macros.

The most minimal change would be to define OUT39 as "TailStockOutOut", then set that output opposite the state of the existing "TailstockInOut". Something like this:

Code: Select all

;==============================================================================
                                TailStockStage
;==============================================================================
IF SkinTailStock_M THEN (TailStockPD)
IF (TailStockPD && !SV_PROGRAM_RUNNING && TailStockOutOut) || (M32 && SV_PROGRAM_RUNNING)
	THEN SET TailStockInOut, RST TailStockOutOut, SET Aux11LED
IF (TailStockPD && !SV_PROGRAM_RUNNING && TailStockInOut) || (!M32 && SV_PROGRAM_RUNNING)
	THEN RST TailStockInOut, SET TailStockOutOut, RST Aux11LED
Personally, I would choose different names for the outputs: maybe "TailstockExtendSol" and "TailstockRetractSol". It is often unclear which way is "in" and which way is "out", and sometimes also unclear whether "in" and "out" refer to component movement direction or to PLC inputs vs. outputs.

I would also make the manual-mode controls (Aux11) manipulate the M32 request bit directly, so that the tailstock does not move unexpectedly when you position it manually, then start a program cycle running.

If the valve is a spring-to-center type from both sides, then the "extend" solenoid coil need to be powered continuously while holding a part. However, the "retract" coil could be turned off once the tailstock is fully retracted. This would reduce heating in the solenoid valve.

Re: Tail stock in and out

Posted: Thu Dec 14, 2023 3:03 pm
by Clausing2020
My question is why did they set up the Tailstock with one button? Why not have it like the chuck as in chuck open and chuck close?…. Tailstock out and Tailstock in

Re: Tail stock in and out

Posted: Thu Dec 14, 2023 6:19 pm
by cncsnw
You could certainly expand it to two VCP buttons as well. Just draw them with Inkscape; choose some otherwise-unassigned "skin event" numbers and output numbers; and modify the PLC logic to match. The PLC logic would be a little simpler. Since the "retract" button would always retract, and the "advance" button would always advance, there would be no need to use a PD or to test the previous output state.

Although the Acorn philosophy may seem to be that everything is pre-programmed for you and you just need to enable it in the Wizard, the reality is that, if you want it to work your way, you can and should do it your way.

A programmer could spend weeks researching the different tailstock designs and requirements, and try to implement an all-encompassing tailstock system that would support every combination of solenoid valves, feedback switches, and user requirements. After all that investment, it still would only work for 80% - 90% of users.

I agree that two buttons are nicer than one, as long as you have the control panel real estate available.

Re: Tail stock in and out

Posted: Thu Dec 14, 2023 6:48 pm
by cnckeith
Acorn Philosphy is to preconfigure as much as possible common machine tool functions to give newbie users a big head start while similtaneously not limiting the CNC control configuration by making avaiable free tools to fully customize the CNC controller to meet an almost infinite number of possible configurations and personal preferences.

Those Centroid CNC controller configuraition tools are:
- Advanced CNC PLC programming language, complier, and PLC detective anyalzer
- Advanced Macro programming
- VCP editing/programming
- Centroid APi (formerly know as Centroid Skinning)

Acorn is not trying to satisfy every possible machine function or personal preference with its preconfigured logic and features, but we give you the tools to do it! and that is what the Y in the DIY stands for. :D

Re: Tail stock in and out

Posted: Thu Dec 14, 2023 7:50 pm
by cncsnw
Yes, perhaps I should have phrased that better: "novices to Acorn may get the impression that everything is pre-programmed...".

Experienced users recognize that it is as Keith describes: you can adapt your needs to what is pre-supplied; or you can configure and program the control to meet your needs.

Re: Tail stock in and out

Posted: Thu Dec 14, 2023 9:57 pm
by Clausing2020
cncsnw I get what you are saying. I just am lacking on the macros and PLC work. I have had Marc do my PLC work. I would love to learn more and understand it better. Where is the beginning to try to understand what I need to do. Lets just say something as simple as the m55 button on the Screen how do I make that go to a out put. I am 65 Years old and trying my best to make this stuff work. Where can I get some Training.

Thanks John

Re: Tail stock in and out

Posted: Fri Dec 15, 2023 11:29 am
by dpascucci_support
These manuals are good place to start, the macro manual has some nice and easy examples to begin customizing the system.
Custom macro programming manual: https://www.centroidcnc.com/centroid_di ... amming.pdf
PLC Programming manual: https://www.centroidcnc.com/centroid_di ... manual.pdf