Need help with Makros for the WMPG

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
suntravel
Posts: 1967
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

Need help with Makros for the WMPG

Post by suntravel »

I would like to have one makro for turning off/on Auto coolant and one for turning on/off Mist Cooling, working like the buttons on the VCP, so I can switch the Mist Coolant while a job is running.

Mist cooling is set to OUTPUT1 but M94 /61 or simply M7 will not work the way I want...

Regards

Uwe
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: Need help with Makros for the WMPG

Post by centroidsupport »

M7 (Mist) and M8 (Flood) are the macros to turn on coolant. M9 turns all coolant off.

What do you mean by "M7 will not work the way I want"?
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
suntravel
Posts: 1967
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: Need help with Makros for the WMPG

Post by suntravel »

If i write only M7 in the makro, Mist will turn on, but i can only jog with the MPG after pressing cycle stop. And it works only if Coolant is on Auto on the VCP.

Regards

Uwe
suntravel
Posts: 1967
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: Need help with Makros for the WMPG

Post by suntravel »

I think I figured out my logical error why turning on Mist (M7) with a macro on the WMPG is not working the way I want.

If I start a macro, it is like typing something in MDI and while this runs you can not use jogging, just like a program would run.

I think I have to assign the WMPG bottom not to a macro, but to a function in the PLC

Maybe change this:

IF MpgMacro1_M THEN SV_SYS_MACRO = 1
IF MpgMacro2_M THEN SV_SYS_MACRO = 2
IF MpgMacro3_M THEN SV_SYS_MACRO = 3
IF MpgMacro4_M THEN SV_SYS_MACRO = 4
....

;--Mist coolant on/off
IF (CoolMistKey || KbMistOnOff_M || SkinCoolMist_M) THEN (CoolantMistPD)
IF ((Mist ^ (!CoolAutoModeLED && CoolantMistPD))
|| CoolAutoModeLED && M7)
&& !(SV_STOP ||
CoolAutoModeLED && !M7 ||
ErrorFlag_M ||
DoToolCheck)
THEN (Mist), (CoolMistLED), (SelectCoolantMist)

to this:


;IF MpgMacro1_M THEN SV_SYS_MACRO = 1
IF MpgMacro2_M THEN SV_SYS_MACRO = 2
IF MpgMacro3_M THEN SV_SYS_MACRO = 3
IF MpgMacro4_M THEN SV_SYS_MACRO = 4
....

;--Mist coolant on/off
IF (CoolMistKey || KbMistOnOff_M || SkinCoolMist_M || MpgMacro1_M) THEN (CoolantMistPD)
IF ((Mist ^ (!CoolAutoModeLED && CoolantMistPD))
|| CoolAutoModeLED && M7)
&& !(SV_STOP ||
CoolAutoModeLED && !M7 ||
ErrorFlag_M ||
DoToolCheck)
THEN (Mist), (CoolMistLED), (SelectCoolantMist)


Uwe
suntravel
Posts: 1967
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: Need help with Makros for the WMPG

Post by suntravel »

Strike :mrgreen:

That works the way I want. Now the Macro1 buttom on the WMPG makes the same as the Mist buttom on the VCP.

Quite easy if you know how to do this.

Learned this from the Centroid support videos and search in the forum today.

Uwe
Post Reply