VERICUT Users' Forum

Due to relentless spammers, we are no longer automatically accepting new forum registrations. If you wish to register for this forum, please send an e-mail to: info@cgtech.com

You are not logged in.

#1 2020-02-21 16:09:44

JBell
Member
Registered: 2019-04-29
Posts: 2

Change a machine component color based on G or M code

I have a button I've created on my rotary and I want it to change color from gray to green when the program reads the M-code to unlock the rotary, and I want it to change it to red when it reads the M-code to lock the rotary. I've done this in older versions and unfortunately I don't have those machines anymore and I've forgotten how to achieve this.

Please help

Offline

#2 2020-02-25 11:52:07

MKoňařík
Beta User
Registered: 2016-05-18
Posts: 19

Re: Change a machine component color based on G or M code

Hello,
When you define your M-code dommand, just add macro "SetComponentColor"  to text field name of component and tu value filed number of your color.
Color you can define in Configuration -> Colors -> Define Tab.... under each number you can define your color.

Offline

#3 2020-02-26 20:36:46

JBell
Member
Registered: 2019-04-29
Posts: 2

Re: Change a machine component color based on G or M code

Yes,
I got to messing around and it came back to me when I went into the G code List.

Thanks for the reply though.

Offline

Board footer