I almost found the answer to my question in this 2022 topic, but I’m missing the “almost” to make sure I do it correctly.
My question is, if (in console window) I send the command $1=255, will the steppers be locked until they receive a new command to unlock or will they only be locked for 255ms?
What I intend is to keep the axes stable on my laser diode while focusing the laser, or doing any other type of operation that could accidentally change the position of the laser.
This way, even if I accidentally touch the laser head, it doesn’t move out of position.
Português:
Obrigado pelo esclarecimento mas, ou não percebi a tua resposta ou não fui claro na minha pergunta.
Como és Portugues, talvez em portugues me faça entender melhor.
Imagina a situação, a gravar azulejo ou uma tela de “grandes dimensões” 300x300mm que é mais ou menos a area disponível da mesa de trabalho, preciso trocar a peça e para isso tenho de levantar o modulo laser, trocar uma peça por outra e voltar a focar o laser. Para focar o laser tenho um calibre que coloco na superfície a gravar encosto o modulo ao calibre e depois retiro-o.
É antes de iniciar todo este processo que pretendo travar os motores.
Agora outras duas questões que surgem.
1 - Criar uma “macro” para bloquear os motores achas que resolve o problema de não perder a posição?
2 - No final da operação tenho de “destravar” os motores ou ao enviar o próximo trabalho eles desbloqueiam automaticamente?
Espero estar a fazer-me entender.
English:
Thank you for the clarification, but either I didn’t understand your answer or I wasn’t clear in my question.
As you are Portuguese, perhaps in Portuguese you will make me understand better.
Imagine the situation, engraving tiles or a “large” 300x300mm screen which is more or less the available area of the work table, I need to change the piece and to do this I have to lift the laser module, exchange one piece for another and return to focus the laser. To focus the laser I have a gauge that I place on the surface to be engraved, place the module on the gauge and then remove it.
It is before starting this whole process that I intend to brake the engines.
Now two other questions that arise.
1 - Creating a “macro” to brake the engines, do you think it solves the problem of not losing position?
2 - At the end of the operation I have to “unlock” the motors or when sending the next job they will unlock automatically.
Há soluções alternativas, como por exemplo podes usar posições absolutas e fazer um batente onde os azulejos sempre enconstam.
Antes de cada gravação fazes home (que podes por nas Start Gcode)
Contudo, se apenas tens de levantar o modulo - manualmenet para teres espaço para mudar o azulejo, podes certamente manter $1=255.
A unica desvantagem é que não podes mover o x ou y manualmente tem de ser sempre pelos botões ou teclado.
E a fazer esta solução o $1 fica sempre 255.
Eu pessoalmente prefiro aprimeira solução, mas ambas funcionam.
Sim, ambas a soluções são viaveis, em alguns casos eu fiz gabaritos mas noutros casos dava-me mais jeito apenas levantar o modulo laser e voltar a focar.
tenho mais uma duvida mas vai ficar para depois que tenho de voltar ao trabalho.
Português:
Eu tinha uma dúvida mas depois de ler uma segunda vez já entendi.
Resumo: Pode-se bloquear os motores alterando o parâmetro $1 para 255, mas esta opção deixa sempre os motores travados quando as máquina está parada em stand-by. Além disso impede a possibilidade de arrastar manualmente a cabeça do laser para onde der mais jeito como estamos habituados nas maquinas laser. (Podendo ser feito, mas apenas através das setas de comando no LightBurn.)
Criar uma “Macro” para travar os motores temporariamente “implica” criar outra “Macro” para os destravar para manter a possibilidade de arrastar a cabeça do laser manualmente.
Aparte disto existem outras alternativas para garantir a posição da cabeça do laser.
English:
I had a doubt but after reading it a second time I understood.
Summary: You can lock the steppers by changing parameter $1 to 255, but this option always leaves the steppers locked when the machine is stopped in stand-by. Furthermore, it inhibits the possibility of manually dragging the laser head wherever is most convenient, as we are used to do in laser machines. (It can be done, but only through the command arrows in LightBurn.)
Creating a “Macro” to temporarily lock the motors “implies” creating another “Macro” to unlock them to maintain the possibility of dragging the laser head manually.
Apart from this, there are other alternatives to guarantee the position of the laser head.