Page 1 of 2

Change OUTPUT5 name for WMPG <answered>

Posted: Wed Dec 01, 2021 5:24 am
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

Re: Change OUTPUT5 name for WMPG

Posted: Wed Dec 01, 2021 3:58 pm
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

Re: Change OUTPUT5 name for WMPG

Posted: Wed Dec 01, 2021 4:31 pm
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?

Re: Change OUTPUT5 name for WMPG

Posted: Wed Dec 01, 2021 5:00 pm
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.

Re: Change OUTPUT5 name for WMPG

Posted: Wed Dec 01, 2021 5:00 pm
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

Re: Change OUTPUT5 name for WMPG

Posted: Thu Dec 02, 2021 5:09 am
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.

Re: Change OUTPUT5 name for WMPG

Posted: Thu Dec 02, 2021 10:41 am
by centroidsupport
I cant read this jpg. Can you attach it as a text or word doc?

Re: Change OUTPUT5 name for WMPG

Posted: Thu Dec 02, 2021 3:46 pm
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.

Re: Change OUTPUT5 name for WMPG

Posted: Fri Dec 03, 2021 7:22 pm
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?

Re: Change OUTPUT5 name for WMPG

Posted: Fri Dec 03, 2021 7:24 pm
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.