Page 1 of 1
Need help with Makros for the WMPG
Posted: Thu Oct 07, 2021 4:54 am
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
Re: Need help with Makros for the WMPG
Posted: Thu Oct 07, 2021 8:10 am
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"?
Re: Need help with Makros for the WMPG
Posted: Thu Oct 07, 2021 8:21 am
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
Re: Need help with Makros for the WMPG
Posted: Wed Jun 15, 2022 4:14 am
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
Re: Need help with Makros for the WMPG
Posted: Wed Jun 15, 2022 12:22 pm
by suntravel
Strike
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