Hello Guest it is April 27, 2024, 05:54:04 AM

Author Topic: How to encryption Macro Mxx.mcs  (Read 379 times)

0 Members and 1 Guest are viewing this topic.

How to encryption Macro Mxx.mcs
« on: February 26, 2023, 09:05:34 AM »
Hi
I want encryption some Macro How to ?
normally macro  Mxx.mcs  how to encryption it's and mach4 can call to use it's

Thank you.
Asis
Re: How to encryption Macro Mxx.mcs
« Reply #1 on: February 26, 2023, 06:55:58 PM »
Hi,
when you write a macro it is saved as *********.mcs ie Mach Source, then it gets compiled to *********.mcc, ie Mach Compiled.

Compiled code is what actually runs but is not human readable.

If you want to secure a macro, write and save it per normal. Once its compiled and running then remove the *********.mcs and whatever ********* backup files
there are. That would mean there is no user readable code left on the PC.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: How to encryption Macro Mxx.mcs
« Reply #2 on: March 05, 2023, 03:12:59 AM »
Hi,
when you write a macro it is saved as *********.mcs ie Mach Source, then it gets compiled to *********.mcc, ie Mach Compiled.

Compiled code is what actually runs but is not human readable.

If you want to secure a macro, write and save it per normal. Once its compiled and running then remove the *********.mcs and whatever ********* backup files
there are. That would mean there is no user readable code left on the PC.

Craig

Thank you, MR. Craig
I try your answer, open mach4 --> open edit script --> go profile folder macro then check in folder have m6.mcs and m6.mcc.

Then I try remove m6.mcs  only.
I try ENABLE Mach4 and type in MDI
T6 M6
T7 M6

My machine not do anything .

I go restore M6.mcs file and try type same MDI , My machine can Toolchange.

What I'm wrong process ?

Thank you,
Asis
Re: How to encryption Macro Mxx.mcs
« Reply #3 on: March 05, 2023, 06:48:29 PM »
Hi,
try:

t6m6

Machs Ggode interpreter reduces all letters to lowercase, strips out leading zeros and strips out whitespace. Given that Windows searches are not case sensitive
you mostly end up with the right thing but not always. I make it a habit to write Gcode with lowercase...although I leave the whitespace for readability.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'