Hello Guest it is April 26, 2024, 02:08:43 PM

Author Topic: Jog Rate lost each shutdown  (Read 1487 times)

0 Members and 1 Guest are viewing this topic.

Re: Jog Rate lost each shutdown
« Reply #10 on: August 10, 2021, 03:30:30 PM »
I've been out in the shop playing with this.  Weird.  If I try scr.get... in a button and display the value in a wx box, it works fine. 

I think something else is saving the jog rate in the ini file after the unload script?  Is that possible?  Here is the setup...

I set the jog rate to 55.  After I exit, the file shows  35.  However, if I get and save that same value under a different key name (Jog for instance), it save correctly every time.  Weird.

Code: [Select]
--Save Jog Rate % to .ini
local valJogRate = scr.GetProperty("droJogRate", "Value")
local jogSTR = tostring(valJogRate)
mc.mcProfileWriteString(inst, "Preferences", "JogRate", jogSTR)

--the above doesn't work
--added by Tony 10AU21 - axis specific but tey are all the same rate
local cRate = mc.mcJogGetRate(inst, 1)
local cRateSTR = tostring(cRate)
mc.mcProfileWriteString(inst, "Preferences", "Jog", cRateSTR)

The second part works every time, but the first one doesn't. 

Thanks,

Tony (dazed and confused at the moment)

Offline DazTheGas

*
  •  778 778
  • DazTheGas
    • View Profile
Re: Jog Rate lost each shutdown
« Reply #11 on: August 10, 2021, 04:41:49 PM »
Which version are you using as according to avids site there is a beta version 2.3.1 that is supposed to address this

Release Notes
Version 2.3.1 (8.6.2021)
Update: Revised default soft limit values
Update: Spindle PTC fault warning changed to generic VFD fault warning
Bugfix: Jog rate does not always persist across sessions

DazTheGas
New For 2022 - Instagram: dazthegas
Re: Jog Rate lost each shutdown
« Reply #12 on: August 10, 2021, 09:57:14 PM »
Ironically, I got a reply from AVID today and he told me that this was a known issue.  He suggested the Beta too.  I feel much better that it was not my own stupidity!  Ignorance I can handle... 

I did learn a few things in this quest, so that's good.  Not sure I'll try the beta though.  I may just wait until its released for all.  I'm in the middle of a couple of other projects.  I am curious though. 

Thanks for the help everyone,

Tony