Hello Guest it is April 26, 2024, 04:04:19 AM

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 - stirling

861
VB and the development of wizards / Re: Button/VB script
« on: February 21, 2013, 12:31:34 PM »
well as a quick and dirty you could change the file spec filter to  *.t??
which would list all files with a 3 letter extension where the first letter is t

I fear that when Mach4 arrives I will have to fold up shop. It is far more complex than the simple CB is.

care to expand? what's the plan for scripting?

Ian

862
VB and the development of wizards / Re: Button/VB script
« on: February 21, 2013, 11:29:19 AM »
Terry - loose the line...

Code: [Select]
DlgFunc = 1  ' Keep dialog active

and change your case 2 code to ...

Code: [Select]
If controlID = "OK" Then
  LoadFIle("c:\Mach3\Gcode\" &DlgText("List1"))
End If

Ian

863
Fair enough Dan.

BTW - if you don't mind me asking - did you build your RS485 yourself or is it out of a box?

Ian

864
Ah... yes, Mach thinks there are no home switches. But I can't use this as I am doing Button(22) or Button(24), for X and Z respectively, AFTER I get a confirmation signal from the drives. So the buttons above set the Machine DROs to zero and the standard Mach3 LEDs for homing are lit.

Dan

I'll go a bit slower....  ;D

OK so you don't use the STANDARD ref all home button - it doesn't matter - just go with me on this for a second...

At the moment - you tell the drives to home an axis (pick an axis - any axis) and as you say, AFTER they're homed you then you do a doButton(22) or (24) which puts Mach in the "home" state. yes?

What does it matter whether you tell Mach AFTER or BEFORE? All you're doing is getting the physical hardware and Mach to be singing off the same hymn sheet. i.e. when your machine's homed Mach is "homed" - who cares which one did it first as long as they both are "homed"?

Sorry if I'm missing something but it all seems dead simple to me  ;D

Ian

865
General Mach Discussion / Re: G31 issue
« on: February 20, 2013, 10:47:14 AM »
Well my response above was based on what you said in your first post. In that context then yes - we are talking about the same thing - simply - can G31 issued from within a macro sometimes keep going even though it's tripped - again my answer is yes.

You've moved the goalposts by giving more info in your second post. Now you're saying why does G31 from a macro run perfectly from two machines but not from a third - that I don't know.

In answer to your last question - has anything transpired since 2007 - loads - has it absolutely, unequivocally made G31 100% reliable? - I'd say maybe/maybe not - others may not agree.

Ian

866
VB and the development of wizards / Re: Button/VB script
« on: February 20, 2013, 10:15:18 AM »
Just popup your own file open/save dialog from CB then you can do what you like with it

I described how to do it here (but note this only works on XP)

www.machsupport.com/forum/index.php/topic,19852.0.html

Then you'd just call the loadfile, runfile combo.

Note: at the end of that thread a kind soul came along afterwards and suggested a way that he says works on any windoze version.

Ian

867
Hi Dan

We are talking to 2 slaves with the plugin Modbus at the moment with no issues, Using a RS232 to RS485 interface.
Err yes - that's what I said. ;D

I am using User LEDs only to command the start of homing to the drives. You are not allowed to change standard LED's state at will so User LEDs were the way to go.
Err - yes again - I understand that. ;D

But consider this: What happens on a STANDARD Mach setup that DOESN'T have home switches when you hit the STANDARD Ref All Home Button?

Because you home in the driver doesn't that mean that as far as Mach is concerned it DOESN'T have home switches?

And therefore....?

Ian


868
FWIW I delved into the non-plugin vs plugin thing here www.machsupport.com/forum/index.php/topic,20234.0.html

I came away with the view that as written, the plugin version has the ability to address more than one RS232 slave without needing an RS485 interface (Port/Address on the setup screen you've just posted) whereas the non-plugin version is limited to just ONE RS232 and so you'd absolutely need RS485 to address more than one slave (ignoring the creative use of diodes for short distances).

I wanted to do this because my THC uses modbus and I wanted it to be able to sit along side any other modbus devices the user might already have (a pendant for example) without needing RS485.

All sounds great but there's just one problem... Mach doesn't have the ability to use that multiple RS232 functionality provided by the plugin..... or at least that's how I understood it ;D

That said - I may be barking up the wrong tree - but the problem here seems to spring from the use of USER LEDs that are used by another process (i.e. the wizards in this case). Couldn't you just stick with the system you have but use the standard system homed LEDs instead of USER LEDs?

Ian

869
General Mach Discussion / Re: G31 issue
« on: February 20, 2013, 06:13:16 AM »
rrc1962 - LOL - tell me about it  - why do you think www.machsupport.com/forum/index.php/topic,4352.0.html is 18 pages long?  ;D

Ian