Acorn 4.14 Backgear input information

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

martyscncgarage
Posts: 9914
Joined: Tue Mar 28, 2017 12:01 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Location: Mesa, AZ

Re: Acorn 4.14 Backgear input information

Post 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
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
the1depot
Posts: 36
Joined: Tue Feb 19, 2013 4:08 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A2001675520
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Acorn 4.14 Backgear input information

Post by the1depot »

Sorry here is the report. Thank You
Attachments
report_38D2694E1ED1-1222170405_2019-04-19_07-43-07.zip
(290.63 KiB) Downloaded 105 times
cnckeith
Posts: 7334
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: Acorn 4.14 Backgear input information

Post 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.
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
cnckeith
Posts: 7334
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: Acorn 4.14 Backgear input information

Post 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
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
the1depot
Posts: 36
Joined: Tue Feb 19, 2013 4:08 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A2001675520
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Acorn 4.14 Backgear input information

Post 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.
the1depot
Posts: 36
Joined: Tue Feb 19, 2013 4:08 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A2001675520
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Acorn 4.14 Backgear input information

Post 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.
Attachments
report_38D2694E1ED1-1222170405_2019-04-23_06-46-25.zip
(291.45 KiB) Downloaded 104 times
cnckeith
Posts: 7334
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: Acorn 4.14 Backgear input information

Post 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.
Attachments
acorn_universal_template.src
(183.93 KiB) Downloaded 132 times
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
the1depot
Posts: 36
Joined: Tue Feb 19, 2013 4:08 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: No
CNC Control System Serial Number: A2001675520
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Acorn 4.14 Backgear input information

Post by the1depot »

Works Perfect Thank you so much!
Post Reply