Hello Guest it is April 26, 2024, 11:52:54 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 - rrc1962

101
Mach4 General Discussion / Re: Getting the value of a text box
« on: May 24, 2016, 02:31:19 PM »
Turns out I was trying to get the value of a text box, which doesn't have a value property.  Switched to a DRO which does have a value property and added them to the Persistent DRO section of the PLC script.  It's all working great now.

102
Mach4 General Discussion / Stretching Images
« on: May 24, 2016, 12:39:31 PM »
Is there a way to set a static image so it won't stretch or resize with the screen?  A way to lock the aspect ratio would work also.  Anything to prevent the image from distorting.  I was kind of hoping for a "resized" event attached to the tab panel object, but don't see anything like that.

Thanks

103
Mach4 General Discussion / Re: Getting the value of a text box
« on: May 19, 2016, 11:01:53 PM »
Still can't get a value out of a text box, but I can read the value from the register.  This exercise was to read the text box value and write it to a file on close, then read it back from the file and populate the DRO text boxes.  Works just as well reading the values from the registers.

104
Mach4 General Discussion / Re: Persistent DRO's
« on: May 19, 2016, 10:58:36 PM »
I added scripts in screen load and unload to read data from a delimited text file on load and populate the text fields...and write data to the file on close.  It's working fine, but probably not the most elegant way around it.

105
Mach4 General Discussion / Re: Getting the value of a text box
« on: May 19, 2016, 06:44:28 PM »
Could it be a scope issue?  I have a value of 50 in the text box, yet nothing shows in message box.  I'm just firing this code with a button on the screen.  Spelling is correct.  I even copied and pasted the text box name into the script to be sure.

106
Mach4 General Discussion / Getting the value of a text box
« on: May 19, 2016, 04:19:15 PM »
I have a text box named 'Test1' with a description of 'Test Box 1'.  This is what I'm doing, but I get nothing even though I can see a value in the text box.

val = scr.GetProperty('Test1','Value')
wx.wxMessageBox(val)

It doesn't error, just returns a blank in the message box. What could be going wrong?   Thanks

107
Mach4 General Discussion / Re: Persistent DRO's
« on: May 19, 2016, 03:43:13 PM »
I posted this a while ago and since have got back to working with M4.  I notice when I add a register, I can set it as persistent.  Sometimes that works and sometimes changing it to persistent makes M4 crash.  The registers that are set to persistent, are persistent.  It's just when I go to change a red X to the green check on the few that are not, M3 crashes.

Any ideas?   Thanks

108
General Mach Discussion / Re: CV On Angles
« on: December 14, 2015, 01:47:12 PM »
Bump...Any idea's...Anyone?

109
General Mach Discussion / CV On Angles
« on: December 09, 2015, 06:53:33 PM »
Is there any way to toggle CV On Angles using VB code?  A function is not jumping right out at me.

Thanks

110
Mach4 General Discussion / Re: DRO for typing in feed rate
« on: May 29, 2015, 11:30:06 PM »
Yes.  Add a DRO, then write a script to write the DRO value to a # variable.  Use that variable in your gcode instead of a federate.   IE: F#5