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 28, 2012, 09:57:33 AM
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
execute a function with "input 1"
Pages:
«
1
2
Go Down
« previous
next »
Author
Topic: execute a function with "input 1" (Read 520 times)
0 Members and 2 Guests are viewing this topic.
ch_porchet
Active Member
Offline
Posts: 12
Re: execute a function with "input 1"
«
Reply #10 on:
January 12, 2012, 05:36:51 PM »
ok
so I can put what, remember the Z value at that time
«
Last Edit: January 12, 2012, 05:42:34 PM by ch_porchet
»
Logged
Tony Bullard
Active Member
Offline
Posts: 83
Re: execute a function with "input 1"
«
Reply #11 on:
January 13, 2012, 07:35:32 AM »
CH, I guess I have no idea of what you are trying to do. Can you tell us in detail what you want the machine to do it you could use G31? This is probably as clear as mud also.
Tony
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: execute a function with "input 1"
«
Reply #12 on:
January 13, 2012, 08:21:18 AM »
Tony, I think the issue here is that the OP's usb motion card doesn't support G31 which is sadly not a unique situation. Why hardware is released that doesn't fully function is a mystery to me but that's another topic I guess.
Anyway, I think the name of the game here is to try to "reproduce" G31's functionality via some other means - macro - gcode whatever. However, it's not something I think is really achievable. A lot depends on the accuracy of the "trip point" that the OP requires. You can get a "close-ish" approximation quite easilly with either a macro or gcode but it's not elegant and I very much doubt it's possible to get the "step perfect" trip point like a "proper" G31 does.
We've had many similar posts to this - I remember one quite recently involving Ajax cards inability to do G31 where the poster was trying to do exactly the same thing. He was advised to approach the hardware vendor and get it fixed - just like I've advised here.
Ian
Logged
Tony Bullard
Active Member
Offline
Posts: 83
Re: execute a function with "input 1"
«
Reply #13 on:
January 13, 2012, 09:39:35 AM »
Thanks Ian, I guess I can't help.
Tony
Logged
ch_porchet
Active Member
Offline
Posts: 12
Re: execute a function with "input 1"
«
Reply #14 on:
January 13, 2012, 10:20:51 AM »
hello
I know it's not practical, but I is not the choice
do you think it is possible to do that (input1) silk a maximum limit of Z
Logged
ch_porchet
Active Member
Offline
Posts: 12
Re: execute a function with "input 1"
«
Reply #15 on:
January 14, 2012, 03:46:10 AM »
So the question is
Is it possible to stop the Z-axis moving with "input1"
because "input1" maximum limit as Z is not terrible
«
Last Edit: January 14, 2012, 03:48:06 AM by ch_porchet
»
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: execute a function with "input 1"
«
Reply #16 on:
January 14, 2012, 05:32:48 AM »
does your system support G28.1?
Logged
ch_porchet
Active Member
Offline
Posts: 12
Re: execute a function with "input 1"
«
Reply #17 on:
January 14, 2012, 07:18:52 AM »
I think so, because the G31 is a matter of usb driver, while it's Gcode
Logged
stirling
Global Moderator
Offline
Posts: 1,190
UK
Re: execute a function with "input 1"
«
Reply #18 on:
January 14, 2012, 07:53:36 AM »
Well both G31 and G28.1 are usually IMPLEMENTED in the driver or external card but anyway read up on G28.1 - I think it will do what you want.
Logged
ch_porchet
Active Member
Offline
Posts: 12
Re: execute a function with "input 1"
«
Reply #19 on:
January 26, 2012, 02:08:48 AM »
hello
I arrived with this macro
Sorry I put the legend in french
'Lancement de la commande de probe rapide vers le bas
SetOEMDRO(1000, 2) ' Numéro de l'axe ou faire le probe (0=X, 1=Y, 2=Z)
SetOEMDRO(1001, -90) ' Course maxi (le signe indique le sens de déplacement)
SetOEMDRO(1002, 20) ' Feed rate
SetOEMDRO(1003, 9) ' Numéro de l'entré de plapage (1 à 16
SetOEMDRO(1004, 1) ' état de l'entrée attendu (0 ou 1)
NotifyPlugins(3000)
' Attente fin de probe descente
While (GetOEMDRO(1000) = 0)
Sleep(10)
Wend
'Si succès, lancement de probe lent ver le haut
If (GetOEMDRO(1000) = 1) Then
SetOEMDRO(1000, 2) ' Numéro de l'axe ou faire le probe (0=X, 1=Y, 2=Z)
SetOEMDRO(1001,+10) ' Remontée en Z
SetOEMDRO(1002, 1) ' Feed rate
SetOEMDRO(1003, 9) ' Numéro de l'entré de plapage (1 à 16
SetOEMDRO(1004, 0) ' Attente re-laché de l'entrée 9
NotifyPlugins(3000)
' Attente fin de probe
While (GetOEMDRO(1000) = 0)
Sleep(10)
Wend
If (GetOEMDRO(1000) = 1) Then
ZProbe = GetOEMDRO(1001) ' Lecture de la position de palpage
Z = GetOEMDRO(85) ' Lecture positionactuelle
HPalpeur = 30 ' Déclaration hauteur palpeur
Zero = Z - ZProbe + HPalpe ' Distance erreur liée à deceleration
SetDRO(2, Zero) ' Initialisation zero pièce
Sleep(100)
NewZPos = Zero + 10 ' dégagement 10mm au dessus du
capteur
Code "G0 Z"&NewZPos
While IsMoving()
Wend
Else
'Message ("Fin de probe avec erreur palpage lent")
End If
Else
'Message ("Fin de probe avec erreur palpage rapide")
End If
Logged
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...