Atc mfunc.6 could use some help (Resolved)

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help (Resolved)

Post by WINSTON »

martyscncgarage wrote: Tue Apr 13, 2021 5:58 pm Boy, you sure move fast in your video.... ;)
Please post a FRESH report. Lastest version of software. Previous versions no longer supported.

Did you do any PLC modifications to those outputs?
No PLC mods
heres the report thanks
Attachments
report_F045DA76BCBE-1108181316_2021-04-13_18-10-00.zip
(1.09 MiB) Downloaded 70 times
cncsnw
Posts: 3765
Joined: Wed Mar 24, 2010 5:48 pm

Re: Atc mfunc.6 could use some help (Resolved)

Post by cncsnw »

Gary Campbell wrote:Once the estop (input)is triggered all outputs will toggle off
martyscncgarage wrote:When an Estop/fault occurs, all outputs are turned off, they are not active. Are you saying you have outputs active?
Neither the hardware, nor CNC12, automatically turns off PLC output requests in response to a Fault or E-stop. That is up to the PLC logic.

WINSTON's PLC logic includes the following:

Code: Select all

M94M95111              IS OUT44
M94M95112              IS OUT45
M94M95113              IS OUT46
M94M95114              IS OUT47
M94M95115              IS OUT48
;...
M94M95111_SV					  IS SV_M94_M95_111
M94M95112_SV					  IS SV_M94_M95_112
M94M95113_SV					  IS SV_M94_M95_113
M94M95114_SV					  IS SV_M94_M95_114
M94M95115_SV					  IS SV_M94_M95_115
;...
IF M94M95111_SV THEN (M94M95111)
IF M94M95112_SV THEN (M94M95112)
IF M94M95113_SV THEN (M94M95113)
IF M94M95114_SV THEN (M94M95114)
IF M94M95115_SV THEN (M94M95115)
So it simply turns on the output relays in response to the M94/M95 requests, with no dependency on any other conditions (such as Fault or E-stop).

Since PLC logic like that found here has no specific purpose, there is no way for the author to guess whether it is a good idea to turn the requests or the outputs on or off in response to E-stop or Fault. Personally, I prefer PLC logic that has a defined purpose.

However, failing that, the shortest path to making the existing PLC program automatically cancel those five requests -- and as a result also turn off those five outputs -- in case of Fault or E-stop would be to add the following lines:

Code: Select all

IF SV_STOP THEN RST M94M95111_SV,
                RST M94M95112_SV,
                RST M94M95113_SV,
                RST M94M95114_SV,
                RST M94M95115_SV
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help (Resolved)

Post by WINSTON »

cncsnw wrote: Tue Apr 13, 2021 6:24 pm
Gary Campbell wrote:Once the estop (input)is triggered all outputs will toggle off
martyscncgarage wrote:When an Estop/fault occurs, all outputs are turned off, they are not active. Are you saying you have outputs active?
Neither the hardware, nor CNC12, automatically turns off PLC output requests in response to a Fault or E-stop. That is up to the PLC logic.

WINSTON's PLC logic includes the following:

Code: Select all

M94M95111              IS OUT44
M94M95112              IS OUT45
M94M95113              IS OUT46
M94M95114              IS OUT47
M94M95115              IS OUT48
;...
M94M95111_SV					  IS SV_M94_M95_111
M94M95112_SV					  IS SV_M94_M95_112
M94M95113_SV					  IS SV_M94_M95_113
M94M95114_SV					  IS SV_M94_M95_114
M94M95115_SV					  IS SV_M94_M95_115
;...
IF M94M95111_SV THEN (M94M95111)
IF M94M95112_SV THEN (M94M95112)
IF M94M95113_SV THEN (M94M95113)
IF M94M95114_SV THEN (M94M95114)
IF M94M95115_SV THEN (M94M95115)
So it simply turns on the output relays in response to the M94/M95 requests, with no dependency on any other conditions (such as Fault or E-stop).

Since PLC logic like that found here has no specific purpose, there is no way for the author to guess whether it is a good idea to turn the requests or the outputs on or off in response to E-stop or Fault. Personally, I prefer PLC logic that has a defined purpose.

However, failing that, the shortest path to making the existing PLC program automatically cancel those five requests -- and as a result also turn off those five outputs -- in case of Fault or E-stop would be to add the following lines:

Code: Select all

IF SV_STOP THEN RST M94M95111_SV,
                RST M94M95112_SV,
                RST M94M95113_SV,
                RST M94M95114_SV,
                RST M94M95115_SV
Thanks
I guess I need to hire centroid to correct it . I wouldn't know where to begin.
martyscncgarage
Posts: 9912
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: Atc mfunc.6 could use some help (Resolved)

Post by martyscncgarage »

You can hire Marc, (cncsnw) who responded to your post and pointed out the issue by looking at the PLC in your report, to do it for you as well.

He is as sharp as they come and I'm glad he straightens us out. He worked for Centroid and helped write the PLCs we use today. I have gladly retained his services in the past. cncsnw.com
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
WINSTON
Posts: 51
Joined: Tue Feb 26, 2019 6:06 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: Atc mfunc.6 could use some help (Resolved)

Post by WINSTON »

Thats great I will look into that
Post Reply