Hello Guest it is March 28, 2024, 07:09:27 AM

Author Topic: How to use the macros£¿£¿  (Read 3745 times)

0 Members and 1 Guest are viewing this topic.

How to use the macros£¿£¿
« on: August 11, 2008, 11:58:00 AM »
In the macros, how to shield the Cycle Start £¿
In the macros, how to set up regularly interrupted£¿
In the macros, what functions can be applied£¿
What is the meaning of this function ¡°IsMoving()¡±£¿

Thanks!
Edison
Edison

Offline jimpinder

*
  •  1,232 1,232
  • Wakefield, West Yorks, UK
    • View Profile
Re: How to use the macros£¿£¿
« Reply #1 on: August 11, 2008, 12:50:07 PM »
Edison - You appear to have some (to us) special characters on your keyboard which make your message a little difficult to understand.

However -

Your first two queries I do not understand - how to "shield" cycle start
and how to set up "regularly interrupted"

In the macros, you can write any function. The Macros are in Visual Basic and there is a link with Mach 3, so many of the functions performed by Mach 3 can be recalled in Visual Basic. There is a list.

"Is moving" means If an Axis is moving - and the full instruction  "Whilst Is moving" and  "Wend" - means while an axis is moving wait until it has finished, then move on to the next line.

If you can expian your first queries, we will try and sort them out.
Not me driving the engine - I'm better looking.
Re: How to use the macros£¿£¿
« Reply #2 on: August 12, 2008, 07:31:01 AM »
Oh£¬I'm sorry  brought you troubles, my English is very bad. Hoped that you can be able to understand¡£  o(¡É_¡É)o

1¡¢If Auto Tool Changer is checked then the M6Start/M6End macros will be called but Cycle Start does not need to be pressed at any stage, I want to let the Cycle Start invalid¡£

2¡¢How to use Timer interruption in the macros??

3¡¢The mach3 have some possession  function.   e.g. GetSelectedTool()  ,SetCurrentTool().  Can you introduce more??

Thanks!
Edison
Edison

Offline Chaoticone

*
  • *
  •  5,624 5,624
  • Precision Chaos
    • View Profile
Re: How to use the macros£¿£¿
« Reply #3 on: August 12, 2008, 09:26:00 AM »
Edison, have a look at the wiki. Support tab at the top of this page, Mach Wiki. You will find list of all things you need there I'm pretty sure.

Brett
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: How to use the macros£¿£¿
« Reply #4 on: August 12, 2008, 10:35:41 AM »
Not 100% sure what you are asking but I will try and reply

1. You can choose to wait for a start after a toolchange, the options are on the general config page.

2. If you put the following in your macro the macro will halt for 4 seconds before continuing to the next line.
  Code "G4P4"
  While IsMoving()
  Wend

3, As Brett has said the wiki may help, also looking through other macros will let you see others.

Hood
« Last Edit: August 12, 2008, 10:53:30 AM by Hood »
Re: How to use the macros£¿£¿
« Reply #5 on: August 12, 2008, 10:50:15 AM »
I see, Thanks!
Edison