Wrong tool-offset calculation with Emcoturn 120 ( Rear Tool-Turret)

Moderator: cnckeith

suntravel
Posts: 2536
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: Wrong tool-offset calculation with Emcoturn 120 ( Rear Tool-Turret)

Post by suntravel »

I use NP++ and ComparePlus plugin.

https://github.com/pnedev/comparePlus

All my custom changes are with comments and my name so easy to find.

PLC 4.8 vs 5.19 is very different. Only change your edit in same section of the new PLC.

If NP++ is setup to TB294, simple press F6 to compile.

Uwe
Last edited by suntravel on Mon Aug 05, 2024 3:32 am, edited 1 time in total.


cnckeith
Posts: 7872
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: Wrong tool-offset calculation with Emcoturn 120 ( Rear Tool-Turret)

Post by cnckeith »

Muzzer wrote: Fri Aug 02, 2024 3:32 pm I'm part way through installing the 5.19 beta trial. I've copied all the wizard settings across from the previous version (4.8) but of course I need to modify the plc to implement my ATC controls. I had to create my own custom version, as my turret position feedback has 8 individual lines rather than Graycode.

Somewhere in the copious documentation there will doubtless be a great explanation but it's been a while since I last updated as you can tell. Do I now take the plc .SRC file that the wizard has just created and make the same edits I made before, then recompile it? That's presumably the only to combine the wizard settings with the plc mods.

I can use Visual Code Studio to compare the previous and new .SRC files but it's a bit of a job to go through this again, so if possible I'd like some confirmation that I'm on the right track before launching into it.

Many thanks

Centroid PLC programming manual.
https://www.centroidcnc.com/centroid_di ... manual.pdf

Notepad ++ setup for direct compile from notepad (you don't have to go to the command prompt to compile, but that is still an option)
https://www.centroidcnc.com/dealersuppo ... ds/294.pdf

Centroid PLC programming video series.
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


Muzzer
Posts: 745
Joined: Mon Feb 19, 2018 2:52 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 38D269594F9C-0110180512
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: UK
Contact:

Re: Wrong tool-offset calculation with Emcoturn 120 ( Rear Tool-Turret)

Post by Muzzer »

I've updated to the 5.19 beta and modified the plc to incorporate the changes needed to drive my ATC turret. I've worked my way very carefully through the source code line by line using he file compare function but I can't see anything I've missed or any typos. However, after a couple of hours I'm still no closer to getting the turret working. Everything else is up and running although I haven't tried tool touchoff as it makes no sense without the turret operating.

The previous version 4.80 works fine, so the machine hasn't started malfunctioning in the meantime.

The 2 reports are for the functional 4.80 (timestamp 18-08-06) and 5.19 beta (timestamp 17-13-19). Apart from the ATCGrayCodeStage mods, I haven't changed much.

I have 8 ETHER1616 inputs to directly report the turret position and they are hard coded in to the CurrentTurretPosition_W variable in place of the Greycode code. Nothing happens when I try to increment the turret via the VCP. If I go in and try to change tool positions via the tool offset "ATC" menu, I get a curious error message "311 Waiting for memory #52 (M101)" followed by "313 Waiting for dwell time". Not sure if this is directly relevant but M101 relates to the dust shoe from what I can tell.

Any ideas?


Allin1Chris
Posts: 161
Joined: Wed Jul 31, 2019 12:53 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC12: Yes
CNC11: Yes
CPU10 or CPU7: Yes

Re: Wrong tool-offset calculation with Emcoturn 120 ( Rear Tool-Turret)

Post by Allin1Chris »

Muzzer wrote: Thu Aug 08, 2024 1:47 pm I've updated to the 5.19 beta and modified the plc to incorporate the changes needed to drive my ATC turret. I've worked my way very carefully through the source code line by line using he file compare function but I can't see anything I've missed or any typos. However, after a couple of hours I'm still no closer to getting the turret working. Everything else is up and running although I haven't tried tool touchoff as it makes no sense without the turret operating.

The previous version 4.80 works fine, so the machine hasn't started malfunctioning in the meantime.

The 2 reports are for the functional 4.80 (timestamp 18-08-06) and 5.19 beta (timestamp 17-13-19). Apart from the ATCGrayCodeStage mods, I haven't changed much.

I have 8 ETHER1616 inputs to directly report the turret position and they are hard coded in to the CurrentTurretPosition_W variable in place of the Greycode code. Nothing happens when I try to increment the turret via the VCP. If I go in and try to change tool positions via the tool offset "ATC" menu, I get a curious error message "311 Waiting for memory #52 (M101)" followed by "313 Waiting for dwell time". Not sure if this is directly relevant but M101 relates to the dust shoe from what I can tell.

Any ideas?
report_E062346FBEFB-0202225607_2024-08-08_18-08-06.zip
report_E062346FBEFB-0202225607_2024-08-02_17-13-19.zip
After looking over the reports, Parameter 830 is set to a 5 on the v5.19 install, according to your v4.80 report it should be a 4. A 5 is a timed based turret so likely the graycode stage of the PLC is not active.

MEM52 in the PLC is the toolchangecomplete_M memory bit, waiting for the turret to reach its destination.
When requesting support READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043

Please ALWAYS post a FRESH report. To make a report: https://www.youtube.com/watch?v=Ecvg0VJp1oQ.

(We pride ourselves on providing timely solid technical support but, without good information we may not be able to help and/or reply until such information is posted.)

Centroid PLC Tutorial Videos


Muzzer
Posts: 745
Joined: Mon Feb 19, 2018 2:52 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 38D269594F9C-0110180512
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: UK
Contact:

Re: Wrong tool-offset calculation with Emcoturn 120 ( Rear Tool-Turret)

Post by Muzzer »

Wonderful - many thanks for looking into it, that's really helpful as I was running out of ideas!

Yes, I got the impression it was timing out somewhere. I'll correct that parameter and hopefully report back that it's fixed.

### UPDATE - yes, that fixed it, so I can now try out the probing features this weekend. Thanks again! ####


Post Reply