Hello Guest it is June 26, 2019, 07:03:22 AM

Author Topic: Saving the selected spindle speed range  (Read 5548 times)

0 Members and 1 Guest are viewing this topic.

Saving the selected spindle speed range
« on: August 09, 2015, 03:24:22 PM »
I added a DRO to the standard screenset that lets me select the Spindle Range, but when I close Mach4 and re-open it, the range goes back to zero.

How can i have Mach4 remember this setting?

Offline DazTheGas

*
  •  747 747
  • DazTheGas
    • View Profile
Re: Saving the selected spindle speed range
« Reply #1 on: August 10, 2015, 06:24:34 PM »
have a look at using script to save the value of the dro to your profile, and then load it on startup.

DazTheGas
Theres always time for a choccy biccy

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Saving the selected spindle speed range
« Reply #2 on: August 10, 2015, 06:30:21 PM »
write to .ini its in the scripting manual in the manual section of mach web site

Offline DazTheGas

*
  •  747 747
  • DazTheGas
    • View Profile
Re: Saving the selected spindle speed range
« Reply #3 on: August 10, 2015, 06:41:27 PM »
Correct, thats what writing to the profile does ;-) by doing it that way it auto writes in the ini and auto loads it on startup.

DazTheGas
Theres always time for a choccy biccy
Re: Saving the selected spindle speed range
« Reply #4 on: August 13, 2015, 11:08:57 AM »
have a look at using script to save the value of the dro to your profile, and then load it on startup.

DazTheGas

I looked thru the .ini file and I don;t see a setting that is in there for the selected spindle range.

How do I know the format that this entry should have?

Offline ger21

*
  • *
  •  6,266 6,266
    • View Profile
    • The CNC Woodworker
Re: Saving the selected spindle speed range
« Reply #5 on: August 13, 2015, 11:37:32 AM »
You can add any settings to the .ini file that you want, and use any format you want.
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Saving the selected spindle speed range
« Reply #6 on: August 13, 2015, 11:55:30 AM »
OK, what is the format to write this stuff to the ini? Is this documented somewhere?

And this means there is no "standard" .ini setting for spindle range, right? So I will have to use a script to take care of saving and restoring.

Offline DazTheGas

*
  •  747 747
  • DazTheGas
    • View Profile
Re: Saving the selected spindle speed range
« Reply #7 on: August 13, 2015, 12:55:48 PM »
give me a little more explanation on the dro.

what sets its value or what value it sets etc and i will write one for you as an example to you on track.

DazTheGas
Theres always time for a choccy biccy
Re: Saving the selected spindle speed range
« Reply #8 on: August 13, 2015, 02:03:46 PM »
The DRO is set to DRO Code "Spindle Range"

thanks,

Offline dude1

*
  •  1,253 1,253
    • View Profile
Re: Saving the selected spindle speed range
« Reply #9 on: August 13, 2015, 06:01:08 PM »
have a look at this