M100 à M199 Commandes définies par l’utilisateur

More
14 Nov 2012 14:36 - 14 Nov 2012 14:37 #26573 by finemeca
Bonjour à tous,

Je souhaiterai utiliser une commandes définies par l’utilisateur pour forcer le retour à l'origine machine dans un programme pour m'assurer qu'il n'y a pas de perde de pas.

J'ai fait un M101 et placé celui-ci dans nc_files
!/bin/bash
# lance prise d'origine X
net home-x halui.joint.0.home 
exit 0

Mais ça ne fonctionne pas ???

Bonne journée

Pierre
www.finemeca.be
Last edit: 14 Nov 2012 14:37 by finemeca.

Please Log in or Create an account to join the conversation.

More
14 Nov 2012 22:47 - 16 Nov 2012 00:27 #26581 by ArcEye

Bonjour à tous,

Je souhaiterai utiliser une commandes définies par l’utilisateur pour forcer le retour à l'origine machine dans un programme pour m'assurer qu'il n'y a pas de perde de pas.

J'ai fait un M101 et placé celui-ci dans nc_files
!/bin/bash
# lance prise d'origine X
net home-x halui.joint.0.home 
exit 0

Mais ça ne fonctionne pas ???


Salut
Ignorant si votre commande net permettra d'atteindre ce que vous voulez
(Ignoring whether your net command will achieve what you want)
#!/bin/bash
halcmd net home-x halui.joint.0.home
exit 0

Si vous rencontrez des problèmes avec la position, vous avez besoin de regarder pourquoi il en est, a perdu des pas etc

Si vous souhaitez simplement revenir à zéro machine G53 X0 serait beaucoup plus simple

regards

(If this does not make sense put it back through babel fish!)
Last edit: 16 Nov 2012 00:27 by ArcEye.
The following user(s) said Thank You: finemeca

Please Log in or Create an account to join the conversation.

More
15 Nov 2012 05:19 - 15 Nov 2012 05:20 #26596 by finemeca
Bonsoir,

Si vous rencontrez des problèmes avec la position, vous avez besoin de regarder pourquoi il en est, a perdu des pas etc


C'est pour un tour traditionnel que j'ai numérisé.
Le chariot est à queue d'aronde et je ne sais pas le modifier.
Lorsque je fais une série de passe, j'ai quelques /100ème de mm de tolérance.

J'essaie demain et je vous tiens informé

Pierre
www.finemeca.be
Last edit: 15 Nov 2012 05:20 by finemeca.

Please Log in or Create an account to join the conversation.

More
15 Nov 2012 21:41 #26621 by andypugh

#!/bin/bash
halcmd net home-x halui.joint.0.home
exit 0

#!/bin/bash
setp  halui.joint.0.home 1
exit 0

Might be closer to what you want.
The following user(s) said Thank You: finemeca

Please Log in or Create an account to join the conversation.

More
15 Nov 2012 22:32 #26628 by finemeca
Hello,

Unfortunately, it does not work.
no movement

Pierre
www.finemeca.be

Please Log in or Create an account to join the conversation.

More
15 Nov 2012 22:34 #26629 by finemeca
Pour le G53,
J'ai essayé en bloquant volontairement l'axe et G53 s'arrête avant le switch.

Pierre
www.finemeca.be

Please Log in or Create an account to join the conversation.

More
16 Nov 2012 01:42 - 16 Nov 2012 01:44 #26637 by ArcEye
Apologies I will just have to reply in English and leave you to use a translator.

#!/bin/bash
halcmd net home-x halui.joint.0.home
exit 0

#!/bin/bash
setp  halui.joint.0.home 1
exit 0

Might be closer to what you want.


I did say

Ignoring whether your net command will achieve what you want

and actually it will need to be
#!/bin/bash
halcmd setp  halui.joint.0.home 1
exit 0

but even so it will not work.

The problem is that you cannot home in Auto or MDI mode, you have to be in Manual mode.
If you run this code it will do nothing and give you an error ".. cant do that (EMC_AXIS_HOME) in auto mode with the interpretor waiting..."

The root of your problem seems to be that you are losing position.
You need to address this, not find a way of re-homing part way through the program, by which time you have presumably either over or under cut the workpiece.

If you have a stepper machine, you need to tune it so that it can produce the pulses required for the commanded moves without losing steps
wiki.linuxcnc.org/cgi-bin/wiki.pl Configuring Linuxcnc is the place to start.

regards
Last edit: 16 Nov 2012 01:44 by ArcEye.

Please Log in or Create an account to join the conversation.

Moderators: darty367
Time to create page: 1.151 seconds
Powered by Kunena Forum