Change OUTPUT5 name for WMPG <answered>

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

fma1955
Posts: 23
Joined: Sun Nov 15, 2020 1:47 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 3905
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Change OUTPUT5 name for WMPG <answered>

Post by fma1955 »

Hello all,
I have Acorn with 4.62 software & all is working well. I had an old CNC Router upgraded with Cendtriod gear. I wanted to put two commands on the WMPG. At the moment, OUT5 is "RouterVacuumHoldDown" & OUT6 is "DustCollection". All works well from the VCP. Gary Campbell gave me the Macro code below which works, if I change OUT5 to "OUTPUT5" & OUT6 to "OUTPUT6". How can I get BOTH to work. I have attached my "REPORT". I have tried a LARGE number of things, without success. I presume it is quite simple which should be easy for me as I have been called that quite a lot. :oops: Thank you for ANY help.

IF #50010 ;Prevent lookahead from parsing past here
IF #4201 || #4202 THEN GOTO 1000 ;Skip macro if graphing or searching

N100
IF #60002 THEN GOTO 300 ; the "2" in #60002 is output #2

N200
M62 ;the "2" in 62 is output 2
GOTO 1000

N300
M82 ;the "2" in 82 is output 2

N1000 ; end
Attachments
report_E415F6F5C6B8-1105203905_2021-10-22_15-59-43.zip
(750.64 KiB) Downloaded 61 times
Sword
Posts: 652
Joined: Fri Nov 30, 2018 1:04 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Thorp WI

Re: Change OUTPUT5 name for WMPG

Post by Sword »

Not sure I follow you, but have you tried the "M94/M95 - Output On/Off" M codes? Pg. 251 of the manual.

M94/5/6 ; Turns on outputs 5 & 6
M95/5/6 ; Turns off outputs 5 & 6
Scott
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: Change OUTPUT5 name for WMPG

Post by martyscncgarage »

Macro Programming manual: https://www.centroidcnc.com/centroid_di ... amming.pdf

You can program the WMPG buttons in the Wizard:
Wizard Macro.png
Does this help?
Reminder, for support please follow this post: viewtopic.php?f=20&t=383
We can't "SEE" what you see...
Mesa, AZ
fma1955
Posts: 23
Joined: Sun Nov 15, 2020 1:47 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 3905
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Change OUTPUT5 name for WMPG

Post by fma1955 »

Hello Marty,
When I change the Macro in the area you have circled, change the OUT5&6 to OUTPUT5&6 plus put the code in that Gary gave me as mentioned, it works on the WMPG BUT stops the VCP buttons from working as OUT5 is "RouterVacuumHoldDown" & OUT6 is "DustCollection" for the VCP to work.
centroidsupport
Posts: 120
Joined: Tue Sep 28, 2021 6:26 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: Change OUTPUT5 name for WMPG

Post by centroidsupport »

Which macro buttons do you want to use?

Depending on which buttons you want to use, paste the macro code that works into the files MPGmacro1.mac or MPGmacro2.mac or MPGmacro3.mac or MPGmacro4.mac in c:\cncm\system
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
https://www.centroidcnc.com/centroid_di ... _gear.html
fma1955
Posts: 23
Joined: Sun Nov 15, 2020 1:47 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 3905
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Change OUTPUT5 name for WMPG

Post by fma1955 »

Being new to this I will try to put as much info in here as I can. At the moment through the WIZARD, I make OUT5 as "RouterVacuumHoldDown" & OUT6 as "DustCollection". All works well from the VCP Dust & Vac buttons BUT NOT in the WMPG. THEN
Through the WIZARD I change OUT5 to "OUTPUT5" & OUT6 to "OUTPUT6" & add the Macro code (mentioned earlier) to MPGmacro1 & MPGmacro2, [changing the "2" in the code to 5 & 6 for the corresponding output] which works on the WMPG BUT STOPS the Dust & Vac buttons on the VCP from working . How can I get BOTH to work. I have attached a picture of the codes that I have noticed change. My REPORT has been uploaded earlier. Also what is the difference between the "RouterVacuumHoldDown" & the "Vac on" command?
Thank you for your help.

"centroidsupport
Depending on which buttons you want to use, paste the macro code that works into the files MPGmacro1.mac or MPGmacro2.mac or MPGmacro3.mac or MPGmacro4.mac in c:\cncm\system"

There are no MPGmacro's in my c:\cncm\system. There are plcmacro's. When I change the MPGmacros in c:\cncm with the code mentioned, the MPG buttons work BUT not the VCP buttons.
Attachments
PLC code.jpg
centroidsupport
Posts: 120
Joined: Tue Sep 28, 2021 6:26 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: Change OUTPUT5 name for WMPG

Post by centroidsupport »

I cant read this jpg. Can you attach it as a text or word doc?
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
https://www.centroidcnc.com/centroid_di ... _gear.html
cnckeith
Posts: 7164
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: Change OUTPUT5 name for WMPG

Post by cnckeith »

fma1955 wrote: Thu Dec 02, 2021 5:09 am

There are no MPGmacro's in my c:\cncm\system. There are plcmacro's. When I change the MPGmacros in c:\cncm with the code mentioned, the MPG buttons work BUT not the VCP buttons.
the report.zip posted shows the MPGmacros are in the c:\cncm\system folder.

after you make any changes please post a fresh report.zip so we can see the changes you made. otherwise we are shooting in the dark.

use the Edit MPG Macro button in the wizard to edit any of the 4 MPG macros as marty pointed out earlier with a screen shot of the Wizard MPG setup menu.
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
fma1955
Posts: 23
Joined: Sun Nov 15, 2020 1:47 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 3905
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Change OUTPUT5 name for WMPG

Post by fma1955 »

See attached .doc file.
I have attached two reports in another post to cnckeith.
Thank you.
centroidsupport wrote: Thu Dec 02, 2021 10:41 am I cant read this jpg. Can you attach it as a text or word doc?
Attachments
MPG code.doc
(29.5 KiB) Downloaded 61 times
fma1955
Posts: 23
Joined: Sun Nov 15, 2020 1:47 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 3905
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: Change OUTPUT5 name for WMPG

Post by fma1955 »

You are right of course Keith, I was looking at a"cncm" folder on my home computer when I wrote that. It would be VERY nice to have the FULL program running on a home computer (not having to be connected to the machine) to make mods to the VCP layout for instance. I have attached two "reports". The one ending in "14-58-40" is when the MPG buttons work & the "15-37-24" is when the VCP buttons work. The ONLY mods that I make are in the "Wizard" changing the "OUT5 & OUT6" form "OUTPUT5 & OUTPUT6" to "RouterVacuumHoldDown & DustCollection".
Thank you for any help.
cnckeith wrote: Thu Dec 02, 2021 3:46 pm
fma1955 wrote: Thu Dec 02, 2021 5:09 am

There are no MPGmacro's in my c:\cncm\system. There are plcmacro's. When I change the MPGmacros in c:\cncm with the code mentioned, the MPG buttons work BUT not the VCP buttons.
the report.zip posted shows the MPGmacros are in the c:\cncm\system folder.

after you make any changes please post a fresh report.zip so we can see the changes you made. otherwise we are shooting in the dark.

use the Edit MPG Macro button in the wizard to edit any of the 4 MPG macros as marty pointed out earlier with a screen shot of the Wizard MPG setup menu.
Attachments
report_E415F6F5C6B8-1105203905_2021-12-03_15-37-24.zip
(823.09 KiB) Downloaded 58 times
report_E415F6F5C6B8-1105203905_2021-12-03_14-58-40.zip
(824.39 KiB) Downloaded 56 times
Post Reply