Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
May 25, 2012, 03:28:01 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
VB and the development of wizards
MacroPump Doesnt Run
Pages:
1
2
»
Go Down
« previous
next »
Author
Topic: MacroPump Doesnt Run (Read 1464 times)
0 Members and 1 Guest are viewing this topic.
M250cnc
Active Member
Offline
Posts: 591
MacroPump Doesnt Run
«
on:
January 14, 2010, 11:33:40 AM »
I have it named MacroPump.1ms
I have the use macro pump box ticked on the Config General Config page
It runs correctly if i open it with the Mach VB script editor
Anyone have any ideas what's wrong ?
Phil
Logged
The Good Thing About Mach3, Is It's very Configurable
The Bad Thing About Mach3, Is It's Too Configurable
zealous
Active Member
Offline
Posts: 486
Re: MacroPump Doesnt Run
«
Reply #1 on:
January 14, 2010, 08:37:22 PM »
Make sure it is the same folder as your profile name:
If you load "myprofile" it will be in:
C:\Mach3\macros\myprofile\macropump.m1s
Also you have to restart Mach after checking the macropump box.
«
Last Edit: January 14, 2010, 08:43:27 PM by zealous
»
Logged
Regards, Jason Blake
www.Fusioncnc.com
M250cnc
Active Member
Offline
Posts: 591
Re: MacroPump Doesnt Run
«
Reply #2 on:
January 15, 2010, 05:38:38 AM »
Thanks Jason
It is in the profile folder, & Mach has been restarted.
Is there any other way of checking that its working other than what it is supposed to do ?
Phil
Logged
The Good Thing About Mach3, Is It's very Configurable
The Bad Thing About Mach3, Is It's Too Configurable
zealous
Active Member
Offline
Posts: 486
Re: MacroPump Doesnt Run
«
Reply #3 on:
January 15, 2010, 10:57:40 AM »
Put this in the Macropump to check:
Code:
i=i+1
message "Macro Running #"&i
it will show you in Mach’s statues line how many times the macro has ran.
«
Last Edit: January 15, 2010, 10:59:40 AM by zealous
»
Logged
Regards, Jason Blake
www.Fusioncnc.com
M250cnc
Active Member
Offline
Posts: 591
Re: MacroPump Doesnt Run
«
Reply #4 on:
January 15, 2010, 12:01:08 PM »
Thanks Jason,
It does run.
It just doesn't like my macro, there are only 4 lines.
If(GetLED(801)=1)Then
DOOEMBUTTON (1021)
MESSAGE " Went Into Inch Mode"
end if
No laughing.
Phil
Logged
The Good Thing About Mach3, Is It's very Configurable
The Bad Thing About Mach3, Is It's Too Configurable
zealous
Active Member
Offline
Posts: 486
Re: MacroPump Doesnt Run
«
Reply #5 on:
January 15, 2010, 12:21:01 PM »
You'll need to use "GetOEMLED"... but more important use "True/False":
Code:
Dim Inch_LED_boolean As Boolean
Dim Inch_LED_interger As Integer
Inch_LED_boolean = GetOEMLED(801)
Inch_LED_interger = GetOEMLED(801)
MsgBox "boolan "&Inch_LED_boolean
MsgBox "Number "&Inch_LED_interger
'Number way
If(Inch_LED_interger = -1)Then
MsgBox "Number lookup"
End If
'Boolean way
If(Inch_LED_boolean = True)Then
MsgBox "boolean lookup"
End If
'Boolean way with out ==
If(Inch_LED_boolean)Then
End If
'Boolean way with out ==
If Not(Inch_LED_boolean)Then
End If
«
Last Edit: January 15, 2010, 12:23:08 PM by zealous
»
Logged
Regards, Jason Blake
www.Fusioncnc.com
M250cnc
Active Member
Offline
Posts: 591
Re: MacroPump Doesnt Run
«
Reply #6 on:
January 16, 2010, 05:29:25 PM »
Jason,
Thanks i got the macropump to work, but now it resets itself and just leaves my message i want it to stay in reset mode.
Obviously VB scripting is not an area where i excel, do i need an else somehow
Phil
Logged
The Good Thing About Mach3, Is It's very Configurable
The Bad Thing About Mach3, Is It's Too Configurable
zealous
Active Member
Offline
Posts: 486
Re: MacroPump Doesnt Run
«
Reply #7 on:
January 16, 2010, 05:47:17 PM »
Great,
You can put a sleep in there to clear the message.
Code:
Dim Inch_LED_boolean As Boolean
Inch_LED_boolean = GetOEMLED(801)
If(Inch_LED_boolean = True)Then
MESSAGE " Went Into Inch Mode"
Sleep(2000)'2 seconds
MESSAGE ""
End If
...you might want to use a userlabel or ticker as well as well.
In Screen4 you'll want to drop a Userlabel or ticker:
Code:
SetUserLabel 12, "You must enter a whole number of holes"
SetTicker 205, "This is a very long error message because you seem to have done something very silly"
«
Last Edit: January 16, 2010, 05:52:41 PM by zealous
»
Logged
Regards, Jason Blake
www.Fusioncnc.com
M250cnc
Active Member
Offline
Posts: 591
Re: MacroPump Doesnt Run
«
Reply #8 on:
January 17, 2010, 11:57:26 AM »
Hi Jason,
Thanks for your patience in helping this dummy.
I want the message to stay i just want the event once its happened to leave the machine disabled until i reset the machine.
Is that possible.?
Phil
Logged
The Good Thing About Mach3, Is It's very Configurable
The Bad Thing About Mach3, Is It's Too Configurable
zealous
Active Member
Offline
Posts: 486
Re: MacroPump Doesnt Run
«
Reply #9 on:
January 17, 2010, 01:50:06 PM »
Hi Phil,
Let me get a better idea of sequence of events.
If the machine goes into Inch mode, no matter what it is doing Estop(reset) the system, send a message about being in Inch mode and wait for a "reset" before removing the message?
Are you using the VB popup message display or the Mach label message display?
Jason
Logged
Regards, Jason Blake
www.Fusioncnc.com
Pages:
1
2
»
Go Up
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP Motion Controller
=> HiCON Motion Controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...