M95 not working?

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
HoY
Posts: 18
Joined: Wed Oct 23, 2019 12:22 am
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
Location: Fort McMurray, Alberta

M95 not working?

Post by HoY »

I've been working towards getting my ATC up and running, and I'm getting close.
One thing that I believe could be my fault (somehow?) is my M95/15 call in my m6 macro does not clamp the tool clamp. the M94 Does unclamp the tool holder, and I can actuate it manually both clamped and unclamped via ctrl+alt+f while in the I/O screen.

My understanding based on what ive been reading over the last few days, is that using M94 and M95 ignores the tool unclamped sensor. I am still waiting for an opto isolated relay to properly wire up that sensor.
attached is the m6 macro, and the report.zip. if anybody wants any other files to narrow it down I will be more than happy to send them as well!

(ps; i know some of the movements in the m6 are still a bit off, a little bit more work to do there still)
Attachments
mfunc6.mac
(2.61 KiB) Downloaded 126 times
report_3403DE6E9E7A-0910192406_2019-10-28_22-30-29.zip
(289.66 KiB) Downloaded 125 times


cnckeith
Site Admin
Posts: 8905
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: M95 not working?

Post by cnckeith »

hello. please post more info.. photos of machine and the ATC so we know what we are working with.
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


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

Re: M95 not working?

Post by cncsnw »

It looks to me like a bug in the PLC program.

There is code on line 3467 which SETs the output (OUT2, "UnclampTool") in response to an M15 request.

The only code which ever RSTs the output is on line 3480, in the block which is triggered only in the event of a tool unclamping timeout fault.

There is no code that turns off the tool unclamp output in response to removal of the M15 request. Assuming the supplied M16 macro is supposed to work with this PLC source file, then code to turn off the tool unclamp output when M15 is removed should have been included.

However, the comments that accompany the M function definitions in the PLC source (lines 1441-1443) are ambiguous. It is not clear to me whether the PLC author intended to treat "tool unclamp" and "chuck" as separate devices or not, nor whether M16 is just supposed to cancel M15 (as the macro file suggests) or whether M16 is supposed to be a separate request, affecting something called the "chuck" (as the PLC source suggests).


Allin1Chris
PLC Expert
Posts: 233
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: M95 not working?

Post by Allin1Chris »

Hello,

cncsnw is correct that this is a bug in the current PLC released version of the plc. This is addressed in the upcoming software update. However a very simple fix is to change the following lines.

Line 3467
"IF M15 THEN SET UnclampTool, SET ToolUnclampTimer"
To
IF M15 THEN (UnclampTool), SET ToolUnclampTimer

And Line 3470
IF UnclampTool && ToolUnclampedState_M THEN RST ToolUnclampTimer
To
IF UnclampTool && ToolUnclampedState_M || !M15 THEN RST ToolUnclampTimer

Attached is a plc edited and compiled with this same fix. Just open the zip file up and extract the files into you cncm directory. Be aware that if you open up the wizard and make changes that require a plc change, this fix is overwritten. You can ofcourse go back in the plc.src and do what i described above and recompile the plc.

We have a Manual for PLC Programming
https://www.centroidcnc.com/centroid_di ... manual.pdf
And video tutorial series!
https://www.youtube.com/playlist?list=P ... i2WKIedQlQ
In case you are interested.
Attachments
Unclamptool.zip
(122.36 KiB) Downloaded 121 times
Last edited by Allin1Chris on Wed Oct 30, 2019 8:58 am, edited 1 time in total.
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


HoY
Posts: 18
Joined: Wed Oct 23, 2019 12:22 am
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
Location: Fort McMurray, Alberta

Re: M95 not working?

Post by HoY »

Thank you both very much. I thought I may have changed something myself that stopped this from working, since I was not able to find anyone else having this specific problem with a quick search here on the forums.
Since I’m still setting everything up on my machine, and I end up in the wizard more than once a session, it might just be simpler for me to change the m94 and m94 to m62 and m82, and unassigned the output 2 for now. Are there any drawbacks to this? I’d like to use the software as intended if possible but as a workaround I don’t need to repeat every time I make a change


Post Reply