Hello Guest it is March 28, 2024, 07:49:14 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 - stirling

1271
According to the downloads page the latest LOCKDOWN is R3.043.022 so that's really the latest anyone should be using if they want the best available stability.

I suspect the problems are related to the SendSerial command rather than the macropump per se but let's see. (I've had problems with SendSerial before - it really is rather p*ss poor  ;D

There's really no difference between Terry's earlier version and mine except mine attempts to split things into the three parts needed for (semi)minimal use of the serial line and the macropump. i.e. that which only needs to sent once only - the cursor off command cos that's stored by the card in EEPROM. That which needs to be sent once at the beginning of each Mach session - the display size and the X,Y,Z and A labels. And finally that which needs to be sent continually - i.e the actual changing values.

Terry's get's the positioning right by padding and using line-wrap wheras mine positions the cursor appropriately and then sends the DRO values.

Anyway - let's see if we can figure out if this is a macropump issue or a SendSerial issue.

If you're using my version then just replace the macropump code I posted above in reply #16 with this:

Code: [Select]
message _
"X: " & Format (Getdro(0) , "+000.0000;-000.0000") & " " & _
"Y: " & Format (Getdro(1) , "+000.0000;-000.0000") & " " & _
"Z: " & Format (Getdro(2) , "+000.0000;-000.0000") & " " & _
"A: " & Format (Getdro(3) , "+000.0000;-000.0000")


This will display the same DRO info on Mach's status bar instead of sending it down the serial pipe.

If that works - which it does for me on the latest LOCKDOWN then we'll cast our suspicious eyes back at SendSerial.

Cheers

Ian

1272
Thanks for trying it Dave. Terry et al did a good job but I just wondered if it could be optimized for your macropump issues.

Ian

1273
my mistake in the macropump code - try this:

Code: [Select]
SendSerial _
"?x03?y0" & Format (Getdro(0) , "+000.0000;-000.0000") & _
"?x03?y1" & Format (Getdro(1) , "+000.0000;-000.0000") & _
"?x03?y2" & Format (Getdro(2) , "+000.0000;-000.0000") & _
"?x03?y3" & Format (Getdro(3) , "+000.0000;-000.0000")
Ian

1274
Tried it on my "design" PC and the script editor had no affect with SendSerial "?c0", possibly this is due to using a serial to USB converter?
Hmmmmm - shouldn't be.... try just sending "hello" or similar - what happens then? (You are pressing the VB editor run arrow yes? sorry - just checking.

EDIT, Ian, in the init string, do I put the M in for macro, or just the number I save it as? I'm getting a compiling/syntax error when starting up mach and it says there's an error in the Macro. Also, do I seperate with a comma in the init string?
say you saved it as M666.m1s then you'd just put M666 in the init string separated from whatever else is there by a space - no comma. Sounds like Mach is complaining about the syntax of the content of the macro though. Run it in the editor first to check for syntax errors - single step if needs be.

Ian

1275
Hi Dave - Should be able to yes. I do it all the time with another piece of serial hardware.

Ian

1276
Hi Piet - I think you may misunderstand me. You can use homing for your touch plate on one input and probing on another input. That way you can set one active low and the other active high then there's no need to switch the active state.

Ian

1277
Don't have one of these (yet) but I'd be interested if one of you could try this: Open the vb editor in Mach and enter:

SendSerial "?c0"

and run it. No need to save the file as this needs only be run once and should set the cursor off and as Dave said, it'll store it in EEPROM.

Then enter this in the VB editor and run it and save it as M???.m1s (choose a free number). This macro should then be named in Mach's initialization string on the general config page so that it's run at the start of each Mach session.      

SendSerial "?G420?f?x00?y0X:?x00?y1Y:?x00?y2Z:?x00?y3A:"

This will set the display to 4x20, clear the screen and display the labels for X:Y:Z: and A:

Then put the following in the macropump.

SendSerial _
"?x03?y0" & Format (Getdro(0) , "+000.0000;-000.0000")" &_
"?x03?y1" & Format (Getdro(1) , "+000.0000;-000.0000")" &_
"?x03?y2" & Format (Getdro(2) , "+000.0000;-000.0000")" &_
"?x03?y3" & Format (Getdro(3) , "+000.0000;-000.0000")"

This should send the DRO values positioned at the right places without the need to continually send the labels and all those padding spaces at the end.

This should reduce the load on the macropump a tad by not sending unneccessary info every time.

Like I say - I don't have one of these to try it out so the above may or may not work.

Cheers

Ian

1278
an alternative is to use homing for your touch plate. There are a couple of ways you could do this depending on whether you already home Z up or not.

Ian

1279
good documentation of your system appears to be hard to find, but from some posts over on the zone I'm getting the feeling that the 24V PS is too low. It appears the xylotex board can handle up to 35V but of course without proper motor and machine specs it's impossible to work out your "ideal" voltage. Certainly it appears that the later systems from deepgroove use a Gecko G540 with a 48V supply with apparently the same motors - Hmmmmm. seems to me it's not what's correct but what's available is the main design criteria here.

Any info/label on the motors?

Ian