Hello Guest it is March 28, 2024, 09:09:48 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

1261
I think we have an answer then Dave. The macropump works just fine, the sendserial command works just fine. Calling "message" 10 times/sec works fine BUT calling sendserial 10 times / sec is killing your system.

Just for fun try this in the macropump

Code: [Select]
cnt=getVar(1000)
if cnt=10 then
  setVar(1000, 0)
  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")
else
  setVar(1000, cnt+1)
end if

and then jog or run a part program

If this runs OK then it will update your LCD just ONCE a second instead of 10 times / sec. Not a lot of use to you perhaps but it should at least confirm the problem.

1262
ok so now change your macropump code from

Code: [Select]
message rnd(10)
to

Code: [Select]
sendserial rnd(10)
You should see your LCD fill with constantly changing random numbers - yes?

1263
ok - so an empty macropump.m1s with the macropump switched on allows Mach to function.
Also, with the macropump switched off the sendserial command works from the vb editor.

so try this in the editor first.

Code: [Select]
message "hello"
You should see hello on the status line of Mach.

then if that worked try

Code: [Select]
message rnd(10)
in the macropump - you should see random numbers on Mach's status line.


1264
Possibly try a simpler macropump example?

Can't think of a simpler one than an empty one  ;D

You did try the empty one yes?

Ian

1265
OK, so now save an empty macropump.m1s and turn the macropump back on - what happens?

1266
arf - thanks Dave - sorry - thought you may have had other things in there as well.

OK - let's try a few thangs. First we'll test sendserial.

switch off your macropump. From what you said above - Mach should now work ok - yes?
open vb editor - paste macropump code - run code in editor - does it come out on your LCD? is Mach still OK?

1267
Dave can you post your macropump.m1s please?

Ian

1268
Addressing all the posts from reply #24 onwards, all I can say is that both Terry's code and mine are both simply sending control strings down the serial port to the LCD hardware. Both are correct and SHOULD work as far as the LCD display hardware manual states.

Whether the macropump and the SendSerial command are actually doing what it says on the tin REGULARLY and RELIABLY is open to question. I think Terry is probably broadly correct in saying you just can't rely on either to behave as advertised.

I know when I built my own (programable) THC and software I had to work around SendSerial's faults and also when I wrote my probing routines I had to code around G31's faults - it's horses for courses I guess.

Ian

1269
The motors say Deepgroove 3.3 v,2.8 amp, 1.8 deg. , 280 oz.
[Rant] I really wish sellers wouldn't do this - I doubt very much that deepgroove make their own motors and if they're going to publish anything then at least publish the FULL specs.[/Rant]

1270
General Mach Discussion / Re: DC-03 DigiSpeed GX V3
« on: July 08, 2011, 07:23:05 AM »
generlsocial - as Tweakie said, you ressurected a pretty old thread here so I've split it out and given you your own. Welcome BTW.