Hello Guest it is April 19, 2024, 08:15:19 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - TonyMemphis

Pages: « 1 2 3 »
11
Mach4 General Discussion / Re: Jog Rate lost each shutdown
« on: August 04, 2021, 06:39:54 PM »
Well, it looks like that is what it is trying to do.  The Value it gets is a string I think.

I deleted the JogRate line from the machine.ini file, then ran Mach4.  When I exited, the jog rate was saved.  But the next time I changed it and exited, it was not. 

Thanks for helping!  I appreciate it.  I may just drop a note to the AVID folks. 

Tony

12
Mach4 General Discussion / Re: Jog Rate lost each shutdown
« on: August 02, 2021, 10:03:25 PM »
This is from the unload script...

--Save Jog Rate % to .ini
local valJogRate = scr.GetProperty("droJogRate", "Value")
mc.mcProfileWriteString(inst, "Preferences", "JogRate", valJogRate)

Doesn't seem to work though. 

13
Mach4 General Discussion / Re: Jog Rate lost each shutdown
« on: July 31, 2021, 04:54:48 PM »
I am using Mach 4 Version 4.2.0.43222    Build 4322.  The profile is AvidCNC. 

In the machine.ini file, there is a variable on a line by itself:

JogRate=20.000000

Whatever I set that value to using Notepad, loads when I start Mach 4.   BUt if I change it in Mach 4, it is not ever saved.  I know it had to have saved a value at one point because it was set to something like 3 (not sure why).

Also, I am using an ESS  (WARP 9 - Build 253).

Thanks for the help!

Tony

14
Mach4 General Discussion / Jog Rate lost each shutdown
« on: July 29, 2021, 11:51:01 PM »
I asked about this a while back, but I don't think I got any replies.  Mach 4 doesn't save my current jog rate.  I can manually change it in the ini file and that works.  Am I doing something wrong?

Not a big deal, but just something I'd like to fix if possible. 

I am using the Avid screenset.  Mach 4.  Nothing unique. 

Thanks for the help.

Tony

15
Mach4 General Discussion / Default Jog Speed/Rate Value?
« on: September 17, 2020, 04:31:54 PM »
I'm using the Avid CNC setup on one of their Standard machines. 

I'd like to have the Jog rate set at around 35 or so as my default.  I have been searching all around trying to find how that is set.  I saw on the screen close script, there is a save to the Machine.ini file. But for some reason, that doesn't always save the current setting.  I manually changed the value in the ini file and that works, but if I change the rate on the screen, then close, it doesn't get saved.  Any ideas?  Thanks!

Tony

16
Mach4 General Discussion / Re: Cycle Time Display
« on: May 19, 2020, 10:10:39 PM »
Thanks.  My script looks the same.  On my system, when the Gcode is finished, it is rewound and the cycle time is changed to 00:00:00.0.

 I played around with it today.  What I ended up doing is a little crude, but it is working.  In the PLC script, I check to see if the MachEnable variable has changed value.  I added a text box called TonyTime.  If the MachEnable is 1 and the value of the CycleTime label is NOT 00.:00:00.0, then I set the  Label of TonyTime to the same as the CycleTime Label value (I use a variable).  I then added a button that resets TonyTime to 00...   Seems to work. 

I looked at my Gcode files.  I use Vcarve Pro, btw.  There is an M30 at the end which I think does the End and rewind? 

Sorry, I don't have the code on this PC.  Its on the laptop in the shop.   



Tony

17
Mach4 General Discussion / Cycle Time Display
« on: May 18, 2020, 11:29:56 PM »
I'm using the Avid set...  There is a text box that displays the cycle time.  I managed to find the function in the PLC script that sets the value there if the machEnabled variable is 1.  My issue is that I want to see the cycle time when after the G code is complete, but the value is set to zero before I can see it.  The script only changes the value is the machine is enabled.  I can't figure out how the value gets changed back to zero?  The text box has an event set "On Update Script," but I'm not sure what that means and I can't find it mentioned anywhere. 

If I can figure this out, I may have a text box display the last cycle time and a double click event to clear it to zero or something like that. 

I wish there was some better documentation of this stuff.  I have searched and looked at the help file before I bothered asking.  I appreciate the help.

Any ideas? 

Tony

18
Mach4 General Discussion / Thanks again....
« on: February 17, 2020, 10:51:18 PM »
Thanks for the link to your Signals tutorial Craig.  Appreciate the link and the effort.  And thanks for the info on "Enable with machine" swifty.  I have all my scripts running now.  Oh what a feeling!

I found myself repeating code, so I'm now reading up on functions.

Tony

19
Mach4 General Discussion / This seems to work...
« on: February 13, 2020, 02:35:54 PM »
Looks like when the machine coords signal is changed, the toggle button and dro's are toggled as well.  So I think this will do what I want.  It seems to work.  How exciting!

Code: [Select]
--attempt to check state of machine coords and change to machine coords if they are not
--already 1=true = machine  0 = false = work

local inst = mc.mcGetInstance()
local hsig = mc.mcSignalGetHandle(inst, mc.OSIG_MACHINE_CORD)
local sig = mc.mcSignalGetState(hsig)

if (sig == 0) then
mc.mcSignalSetState(hsig,1)
end

20
Mach4 General Discussion / Toggle Machine Coordinates from a script
« on: February 13, 2020, 01:06:10 PM »
Sorry to keep asking...the lack of documentation makes this stuff pretty frustrating.  I really appreciate your help!  Thank you!

So, I've been doing a lot of digging, but not found a solution.  I want to make sure I am in in Machine Coordinates modes and that the DRO's display machine coords before I start a procedure.  I can check the state using OSIG_MACHINE_CORD and that works.  But how to toggle the,m if they are on Work Coordinates?  Back to my VB days, I thought I'd just click the button but I read that is not a good method and I couldn't get it to work. 

In my playing, I found that the Machine Coordinates On action doesn't work?  Off works and Toggle works, but On doesn't.  Wasn't sure how to do that from the script anyway. 

Any ideas?  Do I need to change the signal?  Will that toggle the screen DRO's and button?  I haven't tried that sort of thing yet.

Tony

Pages: « 1 2 3 »