Machsupport Forum

Mach Discussion => Mach4 General Discussion => Topic started by: Formula272 on December 18, 2023, 07:03:54 AM

Title: Automatic reference travel
Post by: Formula272 on December 18, 2023, 07:03:54 AM
Hello, is it possible to set the Mach4 software so that there must be a reference movement after the machine is switched on.

The text was translated because I don't speak English

Thank you
Andreas
Title: Re: Automatic reference travel
Post by: Bill_O on December 18, 2023, 08:30:49 AM
Edit the Cycle Start function in the Screen Load script.
It will take some coding but not a lot.
Title: Re: Automatic reference travel
Post by: Formula272 on December 18, 2023, 12:01:05 PM
Thanks,
Can somebody help me with it .
I would like to know a little more precisely.

Thank you
Andrew
Title: Re: Automatic reference travel
Post by: Bill_O on December 18, 2023, 03:59:23 PM
You would be better off doing it yourself.
Then you can make changes or modify other things.
Before making any changes make a copy of your Profiles and Screens folders.
Then if you make a mistake you can always go back to the original.

Here is a link for a document I made that will help you start.
https://www.machsupport.com/forum/index.php?topic=45397.msg289143#msg289143 (https://www.machsupport.com/forum/index.php?topic=45397.msg289143#msg289143)

In Mach4 go to Operator then Edit Screen
On the left select the top thing under Screen Tree Manager
Below the Screen Tree Manager is the Properties section
Select the middle icon ( Events)
The top line is Screen Load Script
Click to the right of Screen Load Script and click the button with 3 dots.
On the right side scroll down to the function CycleStart()
This is where you will make your changes.
Title: Re: Automatic reference travel
Post by: Formula272 on December 19, 2023, 12:07:37 AM
Thank you
Then I will
do it like that.

greeting
Andrew