Hello Guest it is May 10, 2024, 11:40:05 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 - moorea21

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »
181
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 07:43:40 PM »
okay, thanks. And merry christmas to you! I'm following another thread on the same subject, I'll cut n paste the code suggested by someone there, for anyone following this thread to see:-

Sub run101()
While IsMoving()
  Sleep 10
Wend

   Code “G1 A2.5”
   Code “G1 A0”
   Code “G1 A1.7”
end sub

G01 X2 Y0 run101
G01 X9 run101
G01 X14 run101
G01 X15 Y5 run101
G01 X0  Y4 run101
G01 X1 run101

Thanks 5ms for that.

Does this look right? Syntax wise?

Thanks,

Rich

182
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 04:55:00 PM »
Erm...
not heard of gcode sub program. Can you direct me to any documentation on that? The documentation doesn't have a search facility. Thanks

183
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 04:16:34 PM »
Not familiar with brains... I like the idea of something much faster than a macro, though.
The macro would be basically:-

While IsMoving()
   Wend
      Code G01 A2.5
      Code G01 A0
      Code G01 A1.7

That's all...

184
VB and the development of wizards / Re: macros, Is this the way to do it?
« on: December 24, 2010, 04:07:13 PM »
Not heard of a gcode subroutine; would that allow, for instance, 2 commands for an axis on the same line?

185
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 04:03:27 PM »
Re "The basic VB loop only cycles at 10 cycles per sec"... does that mean you only have 1/10th of a second to execute the whole macro?

186
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 03:57:30 PM »
Re my last post : - I'm assuming when you say 'NOTE using a macro there is NO garranty that all the calls will stay in synced" you mean that they could be executed in the wrong order? Could the problem be solved by adding

While IsMoving()
  Sleep 10
Wend

into the macro, so that the cpu is likely to be free, and no other axes would move at the same time, so no sych problems?

187
VB and the development of wizards / Re: macros, Is this the way to do it?
« on: December 24, 2010, 03:52:02 PM »
I guess so...! See a reply to my post about macro's not being executed in written order, though.

188
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 03:48:22 PM »
At the moment, the gcode runs at about that speed, with one command for the axis in question on each line. But there are god reasons to use a macro, related to file size... it's a bit more involved than that. The other alternative would be to use a supplementary output pin on my controller to trigger a picaxe microcontroller to perform the 3 positions thing.

I didn't know that macros might not be executed in the order they are written in.

Does anyone know a way around that?

189
VB and the development of wizards / Re: speed of execution of macro
« on: December 24, 2010, 11:50:21 AM »
The macro will move an axis to 3 different positions in sequence, at full speed.

190
VB and the development of wizards / speed of execution of macro
« on: December 24, 2010, 11:40:31 AM »
Hi,

As part of what I'm doing, it looks like I need to write a macro that I will call from Gcode quite often. maybe 40 times a second... ie one call on each line.

My question is, how long (in microseconds I guess) does it take to call, execute and exit from a macro? The macro will only be about 5 lines long.

Any ideas?

Thanks, Richard B

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 »