Page 2 of 2

Re: Acorn 4.14 Backgear input information

Posted: Fri Apr 19, 2019 8:09 am
by martyscncgarage
the1depot wrote: Fri Apr 19, 2019 7:51 am Tried SPINDLELOWRANGE The Wizard also Comments out this function Thank You
Hopefully it will be fixed for the next upcoming release which should correct all the reported issues to date.

It could be fixed with a PLC modification, but then you wouldn't be able to use the Wizard again.

Marty

Re: Acorn 4.14 Backgear input information

Posted: Fri Apr 19, 2019 8:48 am
by the1depot
Sorry here is the report. Thank You

Re: Acorn 4.14 Backgear input information

Posted: Fri Apr 19, 2019 9:38 am
by cnckeith
There is no issue with the "commenting out"

In order for the Acorn PLC template to work, we must define all possible inputs/outputs as memory bits so the plc does not fail when we compile it. Think of the memory bits as just “placeholders” for inputs/outputs that are unused. Here’s an example from his report:



Define BackGear as an input using the Wizard and you get...

;------------------------------------------------------------------------------

; INPUT DEFINITIONS

; Closed = 1 (green) Open = 0 (red)

;------------------------------------------------------------------------------

LimitAll IS INP1 ;&*;

DriveOk IS INP2 ;&*;

Unused3 IS INP3 ;&*;

Unused4 IS INP4 ;&*;

Unused5 IS INP5 ;&*;

BackGear IS INP6 ;&*;

Unused7 IS INP7 ;&*;

EStopOk IS INP8 ;&*;





Since we cannot have two definitions, the Wizard comments out the placeholder memory bit definition for BackGear:


FourthAxisPlusLimitOk IS MEM215 ;&*;

;BackGear IS MEM216 ;&*;

ProbeTripped IS MEM217 ;&*;





And along with removing the placeholder memory bit, we need to comment out where it gets set/reset:


;IF True THEN RST BackGear, SET SpinLowInputDisabled_M ;&*;

IF True THEN SET LubeOk ;&*;

IF True THEN SET SpindleOk ;&*;




This is the process for every single input/output in Acorn. A hint for seeing things that are touched by the Wizard is the ;&*; token at the end of each line.

Re: Acorn 4.14 Backgear input information

Posted: Fri Apr 19, 2019 3:23 pm
by cnckeith
ok.. we fixed the "backgear" logic in the Acorn Wizard template file. please find attached the revised Acorn PLC source template used by the wizard.

with cnc12 and the wizard closed.. copy this file to the cncm\ wizard \ resources \ template directory
and overwrite the one that is there.

and then start cnc12 and start the wizard and set any input as "backgear" and wire up the switch to that input.
be sure to set the Low range ratio as a negative value.
acorn template.PNG

Re: Acorn 4.14 Backgear input information

Posted: Mon Apr 22, 2019 8:11 am
by the1depot
Thank You Keith for your help and the sharing of knowledge. This information is very helpful in understanding what is going on in the background when using the wizard. I will try this fix today and post the results.

Re: Acorn 4.14 Backgear input information

Posted: Tue Apr 23, 2019 7:51 am
by the1depot
Here are the results of the new template.

When input 6 is pulled low, the control switches to spindle low gear and the rpm display changes to the low gear scale.(-125) and the VFD signal changes from forward to reverse as it should.

The issue now is:
When input 6 goes high the spindle gear does not change to high. If you use the high gear button on the VCP it changes to the high gear and the display and VFD rotation output changes to forward as it should. Seems like something is missing in the PLC to recognize the state change of input 6 from low to high and then making the changes from low gear to high gear.


Thank You again for your help.

Re: Acorn 4.14 Backgear input information

Posted: Tue Apr 23, 2019 8:31 pm
by cnckeith
whoops..left out logic for the release of the switch! :shock:
try this one attached and report back.
and remember once you configure a backgear switch, that switch "takes control" of the range buttons on the VCP...so in essence the spindle gear range buttons on the VCP turn into Indicator lights and are not used to select the range..the switch is used to select the range.

Re: Acorn 4.14 Backgear input information

Posted: Thu Apr 25, 2019 7:50 am
by the1depot
Works Perfect Thank you so much!