s
e
+
#igure 4.4 - -te% %use 'ave"orm
-te% i" incorrecty 1
set Active &i
+
#igure 4., - 6rongy con"igured out%ut aters ste% 'ave"orm
and !ir signals Mach3 should be setup so these outputs are ,ctive Mo Ef this is not done
then the Dtep signal still goes up and do#n but the drive thin$s that the gaps bet#een the
pulses are the pulses and viceHversa and this often causes ver+ rough or unreliable
running of the motor The SinvertedS pulses are sho#n in figure /0
]
/03 4omo o passo e sinais de !ireo trabalham %!ir&
Mach3 envia um pulso de saCda %MIgica 5& para para cada passo Bue o ei>o tem Bue fa?er
,ntes disso foi enviado um impulso para estabelecer a !ireo
, forma de onda lIgica ser como mostrado na figura //
, diferena entre a pulsos ser menor Buanto maior a velocidade das etapas
!rives eletr^nicos normalmente usam para ativo o sinal bai>o
, configurao para a 7tapa e sinais de !ireo
Mach3 deve ser configurado para Bue estas saCdas esteAam ativas em bai>o
De isso no for feito, haver problemas de hard#are e cone>o de sua mBuina ferramenta pois
o sinal vai para cima e para bai>o, mas a unidade acha Bue as diferenas entre as pulsos so os
pulsos e viceHversa e isso muitas ve?es provoca erros muito grosseiros ou e>ecuo do motor
fica no confiavel
=s pulsos SinvertidoS so mostrados na figura /0
_
4.. ;imit and &ome s'itches
4.6.1 1trategies
-imit switches are used to prevent an+ linear
a>is moving too far and so causing damage to
the structure of the machine `ou can run a
machine #ithout them but the slightest mista$e
setting up can cause a lot of e>pensive
damage
,n a>is ma+ also have a 8ome switch Mach3
can be commanded to move one %or all& a>es to
the Nome position This #ill need to be done
#henever the s+stem is s#itched on so that it
$no#s #here the a>es are currentl+ positioned
Ef +ou do not provide a Nome s#itch then +ou
#ill have to Aog the a>es b+ e+e to a reference
position The Nome s#itch for an a>is can be
at the an+ coordinate position and +ou define
this
location Thus the Nome s#itches do not have
to be at Machine 9ero
#igure 4.. - ;imit s'itch - micros'itch
mounted on the ta/e is tri%%ed /y /ed
o" machine
,s +ou #ill see, each a>is could need three s#itches %ie limit s#itches at the t#o ends of
travel and a Nome s#itch& Do a basic mill #ould reBuire nine parallel port inputs for
them This is not much good as a parallel port onl+ has 0 inputsb The problem can be
solved in three #a+s'
The limit s#itches are connected to e>ternal logic %perhaps in the drive
electronics& and this logic s#itches off the drives #hen the limit is reached The
separate reference s#itches are connected inputs to Mach3
=ne pin can share all the inputs for an a>is and Mach3 is responsible
for controlling both limits and detecting Nome
The s#itches can be interfaced b+ a $e+board emulator
The first method is best and mandator+ for a ver+ large, e>pensive or fast machine
#here +ou cannot trust soft#are and its configuration to prevent mechanical damage
D#itches connected to the drive electronics can be intelligent and onl+ allo# motion
a#a+ from a s#itch #hen the limit is hit This is safer than disabling the limits so a user
can Aog the machine off its limits but does rel+ on having a sophisticated drive
=n a small machine #hen +ou use the second method, it is still possible to use onl+ 3
inputs to Mach3 for a 3Ha>is mill %/ for a gantr+
t+pe machine H see Dlaving& and onl+ t#o
s#itches are reBuired as one limit
and reference can share a s#itch
The $e+board emulator has a much slo#er
response time that the parallel port but is
satisfactor+ for limit s#itches on a
machine #ithout highspeed feeds *or
details of the architecture see Mach3
,$stomisation manual
40+ ohm
resistor
< imit
- imit
<, vots
to Mach2 in%ut
4.6.2 The switches
There are several choices +ou need to
ma$e #hen selecting s#itches'
and Re"
+ vots
#igure 4.0 - $'o NC contact s'itches give
ogic (R
Ef +ou are going to have t#o s#itches
sharing an input then the+ need to be
connected so the signal is a logic S5S if
either s#itch is operated %ie the
logical =9 function& This is eas+ #ith
mechanical s#itches Ef the+ have
normall+ closed contacts and are
#ired in series as sho#n in figure /J,
then the+ #ill give an ,ctive Ni signal
if either s#itch is operated "ote that
for
reliable operation +ou need to Spull upS
the input to the parallel port ,s
mechanical s#itches can carr+ a
#igure 4.8 - (%tica s'itch on ta/e 'ith vane on
/ed o" machine
significant current a value of /J.9 is sho#n #hich gives a current of about 5. milliamps
,s the #iring to the s#itches might be Buite long and liable to pic$up of noise ma$e sure
that +ou have a good connection to the . volt side of +our input %the frame of +our
machine tool #ill not be satisfactor+& and consider using shielded cable #ith the shield
connected to the main ground terminal of +our controller
Ef +ou use electronic s#itches li$e a slotted detector #ith a M7! and photoHtransistor, then
+ou #ill need some sort of an =9 gate %#hich could be a S#iredHorS if an ,ctive Mo input
is driven b+ open collector transistors&
=ptical s#itches, if out of the #a+ of coolant, should be =O on a metal#or$ing
machine but are liable to malfunction #ith #ood dust
!onat use magnetic s#itches %reed s#itches or Nall effect devices& on a machine that
ma+ cut ferrous metal or the s#arf #ill Sfu??HupS the magnet
The repeatabilit+ of the operating point, particularl+ #ith mechanical s#itches, is ver+
dependent on the Bualit+ of the s#itch and the rigidit+ of its mounting and actuating
lever The setup in *igure /1 #ould be ver+ imprecise The repeatabilit+ is ver+
important for a s#itch to be used
for Nome
=vertravel is the
movement of the
s#itch that
occurs after it
has operated
@ith a limit
-X
-= and
Re"erence
$a/e
#rame
+X
<= s'itch
s#itch it can be
caused b+ the
inertia of the
#igure 4.1 - $'o s'itches o%erated /y "rame 'ith overtrave avoided /y
mechanica sto%s
drive =n an optical s#itch li$e figure /J then provided the vane is long enough there #ill
be no difficulties , micros#itch can be given arbitrar+ overtravel b+ operating a roller on
it b+ a ramp %see figure /55& The slope of the ramp does, ho#ever, reduce the
repeatabilit+
of operation of the s#itch Et is often
possible to use one s#itch for both limits
b+ providing t#o ramps or vanes
4.6.3 5here to $o%nt the
switches
The choice of mounting position for
s#itches is often a compromise
bet#een $eeping them a#a+ from s#arf
and dust and having to use fle>ible
rather than fi>ed #iring
*or e>ample figures /1 and /: are
both mounted under the table,
despite the fact
#igure 4.1+ ) Mi 'ith too at =>+? @>+ %osition
3note the dog is on imit s'itch5
that the+ need a
moving cable, as
the+ are much
better protected
-X
-= and
Re"erence
$a/e
+X
<= ram%
there
`ou might find it
convenient to
have one moving
cable #ith the
#ires in it for
ram%
<=? -= A Re" s'itch
#rame
#igure 4.11 - Ram%s o%erating one s'itch
t#o or more a>es %eg the Y and ` a>es of a gantr+ router could have s#itches on the
gantr+ itself and a ver+ short cable loop for the V a>is could then Aoin the other t#o& !o
not be tempted to share a multiH#a+ cable bet#een motor and s#itch #iring `ou ma+
#ant to run t#o separate cables together and this #ill not cause trouble if both a shielded
%#ith
braid or foil& and the shields are grounded to one common point at the electronic drives
`ou might find it helpful to loo$ at commercial machines and pictures of e>amples on the
Master0(Mach5(Mach- `ahoob group for more ideas and techniBues for s#itches
4.6.4 4ow !ach3 %ses shared switches
This section refers to the configuration for small machines #here Mach3 rather
than e>ternal 7Dtop logic is controlled b+ the s#itches
*or a full understanding of this +ou #ill also have to read the section in chapter 0 on
configuring Mach3, but the basic principle is eas+ `ou connect the t#o limit s#itches to
one input %or have one s#itch and t#o vanes or ramps& `ou define, to Mach3, a
direction as the direction to travel to move #hen loo$ing for a reference s#itch The
limit s#itch %vane or ramp& at that end of the a>is is also the Nome s#itch
En normal use #hen Mach3 is moving an a>is and sees its limit input become active it
#ill stop running %li$e an 7Dtop& and displa+ that a limit s#itch has been tripped `ou
#ill be unable to move the a>es unless'
5& #$to limit override is s#itched on %b+ a toggle button on the Dettings screen& En
this case +ou can clic$ 9eset and Aog off the limit s#itch `ou should then
reference the machine
-& `ou clic$ Override limits button , red flashing M7! #arns +ou of the temporar+
override This #ill again allo# +ou 9eset and to Aog off the s#itch and #ill then turn
itself and the flashing M7! off ,gain +ou should reference the machine ,n input
can also be defined to override the limit s#itches
"ote, ho#ever, although Mach3 uses limited Aogging speed that +ou #ill not be
prevented, in either case, from Aogging further onto the s#itch and ma+be crashing the
a>is in a mechanical stop Take great care
4.6.5 )eerencing in action
@hen +ou reBuest referencing %b+ button or KH4ode& the a>is %or a>es& #hich have Nome
s#itches defined #ill travel %at a selectable lo# speed& in the defined direction until the
Nome s#itch operates The a>is #ill then move bac$ in the other direction so as to be off
the s#itch !uring referencing the limits do not appl+
@hen +ou have referenced an a>is then ?ero or some other value #hich is set up in the
4onfigoDtate dialog, can be loaded into the a>is !9= as its absolute machine coordinate
Ef +ou use ?ero then the Nome s#itch position is also the machine ?ero position of the a>is
Ef the reference goes in the negative direction of an a>is %usual for Y and `& the +ou might
get referencing to load something li$e H.0S into the !9= This means that the Nome is
half an inch clear of the limit This #astes a bit of the a>is travel but if +ou overshoot,
#hen
Aogging to Nome, +ou #ill not accidentall+ trip the limits Dee also Doft#are Mimits
as another #a+ of solving this problem
Ef +ou as$ Mach3 to reference before +ou Aog off the s#itch then it #ill travel in the
opposite direction %because it sa+s that +ou are alread+ on the Nome s#itch& and stop
#hen +ou get off the s#itch This is fine #hen +ou have a separate Nome s#itch or are on
the limit at the reference end of the a(is Ef, ho#ever, +ou are on the other Mimit s#itch
%and Mach3 cannot $no# this as the+ are shared& then the a>is moves for ever a#a+ from
the actual Nome point until it crashes Do the advice is always )og carefully off the limit
switches: then reference. Et is possible to configure mach3 so it #ill not automaticall+
Aog off the Nome s#itch if +ou are concerned about this problem
4.6.6 *ther 4o$e and .i$it options and hints
8ome switch not near limit switch
Et is sometimes not ver+ convenient to have the Nome s#itch at a limit of travel 4onsider
a large moving column floor mill or a big planerHmill The V travel on the column might be
: feet and could be Buite slo# #ithout affecting the overall cutting performance of the
machine Ef, ho#ever, the Nome position is the top of the column, then referencing might
involve nearl+ 51 feet of slo# V travel Ef the reference position #as chosen half #a+ up
the column then this time can be halved Duch a machine #ould have a separate Nome
s#itch
for the V a>is %thus reBuiring another input on the parallel port but still onl+ four inputs in
a three a>is machine& and #ould use the abilit+ of Mach3 to set an+ value for an a>is
!9=, after referencing, to ma$e machineHV ?ero to be the top of the column
Separate high accuracy 8ome switch
The Y and ` a>es on a high precision machine might have a separate Nome s#itch
to achieve the reBuired accurac+
-imit switches of multiple a(es connected together
Gecause Mach3 does not ta$e an+ notice of which limit of #hich a>is has tripped, then
all the limits can be =9ed together and fed into one limit input 7ach a>is can then have
its
o#n reference s#itch connected to the reference input , three a>is machine still onl+
needs four inputs
8ome switches of multiple a(es connected together
Ef +ou are really short of inputs to Mach3 then +ou can =9 the Nome s#itches together
and define all Nome inputs to be that signal En this case +ou can onl+ reference one a>is at
once
d so +ou need to remove 97* ,ll buttons from +our screens d and +our Nome
s#itches must all be at the end of travel on their respective a>es
Slaving
=n a gantr+ t+pe miller or router #here the t#o SlegsS of the gantr+ are driven b+ separate
motors then each motor should be driven b+ its o#n a>is Duppose the gantr+ moves in the
` direction then a>is , should be defined as a linear %ie nonHrotational& a>is and ,
should be slaved to ` H see the chapter 0 on 4onfiguring Mach3 for details Goth a>es
should have
limit and Nome s#itches En normal use both ` and , #ill be sent e>actl+ the same step
and direction commands b+ Mach3 @hen a 9eference operation is performed then the
a>es #ill run together until the final part of referencing #hich is moving Aust off the Nome
s#itches Nere the+ #ill move so that each stops the same distance off its o#n s#itch
9eferencing #ill therefore correct an+ rac$ing %ie out of sBuareness& of the gantr+ #hich
might have occurred #hen the machine is s#itched off or due to lost steps
]
/,1 4haves de Nome e Mimites
/15 7strat8gias
4have de Mimite 8 usadas para evitar Bue o ei>o linear se desloBue muito e assim cause danos T
a estrutura da mBuina LocF pode acionar uma mBuina sem eles, mas o menor erro pode
causar dano muito caro
Um ei>o tamb8m pode ter um interruptor de Nome %3osio Enicial&
Mach3 pode ser comandado para e mover um %ou todos& os ei>os para a posio inicial
Esto precisa ser feito sempre Bue o sistema 8 ligado para Bue ele saiba onde os ei>os esto
posicionados
De vocF no fornecer uma chave de N=M7, ento vocF ter Bue correr os ei>os ga olhoh para
uma posio referencial , chave de Nome para um ei>o pode ser colocado em BualBuer
posio Bue vocF definir para esse Mocal ,ssim, as opes de Nome no tem Bue estar
necessriamente em ?ero na mBuina
4omo vocF ver, cada ei>o pode precisar de trFs chaves %interruptores de limite ou seAa, nas
duas e>tremidades do seu curso e um interruptor em Nome& ,ssim, se e>igiria nove entradas
da porta paralela para eles
Esto no 8 muito bom mas como uma porta paralela sI tem 0 entradasb = problema pode ser
resolvido de trFs maneiras'
=s interruptores de limite esto ligados T lIgica e>terna %talve? no drive eletr^nico&
e esta lIgica desliga os drives Buando o limite 8 atingido
Um pino da porta paralela pode compartilhar todas as entradas dos ei>os e ser o responsvel
pela controle de limites e deteco de Nome
,s chaves podem ser interligadas por um emulador de teclado
= primeiro m8todo 8 o melhor e obrigatIrio para uma grande mBuina, cara ou muito rpida
LocF no pode confiar em soft#are e em sua configurao para evitar danos mecRnicos
4haves conectadas T unidade eletr^nica podem ser inteligentes e sI permitirem o movimento
de distRncia Buando a chave de limite no 8 atingida
Esto 8 mais seguro do Bue desabilitar os limites para Bue um usurio possa movimentar a
mBuina fora de seus limites, mas no confiam em ter um comando sofisticado
7m uma peBuena mBuina Buando vocF usa o segundo m8todo, ainda 8 possCvel utili?ar apenas
3 entradas do Mach3 para uma fresa de 3 ei>os %/ no tipo de mBuina em pIrtico H veAa
Dlaving& e apenas duas chaves so necessrias como um limite e referFncia, podendo
compartilhar uma mesma chave
= emulador do teclado tem um tempo de resposta muito mais lento Bue a porta paralela, mas 8
satisfatIrias para chaves de limite em uma mBuina sem alta velocidade
3ara mais detalhes do arBuitetura ver manual de Tunning Mach3
/1- ,s chaves
7>istem vrias opes Bue vocF precisa fa?er Buando define as chaves'
De vocF vai ter dois interruptores compartinhando uma entrada, ento eles precisam ser
ligados de modo Bue o sinal seAa uma lIgica S5S, Buando a chave 8 acionada %ou seAa, o
funo lIgica =9& Esso 8 fcil com interruptores mecRnicos
De eles tFm contatos normalmente fechados e esto ligados em s8rie como mostrado na figura
/J, em seguida, eles vo dar um sinal ativo alto Buando forem acionados
=bserve Bue para a operao ser confivel, vocF precisa Spu>arS a entrada para a porta
paralela
Enterruptores mecRnicos podem gerar um valor alto de corrente portanto use um resistor de
/J.9 como esta mostrado para Bue a corrente fiBue em torno de cerca de 5. m,
4omo a fiao para os vrios dispositivos pode ser bastante longa e passCvel de captao de
ruCdo, certifiBueHse Bue vocF tenha uma boa cone>o para o lado . volts da sua entrada %caso
contrrio a situao da sua mBuina ferramenta no ser satisfatIria& e considere o uso de
cabos blindados, com a malha conectada ao terminal de terra principal de sua controladora
De vocF usar as opes eletr^nicas, como por e>emplo um detector de fenda com um M7! e
fotoHtransistor, vocF vai precisar de algum tipo de porta =9
4haves Ipticas, devem ficar fora do caminho do fluido de arrefecimento, so bons em uma
mBuina de usinagem mas so susceptCveis de avaria com pI de madeira
"o use chaves magn8ticas %reed s#itches ou dispositivos de efeito Nall& em uma mBuina Bue
cortar metais ferrosos pois as aparas vo afetar o Cm
, repetibilidade do ponto de funcionamento, reali?ado com o uso de chaves mecRnicas, 8
muito dependente da Bualidade do s#itch e a rigide? de sua montagem e acionamento da
alavanca
, configurao na *igura /1 seria muito imprecisa, repetio 8 muito importante para no se
alterar o ponto e>ato de sua Nome
Dobrecurso 8 o movimento da chave Bue ocorre apIs o mesmo ser acionado
= limite de acionamento do interruptor pode ser alterado por causa da in8rcia da unidade
Um interruptor Iptico como *igura /:, bem protegido ser uma boa opo
Uma microchave, pode ter um sobrecurso arbitrrio por operar um rolo sobre ele atrav8s de
uma rampa %ver figura /55&
, inclinao da rampa, no entanto, redu?ir a repetibilidade de operao da chave
Muitas ve?es, 8 possCvel a utili?ao de uma nica chave para ambos os limites, fornecendoHse
dois acionadores
/13 =nde montar chaves
, escolha da posio de montagem das chaves freBuentemente 8 um compromisso entre
mantFHlos longe de aparas e pI e a fle>ibilidade de sua instalao em ve? de instalaes fi>as
3or e>emplo, nas figuras /,1 e /,: as chaves so montadas sob a mesa, apesar do fato de na
*igura /: se usar um cabo para acionaHlos, pois assim eles estaram protegidos
"ota do tradutor' so vrias as formas utili?adas para atingir este obAetivo
LocF pode achar Bue 8 til olhar para as mBuinas comerciais e fotos de e>emplos sobre a
Master0(Mach5(Mach- 7ntre nos grupos do`ahoo para mais id8ias e t8cnicas para os
aparelhos
/1/ 4omo Mach3 usa chaves compartilhadas
7sta seo refereHse a configurao de mBuinas de peBueno porte onde Mach3, usa a lIgica
das chaves para controlar as paradas de limite
3ara uma total compreenso do presente, vocF tamb8m ter de ler a seo configurar Mach3 no
4apCtulo 0, mas o princCpio bsico 8 fcil
LocF conecta os dois interruptores de limite em uma entrada% ou aciona apenas em um
interruptor por interm8dio de duas alavancas em sentido oposto&
, chave de Mimite, 8 tamb8m a chave de Nome
7m uso normal Buando Mach3 est movendo um ei>o e vF a sua entrada de limite se tornar
ativa ter de parar de correr e mostrar Bue um interruptor de limite foi disparado
LocF ser incapa? de mover novamente os ei>os a menos Bue'
5& 4oloBue em paralelo com as chaves de limite, chaves alternativas Bue Buando acionadas
permitam vocF ter acesso aos movimentos do ei>o neutrali?ando temporariamente as chaves
principais& "esta caso vocF pode clicar em 9eset e mover ei>o para fora da chave de limite
LocF deve ento referFnciar sua mBuina novamente
-& 4liBue no boto Dubstituir limites Um M7! vermelho intermitente avisaHo da temporria
substituio Esto ir permitir Bue vocF faa o 9eset e mova com o carro para fora dos limites
da chave at8 Bue o led pare de piscar "ovamente, vocF deve referFnciar sua mBuina
Uma entrada pode tamb8m ser definida para substituir os interruptores de limite
"ote, entretanto, Bue se o movimento esteAa muito rpido, mesmo Bue o limite seAa acionado,
no se vai conseguir a parada a tempo e talve? v Buebrar o ei>o de um batente mecRnico
Tome muito cuidado
/10 9eferenciao em ao
Uuando vocF for referenciar o ei>o por meio de boto ou KH4ode Bue tenham interruptores
em Nome, vai se movimentar %com uma certa velocidade bai>a& no sentido definido at8 a
chave Nome atuar = ei>o, ento, voltar em outra direo, de modo a ficar fora da chave
!urante a referFncia os limites no se aplicam
Uuando vocF estiver referenciado um ei>o, como ?ero ou algum outro valor Bue seAa criado no
4onfigo 7stado de dilogo, pode ser introdu?ido no !9=, como a coordenada absoluta de sua
mBuina De vocF usar ?ero na sua posio Nome, e em seguida, usar a posio da chave Nome
esta ser tamb8m a posio ?ero do ei>o
De a referFncia vai no sentido negativo de um ei>o %usual para Y e `&, vocF pode ter
referenciando a carga H.,0h pelo !9= Esto significa Bue a Nome esta meia polegada do
limite Esto desperdia um pouco do curso do ei>o, mas se vocF e>agerar, Buando estiver se
movimentando para Nome, vocF evita acidentalmente mover fora dos limites LeAa tamb8m
limites em Doft#are como outra maneira de resolver este problema
De vocF no Mach3 acionar para 9eferencia enBuanto a chave estiver sido acionado, ento ele
ir se mover na direo oposta %porBue ele pensar Bue A esta na chave Nome& e Buando parar
vocF sair da chave Esso 8 bom Buando vocF tem um s#itch separado em Nome ou no limite
ao final de referFncia do ei>o
De, no entanto, estiver na chave de outro limite %e Mach3 no pode saber pois so comuns&, o
ei>o se move para longe do ponto de origem real at8 Bue ele falhar ,ssim, o conselho 8
sempre mover cuidadosamente fora da chave de limite, e referFnciar em seguida
Z possCvel configurar o mach3 para Bue ele no se mova automaticamente ao desligar a chave
de Nome, se vocF estiver preocupado com este problema
/11 Nome, Mimite, outras opes e dicas
4have de Nome em ponto diferente do ponto de limite
3or ve?es no 8 muito conveniente ter a chave Nome no mesmo limite de curso
4onsidere, para melhor entendimento Bue principalmente em mBuinas de grande porte ,
temos Bue evitar movimentao desnecessrias dos ei>os ao se posicionarem para iniciar seu
trabalho "estes casos, 8 conveniente se posicionar a chave Nome o mais perto do inCcio de seu
trabalho efetivo na pea, e neste caso dissociando a mesma completamente das chaves de
Mimite
4haves Nome separadas para alta preciso
=s ei>os Y e ` em uma mBuina de alta preciso podem ter uma chave de Nome
separada para atingir a preciso reBuerida
4haves de mltiplos ei>os interligadas
3elo motivo Bue o Mach3 no envia BualBuer aviso de Bual limite de ei>o foi
acionado, ento todos os os limites podem ser conectados Auntos e integrados em
uma nica entrada de Mimite
4ada ei>o pode ter o sua prIpria chave de referencia ligado T entrada de referFncia
Uma mBuina de trFs ei>os ento somente precisa Buatro entradas Uma para limite
e uma para a Nome do ei>o%3&
De vocF Buer realmente simplificar sua Mach3, vocF pode fa?er uma ligao de
conceito =9 ento BualBuer dos sinais de ei>o, acionam este sinal de Nome
"este caso, vocF pode fa?er referFncia a um nico ei>o por ve? H 7nto vocF precisa
remover todos os botes de 97* de suas telas H e as suas chaves de Nome devem
estar todas no final do curso em seus respectivos ei>os
7i>os 7scravos
7m uma 4"4 do tipo pIrtico ou roteador onde as duas SpernasS do pIrtico so
movidos por motores separados, em seBuencia, cada motor deve condu?ir pelo seu
prIprio ei>o
Duponha Bue o movimento do pIrtico no direo `, em seguida, um ei>o deve ser
definido como um ei>o linear %ie sem rotao& e , deve ser escravo de ` H veAa o
capCtulo 0, 4onfigurando Mach3 para mais detalhes
,mbos os ei>os devem ter limite e chaves de N=M7 7m uso normal ` e ser
enviada e>atamente o mesmo passo e comandos de direo, Mach3
Uuando uma operao de 9eferFncia 8 reali?ado em seguida, os ei>os iro correr
Auntos at8 a parte final da referFncia Bue se move apenas fora da casa
,Bui eles vo se mover para Bue cada um dei>e a mesma distRncia fora de sua
prIpria chave
9eferenciando por conseguinte, corrigir eventuais saCdas de sincronismo %ie de
Buadratura& do pIrtico Bue poderia ter ocorrido Buando o aparelho est desligado ou
devido a passos perdidos
_
4.0 -%inde contro
There are three different #a+s in #hich Mach3 can control +our SspindleS or +ou can
ignore all of these and control it manuall+
5 9ela+(contactor control of motor =n %4loc$#ise or 4ountercloc$#ise& and motor
=ff
- Motor controlled b+ Dtep and !irection pulses %eg spindle motor is a servo&
3 Motor controlled b+ a pulse #idth modulated signal
+. 0n;0ff motor control
M3 and a screen button #ill reBuest that the spindle starts in a cloc$#ise direction M/
#ill reBuest that the spindle starts in an countercloc$#ise direction M0 reBuests that the
spindle stops M3 and M/ can be configured to activate e>ternal output signals #hich can
be associated #ith output pins on the parallel ports `ou then #ire these outputs %probabl+
via rela+s& to control the motor contactors for +our machine
,lthough this sounds straightfor#ard, in practice you need to be very careful Unless
+ou reall+ need to run the spindle Sbac$#ardsS it #ould be better to treat M3 and M/ as
the same or to allo# M/ to activate a signal #hich +ou do not connect to an+thing
4learl+ it is possible, in an error situation, for the cloc$#ise and countercloc$#ise signals
to be active together This ma+ cause the contactors to short the mains suppl+ Dpecial
mechanicall+ interloc$ed reversing contactors can be obtained and if +ou are going to allo#
+our spindle to run countercloc$#ise then +ou need to use one ,nother difficult+ is that
the SKH4odeS definition sa+s that it is legal to issue an M/ #hen the spindle is running
cloc$#ise under an M3 %and viceHversa& Ef +our spindle drive is an ,4 motor, Aust
changing the direction #hen running at full speed is going to impose ver+ large forces on
the mechanical drive of the machine and #ill probabl+ blo# the ,4 fuse or trip a circuit
brea$er *or safet+ +ou need to introduce time dela+s on the operation of the contactors
or use a modern inverter drive #hich allo#s +ou to change direction #ith a running
motor
Dee also the note about the limited number of 9ela+ ,ctivation Dignals in the section on
4oolant
1. Step and Direction motor control
Ef +our spindle motor is a servomotor #ith a step and direction drive %li$e the a>is
drives& then +ou can configure t#o output signals to control its speed and direction of
rotation Mach3 #ill ta$e account of a variable step pulle+ drive or gearbo> bet#een the
motor and the spindle *or full details see Motor Tuning in chapter 0
. 6<M motor control
,s an alternative to Dtep and !irection control, Mach3 #ill output a pulse #idth
modulated signal #hose dut+ c+cle is the percentage of full speed that +ou reBuire `ou
could, for e>ample, convert the dut+ c+cle of the signal to a voltage % 3@M signal on for
.m of time gives . volts 0.m gives 0 volts and 5..m gives 5. volts& and use this to
control an induction motor #ith a variable freBuenc+ inverter drive ,lternativel+ the
3@M signal could be used to trigger a triac in a simple !4 speed controller
*igures /5- and /53
sho# the pulse #idth at
appro>imatel+ -.m of
the c+cle and 0.m of the
c+cle
En order for the 3@M
spindle speed signal to be
turned into direct current
%actuall+ a direct voltage
Ave
#igure 4.12 ) A 2+B %use 'idth moduated signa
is generall+ used as the input to variable speed drives, but +ou $no# #hat #e mean& the
pulse signal it must transformed En essence a circuit is used to find the average of the
pulse #idth modulated signal
The circuit can be a
simple capacitor and
resistor or be much more
comple> depending %a&
on ho# linear +ou #ant
the relationship bet#een
the #idth and the final
output voltage and %b& on
the speed of response
Ave
#igure 4.13 ) A ,+B %use 'idth moduated signa
+ou need to the changing pulse #idth
`ou need to ta$e care #ith the electronics as the inputs of man+ cheap 3@M speed
controllers are not isolated from the mains *urther details can be found in the discussion
and files area of the Mach-!" site and b+ using S3@M converterS or S3@M !igispeedS
as a search term to Koogle or +our favorite search engine
The 3@M signal is output on the spindle Dtep pin `ou #ill need to ta$e
special precautions to s#itch off the motor at lo# speeds using the Motor
4loc$#ise(4ountercloc$#ise outputs
%ote$ Man+ users have found that 3@M and other variable speed spindle drives are often
a serious source of electrical noise #hich can cause problems #ith the machine a>is
drives, limit s#itch sensing etc Ef +ou use such a spindle drive #e strongl+ recommend
+ou to use an opticall+ isolated brea$out board and ta$e care to shield cables and run the
po#er cables a fe# inches a#a+ from the control cables
]
/J 4ontrole do Dpindle %motor rotativo de fresagem&
7>istem trFs maneiras diferentes em Bue Mach3 pode controlar o seu SDpindleS, ou vocF pode
ignorar todas estas maneiras e controlHlo manualmente
5 9el8 de controle ( contator de motor ligado %direita ou esBuerda& e motor desligado
- Motor controlado por pulsos e direo %por e>emplo' motor spindle 8 um servo&
3 Motor controlado por um sinal de largura de pulso modulada 3@M&%
5 4have de ligar e desligar o motor
M3 e um boto na tela ir fa?er Bue o spindle rode em sentido horrio
M/ vai solicitar Bue o spindle rode em sentido antiHhorrio
4licado em M0 o spindle para
M3 e M/ pode ser configurados para ativar sinais de saCda e>terna, Bue podem ser associados
com os pinos de saCda nas portas paralelas
LocF, ento, usar estas saCdas %provavelmente via rel8s& para controle dos contatores do motor
de sua mBuina
7mbora isso parea simples, na prtica, vocF precisa ter muito cuidado , menos Bue vocF
realmente precise para e>ecutar o spindle Spara trsS, seria melhor usar M3 e M/ com
segurana de forma a no inverter o sentido do motor com ele ainda ligado
Z claro Bue 8 possCvel, em uma situao de erro, os sinais serem acionados no sentido horrio e
antiHhorrio e estarem ativos ao mesmo tempo
Esto pode causar os contatores para uma situao de curto na alimentao =utra dificuldade, 8
Bue o defido no SKH4odeS, di? Bue 8 para acionar M/ Buando o spindle est girando no sentido
horrio em um M3 %e viceHversa&
De a sua unidade spindle 8 um motor ,4, mudar a direo Buando estiver em velocidade
m>ima vai impor foras muito grande no acionamento mecRnico da mBuina e,
provavelmente, Bueimar o fusCvel ,4 ou desligar o disAuntor
3ara a segurana, vocF precisa introdu?ir atrasos na operao dos contatores ou use um
inversor moderno Bue lhe permite mudar de direo com o motor em funcionamento
LeAa nota sobre o nmero limitado de sinais de ativao de reles na seo de 9efrigerante
_
-4ontrole de passo e direo no motor
De o motor spindle 8 um motor de passo e unidade de direo %como as unidades de ei>o&
ento vocF pode configurar dois sinais de saCda para controlar a velocidade e o sentido de
rotao
3 4ontrole motor por 3@M
4omo alternativa para motor de passo e controle de direo, Mach3 pode usar um controle de
largura de pulso, modulada de forma Bue o ciclo de trabalho seAa um percentual da velocidade
m>ima Bue vocF precisa
LocF poderia, por e>emplo, converter o ciclo do sinal de tenso %sinal 3@M para . m o Bue
no tempo daria . volts, 0. m daria 0 volts e 5.. volts daria 5. m& e usar isto para controlar um
motor de induo com inversor de freBQFncia varivel
,lternativamente, o sinal 3@M poderia ser usado para disparar um triac em um simples
controlador de velocidade !4
*iguras /,5- e /,53 mostram a largura de pulso em -. m e 0. m do ciclo
3ara Bue o sinal 3@M de velocidade do ei>o possa ser transformado em corrente contCnua
%"a verdade, uma tenso contCnua geralmente 8 usado como entrada para acionamentos de
velocidade varivel, mas vocF sabe o Bue Bueremos di?er&, o sinal de pulso deve ser
transformado 7m essFncia, um circuito 8 utili?ado para encontrar a m8dia de pulso do sinal
modulado em largura
= circuito pode ser um capacitor simples e resistor ou ser muito mais comple>o, dependendo
%a& sobre a forma linear Bue vocF Buer a relao entre a largura e a tenso de saCda final e
%b& na velocidade de resposta Bue vocF precisa mudandoHse a largura do pulso
6roblemas de hardware e conec=>o da sua m?'uina ferramenta
LocF precisa tomar cuidado com os eletr^nicos baratos de 3@M, muitos deste tipo de
controladores no esto isolados da rede el8ctrica
Mais detalhes podem ser encontrados em usando Sconversor 3@MS ou S3@M !igispeedS
= sinal 3@M 8 encontrado em saCda Buando o pino usado no spindle estiver em ="
LocF precisar tomar especial precaues para desligar o motor em bai>as velocidades com o
motor girando em sentido horrio
"ota' Muitos usurios descobriram Bue 3@M e outras unidades do ei>o de velocidade varivel
8 muitas ve?es uma s8ria fonte de ruCdo el8trico Bue pode causar problemas com o ei>o da
mBuina drives, chaves de limite de deteo, etc
De vocF usa esse tipo de unidade, nIs recomendamos fortemente Bue vocF use uma placa G=G
opticamente isolada e tome cuidado para blindar os cabos Buando perto dos cabos de controle
_
4.8 Cooant
=utput signals can be used to control valves or pumps for flood and mist coolant These
are activated b+ screen buttons and(or MJ, M:, M6
]
/: 9efrigerao
=s sinais de saCda pode ser usado para controlar vlvulas ou bombas de inundao e de
refrigerao por n8voa 7stes so ativado por botes na tela e(ou MJ, M:, M6
_
4.1 Cni"e direction contro
9otar+ a>is , can be configured so it is rotates to ensure that a tool li$e a $nife is
tangential to the direction of movement in K5 moves of Y and ` This allo#s
implementation of a vin+l or fabric cutter #ith full+ controlled $nife
%ote$ in the current version this features does not #or$ #ith arcs %K-(K3 moves& Et is
+our responsibilit+ to program curves as a series of K5 moves
]
/6 4ontrole da !ireo de 4orte
Um ei>o rotativo pode ser configurado de modo Bue ele gire para garantir Bue a
ferramenta de corte fiBue sempre tangencial T direo do movimento em K5 isto
nos movimentos de Y e `
Esto permite a implementao de um faca de corte totalmente controlada para uso
em vinil ou tecido
"ota' na verso atual estes recursos no funcionam com arcos %move K-(K3&
Z sua responsabilidade progamar curvas para movimentos de K5
_
/,5. Donda !igital
Mach3 pode ser conectado a um contato de digitali?ao ou sonda para fa?er uma
medio e modelar em um sistema de digitali?ao
N um sinal de entrada Bue indica Bue a sonda fe? contato e coloca em disposio
uma saCda para informar Bue a leitura 8 reali?ada em um noHcontato %laser, por
e>emplo& como sonda
3ara ser til a sonda precisa ter uma ponta e>atamente esf8rica %ou pelo menos uma
parte de um esfera& montado no ei>o com o seu centro e>atamente sobre a linha
central do ei>o e uma distRncia fi>a a partir de um ponto fi>o na direo V
3ara ser capa? sondagem de materiais no metlicos %e em muitos modelos para a
digitali?ao ser feita em espuma, M!* ou plstico&, a sonda necessita fa?er %ou
parar& com um interruptor com um minuto de grau de defle>o em sua ponta em
BualBuer Y ou ` %ou V& direo&
De a sonda for usado com um carregador automtico ento ele tamb8m precisa ser
Ssem fioS
7stes reBuisitos so um grande desafio para o proAetista para uma sonda construCda
em casa e sondas comerciais no so baratas
Uma caracterCstica 8 o desenvolvimento implementado para permitir o uso de uma
sonda laser
_
_
4.1+ *igitise %ro/e
Mach3 can be connected to a contact digitising probe to ma$e a measuring and model
digitising s+stem There is an input signal that indicates that the probe has made contact
and provision for an output to reBuest that a reading is ta$en b+ a nonHcontact %eg laser&
probe
To be useful the probe needs to have an accuratel+ spherical end %or at least a portion of a
sphere& mounted in the spindle #ith its center accuratel+ on the centerline of the spindle
and a fi>ed distance from a fi>ed point in the V direction %eg the spindle nose& To be
capable
of probing non metallic materials %and man+ models for digitisation #ill be made in
foam, M!* or plastic& the probe reBuires to ma$e %or brea$& a s#itch #ith a minute
deflection of its tip in an+ %Y` or V& direction& Ef the probe is to be used #ith an
automatic toolchanger then it also needs to be ScordlessS
These reBuirements are a maAor challenge for the designer of a probe to be built in a
Nome #or$shop and commercial probes are
not cheap
, development feature is
implemented to allo# the use of a
laser probe
4.11 ;inear 3gass scae5
encoders
ty%icay
2+ microns
A
D
y 9
-tart
#igure 4.14 - Euadrature signas
Mach3 has four pairs of inputs to each of #hich an encoder #ith Buadrature outputs can
be connected %t+picall+ these might be Sglass scaleS encoders H see figure /50 Mach3
#ill displa+ the position of each of these encoders on a dedicated !9= These values can
be loaded from and saved to the
main a>is !9=s
Enside the case of the encoder
is a glass %or sometimes
plastic& strip ruled #ith lines
%eg often 5. microns #ide&
separated b+ the same si?ed
clear space , light shining
on a phototransistor through
the ruling #ould give a signal
li$e , in figure /5/ =ne
complete c+cle corresponds
to a movement of -.
microns
#igure 4.1, - 8ass scae encoder 3a'aiting instaation5
,nother light and phototransistor located 0 microns a#a+ from the first one #ould
give signal G a Buarter of a c+cle out from , %hence the name 6$adrat$re&
, full e>planation is rather long, but +ou #ill notice that a signal changes ever+ 0 microns
of movement so the resolution of the scale is 0 microns @e can tell #hich #a+ it is moving
b+ the seBuence of changes *or e>ample if G goes from lo to hi #hen , is hi %point 5&
then #e are moving to the right of the mar$ed start #hereas if G goes from hi to lo #hen ,
is hi %point y& then #e are moving to the left of the start
Mach3 e>pects logic signals Dome
glass scales %eg certain
Neidenhain models& give an analog
sine#ave This allo#s clever
electronics to interpolate to a
higher resolution than 0 microns Ef
+ou #ant to use these than +ou
need to sBuare off the #aveform
#ith an operational
amplifier(comparator TTM output
encoders #ill connect directl+ to
#igure 4.1. ) :ncoder *R(s
the input pins of the parallel port but, as noise #ill give false counts, the+ are better
interfaced via #hat is $no#n as a Dchmitt trigger chip The scales reBuire a !4
suppl+ %often 0 volts& for the lights and an+ driver chips in them
%otice$
%a& that +ou can not easil+ use a linear scale as the feedbac$ encoder for a servo
drive as the slightest bac$lash or springiness in the mechanical drive #ill ma$e the
servo unstable
%b& it is not eas+ to connect the rotar+ encoders on the servo motor to the encoder
!9=s This #ould be attractive for manual operation of the a>es #ith position
readout The problem is that the . volt %common& inside the servo drive used for the
motor encoders is almost certainl+ not the same . volt as +our 34 or brea$out
board 4onnecting them together #ill cause problems H donat be tempted to do itb
%c& the main benefit of using linear encoders on linear a>es is that their
measurements do not depend on the accurac+ or bac$lash of the drive scre#, belt,
chain etc
]
/55 7ncoders Mineares % 7scalas em vidro&
Mach3, possui / pares de entradas para serem usadas cada uma com encoders de
saCda em Buadratura Bue podem ser conectadas %normalmente podem ser encoders
em Sescala de vidroS H veAa a figura /50&
Mach3 vai mostrar a posio de cada um desses encoders em um visuali?ador
dedicados !9= 7sses valores podem ser carregados e guardados nos !9=
principais
!entro da cai>a do encoder Bue em geral 8 de plstico tem uma tira marcada com
com linhas %3or e>emplo, muitas com de 5. microns de largura& separados pelo
mesmo tamanho de espao livre
, lu? Bue brilha atrav8s de um fototransistor envia um sinal como na figura /5/
Um ciclo completo corresponde a um movimento de -. microns
=utra lu? e fototransistor fica locali?ado a 0 mCcrons de distRncia do primeiro e
obteria um sinal G com um Buarto de ciclo a partir do outro %daC o nome em
Buadratura&
Uma e>plicao completa 8 um pouco longa, mas vocF vai obter um sinal de
mudanas a cada 0 microns de movimento para uma resoluo de escala de 0
microns
3odemos saber o sentido do movimento pela seBQFncia de mudanas
3or e>emplo, se G vai de Gai>o para ,lto Buando , 8 ,lto %ponto Y&, em seguida,
estamos nos movendo para a direita do inCcio marcado, e se G vai de ,lto para
Gai>o Buando , 8 ,lto no %` ponto&, ento estamos nos movendo para a esBuerda
do inCcio marcado
Mach3 espera sinais lIgicos ,lguns encoders de escalas de vidro %7>emplo certos
modelos da Neidenhain& do uma onda senoidal analIgica
Esto permite com um eletr^nica inteligente interpolar para uma resoluo melhor
Bue 0 microns De vocF Buiser usar estes, o Bue vocF precisa para gerar o sinal
retangular seria usar um operacional comparador ( amplificador
7ncoders de saCda TTM iro se conectar diretamente a pinos da porta de entrada
paralela, mas, como o ruCdo pode interfirir, 8 melhor fa?er isto por interm8dio de
um chip conhecido como os Dchmitt trigger ,s escalas e>igem uma fonte !4
%"ormalmente 0 volts& para as lu?es e para BualBue chip usado
,visos'
%,& LocF no pode facilmente usar uma escala linear com o encoder realimentado
para uma unidade de servo Bue tenha uma folga menor ou elasticidade mecRnica na
unidade pois isto far com Bue o servo fiBue instvel
%G& no 8 fcil conectar um encoder rotativo sobre a mecRnica do motor e
apresentar as informaes no !9=
Esso seria mais fcil para uma leitura manual da posio do ei>o
= problema 8 Bue o . volt %comum& dentro da unidade servo utili?ados para a
codificadores de motor no 8 certamente o ?ero no seu 34 ou placa brea$out G=G
4onectandoHos Auntos causar problemas H no seAa tentado a fa?FHlob
%4& o principal benefCcio da utili?ao de transdutores lineares nos ei>os lineares 8
Bue suas medidas no dependem da e>atido ou folga do parafuso da unidade,
correia, corrente, cabo, etc
_
4.12 -%inde inde9 %use
Mach3 has an input for one or more pulses generated each revolution of the spindle Et
uses this to displa+ the actual speed of the spindle, to coHordinate the movement of the
tool and #or$ #hen cutting threads and for orientating the tool for the bac$ boring canned
c+cle Et can be used to control feed on a perHrev rather than perHminute basis
]
/,5- 3ulso para Ende>ao do Dpindle
Mach3 tem uma entrada para um ou mais pulsos gerado a cada revoluo do ei>o
7le usa isto para mostrar a velocidade real do ei>o, para coordenar o movimento da
ferramenta de trabalho enBuanto esta cortando e para orientar a ferramenta para a
Buantidade necessria de rotaes por minuto
_
4.13 Charge %um% - a %use monitor
Mach3 #ill output a constant pulse train #hose freBuenc+ is appro>imatel+ 5-0 $NV on
one or both of the parallel ports #henever it is running correctl+ This signal #ill not be
there if the Mach3 has not been loaded, is in 7Dtop mode or if the pulse train generator
fails in some #a+ `ou can use this signal to charge a capacitor through a diode pump
%hence the name& #hose output, sho#ing Mach3as health, enables +our a>is and spindle
drives etc
This function is often implemented in commercial brea$out boards
]
/,53 4arga da bomba H um monitor de pulso
Mach3 vai gerar uma saCda Bue ser um trem de pulso constante, cuAa freBQFncia 8 de
apro>imadamente 5-,0 $N? em uma ou ambas as portas paralelas, sempre Bue esteAa
funcionando corretamente
7ste sinal no estar l se a Mach3 no estiver sido carregado corretamente e uma
situao de emergFncia tiver sido acionada e obstruir o trem de pulso
LocF pode usar este sinal para carregar um capacitor atrav8s de uma bomba de diodo
%daC o nome&, cuAa saCda mostra sade do Mach3
7sta funo 8 geralmente aplicado em placas de brea$out G=G comercial
_
4.14 (ther "unctions
Mach3 has fifteen =7M Trigger input signals #hich +ou can assign for +our o#n use
*or e>ample the+ can be used to simulate clic$ing a button or to call a user #ritten
macros
En addition there are four user inputs #hich can be interrogated in user macros
Enput s5 can be used to inhibit running of the part program Et might be connected to
the guards on +our machine
*ull details of the architecture of Enput 7mulation are given in Mach3 ,$stomisation
#i$i The setup dialog is defined in section 0
The 9ela+ ,ctivation outputs not used for the Dpindle and 4oolant can be used b+ +ou
and controlled in user #ritten macros
.nd a final thought , before +ou get carried a#a+ #ith implementing too man+ of the
features in this chapter, remember that +ou do not have an unlimited number of
inputs(outputs 7ven #ith t#o parallel ports there are onl+ ten inputs for supporting all
functions and, although a $e+board emulator #ill help giving more inputs, these cannot
be used for all functions `ou ma+ have to use a ModGus device to dramaticall+ e>pand
custom input(output
]
/,5/ =utras funes
Mach3 tem Buin?e sinais =7M de entrada Trigger os Buais vocF pode atribuir para seu prIprio
uso
3ara e>emplo, eles podem ser usados para simular um cliBue de um boto ou para chamar um
usurio, isto se escrito por interm8dio de macros
,l8m disso, e>istem Buatro entradas do usurio Bue podem ser interrogadas por macros
Enput s 5 pode ser usado para inibir a carga de parte de um programa 3ode ser chamado para
proteger sua mBuina
Todos os detalhes da arBuitetura de emulao de entradas so apresentados no #i$i Mach3
Tunning
= dilogo de configurao 8 definido no ponto 0
, ativao de um relF pelas saCdas no utili?adas para o 7i>o e refrigerao, pode ser utili?ado
por vocF e controlado pelo usurio pela escrita de macros
7 um pensamento final H antes de vocF comear usando todas esta funes em sua aplicao,
lembreHse Bue vocF no tem um nmero ilimitado de entradas ( saCdas
Mesmo com duas portas paralelas, h apenas de? entradas para apoiar todos os funes e, se
usar um emulador de teclado isto ir aAudar a dar mais entradas, mas estas no podem ser
utili?ados para todas as funes
LocF pode ter Bue usar um dispositivo ModGus para e>pandir dramaticamente as entradan e
saCdas
_
Con"iguring Mach3
Rev 1.84-A2 ,-1 Using Mach3Mi
,. Con"iguring Mach3 "or your machine and drives
Ef +ou have bought a machine tool #ith a computer running Mach3 then
+ou #ill probabl+ not need to read this chapter %e>cept out of general
interest& `our supplier #ill probabl+ have installed the Mach3 soft#are
and set it up and(or #ill have given +ou detailed instructions on #hat to do
`ou are recommended to ensure that +ou have a paper cop+ of ho# Mach3
is configured should +ou ever need to reHinstall the soft#are from scratch
Mach3 stores this information in an YMM file #hich +ou can vie#
]
0 4onfigurao do Mach3 para o seu computador e drives
De vocF comprou uma mBuinaHferramenta com um computador Bue e>ecuta o Mach3, ento
vocF provavelmente no precisa ler este capCtulo %e>ceto como interesse geral&
Deu fornecedor, provavelmente, ter instalado o soft#are Mach3 e A estar configurado
e ( ou ter dado instrues detalhadas sobre o Bue fa?er
9ecomendaHse a garantir Bue vocF tenha uma cIpia em papel de como esta configurado seu
Mach3 para orientaHlo se precisar reHinstalar o soft#are a partir do ?ero
Mach3 arma?ena essas informaes em um arBuivo YMM Bue vocF pode ver
_
,.1 A con"iguration strategy
This chapter contains a lot of ver+ fine detail `ou should, ho#ever, find that the
configuration process is straightfor#ard if +ou ta$e it stepHb+Hstep, testing as +ou go ,
good strateg+ is to s$im through the chapter and then #or$ #ith it on +our computer
and machine tool @e #ill assume that +ou have alread+ installed Mach3 for the dr+
running described in chapter 3
Lirtuall+ all the #or$ +ou #ill do in this chapter is based on dialog bo>es reached from
the 4onfig%ure& menu These are identified b+, for e>ample, 4onfigoMogic #hich means
that +ou choose the Mogic entr+ from the 4onfig menu
]
0,5 Uma estrat8gia de configurao
7ste capCtulo cont8m uma s8rie de detalhes muito especCficos LocF deve,
entretanto, considerar Bue as processo de configurao 8 simples se vocF for
fa?endo passo a passo, e ir testando o Bue vc esta fa?endo , boa estrat8gia 8
percorrer o capCtulo e, em seguida, trabalhar com ele em seu computador e
mBuinaHferramenta Lamos supor Bue vocF A instalou o Mach3 para o
funcionamento a seco descrito no capCtulo 3
3raticamente todo o trabalho Bue vocF vai fa?er neste capCtulo 8 baseado em cai>as
de dilogo alcanado a partir do menu 4onfig
7stes so identificados, por e>emplo, 4onfigo Mogic Bue significa Bue vocF escolhe
a entrada lIgica a partir do menu 4onfig
_
Con"iguring Mach3
Using Mach3Mi ,-2 Rev 1.84-A2
,.2 Initia con"iguration
The first dialog to use is 4onfigo3orts and 3ins This dialog has man+ tabs but the
initial one is as sho#n in figure 05
]
0,- configurao inicial
= primeiro dilogo a se usar 8 4onfigo 3ortas e 3ins 7ste dilogo tem muitas abas, mas a
inicial 8 como mostrado na figura 05
_
5.2.1 Deining addresses o port6s7 to %se
#igure ,.1 - !orts and A9is seection ta/
Ef +ou are onl+ going to use one parallel port and it is the one on +our computeras
motherboard then the default address of 3ort 5 of .>3J: %ie Ne>adecimal 3J:& is
almost certainl+ correct
Ef +ou are using one or more 34E addHon cards then +ou #ill need to discover the address
to #hich each responds There are no standardsb 9un the @indo#s 4ontrol 3anel from the
@indo#s Start button !ouble clic$ on System and choose the !ard"are tab 4lic$ the
Device Manager button 7>pand the tree for the item S3orts %4=M l M3T&S
Rev 1.84-A2 ,-3 Using Mach3Mi
Con"iguring Mach3
!ouble clic$ the first M3T or 743 port Ets properties #ill be displa+ed in a ne# #indo#
4hoose the 9esources tab The first number in the first E= range line is the address to
use "ote the value do#n and close the 3roperties dialog
%ote$ that installing or removing an+ 34E card can change the address of a 34E parallel port
card even if +ou have not touched it
Ef +ou are going to use a second port repeat the above paragraph for it
4lose the !evice Manager, D+stem 3roperties and 4ontrol 3anel
#indo#s
7nter +our first portas address %do not provide .> prefi> to sa+ it is Ne>adecimal as
Mach3 assumes this& Ef necessar+ chec$ 7nabled for port - and enter its address
"o# clic$ the #pply button to save these values This is most important Mach will
not remember values when you change from tab to tab or close the 6ort @ 6ins
dialog unless you Apply.
"
0-5 !efinio de endereos da porta %s& a usar
De vocF vai usar somente uma porta paralela e ela 8 a nica em seu computador o
endereo padro da porta dever ser Buase certamente .>3J: %ou seAa, Ne> 3J:&
De vocF estiver usando uma ou mais cartes adicionais 34E, ento vocF ter de
descobrir o endereo em Bue cada um responde "o h normasb 7>ecute o painel
de controle da Goto Eniciar do @indo#s !F um duplo cliBue em Distema e
escolha a aba Nard#are 4liBue na boto Kerenciador de dispositivos 7>panda a
rvore para o item S3ortas %4=M l M3T&S
4liBue duas ve?es na primeira ou M3T porta 743 Duas propriedades sero
e>ibidos em uma nova Aanela
7scolha a guia 9ecursos = primeiro nmero na primeira linha E= intervalo 8 o
endereo para o uso
,note o valor e feche a cai>a de dilogo 3ropriedades
"ota' Bue instalar ou remover BualBuer placa 34E pode alterar o endereo de uma
porta paralela 34E carto, mesmo Bue no tenha trocado
De vocF estiver usando uma segunda porta repetir o pargrafo acima
*eche o Kerenciador de !ispositivos, 3ropriedades do Distema e @indo#s
4ontrol 3anel
!igite o endereo de sua primeira porta geralmente vai ser .3J: cliBue no boto
,ppl+ para salvar esses valores
Esso 8 muito importante Mach3 no Membrar de valores Buando vocF mudar de
guia para guia ou fechar o dilogo a menos Bue vocF cliBue em aplicar
A
5.2.2 Deining engine re8%enc&
The Mach3 driver can #or$ at a freBuenc+ of -0,... N? %pulses per second&, 30,... N? or
/0,... N? depending on the speed of +our processor and other loads placed on it #hen
running Mach3
The freBuenc+ +ou need depends on the ma>imum pulse rate +ou need to drive an+ a>is at
its top speed -0,... N? #ill probabl+ be suitable for stepper motor s+stems @ith a 5.
microHstep driver li$e a Kec$o -.5, +ou #ill get around J0. 93M from a standard 5:
o
stepper motor Nigh pulse rates are needed for servo drives that have high resolution shaft
encoders on the motor *urther details are given in the section on motor tuning
Using Mach3Mi ,-4 Rev 1.84-A2
Con"iguring Mach3
4omputers #ith a 5 KN? cloc$ speed #ill almost certainl+ run at 30,... N? so +ou can
choose this if +ou need a higher step rate %eg if +ou have ver+ fine pitch lead scre#s&
The demonstration version #ill only run at -0,... N? En addition if Mach3 is forcibl+
closed then on reHstart it #ill automaticall+ revert to -0,... N? operation The actual
freBuenc+ in the running s+stem is displa+ed on the standard !iagnostics screen
DonBt forget to click the Apply button before proceeding.
]
0-- !efinio de freBQFncia do motor
= drive Mach3 pode trabalhar em uma freBQFncia de -0... N? %pulsos por
segundo&, 30... N? ou /0... N?, dependendo da velocidade do seu processador e
outros programas carregados Auntamente Buando da e>ecuo do Mach3
, freBQFncia Bue vocF precisa depende da pulsao m>ima Bue vocF precisa para
condu?ir em BualBuer ei>o em sua velocidade m>ima
-0... N?, provavelmente, ser adeBuado para sistemas de motor de passo
4om 5. microHpassos como um Kec$o -.5, vocF conseguir em torno de J0. 93M a
partir de um motor de passo padro de 5: grus por passo
7>plicando'-0... por segundo portanto em um minuto 50..... e como cada passo
necessita 5. micropulsos temos' 50.... divididos por -.. passos por volta n J0.
voltas por minuto
%"T& ,Bui, vamos confirmar o raciocCnio de se trabalhar com meio passo Bue no caso
seria' %%-0... q 1.&(-&(-.. n 3J0. voltas por minuto
Ta>as de pulsos mais altas so necessrias para servos Bue trabalham em alta
resoluo como encoders no motor
Mais pormenores na seco Dintonia do motor
4omputadores com um relIgio de 5 KN? de velocidade Buase certamente permitiro
e>ecutar em 30... N? LocF pode fa?er esta escolha se vocF precisar de uma maior
ta>a de passo %por e>emplo, se vocF tiver uma rosca muito fina nos seus fusos&
, verso de demonstrao do Mach3 sI ser e>ecutada em -0... N?
,l8m disso, se o programa Mach3 for forosamente encerrado, e em seguida se
reiniciali?ado, automaticamente a operao reverter a -0... N?
, real freBQFncia de e>ecuo do sistema 8 e>ibida na tela padro !iagnostics
"o esBuea de clicar no boto ,plicar antes de prosseguir
_
5.2.3 Deining special eat%res
`ou #ill see chec$ bo>es for a variet+ of special configuration The should be selfH
e>planator+ if +ou have the relevant hard#are in +our s+stem Ef not then leave
then unchec$ed
DonBt forget to click the Apply button before proceeding.
Rev 1.84-A2 ,-, Using Mach3Mi
Con"iguring Mach3
]
0-3 !efinindo caracterCsticas especiais
LocF ver cai>as de seleo para uma variedade de configuraes especiais
!evem ser autoHe>plicativas se vocF tiver o hard#are correspondente em seu sistema
De no, ento dei>eHa desmarcada
"o esBuea de clicar no boto ,plicar antes de prosseguir
A
,.3 *e"ining in%ut and out%ut signas that you 'i use
"o# that +ou have established the basic configuration it is time to define #hich input and
output signals +ou #ill be going to use and #hich parallel port and pin #ill be used for
each The documentation for +our brea$out board ma+ give guidance on #hat outputs to use
if it has been designed for use #ith Mach3 or the board ma+ be supplied #ith a s$eleton
3rofile %YMM& file #ith these connections alread+ defined
]
0,3 !efinio entrada e saCda dos sinais Bue vocF vai usar
,gora Bue vocF A estabeleceu a configurao bsica est na hora de definir Buais so os sinais
de entrada e de saCda Bue vocF vai usar da porta paralela e Bue pinos sero utili?ados para cada
um
, documentao para a sua placa pode dar orientaes sobre o uso se tiver sido proAetada para
uso com Mach3 ou ainda a placa pode ser fornecido com um 3erfil % YMM& com essas
cone>es A est definidas
_
5.3.1 20is and 1pindle o%tp%t signals to be %sed
*irst vie# the Motor O$tp$ts tab This #ill loo$ li$e figure 0/
!efine #here the drives for +our Y, ` and V a>es are connected and clic$ to get a
chec$H mar$ to 7nable these a>es Ef +our interface hard#are %eg Kec$o -.5 stepper
driver& reBuires an activeHlo signal ensure that these columns are chec$ed for the Dtep
and !ir%ection& signals
Ef +ou have a rotar+ or slaved a>es then +ou should enable and configure these
Ef +our spindle speed #ill be controlled b+ hand then +ou have finished this tab #lick the
Apply button to save the data on this tab.
Using Mach3Mi ,-. Rev 1.84-A2
Con"iguring Mach3
#igure ,.4 ) *e"ining the connections "or a9es and the controed s%inde
Ef +our spindle speed #ill be controlled b+ Mach3 then +ou need to 7nable the spindle and
allocated a Dtep pin(port for it if it uses pulse #idth modulated control #ith rela+s to
control its direction or to allocate Dtep and !irection pins(ports if it has full control `ou
should
also define if these signals are activeHlo @hen done, click the Apply button to save
the data on this tab.
035 Dinais de saCda para serem usados nos ei>os e no spindle
, primeira viso da aba de tela para aAuste dos motores vai se parecer como figura 0/
Lo aBui ser definidos onde as unidades dos seus Y, ` e V estaro ligados e forma para abilitar
esses ei>os De o seu hard#are de interface %por e>emplo, Kec$o driver -.5 stepper& e>ige um
sinal ativo Gai>o, garanta Bue essas colunas esto marcadas para os pulsos e !ireo dos
sinais
De vocF tem ei>os escravos, vocF dever agora habilitar e configurar esses ei>os
De a velocidade de rotao do spindle for controlada manualmente depois de ter terminado este
guia 4liBue na Goto ,plicar para salvar os dados desta aba
De a sua velocidade de rotao do spindle for controlada pelo Mach3, ento vocF precisa
atribuir e ativar um 3E"= da porta para ele e se for usar o 3@M com rel8s para controlar sua
direo ou para alocar 3asso e pinos de !ireo isto para se ter um controle total LocF deveria
tamb8m definir se esses sinais so ativos em Gai>o
Uuando terminar, cliBue no boto ,plicar para salvar as dados
5.3.2 Inp%t signals to be %sed
"o# select the Inp$t Signals tab This #ill loo$ li$e figure 00
@e assume that +ou have chosen one of the Nome(limit strategies from chapter /1
Ef +ou have used strateg+ one and the limit s#itches are connected together and trigger an
Rev 1.84-A2 ,-0 Using Mach3Mi
Con"iguring Mach3
#igure ,., ) In%ut signas
7Dtop or disable the a>is drives via the drive electronics then +ou do not chec$ an+ of the
Mimit inputs
@ith strateg+ t#o +ou #ill probabl+ have Nome s#itches on the Y, ` and V a>es 7nable
the !ome s#itches bo>es for these a>es and define the 3ort(3in to #hich each is
connected Ef +ou are combining limits and the Nome s#itch then +ou should enable the
Limit 77, the Limit 88 and !ome for each a>is and allocate the same pin to !ome, Limit9
and Limit88.
Using Mach3Mi ,-8 Rev 1.84-A2
Con"iguring Mach3
"otice the scroll bar to access the rest of the table #hich is not visible in figure 00
The Inp$t :( is special in that it can be used to inhibit running a part program #hen
safet+ guards are not in place The other three %and s5 if not used for the guard interloc$&
are available for +our o#n use and can be tested in the code of macros The Inp$t :; can
be used to connect an e>ternal pushbutton s#itch to implement the Dingle Dtep function
`ou ma+ #ish to configure them later
7nable and define Inde5 +$lse if +ou have a spindle sensor #ith Aust one slot or mar$
7nable and define Limits Override if +ou are letting Mach- control +our limit s#itches
and
+ou have an e>ternal button #hich +ou #ill press #hen +ou need to Aog off a limit Ef
+ou have no s#itch then +ou can use a screen button to achieve the same function
7nable and define EStop to indicate to Mach3 that the user has demanded an
emergenc+ stop
7nable and define OEM Trigger inputs if +ou #ant electrical signals to be able to call =7M
button functions #ithout a screen button needing to be provided
7nable and define Timing if +ou have a spindle sensor #ith more than one slot or mar$
7nable 3robe for digitising and TN4=n, TN4Up and TN4!o#n for control of a
3lasma
torch
Ef +ou have one parallel port then +ou have 0 available inputse #ith t#o ports there are 5.
%or #ith pins - to 6 defined as inputs, 53& Et is ver+ common to find that +ou are short of
input signals especiall+ if +ou are also going to have some inputs for glass scales or other
encoders `ou ma+ have to compromise b+ not having things li$e a ph+sical Mimit
=verride ks#itch to save signalsb
`ou can also consider using a Oe+board 7mulator for some input signals
#lick the Apply button to save the data on this tab.
03- =s sinais de entrada a serem utili?ados
,gora selecione a aba Enput Dignals Esto ir se parecer como a figura 00
Dupondo Bue vocF tenha escolhido uma das estrat8gias de Nome ( Mimite do capCtulo /1
De vocF A usou a estrat8gia e os interruptores so ligados entre si e provocou uma emergencia
ou desabilitou as unidades do ei>o pela via eletr^nica da movimentao, ento vocF no vai ter
BualBuer limitao de entrada
4om a segunda estrat8gia provavelmente vocF vai ter opes de chaves Nome nos ei>os Y, ` e
V
7>istir chaves para estes ei>os de Nome e definidos os 3inos da porta em Bue cada um est
ligado
De vocF esta combinando limites e Nome, ento vocF deve habilitar o MimitH H, o Mimite k k
Use a barra de rolagem para acessar o resto da tela Bue no 8 visCvel na figura 00
= Enput s 5 8 especial na medida em Bue pode ser usado para inibir a e>ecuo de um programa
da pea, Buando as guardas de segurana no esto no lugar
=s outros trFs %s 5 e se no for usado para o bloBueio de emergencia& esso disponCveis para seu
uso e pode ser testado no cIdigo de macros
= Enput s / pode ser usado para conectar um bota chave e>terno para implementar a
funo nica etapa LocF pode Buerer configurHlos mais tarde
Nabilitar e definir Pndice de 3ulse se vocF tiver um sensor no spindle com apenas um slot ou
marca
Nabilitar e definir limites de curso se vocF est dei>ando de controlar no Mach- seu limite de
interruptores e vocF tem um boto e>terno Bue vocF vai pressionar, Buando vocF necessitar de
correr fora de um limite
Rev 1.84-A2 ,-1 Using Mach3Mi
Con"iguring Mach3
De vocF no tFm esta opo, ento vocF pode usar um boto de tela para alcanar a mesma
funo
Nabilitar e definir onde parar o Mach3 para indicar Bue o usurio acionou uma situao de
emergFncia
Nabilitar e definir entradas =7M Trigger se vocF Buiser sinais el8tricos para serem capa?es de
chamar funes de =7M por um boto, sem boto de tela Bue devem ser fornecidas
Nabilitar e definir o tempo se vocF tem um sensor do ei>o com mais de um slot ou marca
Nabilitar 3robe para a digitali?ao e TN4=n, TN4Up e TN4!o#n para o controle de um
maarico a 3lasma
De vocF tiver uma porta paralela, ento vocF tem 0 entradas disponCveis, com duas portas, h 5.
%=u com pinos -H6 definidos como entradas, 53&
Z muito comum achar Bue vocF esta com poucos sinais de entrada, especialmente se vocF
tamb8m vai ter algumas entradas para as escalas de vidro ou outros encoders
LocF pode ter Bue comprometer algumas coisas sobrepondo alguns controles fCsicos para
poupar sinaisb
LocF tamb8m pode considerar usar um emulador de teclado para alguns sinais de entrada
4liBue no boto ,plicar para salvar os dados nesta aba
5.3.3 /$%lated inp%t signals
Ef +ou chec$ the 7mulated column for an input then the 3ort(3in number and activeHlo
state for that signal #ill be ignored but the entr+ in the Not$e+ column #ill be interpreted
@hen a $e+Hdo#n message is received #ith code that matches a Not$e+ value then that
signal is considered to be active @hen a $e+Hup message is received then it is inactive
The $e+Hup and $e+Hdo#n signals usuall+ come from a $e+board emulator %li$e the
Ultimarc E3,4 or Nagstrom& #hich is triggered b+ s#itches connected to its inputs This
allo#s more s#itches to be sensed than spare pins on +our parallel ports but there ma+
be significant time dela+s before the s#itch change is seen and indeed a $e+Hup or $e+H
do#n message can get lost b+ @indo#s
#igure ,.. ) (ut%ut signas
Using Mach3Mi ,-1+ Rev 1.84-A2
Con"iguring Mach3
7mulated signals cannot be used for Inde5 or Timing and should not be used for EStop
]
033 emulado sinais de entrada
De vocF Marcar a coluna 7mulad para uma entrada em um 3ino da 3orta e dei>ar em estado de
ativado, esse sinal ser ignorado, mas a entrada na coluna Not$e+ ser interpretada
Uuando uma tecla 8 ativada e um cIdigo 8 recebido com um valor Bue corresponde a um valor
definido em Not$e+, o sinal 8 considerado ativo
Uuando uma mensagem de tecla 8 recebido at8 ento, est inativo
, chaveHup e do#nHchave sinais normalmente vFm de um emulador de teclado %como o
Ultimarc E3,4 ou Nagstrom&, Bue 8 acionado por interruptores ligado a suas entradas
Esto permite mais Buantidade de chaves Bue os pinos em suas portas paralelas, mas pode haver
atrasos significativos antes Bue a mudana da chave seAa reconhecida pelo@indo#s, inclusive
se perder esta informao
Dinais emulados no pode ser usado para Ende> ou Timing e no devem ser usada para parada
de emergencia
_
5.3.4 *%tp%t 1ignals
Use the =utput signals tab to define the outputs +ou reBuire Dee figure 01
`ou #ill probabl+ onl+ #ant to use one Ena/le output %as all the a>is drives can be
connected to it& Endeed if +ou are using the charge pump(pulse monitor feature then
+ou ma+ enable +our a>is drives from its output
The O$tp$t: signals are for use to control a stop(start spindle %cloc$#ise and optionall+
countercloc$#ise&, the *lood and Mist coolant pumps or valves and for control b+ +our
o#n customi?ed Mach3 buttons or macros
The ,harge 3ump line should be enabled and defined if +our brea$out board accept
this pulse input to continuall+ confirm correct operation of Mach3 ,harge +$mp* is
used if +ou have a second brea$out board connected to the second port or #ant to
verif+ the operation of the second port itself
#lick the Apply button to save the data on this tab.
]
03/ =s sinais de saCda
Use os sinais de saCda para definir as saCdas Bue vocF necessita LeAa a figura 01
LocF dever provavelmente somente necessitar de usar uma saCda 7nable %todas as unidades de
ei>os podem ser conectados a ele& "a verdade, se vocF estiver usando a bomba de carga ( e o
recurso de monitor de pulso, ento vocF pode comandar seus ei>os por esta saCda
=s sinais de =utput s so usados para controlar um stop ( start do Dpindle %sentido horrio e,
opcionalmente, antiHhorrio&, a bomba de refrigerao ou vlvulas outras, podem ser
controlados por seus prIprios botes personali?ados ou macros no Mach3
4liBue no boto ,plicar para salvar os dados nesta aba
_
5.3.5 Deining encoder inp%ts
The 7ncoder(M3Ks tab is used to define the connections and the resolution of
linear encoders or Manual 3ulse Kenerators %M3Ks& used for Aogging the a>es
Rev 1.84-A2 ,-11 Using Mach3Mi
Con"iguring Mach3
#igure ,.0 ) :ncoder in%uts
The 7ncoder(M3Ks tab is used to define the connections and the resolution of linear
encoders or Manual 3ulse Kenerators %M3Ks& used for Aogging the a>es Et is covered
here for completeness of the description of 4onfigo3orts l 3ins
This dialog does not need an activeHlo column as, if the encoders count the #rong #a+ it
is merel+ necessar+ to s#ap the pins allocated for , and G inputs
]
030 !efinindo entradas encoder
, ,ba (7ncoder( M3Ks 8 usada para definir as cone>es e a resoluo de 7ncoders Minear ou
Manual 3ulse Keradores %M3Ks& usados para movimentar os ei>os
7le 8 coberto aBui para a completude da descrio da configuraoo 3orts l 3ins
F
,.3.,.1 :ncoders
The ,o$nts per $nit value should be set to correspond to the resolution of the encoder
Thus a linear scale #ith rulings at -. microns produces a count ever+ 0 microns %remember
the Buadrature signal&, that is -.. counts per unit %millimetre& Ef +ou have "ative units set
as inches the it #ould be -.. x -0/ n 0.:. counts per unit %inch& The <elocity value is
not used
]
0305 7ncoders
,s contagens por unidade de valor deve ser definido para corresponder T resoluo do encoder
,ssim uma escala linear, com decises a -. microns produ? uma contagem a cada 0 microns
%lembreHse o Buadratura do sinal&, Bue 8 de -.. contagens por unidade %milCmetro&
De vocF tiver unidades "ative definido como centCmetros do Bue seria -.. > -0,/ n 0.:.
contagens por unidade %polegadas& = valor da velocidade no 8 utili?ado
_
Con"iguring Mach3
Using Mach3Mi ,-12 Rev 1.84-A2
,.3.,.2 M!8s
The ,o$nts per $nit value is used to define the number of Buadrature counts that need to
be generated for Mach3 to see movement of the M3K *or a 5.. 439 encoder, a figure of
- is suitable *or higher resolutions +ou should increase this figure to get the mechanical
sensitivit+ +ou #ant @e find 5.. #or$s #ell #ith 5.-/ 439 encoders
The <elocity value determines the scaling of pulses sent to the a>is being controlled b+
the M3K The lo#er the value given in <elocity the faster the a>is #ill move Ets value is
best set b+ e>periment to give a comfortable speed #hen spinning the M3K as fast as is
comfortable
]
030- M3Ks
,s contagens por unidade de valor 8 usado para definir o nmero de contagens em Buadratura
Bue devem ser gerado para Mach3 para ver o movimento da M3K
3ara um codificador 5.. 439 , um valor de - 8 adeBuado 3ara resolues mais altas vocF
deve aumentar este valor para obter a sensibilidade mecRnica Bue vocF deseAa
"Is encontramos 5.. funciona bem com 5.-/ encoders 439
= valor da velocidade determina o dimensionamento de impulsos enviados ao ei>o, sendo
controlada pela M3K Uuanto menor o valor dado na velocidade mais rpido o ei>o se mover
Deu valor 8 o melhor estabelecidos pela e>periFncia para se ter uma velocidade rpida e
confortvel
_
5.3.6 Conig%ring the spindle
The ne>t tab on 4onfigo3orts l 3ins is Spindle Set$p This is used to define the #a+ in
#hich +our spindle and coolant is to be controlled `ou ma+ opt to allo# Mach3 to do
nothing #ith it, to turn the spindle on and off or to have total control of its speed b+ using a
3ulse @idth Modulated %3@M& signal or a step and direction signal The dialog is sho#n
in figure 0:
#igure ,.8 ) -%inde -etu%
[
Con"iguring Mach3
Rev 1.84-A2 ,-13 Using Mach3Mi
031 4onfigurando o Dpindle
, prI>ima guia em 4onfigo 3orts l 3ins 8 Dpindle Detup
Esto 8 usado para definir em Bue forma seu Dpindle e a 9efrigerao sero controladas
LocF pode optar para o Mach3 no faa nada para ligar ou desligar o seu Dpindle, ou ter o
controle total da sua velocidade usando um 3@M ou um passo e um sinal de direo
, cai>a de dilogo 8 mostrada na figura 0:
_
,.3...1 Cooant contro
4ode MJ can turn *lood coolant on, M6 can turn Mist coolant on and M6 can turn all
coolant off The *lood Mist control section of the dialog defines #hich of the output
signals are to be used to implement these functions The 3ort(3ins for the outputs have
alread+ been defined on the O$tp$t Signals tab
Ef +ou do not #ant to use this function chec$ Disa/le Flood)Mist 4elays
]
0315 controle de refrigerao
4Idigos MJ, M6 e M6 so utili?ados para ligar e desligar o tipo de refrigerao
, seo de controle de inundao "8voa do dilogo define Buais os sinais de saCda devem ser
utili?ados para implementar essas funes
= 3ino da 3orta para suas saCdas A foram definido na guia sinais de saCda
De vocF no Buiser usar essa funo,!esative *lood ( Mist 9ela+s
_
,.3...2 -%inde reay contro
Ef the spindle speed is controlled b+ hand or b+ using a 3@M signal then Mach3 can
define its direction and #hen to start and stop it %in response to M3, M/ and M0& b+ using
t#o outputs The 3ort(3ins for the outputs have alread+ been defined on the O$tp$t
Signals tab
Ef +ou control the spindle b+ Dtep and !irection then +ou do not need these controls
M3, M/ and M0 #ill control the pulse train generated automaticall+
Ef +ou do not #ant to use this function chec$ Disa/le Spindle 4elays
]
031- 4ontrole de acionamento do Dpindle
De a velocidade do Dpindle 8 controlada manualmente ou pelo uso de um sinal usando o 3@M
ento o Mach3 pode definir a direo Buando for ligado ou parado % 7m resposta a M3, M/ e
M0& e pelo uso de duas DaCdas
MembreHse Bue os 3inos da 3orta A foi definido "a Tabela =utput Dignals
_
,.3...3 Motor Contro
4hec$ =se Motor ,ontrol if +ou #ant to use 3@M or Dtep and !irection control of
the spindle @hen this is chec$ed then +ou can choose bet#een +WM ,ontrol and
Step)Dir Motor
Con"iguring Mach3
Using Mach3Mi ,-14 Rev 1.84-A2
]
0313 4ontrole do Motor
LerifiBue =se Motor ,ontrol se vocF deseAa usar 3@M ou pulsos de controle de
direo no Dpindle
Uuando esta opo estiver assinalada, ento vocF pode escolher entre controle
por 3@M e Motor de 3ulso ( !ireo
_
6<M #ontrol
, 3@M signal is a digital signal, a SsBuareS #ave #here the percentage of the time the
signal is high specifies the percentage of the full speed of the motor at #hich it should
run
Do, suppose +ou have a motor and 3@M drive #ith ma>imum speed of 3... rpm then
figure /5- #ould run the motor at 3... > .- n 1.. 93M Dimilarl+ the signal in
figure
/53 #ould run it at 50.. 93M
Mach3 has to ma$e a trade off in ho# man+ different #idths of pulse it can produce
against ho# h igh a freBuenc+ the sBuare #ave can be Ef the freBuenc+ is 0 N? the Mach3
running #ith a -0... N? $ernel speed can output 0... different speeds Moving to 5.N?
reduces this to -0.. different speeds but this still amounts to a resolution of one or t#o
93M
, lo# freBuenc+ of sBuare #ave increases the time that it #ill ta$e for the motor drive
to notice that a speed change has been reBuested Get#een 0 and 5. N? gives a good
compromise The chosen freBuenc+ is entered in the +WM-ase Fre6 bo>
Man+ drives and motors have a minimum speed T+picall+ because the cooling fan is ver+
inefficient at lo# speeds #hereas high torBue and current might still be demanded The
Minim$m +WM > bo> allo#s +ou to set the percentage of ma>imum speed at #hich
Mach3 #ill stop outputting the 3@M signal
`ou should be a#are that the 3@M drive electronics ma+ also have a minimum speed
setting and that Mach3 pulle+ configuration %see section >>& allo#s +ou to set minimum
speeds T+picall+ +ou should aim to set the pulle+ limit slightl+ higher than the
Minim$m +WM > or hard#are limit as this #ill clip the speed and(or give a sensible
error message rather than Aust stopping it
Step and Direction motor
This ma+ be an variable speed drive controlled b+ step pulses or a full servo drive
`ou can use the Mach3 pulle+ configuration %see section 0015& to define a
minimum speed if this is needed b+ the motor or its electronics
]
i
4ontrole por 3@M
Um sinal 3@M 8 um sinal digital, trataHse de uma onda Buadrada onde a percentagem do
tempo do sinal em alta fica especificada para a percentagem da velocidade m>ima do motor
em Bue ele deve rodar
_
Uma bai>a freBQFncia de onda Buadrada aumenta o tempo Bue levar para o motor sentir Bue
uma mudana de velocidade foi solicitada 7ntre 0 e 5. N? d um bom compromisso ,
freBQFncia escolhida 8 inserida na cai>a' 3@MGase *reB
Muitas unidades e os motores tFm uma velocidade mCnima
Con"iguring Mach3
Rev 1.84-A2 ,-1, Using Mach3Mi
"ormalmente porBue o ventilador de refrigerao 8 muito ineficientes em bai>as velocidades
enBuanto Bue o torBue elevado pode estar sendo e>igido
, cai>a Minimum 3@M m permite Bue vocF defina a porcentagem da velocidade m>ima na
Bual Mach3 vai parar de enviar para a saCda o sinal 3@M
LocF deve estar ciente de Bue os circuitos eletr^nicos de 3@M tamb8m pode ter uma definio
de velocidade mCnima e Bue a configurao de polia em Mach3 %ver seco >>& permite Bue
vocF defina um mCnimo para esta velocidade
"ormalmente, vocF deve procurar definir o limite de polia ligeiramente superior ao limite
mCnimo do 3@M m ou ao limie do hard#are, pois isso poder acarretar apenas uma
mensagem de erro, no lugar de efetivamente apenas parHlo
3asso e !ireo do motor
Esto pode ser uma unidade de velocidade varivel controlada por pulsos de passo ou servo
drive completo
LocF pode usar a configurao de polia em Mach3 %ver seco 0015& para definir um
mCnimo velocidade se isso for necessrio para o motor ou a sua eletr^nica
_
,.3...4 Mod/us s%inde contro
This bloc$ allo#s the setup of an analogue port on a Modbus device %eg a
Nomann ModE=& to control spindle speed *or details see the documentation of
+our ModGus device
]
031/ controle Modbus ei>o
7ste bloco permite a configurao de uma porta analIgica em um dispositivo
Modbus %por e>emplo, Nomann ModE=& para controlar a velocidade do ei>o
3ara mais informaes, consulte a documentao do seu ModGus dispositivo
_
,.3..., 8enera !arameters
These allo# +ou to control the dela+ after starting or stopping the spindle before Mach3
#ill e>ecute further commands %ie a !#ell& These dela+s can be used to allo# time
for acceleration before a cut is made and to provide some soft#are protection from
going directl+ from cloc$#ise to countercloc$#ise The d#ell times are entered in
seconds
Immediate 4elay o%% /e%ore delay, if chec$ed #ill s#itch the spindle rela+ off as soon as the
M0 is e>ecuted Ef unchec$ed it sta+s on until the spinHdo#n dela+ period has elapsed
]
0310 3arRmetros gerais
7stes permitem controlar o atraso depois de iniciar ou parar o Dpindle e antes do Mach3
e>ecutar mais comandos %ou seAa, uma interrupo&
7stes atrasos podem ser usados para dar tempo para acelerao do spindle antes Bue um corte seAa
iniciado e para fornecer alguma proteo de soft#are para Bue no acontea de ir diretamente no
sentido horrio para sentido antiHhorrio
=s tempos de durao so introdu?idos em segundos
Immediate 4elay o%% /e%ore delay d se marcado, dever desligar o spindle tal como uma M0
De nada for feito ela permanece at8 o perCodo de atraso spinHdo#n ter decorrido
_
,.3.... !uey ratios
Con"iguring Mach3
Using Mach3Mi ,-1. Rev 1.84-A2
Mach3 has control over the speed of +our spindle motor `ou program spindle speeds
through the D #ord The Mach3 pulle+ s+stem allo#s +ou to define the relationship
bet#een these for four different pulle+ or gearbo> settings Et is easier to understand ho#
it #or$s after tuning +our spindle motor so it is described in section 0015 belo#
]
0311 relaes de polias
Mach3 pode ter o controle sobre a velocidade de seu motor spindle
LocF programa a velocidade do ei>o atrav8s da palavra D
= sistema de polias Mach3 lhe permite definir a relao entre at8 Buatro polias ou
configuraes de diferentes velocidades
Z mais fcil entender como ele trabalha apIs aAustar seu motor spindle assim como 8 descrito
na seco 0015 abai>o
_
,.3...0 -%ecia "unction
Laser mode should al#a+s be unchec$ed e>cept for controlling the po#er of a cutting
laser b+ the feedrate
=se Spindle %eed/ac. in sync mode should be unHchec$ed
Rev 1.84-A2 ,-10 Using Mach3Mi
Con"iguring Mach3
,losed Loop Spindle ,ontrol, #hen chec$ed, implements a soft#are servo loop #hich
tries to match the actual spindle speed seen b+ the Ende> or Timing sensor #ith that
demanded b+ the D #ord The e>act speed of the spindle is not li$el+ to be important so
+ou are not li$el+ to need to use this feature in Mach3Turn
Ef +ou do use it then the 3, E and ! variables should be set in the range . to 5 3 controls
the gain of the loop and an e>cessive value #ill ma$e the speed oscillate, or hunt, around
the reBuested value rather than settling on it The ! variable applies damping so
stabilising these oscillations b+ using the derivative %rate of change& of the speed The E
variable ta$es
a long term vie# of the difference bet#een actual and reBuested speed and so increases
the accurac+ in the stead+ state Tuning these values is assisted b+ using the dialog
opened b+ =peratoro4alibrate spindle
Spindle Speed #veraging2 #hen chec$ed, causes Mach3 to average the time bet#een
inde>(timing pulses over several revolutions #hen it is deriving the actual spindle speed
`ou might find it useful #ith a ver+ lo# inertia spindle drive or one #here the control
tends to give shortHterm variations of speed
]
031J *unes especiais
Modo Maser deve ser sempre desmarcado, e>ceto para controlar o poder de corte a laser
pelo ,vano
=se Spindle %eed/ac. in sync mode deve ser desmarcada
,losed Loop Spindle ,ontrol, Buando marcada, implementa um soft#are de loop no servo Bue
tenta combinar a velocidade real do ei>o vista pelo Pndice ou sincronismo, com o comando D
, velocidade e>ata do Dpindle provavelmente no ser importante para vocF caso contrrio vc
deve usar Mach3Turn
De vocF usar isto , ento as variveis 3 E e ! devem ser definidas no intervalo de .H5
3 controla o ganho do loop e um valor e>cessivo far oscilar a velocidade, ou procurar em
todos os valores em ve? de se decidir por ele , varivel ! 8 aplicvel para o amortecimento
de modo a estabili?ao destas oscilaes, utili?ando a ta>a %derivado da mudana& da
velocidade , varivel Bue toma uma viso de longo pra?o da diferena entre real e solicitou a
velocidade e aumenta a preciso, no estado estacionrio
= aAuste destes valores 8 assistida por meio do dilogo aberto pelo =peradoro fuso 4alibrar
Spindle Speed #veraging, Buando marcada, fa? com Bue a Mach3 use am8dia do tempo entre
pulsos ( inde> timing sobre vrias revolues, Buando se retira a velocidade real do ei>o
LocF pode achar til, com uma movimentao muito bai>a a in8rcia do ei>o, ou onde o
controle tende dar variaes de curto pra?o na velocidade
_
Using Mach3Mi ,-18 Rev 1.84-A2
Con"iguring Mach3
5.3." !ill *ptions tab
The final tab on 4onfigo3orts l 3ins is Mill Options. Dee figure 06
#igure ,.1 ) Mi (%tions $a/
9,inhibit. The ?7inhi/it On chec$bo> enables this function Ma5 Depth gives the lo#est V
value to #hich the a>is #ill move The 3ersistent chec$bo> remembers the state %#hich
can be changed b+ a screen toggle& from run to run of Mach3
Digitising$ The ; #5is +oint ,lo$ds chec$bo> enables recording of the state of the , a>is
as #ell as Y, ` and V The ,dd ,>is Metters to 4oordinates prefi>es the data #ith the
a>is name in the point cloud file
T8# 0ptions$ The chec$bo> name is selfHe>planator+
#ompensation 3C+:3C1$ The ,dvanced 4ompensation ,nal+sis chec$bo> turns on a
more thorough loo$ahead anal+sis that #ill reduce the ris$ of gouging #hen
compensating for cutter diameter %using K/5 and K/-& on comple> shapes
8omed true when no 8ome switches$ @ill ma$e the s+stem appear to be referenced %ie M7!s
green& at all times Et should onl+ be used if no Nome s#itches are defined under
03J =pes da guia Mill
, ltima guia, 4onfigo 3orts l 3ins ( Mill =ptions LeAa a figura 06
VHinibir = ?7inhi/it On permite inibir essa funo Ma5 Depth d o menor valor de V
Bue o ei>o se move , opo lembra o estado persistente %Bue pode ser alternada por uma
alternRncia de tela& a cada e>ecuo do Mach3
!igitali?ao' = / ei>o #5is +oint ,lo$ds permite a gravao do estado do ei>o , bem como
dos ei>os Y, ` e V
TN4 =pes' = nome do chec$bo> 8 autoHe>plicativo
4ompensao K/5, K/-' Uma cai>a para ,nalise de compensao avanada, gira em torno de
uma anlise mais aprofundada vai redu?ir o risco de cin?elamento com compensadores para o
diRmetro de corte %com K/5 e K/-&, em formas comple>as
Nomed verdade Buando no muda Nome' !ever fa?er o sistema parecer ser referenciado
%isto 8, M7!s verde& em todos os momentos
Rev 1.84-A2 ,-11 Using Mach3Mi
Con"iguring Mach3
!eve ser usado somente se no foi definido Nome nos pinos da porta
5.3.9 Testing
`our soft#are is no# configured sufficientl+ for +ou to do some simple tests #ith the
hard#are Ef it is convenient to connect up the inputs from the manual s#itches such
as !ome then do so no#
]
03: Teste
Deu soft#are agora, A dever estar suficientemente configurado para vocF fa?er
alguns testes simples com o hard#are De for conveniente ligue as entradas das
chaves manuais, tais como Nome, ento faa isso agora
_
9un Mach3Mill and displa+ the !iagnostics screen This has a ban$ of M7!s displa+ing
the logic level of the inputs and outputs 7nsure that the e>ternal 7mergenc+ Dtop signal is
not active %9ed Emergency M7! not flashing& and press the red 4eset button on the screen
Ets M7! should stop flashing
]
7>ecute o Mach3Mill e e>iba a tela !iagnostics
7sta tela mostra M7!D mostrando o nCvel lIgico das entradas e saCdas
4ertifiBueHse Bue a chave e>terna de emergFncia no esteAa acionada %9ed
Emergency M7! "o piscando& e pressione o boto 9eset vermelho na tela
= M7! deve parar de piscar
_
Ef +ou have associated an+ outputs #ith coolant or spindle rotation then +ou can use the
relevant buttons on the diagnostic screen to turn the outputs on and off The machine
should also respond or +ou can monitor the voltages of the signals #ith a multimeter
]
De vocF tiver associado com as DaCdas como seAam refrigerao ou Dpindle ento
vocF pode usar o botes correspondentes da tela de diagnIstico para testar as
saCdas se as mesmas ligam e desligam
, mBuina deve tamb8m responder fCsicamente ou vocF pode monitorar as
tenses dos sinais com um multCmetro
_
"e>t operate the Nome or the limit s#itches `ou should see the appropriate M7!s
glo# +ello# #hen their signal is active
]
7m seguida, vamos testar a chave de Nome e de Mimites
LocF deveria ver o o M7!s adeBuado ficar aceso em amarelo Buando o sinal
estiver ativo
_
These tests #ill let +ou see that +our parallel port is correctl+ addressed and the inputs
and outputs are appropriatel+ connected
]
7sses testes permitiro ver Bue a porta paralela est corretamente tratada e as
entradas e saCdas esto devidamente conectadas
_
Ef +ou have t#o ports and all the test signals are on one then +ou might consider a
Using Mach3Mi ,-2+ Rev 1.84-A2
Con"iguring Mach3
temporar+ s#itch of +our configuration so that one of the Nome or limit s#itches is
connected via it so that +ou can chec$ its correct operation !onat forget the #pply
button #hen doing this sort of testing Ef all is #ell then +ou should restore the proper
configuration
]
De vocF tem duas portas e todos os sinais de teste esto ligados, ento vocF pode
considerar um chaveamento temporrio de sua configurao, de modo Bue o
Nome ou chaves esteAam conectados de modo Bue vocF pode verificar o seu
correcto funcionamento
"o se esBuea o boto ,plicar ao fa?er este tipo de teste
De tudo estiver bem, ento vocF deve restaurar o sua configurao
_
Ef +ou have problems +ou should sort them out no# as this #ill be much easier that #hen
+ou start tr+ing to drive the a>es Ef +ou do not have a multimeter then +ou #ill have to
bu+ or borro# a logic probe or a !-0 adaptor %#ith actual M7!s& #hich let +ou monitor
the
state of its pins En essence +ou need to discover if %a& the signals in and out of the
computer are incorrect %ie Mach3 is not doing #hat +ou #ant or e>pect& or %b& the signals
are not getting bet#een the !-0 connector and +our machine tool %ie a #iring or
configuration problem #ith the brea$out board or machine& 50 minutes help from a friend
can #or$ #onders in this situation even if +ou onl+ carefull+ e>plain to him(her #hat +our
problem is and ho# +ou have alread+ loo$ed for itb
`ou #ill be ama?ed ho# often this sort of e>planation suddenl+ stops #ith #ords li$e
Sii =hb E see #hat the problem must be, itas iS
]
De vocF tiver problemas, vocF deve reparHlos agora, pois isso ser muito mais fcil
do Bue Buando vocF comear a tentar condu?ir os ei>os
De vocF no tiver um multCmetro, ento vocF ter Bue comprar ou emprestar uma
sonda lIgica ou um adaptador !-0 %com M7!s reais& Bue lhe permitem controlar o
estado de pinos
7m essFncia vocF precisa descobrir se o'
%a&, os sinais de entrada e saCda do computador esto corretos no %Mach3 ou seAa,
est fa?endo o Bue vocF Buer ou espera& ou
%b& os sinais esto se perdendo entre o seu conector !-0 e a sua mBuina %ou seAa,
uma ligao ou a configurao problema com a placa de fuga ou de mBuina&
50 minutos a aAuda de um amigo pode facilitar muito nesta situao
,.4 *e"ining the setu% units
@ith the basic functions #or$ing, itas time to
configure the a>is drives The first thing to decide
is #hether +ou #ish to define their properties in
Metric %millimetres& or Ench units `ou #ill be
able to run part programs in either units #hichever
option +ou choose The maths for configuration
#ill
be slightl+ easier if +ou choose the same s+stem as
+our drive train %eg the ballscre#& #as made in
Do a scre# #ith .-S lead %0 tpi& is easier to
configure
in inches than in
millimetres Dimilarl+ a
-mm lead
scre# #ill be easier in
millimetres The
multiplication and(or
division b+ -0/ is not
difficult but is Aust
something else to
thin$ about
There is, on the other
hand, a slight advantage
Rev 1.84-A2 ,-21 Using Mach3Mi
Con"iguring Mach3
in
#igure ,.1+ - -etu% Units diaog
having the setup units be the units in #hich +ou usuall+ #or$ This is that +ou can loc$
the !9=s to displa+ in this s+stem #hatever the part program is doing %ie s#itching
units b+ K-. and K-5&
Do the choice is +ours Use 4onfigoDetup Units to choose MMs or Enches %see figure
05.& =nce +ou have made a choice +ou must not change it #ithout going bac$ over all
the follo#ing steps or total confusion #ill reignb , message bo> reminds +ou of this #hen
+ou se 4onfigoDetup units
]
0/ !efinindo a unidades de medida de instalao
4om as funes bsicas de trabalho A configuradas, 8 hora de configurar as unidades dos
ei>os
, primeira coisa a decidir 8 se vocF deseAa definir as suas propriedades em
unidades m8tricas ou polegadas
LocF ser capa? de e>ecutar programas em peas na unidade Bue vocF escolher
, matemtica para a configurao ser um pouco mais fcil se vocF escolher o mesmo
sistema de medida tanto nas medidas da sua mBuina, como fusos, barras roscadas etc e nas
peas Bue vocF vai produ?ir
= multiplicao ou diviso por -0,/ no 8 difCcil, mas 8 apenas algo a mais para se pensar
H, por outro lado, uma ligeira vantagem em se ter no setup o controle sobre a
unidade que voc normalmente usa.
Trata-se de que voc pode ter nos D! para e"ibir o sistema que o programa
este#a usando $ou se#a, unidades de comuta%&o por '2( e '21).
*ssim, a escol+a , sua.
-se .on/ig0 -nits 1etup para escol+er 221 ou 3nc+es $ver /igura 4.1().
Depois de ter feito a escolha voc no dever alter-la sem passar por
cima de todas as etapas seguintes e a confuso total reinar!
Uma cai>a de mensagem lembrar vc disso Buando usar unidades 4onfigo 4onfig
_
,., $uning motors
@ell after all that detail itas no# time to get things moving H literall+b This section
describes setting up +our a>is drives and, if its speed #ill be controlled b+ Mach3, the
spindle drive
The overall strateg+ for each a>is is' %a& to calculate ho# man+ step pulses must be sent
to the drive for each unit %inch or mm& of movement of the tool or table, %b& to establish
the ma>imum speed for the motor and %c& to set the reBuired acceleration(deceleration
rate
@e advise +ou to deal #ith one a>is at a time `ou might #ish to tr+ running the
motor before it is mechanicall+ connected to the machine tool
Do no# connect up the po#er to +our a>is driver electronics and double chec$ the
#iring bet#een the driver electronics and +our brea$out board(computer `ou are about
to mi> high po#er and computing so it is better to be safe than smo$+b
]
0,0 Dintoni?ando os motores
Gem, depois de todos os detalhes agora 8 hora literalmente de colocar as coisas em
movimento
7sta seo descreve a configurao dos ei>os e, se a velocidade do spindle ser controlada por
Mach3
, estrat8gia global para cada ei>o ser'
%a& 4alcular Buantos pulsos de passo devem ser enviados para o !rtve para cada unidade
%polegada ou mm& de movimento da ferramenta ou da Mesa,
%b& estabelecer a velocidade m>ima do motor e
%c& para definir a necessria ta>a de acelerao ( desacelerao
,conselhamos a lidar com um ei>o de cada ve?
LocF pode tentar rodar o motor antes Bue ele seAa ligado mecanicamente a mBuina
7nto, agora ligue a alimentao do seu ei>o condutor na eletr^nica e verifiBue a fiao
entre os componentes eletr^nicos e sua placa G=G ( computador
LocF est prestes a misturar alto poder de computao e por isso 8 melhor estar seguro de Bue
no fumaeb
_
5.5.1 Calc%lating the steps per %nit
Mach3 can automaticall+ perform a test move on an a>is and calculate the steps per unit
but this is probabl+ best left for fine tuning so #e present the overall theor+ here
The number of steps Mach3 must send for one unit of movement depends on the
mechanical drive %eg pitch of ballscre#, gearing bet#een the motor and the scre#&, the
properties of the stepper motor or the encoder on the servo motor and the microHstepping
or electronic gearing in the drive electronics
@e loo$ at these three points in turn then bring them together
]
005 4alcular os passos por unidade
Mach3 pode automaticamente realisar um teste de movimento de um dos ei>os e calcular os
pulsos por unidade mas provavelmente 8 melhor dei>ar para um resultado mais apurado
Buando nos apresentarmos a teoria
= nmero de etapas Bue o Mach3 deve enviar para uma unidade do movimento depende da
acionamento mecRnico %por e>emplo, avano da barra roscada, engrenagens entre o motor e o
parafuso&, a propriedades do motor de passo ou o codificador do servo motor e microHstepping
ou engrenagem eletr^nica na unidade de !rive
"Is olharemos para estes trFs pontos, individualmente para em seguida consideraHlos Auntos
_
,.,.1.1 Cacuating mechanica drive
`ou are going to calculate the number of revolutions of the motor shaft %motor revs
per unit& to move the a>is b+ one unit This #ill probabl+ be greater than one for
inches and
less than one for millimetres but this ma$es no difference to the calculation #hich is
easiest done on a calculator an+#a+
*or a screw and nut +ou need the ra# pitch of the scre# %ie thread crest to crest distance&
and the number of starts Ench scre#s ma+ be specified in threads per inch %tpi& The pitch
is
5(tpi %eg the pitch of an : tpi single start scre# is 5 : n .5-0S&
Ef the scre# is multiple start multipl+ the ra# pitch b+ the number of starts to get the
effective pitch The effective screw pitch is therefore the distance the a>is moves for
one revolution of the screw.
"o# +ou can calculate the screw revs per unit
scre" revs per $nit @ 5 e%%ective scre" pitch
Ef the scre# is directl+ driven from the motor then this is the motor revs per unit Ef the
motor has a gear, chain or belt drive to the scre# #ith "
m
teeth on the motor gear and
"
s
teeth on the scre# gear then'
motor revs per $nit n scre" revs per $nit x "
s
"
m
*or e>ample, suppose our : tpi scre# is connected to the motor #ith a toothed belt #ith a
/: tooth pulle+ on the scre# and an 51 tooth pulle+ on the motor then the motor shaft pitch
#ould be : x /: 51 n -/ %8int' $eep all the figures on +our calculator at each stage
of calculation to avoid rounding errors&
,s a metric e>ample, suppose a t#o start scre# has 0 millimetres bet#een thread crests
%ie effective pitch is 5. millimetres& and it is connected to the motor #ith -/ tooth pulle+
on
the motor shaft and a /: tooth pulle+ on the scre# Do the scre" revs per $nit @ .5 and
motor revs per unit #ould be .5 x /: -/ n .-
*or a rack and pinion or toothed belt or chain drive the calculation is similar
*ind the pitch of the belt teeth or chain lin$s Gelts are available in metric and imperial
pitches #ith 0 or : millimetres common metric pitches and .3J0S %
3
(
:
S& common for inch
belts and for chain *or a rac$ find its tooth pitch This is best done b+ measuring the
total
distance spanning 0. or even 5.. gaps bet#een teeth "ote that, because standard gears
are made to a diametral pitch, +our length #ill not be a rational number as it includes the
constant %pi n 35/50-i&
*or all drives #e #ill call this tooth pitch.
Ef the number of teeth on the pinion(sproc$et(pulle+ on the primar+ shaft #hich drives
the rac$(belt(chain is "
s
then'
sha%t revs per $nit n 5 %tooth pitch x "
s
&
Do, for e>ample #ith a
3
(
:
S chain and a 53 tooth sproc$et #hich is on the motor shaft then
the motor revs per $nit n 5 %.3J0 x 53& n .-.05-:- En passing #e observe that this is
Buite Shigh gearedS and the motor might need an additional reduction gearbo> to meet the
torBue reBuirements En this case +ou multipl+ the motor revs per unit b+ the reduction
ratio of the gearbo>
motor revs per $nit n sha%t revs per $nit x "
s
"
m
*or e>ample a 5.'5 bo> #ould give -.05-:- revs per inch
*or rotary a(es %eg rotar+ tables or dividing heads& the unit is the degree `ou need
to calculate based on the #orm ratio This is often 6.'5 Do #ith a direct motor drive to
the #orm one rev gives / degrees so Motor revs per $nit #ould be .-0 , reduction of
-'5 from motor to #orm #ould give .0 revs per unit
]
0055 4alculo da mecRnica
Lamos agora fa?er o clculo do nmero de rotaes do ei>o do motor para mover o ei>o da
mBuina em uma unidade
7sta medida, ser provavelmente superior a um se em polegadas e menos de um se em
milCmetros, mas para isso no fa? diferena para o clculo se feito em uma calculadora
3ara a rosca e porca, vocF precisa saber Buantos fios e>istem entre uma determinada unidade
de medida%3ol e MM para definirmos o ,vano& T3E Threads per inch%T3E& tradu?indo,
Loltas por 3olegadas
7m polegadas, se o campo 8 5(tpi %por e>emplo, o avano de um parafuso com : tpi, para uma
volta do ei>o terCamos 5h ( : n .,5-0h& ou ainda -0/ ( : n 3,5J0 mm
3ara este clculo, 8 melhor considerar vrias voltas do fuso e dividir pelo nmero de *ios para
obter o T3E mais e>ato
= passo do fuso 8, portanto, a distRncia Bue o ei>o se move em uma volta do fuso
,gora vocF pode calcular as rotaes do fuso para uma unidade'
scre" revs per $nit @ 5 e%%ective scre" pitch
De o parafuso 8 comandado diretamente pelo motor, ento teremos uma revoluo por unidade
De o motor tem uma engrenagem, corrente ou correia de transmisso para o parafuso com "s
dentes na engrenagem do motor e dentes na engrenagem do parafuso " ento considere'
motor revs per $nit n scre" revs per $nit x "
s k
"
m
3or e>emplo, suponha Bue o nosso parafuso : E3T 8 ligado ao motor com uma correia dentada
com uma polia com /: dentes sobre o parafuso e uma polia de 51 dentes no motor, ento o
deslocamento do ei>o do motor seria de : > /: n -/ j 51
%Dugesto' faa todos os dados sobre a sua calculadora em cada fase do clculo para evitar
erros de arredondamento&
4omo um e>emplo em sistema m8trico, suponha um segundo parafuso com cinco milCmetros
entre a duas cristas de rosca %ou seAa, passo efetivo 8 de 5. milCmetros& e 8 ligado ao motor
com polia de -/ dentes o ei>o do motor e uma polia de /: dentes no parafuso
,ssim, as rotaes do parafuso por unidade n .,5 e rotaes do motor por unidade seria de .,5
> /: n .,-
3ara um pinho e cremalheira ou correia dentada ou corrente de transmisso o clculo 8
semelhante
7ncontre o tamanho dos dentes das engrenagens do sistema Bue vc estiver usando ou elos da
corrente
4orreias esto disponCveis no sistema m8trico e imperial com vrios tamanhos e caracterCsticas
3ara se encontrar o espao entre os dentes , melhor maneira 8 atrav8s da medio do total
distRncia Bue mede 0. ou mesmo 5.. espaos entre os dentes
Gla,bla,bla,,,,
9otaes do motor por unidade n ei>o rotaes por unidade > "s t "m
3or e>emplo, uma cai>a de 5.'.5 daria -,.05-:- rotaes por polegada
3ara ei>os de rotao %por e>emplo, as mesas rotativas &, a unidade 8 o grau
LocF precisa clcular baseado na relao entre as engrenagens Esso 8 muitas ve?es 6.'5
,ssim, com um motor direto , com uma reduo de 5 para / na rotao do ei>o, ento seria
de Motor revs per $nit deverA ser .-0
, reduo de -'5 do motor para a #orm daria .,0 rotaes por unidade
_
,.,.1.2 Cacuating motor ste%s %er revoution
The basic resolution of all modern stepper motors is -.. steps per revolution %ie 5:
o
per
step& "ote' some older steppers are 5:. steps per rev but +ou are not li$el+ to meet them
if +ou are bu+ing supported ne# or nearl+ ne# eBuipment
The basic resolution of a servo motor depends on the encoder on its shaft The encoder
resolution is usuall+ Buoted in 439 %c+cles per revolution& Gecause the output is
actuall+ t#o Buadrature signals the effective resolution #ill be four time this value
`ou #ould e>pect a 439 in the range of about 5-0 to -... corresponding to 0.. to
:... steps per revolution
]
005- 4lculo dos pulsos para cada revoluo do motor de passos
"ota do tradutor%"T&h 7ste ponto 8 importante, e deve ser considerado em conAunto com a sua
placa de drive "o caso vamos considerar Bue a mesma esta configurada para meio passo,
portanto para avanar um passo h necessidade de dois pulsos
7nto, de acordo com nosso caso, para uma revoluo do motor teremos -.. passos
multiplicados por - ento o resultado seria /.. pulsos para uma volta do motor se acionado a
meio passoh
, resoluo bsica de todos os modernos motores de passo 8 de -.. passos por revoluo %isto
8, por 5:o por etapa& "ota' alguns mais antigos steppers so 5:. passos por rev mas no 8
provvel Bue vocF os encontre por ai pois o seu eBuipamento deve ser novo
, resoluo bsica de um motor servo depende do encoder em seu ei>o
, resoluo do encoder, 8 normalmente citado como 439 %ciclos por revoluo& porBue a
saCda 8 realmente dois sinais em Buadratura para uma resoluo efetiva ser Buatro ve?es esse
valor LocF teria esperar uma 439 no intervalo de cerca de 5-0H-... correspondente a 0..H
:... passos por revoluo
_
,.,.1.3 Cacuating Mach3 ste%s %er motor revoution
@e ver+ strongl+ recommend that +ou use microHstepping drive electronics for
stepper motors Ef +ou do not do this and use a fullH or halfHstep drive then +ou #ill
need much larger motors and #ill suffer from resonances that limit performance at
some speeds
Dome microHstepping drives have a fi>ed number of microHsteps %t+picall+ 5.& #hile
others can be configured En this case +ou #ill find 5. to be a good compromise value to
choose This means that Mach3 #ill need to send -... pulses per revolution for a stepper
a>is drive
Dome servo drives reBuire one pulse per Buadrature count from the motor encoder %thus
giving 5-.. steps per rev for a 3.. 439 encoder =thers include electronic gearing #here
+ou can multipl+ the input steps b+ an integer value and, sometimes, the divide the result
b+ another integer value The multiplication of input steps can be ver+ useful #ith Mach3
as
the speed of small servo motors #ith a high resolution encoder can be limited b+
the ma>imum pulse rate #hich Mach3 can generate
]
0053 4lculo pulsos no Mach3 para uma volta do motor
"Is fortemente recomendamos Bue vocF use circuitos eletr^nicos de microHstepping para
stepper motores
De vocF no fi?er isso e usar um passo cheio ou meio passo, ento vocF vai precisar de motores
muito maiores e Bue vo sofrer ressonRncias Bue limitaro o desempenho em bai>as
velocidades
,lgumas unidades de microHstepping possuem um nmero fi>o de microHpassos %normalmente
5.&, enBuanto outros podem ser configurados "este caso, 5. ser um valor bom para escolher
Esto significa Bue Mach3 precisar enviar -... pulsos para uma rotao do ei>o da unidade
%"T& g"o nosso caso estaremos usando a placa driver configurada para meio passo ento
como A comentamos sero /.. pulsos para uma rotao do ei>o do motorh
,lgumas unidades de servo e>igiro um pulso por Buadratura na contagem do encoder do
motor %assim 5-.. dando passos por revoluo para um codificador 439 3.. =utros incluem
engrenagem eletr^nica, onde vocF pode multiplicar as etapas de entrada por um valor inteiro e,
Ts ve?es, a dividir o resultado por outro valor inteiro , multiplicao dos graus de entrada
pode ser muito til com a Mach3 a velocidade do servoHmotores de peBueno porte com um
codificador de alta resoluo pode ser limitada pela pulsao m>ima Bue se pode gerar em
Mach3
_
,.,.1.4 Mach3 ste%s %er unit
Do no# #e can finall+ calculate'
Mach3 steps per unit n Mach3 steps per rev x Motor revs per $nit
*igure 055 sho#s the dialog for 4onfigoMotor Tuning 4lic$ a button to select the a>is
#hich +ou are configuring and enter the calculated value of Mach3 steps per $nit in the
bo> above the Save button This value does not have to be an integer so +ou can achieve
as much accurac+ as +ou #ish To avoid forgetting later click Save Axis Settings now.
]
005/ 3ulsos por unidade
,gora podemos finalmente calcular'
Mach3 steps per unit n Mach3 steps per rev x Motor revs per $nit
*igura 055 mostra a Aanela de configuraoo Tuning Motor
4liBue em um boto para selecionar o ei>o o Bue vocF est configurando e digite o valor
calculado de etapas Mach3 por unidade na cai>a acima do boto Dalvar
7ste valor no tem de ser um nmero inteiro de modo Bue vocF pode alcanar a e>atido
necesria 3ara evitar o esBuecimento depois cliBue em Dalvar ,>is Dettings agora
#igure ,.11 - Motor tuning diaog
5.5.2 1etting the $a0i$%$ $otor speed
Dtill using the 4onfigoMotor Tuning dialog, as +ou move the Lelocit+ slider +ou #ill see
a graph of velocit+ against time for a short imaginar+ move The a>is accelerates, ma+be
runs at full speed and then decelerates Det the velocit+ to ma>imum for no# Use the
,cceleration slider to alter the rate of acceleration(deceleration %these are al#a+s the same
as each other&
,s +ou use the sliders the values in the <elocity and #ccel bo>es are updated <elocity is in
units per minute #ccel is in units per second
-
The acceleration values is also given in Ks
to give +ou a subAective impression of the forces that #ill be applied to a massive table or
#or$piece
The ma>imum velocit+ +ou can displa+ #ill be limited b+ the ma>imum pulse rate of
Mach3 Duppose +ou have configured this to -0,... N? and -... steps per unit then
the ma>imum possible <elocity is J0. units per minute
This ma>imum is, ho#ever, not necessaril+ safe for +our motor, drive mechanism or
machinee it is Aust Mach3 running Sflat outS `ou can ma$e the necessar+ calculations or
do some practical trials Metas Aust tr+ it out first
]
00- !efinir a velocidade m>ima do motor
"T gLc ter acesso a comandos de acionamento do motor pelo teclado por vria teclase
,ssim, setas para cima e para bai>o acionam o motor do ei>o Y, as setas para esBuerda e
direita para o motor do ei>o ` e 3ageUp e 3age!o#n o ei>o V
"o teclado num8rico, :,-,/,1,6 e 3 possuem o mesmo efeito ou tamb8m vc pode nas telas,
clicar nos locais correspondentesh
,inda usando a 4ai>a de dialogo do Motor 4onfigo Tuning Motor, mova o controle desli?ante
de velocidade, e vocF ver uma grfico de velocidade contra o tempo para um movimento
imaginrio
= ei>o acelera, e talve? ande a toda velocidade e, em seguida, desacelera
!efina a velocidade m>ima agora
Use o controle desli?ante ,celerao para alterar a ta>a de acelerao ( desacelerao %estes
so sempre os mesmos como os dos outros&
Uuando vocF usa os controles desli?antes os valores de velocidade nas cai>as de ,ccel so
atuali?ados
, Lelocidade 8 de unidades por minuto ,ccel est em unidades por segundo%-& =s valores de
acelerao tamb8m so dados em Ks para dar a impresso subAetiva das foras Bue sero
aplicadas a uma mesa grande ou pea
, velocidade m>ima Bue vocF pode e>ibir ser limitado pela ta>a m>ima de pulso do
Mach3
Duponha Bue vocF tenha configurado isso a -0... N? e -... passos por unidade, em seguida,
o Lelocidade m>ima possCvel 8 de J0. rotaes por minuto
7sta m>ima, no entanto, no 8 necessariamente segura para o seu motor, mecanismo de
acionamento ou mBuina, tudo pode sair voando LocF pode fa?er os clculos necessrios ou
alguns testes prticos Lamos a seguir apenas e>perimentar'
"T g7m nosso caso a velocidade m>ima possCvel seria de %%-0...(-..& q 1.& ( - n 3J0.
93M
_
,.,.2.1 !ractica trias o" motor s%eed
`ou saved the a>is after setting the Dteps per unit =O the dialog and ma$e sure
that ever+thing is po#ered up 4lic$ the 9eset button so its M7! glo#s
continuousl+
Ko bac$ to 4onfigoMotor Tuning and select +our a>is Use the Lelocit+ slider to have the
graph about -.m of ma>imum velocit+ 3ress the cursor Up $e+ on +our $e+board The
a>is should move in the 3lus direction Ef it runs a#a+ then choose a lo#er velocit+ Ef it
cra#ls then choose a higher velocit+ The cursor !o#n $e+ #ill ma$e it run the other #a+
%ie the Minus direction&
Ef the direction is #rong then, Dave the a>is and either %a& change the Mo# ,ctive setting
for the !ir pin of the a>is in 4onfigo3orts and 3inso=utput 3ins tab %and #pply it& or %b&
chec$ the appropriate bo> in 4onfigoMotor 9eversals for the a>is that +ou are using
`ou can a$so, of course, Aust s#itch off and reverse one pair of ph+sical connections to
the motor from the drive electronics
Ef a stepper motor hums or screams then +ou have #ired it incorrectl+ or are tr+ing to drive
it much too fast The -:abeling of stepper #ires %especiall+ : #ire motors& is sometimes
ver+
confusing `ou #ill need to refer to the motor and driver electronics documentation
Ef a servo motor runs a#a+ at full speed or flic$s and indicates a fault on its driver then
its armature %or encoder& connections need reversing %see +our servo electronics
documentation for more details& Ef +ou have an+ troubles here then +ou #ill be pleased
if +ou follo#ed the advice to bu+ current and properl+ supported products d bu+ right,
bu+ onceb
Most drives #ill #or$ #ell #ith a 5 microsecond minimum pulse #idth Ef +ou have
problems #ith the test moves %eg motor seems too nois+& first chec$ that +our step pulses
are not inverted %b+ Lo" active being set incorrectl+ for Dtep on the =utput 3ins tab of
3orts and 3ins& then +ou might tr+ increasing the pulse #idth to, sa+, 0 microseconds The
Dtep and !irection interface is ver+ simple but, because it gsort of #or$sh #hen configured
badl+, can be difficult to faultHfind #ithout being ver+ s+stematic and(or loo$ing at the
pulses #ith an oscilloscope
]
00-5 testes prticos da velocidade do motor
LocF salvou o ei>o depois de definir os passos por unidade
=O com os dilogos e certifiBueHse Bue tudo est ligado "T hlembre Bue no nosso caso 8 /..h
4liBue no boto 9eset para Bue seu M7! brilhe continuamente
Lolte para a 4onfigo Tuning Motor e selecione o seu ei>o
Use o controle desli?ante de velocidade para Bue o marBue sobre o grfico em torno de -. da
velocidade m>ima %3... 93M&
3ressione no teclado a tecla de seta para cima
= ei>o deve se mover na direo 3lus
De ele foge em seguida, escolha a menor velocidade %acho Bue ?unir define melhor&
De ele rasteAa em seguida, escolha uma velocidade maior %acho Bue engasgar define melhor&
= cursor para bai>o chave far correr para o outro lado %ou seAa, o sentido Menos&
De a direo est invertida isto se corrige na configurao de !ireo trocando alto por bai>o
!ir para o pino do ei>o em 4onfigo 3ortos eo pinos de saCda guia 3ins %e aplicHla& ou %b&
marBue a cai>a apropriada em 4onfigo Motor 9everses para o ei>o Bue vocF est usando
LocF pode, naturalmente, apenas desligar e inverter um par de cone>es fCsicas para o motor
para alterar o sentido de rotao
De um motor de passo ?umbe ou grita, ento vocF tem os fios incorretamente ligados ou est
esto sendo acionados para uma velocidade muito rpida
, fiao dos motores %especialmente motores : fios& 8 as ve?es muito confusa LocF vai
precisar do motor e documentao para ligaHlos corretamente ao driver
De vc no teve nenhum problema at8 aBui, ento vocF esta feli? vocF seguiu o conselho de
compra' comprar bem, comprar uma nica ve?b
, maioria das unidades iro funcionar bem com uma largura de pulso de 5 microssegundo
mCnimo
De vocF tem problemas com os movimentos no teste %por e>emplo, motor parece demasiado
ruidoso& verifiBue primeiro se os pulsos de sua etapa no esto invertidos %Dituao em ativo,
Gai>o ou ,lto sendo definido incorretamente na guia DaCda 3ins das 3ortas e 3inos&, ento vocF
pode tentar aumentar a largura de pulso para, digamos, 0 microssegundos
, 7tapa !ireo e interface so muito simples, mas ateno Bue pode parecer Bue esta
trabalhando bem ntretanto se estiver mal configurado, pode ser muito difCcil de encontrar
falhas
DeAa muito sistemtico nesta fase e seria bom conferir os pulsos com um osciloscIpio
_
,.,.2.2 Motor ma9imum s%eed cacuations
Ef +ou feel that +ou #ant to calculate the ma>imum motor speed then read this
section There are man+ things #hich define the ma>imum speed of an a>is'
Ma>imum allo#ed speed of motor %perhaps /... rpm for servo or 5... rpm
for stepper&
Ma>imum allo#ed speed of the ballscre# %depends on length, diameter, ho#
its ends are supported
Ma>imum speed of belt drive or reduction gearbo>
Ma>imum speed #hich drive electronics #ill support #ithout signalling a fault
Ma>imum speed to maintain lubrication of machine slides
The first t#o in this list are most li$el+ to affect +ou `ou #ill need to refer to the
manufacturersa specifications, calculate the permitted speeds of scre# and motor and
relate these to units per second of a>is movement Det this ma>imum value in the <elocity
bo> of Motor Tuning for the a>is involved
The Mach5(Mach- `ahoob online forum is a useful place to get advice from other
Mach3 users, #orldH#ide, on this sort of topic
]
00-- 4lculos de velocidade m>ima do motor
De vocF Buiser calcular a velocidade m>ima do motor, leia a seo a seguir
N muitas coisas Bue definem a velocidade m>ima de um motor'
j = m>imo permitido de velocidade do motor %talve? /... rpm para um motor de passos e
5... rpm para um servo motor&
j = m>imo permitido de velocidade do fuso de esferas %depende do comprimento, diRmetro, e
como as suas e>tremidades so fi>adas
j , velocidade m>ima de transmisso por correia ou a reduo da cai>a de velocidades
j , velocidade m>ima da unidade eletr^nica Bue ir apoiar o sistema sem causar uma falha
j , velocidade m>ima para manter a lubrificao da mBuina
=s dois primeiros nesta lista so os mais susceptCveis de afetar vocF
LocF vai precisar consultar os fabricantes para ter id8ia das especificaes destes elementos
!efina ento esse valor m>imo na cai>a de velocidade Tuning Motor para o ei>o em causa, de
forma Bue atinAa seu obAetivo de proAeto
= Mach5(Mach- `ahoob *Irum onHline 8 um lugar til para obter conselhos de outras Mach3
usurios, em todo o mundo, sobre este tipo de assunto
_
,.,.2.3 Automatic setting o" -te%s %er Unit `ou might not be able to
measure the gearing of +our
a>is drive or $no# the e>act pitch of
a scre# 3rovided +ou can accuratel+ measure
the distance moved b+ an a>is, perhaps using
a dial test indicator and gage bloc$s, then
+ou can get Mach3 to calculate the steps per
unit that should be configured
*igure 05- sho#s the button on the
settings screen to initiate this process `ou
#ill be prompted for the a>is that +ou #ish
to calibrate
Then +ou must enter a nominal move
distance Mach3 #ill ma$e this move Ge
read+ to press the 7Dtop button if it seems to
be going to crash because +our e>isting
settings are too far out
#igure ,.12 ) Automatic ste%s %er unit
*inall+ after the move +ou #ill be prompted to measure and enter the e>act distance
that #as moved This #ill be used to calculate the actual Dteps per Unit of +our machine
a>is
]
00-3 configurao automtica de 3assos por Unidade
LocF pode no ser capa? de medir a movimentao do seu ei>o de acionamento ou saber o
tamanho e>ato de um passo da rosca
De vocF conseguir medir com preciso a distRncia percorrida por um ei>o, talve? usando um
padro de medio e blocos de medio, ento vocF pode comear a calcular as medidas das
unidade Bue devem ser configurados
*igura 05- mostra o boto das configuraes tela para dar inCcio a este processo
LocF ser solicitado em indicar o ei>o Bue vocF deseAa calibrar
7nto vocF deve entrar com a distancia do movimento nominal
Mach3 vai fa?er esse movimento
*iBue atento para pressionar o boto obstruir se parecer falhas porBue a sua atual configurao
ainda esta muito longe de ficar correta
*inalmente, apIs o movimento faa a medio e informe a distRncia e>ata Bue se moveu
Esso ser usado para calcular os passos por Unidade de ei>o da sua mBuina
5.5.3 Deciding on acceleration
,.,.3.1 Inertia and "orces
"o motor is able to change the speed of a mechanism instantl+ , torBue is needed to give
angular momentum to the rotating parts %including the motor itself& and torBue converted
to force b+ the mechanism %scre# and nut etc& has to accelerate the machine parts and the
tool or #or$piece Dome of the force also goes to overcome friction and, of course, to
ma$e the tool cut
Mach3 #ill accelerate %and decelerate& the motor at a given rate %ie a straight line speed
time curve& Ef the motor can provide more torBue than is needed for the cutting, friction
and inertia forces to be provided at the given acceleration rate then all is #ell Ef the torBue
is insufficient then it #ill either stall %if a stepper& or the servo position error #ill increase
Ef the servo error gets too great then the drive #ill probabl+ signal a fault condition but
even if it does not then the accurac+ of the cutting #ill have suffered This #ill be
e>plained in more detail shortl+
]
003 !ecidir sobre a acelerao
0035 in8rcia e as foras
"enhum motor 8 capa? de alterar a velocidade de um mecanismo instantaneamente
= torBue 8 necessrio para dar momentum angular para as partes Bue rodam %incluindo o
motor em si& e o torBue 8 convertido para fora nos mecanismos %parafuso e porca, etc& e tem
de acelerar a peas de mBuinas e ferramentas ou pea
,lguma fora vai tamb8m para superar o atrito e, naturalmente, para empurrar a ferramenta
de corte
Mach3 vai acelerar %e desacelerar& o motor a uma determinada ta>a %ou seAa, uma linha reta de
velocidade na curva de tempo&
De o motor pode fornecer mais torBue do Bue o necessrio para o corte, frico e foras de
in8rcia a serem fornecidos com a ta>a de acelerao dada, ento est tudo bem
De o torBue 8 insuficiente, ento ele vai Buerer parar %se for um desli?ante& ou o erro de
posicionamento servo ir acontecer
De o erro do servo ficar muito grande, ento a unidade provavelmente enviar um sinal de uma
condio de falha, mas mesmo se no, ento a preciso do corte ter sofrido Esso vai ser
e>plicado em mais detalhes em breve
_
,.,.3.2 $esting di""erent acceeration vaues
Tr+ starting and stopping +our machine #ith different settings of the ,cceleration slider in
the Motor Tuning dialog ,t lo# accelerations %a gentle slope on the graph& +ou #ill be
able to hear the speed ramping up and do#n
]
003- Teste de diferentes valores de acelerao
Tente iniciar e parar a sua mBuina com configuraes diferentes usando o controle desli?ante
,celerao de Tuning Motor de dilogo
7m aceleraes bai>a %um declive suave no grfico&, vocF ser capa? de ouvir a velocidade de
rampa para cima e para bai>o
_
,.,.3.3 6hy you 'ant to avoid a /ig servo error
Most moves made in a part program are coHordinated #ith t#o, or more, a>es moving
together Thus in a move from Yn., `n. to Yn-, `n5, Mach3 #ill move the Y a>is at
t#ice the speed of the ` a>is Et not onl+ coHordinates the movements at constant speed but
ensures that the speed reBuired relationship applies during acceleration and deceleration
but accelerating all motions at a speed determined b+ the Sslo#estS a>is
Ef +ou specif+ too high an acceleration for a given a>is then Mach3 #ill assume it can use
this value but as, in practice, the a>is lags behind #hat is commanded %ie the servo error
is big& then the path cut in the #or$ #ill be inaccurate
]
0033 3or Bue vocF Buer evitar um grande erro no servo motor
, maioria dos movimentos reali?ados em um programa da pea so coordenados com dois ou
mais ei>os de movimento trabalhando Auntos
,ssim, em um movimento de Y n ., ` n . e Y n -, ` n 5, Mach3 mover o ei>o Y em o dobro
da velocidade do ei>o `
7la no sI coordena os movimentos em velocidade constante, mas assegura Bue a velocidade
necessria para a relao seAa aplicada durante a acelerao e desacelerao, mas acelerar todos
os movimentos em uma velocidade determinada pelas Smais lentaS do ei>o
De vocF especificar uma acelerao muito alta para um determinado ei>o, em seguida, Mach3
vai assumir Bue ele pode usar este valor, mas como, na prtica, o ei>o est aBu8m do Bue 8
comandado %ou seAa, o erro 8 servo grande&, ento o caminho de corte no trabalho vai ser
impreciso
_
,.,.3.4 Choosing an acceeration vaue
Et is Buite possible, $no#ing all the masses of parts, moments of inertia of the motor and
scre#s, friction forces and the torBue available from the motor to calculate #hat
acceleration can be achieved #ith a given error Gallscre# and linear slide
manufacturersa catalogues often include sample calculations
Unless +ou #ant the ultimate in performance from +our machine, #e recommend setting
the value so that test starts and stops sound ScomfortableS Dorr+ itas not ver+ scientific but
it seems to give good resultsb
]
003/ 7scolhendo um valor de acelerao
Z bem possCvel agora Bue sabendo de todas as massas de peas, momentos de in8rcia do motor
e dos fusos, as foras de atrito e o torBue disponCvel do motor vc possa calcular a acelerao a
ser alcanada com um determinado erro
4atalogos de *usos de esferas e fabricantes de guias lineares geralmente incluem e>emplos de
clculos
, menos Bue vocF Bueira o m>imo em desempenho de sua mBuina, recomendamos Bue
defina um valor com o teste da seguinte forma'
Enicie o teste e procure um o som SconfortvelS de funcionamento do motor !esculpe, no 8
muito cientCfico, mas parece dar bons resultadosb
_
5.5.4 1aving and testing a0is
*inall+ donat forget to clic$ Save #5is Settings to save the acceleration rate before +ou
move on
`ou should no# chec$ +our calculations b+ using the M!E to ma$e a defined K. move
*or a rough chec$ +ou can use a steel rule , more accurate test can be made #ith a !ial
Test Endicator %!TE&(4loc$ and a slip gage bloc$ Dtrictl+ this should be mounted in the
toolholder but for a conventional mill +ou can use the frame of the machine as the spindle
does not move relative to the frame in the YH` plane
Duppose +ou are testing the Y a>is and have a /S gage bloc$
Use the M!E screen to select inch units and absolute coordinates %K-. K6.& Det up a
clamp on the table and 2og the a>is so the !TE probe touches it 7nsure +ou finish b+ a
move in
the minus Y direction
9otate the be?el to ?ero the reading This is illustrated in figure 053
"o# use the Mach3 M!E
screen and clic$ the K6-Y.
button to set an offset and
hence ?ero the Y a>is
!9=
Move the table to Y n /0
b+ K. Y/0 The gap
should be about half an
inch Ef it is not then there
is something badl+ #rong
#ith +our calculations of
the Dteps per Unit value
4hec$ and correct this
#igure ,.13 - :sta/ishing a 7ero %osition
Ensert the gage bloc$ and move to Y n /. b+ K. Y/ This move is in the Y minus
direction as #as the Aog so the effects of bac$lash in the mechanism #ill be eliminated
The reading on the !TE #ill give +our positioning error Et should onl+ be up to a thou or
so *igure 05/ sho#s the gage in position
9emove the gage and K. Y. to chec$ the ?ero value 9epeat the /S test to get an set of,
perhaps, -. values and see ho# reproducible the positioning is Ef +ou get big variations
then there is something #rong mechanicall+ Ef +ou get consistent errors then +ou can
fine tune the Dteps per Unit value to achieve ma>imum accurac+
#igure ,.14 - 8age /oc4 in %osition
"e>t +ou should chec$ that the a>is does not lose steps in repeated moves at speed
9emove the gage bloc$ Use M!E to K. Y. and chec$ the ?ero on the !TE
Use the editor to input the follo#ing program'
%1000 &i.e. faster t'an p(ssible b)t *ac'3 +ill li$it spee,-
G20 G.0 &/nc' an, 0bs(l)te-
*.# 1123" 250 &r)n s)br()tine 50 ti$es-
*30 &st(p-
O123"
G1 X"
G1 X0 &,( a fee, rate $(ve an, $(ve bac3-
*.. &ret)rn-
4lic$ ,ycle Start to run it 4hec$ that the motion sounds smooth
@hen it finishes the !TE should of course read ?ero Ef +ou have problems then +ou
#ill need to fine tune the ma>imum velocit+ of acceleration of the a>is
]
00/ Dalvando e testando o ei>o
*inalmente, no se esBuea de clicar em Dalvar ,>is Dettings para salvar a ta>a de acelerao
antes de passar para outro ei>o
,gora Bue todos os ei>os A esto configurados e se movendo a contento, vocF deve verificar
seus clculos usando o Mach3' faa um movimento definindo K.
3ara um teste grosseiro vocF pode usar uma r8gua de ao pois o obAetivo 8 verificar se os ei>os
esto trabalhando nas unidades de medida configuradas anteriormente e se as escalas esto
sendo obedecidas pela mBuina
Um teste mais preciso pode ser feito com um relIgio comparador de disco %!TE&
"ormalmente ele deve ser montado no portaHferramenta, mas para uma mBuina convencional
vocF pode usar a estrutura da mBuina com o ei>o fi>o em relao T estrutura no plano Y`
Duponha Bue vocF est testando o ei>o Y e para isso vocF usa um bloco padro e fi>o de /
3olegadas
Use a tela para selecionar as unidades M!E em 3olegadas e coordenadas absolutas %K-. K6.&
4oloBue uma braadeira sobre a mesa e mova o ei>o para Bue o !TE toBue a sonda
*aa o movimento terminar na direo Menos Y
*aa uma leitura em ?ero Esso 8 ilustrado na figura 053
,gora use a tela do Mach3 M!E e cliBue no boto K6-Y. para fa?er um deslocamento para
?ero no !9= do ei>o Y
Mova a tabela para Y n /,0 colocando K. Y/,0
, folga, dever ser de cerca de meia polegada
De no for esta medida, h algo muito errdo com os clculos do Lalor Unitrio dos 3assos
LerifiBue e corriAa isso
Ensira o bloco *i>o e passe para Y n /. por K. Y/
7ste movimento 8 na direo menos Y ,foi o movimento para Bue a folga anterior seAa
eliminada
, leitura no !TE ir dar o seu erro de posicionamento
7le sI deve ser mCnimo
*igura 05/ mostra o medidor na posio
9emova o calibre e faa K. Y. para verificar o valor ?ero
9epita o teste de / polegadas, fa?endo umas -. ve?es para ver como est a reproduo do
posicionamento
De vocF perceber grandes variaes ento h algo errado mecanicamente
De vocF obter erros constantes, ento vocF pode aAustar no Mach3 o valor unitrio etapa por
etapa at8 atingir a m>ima preciso
7m seguida, vocF deve verificar Bue o ei>o no perca os passos em movimentos repetidos e em
alta velocidade
9emover o bloco padro
Use M!E para K. Y. e verifiBue se ?ero no !TE
Use o editor para introdu?ir o seguinte programa'
*5... %ou seAa, mais rpido Bue possCvel, mas Mach3 vai limitar esta velocidade&
K-. K6. %3olegadas e ,bsoluto&
M6: 35-3/ M0. %7>ecuta a subHrotina 0. ve?es&
M3. %stop&
=5-3/
K5 Y/
K5 Y. %faa um movimento de avano e movimento de volta&
M66 %retorno&
4liBue em ,ycle Start para iniciar a e>ecuo
LerifiBue se o movimento de sons esto suaves
Uuando termina o !TE devem, naturalmente estar em ?ero
De vocF tiver problemas, ento vocF vai necessidade de aAustar a velocidade m>ima de
acelerao do ei>o
_
5.5.5 )epeat conig%ration o other a0es
@ith the confidence +ou #ill have gained #ith the first a>is +ou should be able to
Buic$l+ repeat the process for the other a>es
000 9epita a configurao de outros ei>os
4om a confiana Bue vocF ganhou com o primeiro ei>o, vocF deve ser capa? de rapidamente
repitir o processo para os outros ei>os
_
5.5.6 1pindle $otor set%p
Ef the speed of +our spindle motor is fi>ed or controlled b+ hand then +ou can ignore this
section Ef the motor is s#itched on and off, in either direction, b+ Mach3 then this #ill
have been setup #ith the rela+ outputs
Ef Mach3 is to control the spindle speed either b+ a servo drive that accepts Dtep and
!irection pulses or b+ a 3ulse @idth Modulated %3@M& motor controller then this
section tells +ou ho# to configure +our s+stem
]
001 configurao do motor do Dpindle
De a velocidade de seu motor spindle 8 *i>o ou controlado manualmente, ento vocF pode
ignorar esta seo
De o motor 8 ligado e desligado, em BualBuer direo, por Mach3, ento A ter sido
configurado com as saCdas de rel8
De o Mach3 vai controlar a velocidade do Dpindle, Buer seAa por uma unidade de servo Bue
aceita pulsos de passos e de direo ou por um um sistema de largura de pulso modulada
%3@M&, como controlador do motor, ento esta seo descreve como configurar o seu sistema
_
,.,...1 Motor s%eed? s%inde s%eed and %ueys
The Dtep and !irection and
3@M both allo# +ou to
control the speed of the
motor @hen +ou are
machining #hat +ou and
the part program %the D
#ord& are concerned #ith
is the speed of the spindle
The motor and spindle
speed are, of course,
related b+ the pulle+s or
#igure ,.1, - !uey s%inde drive
gears connecting them @e #ill use the term Spulle+S to cover both sorts of drive in
this manual
Ef +ou do not have motor speed control the choose 3ulle+ / #ith a high ma>imum speed
li$e 5.,.... rpm and This #ill prevent Mach3 complaining if +ou run a program #ith a
D #ord as$ing for sa+ 1... rpm
Mach3 cannot $no# #ithout being told b+ +ou, the machine operator, #hat pulle+ ratio is
selected at an+ given time so +ou are responsible for this ,ctuall+ the information is
given in t#o steps @hen the s+stem is configured %ie #hat +ou are doing no#& +ou
define up to
/ available pulle+ combinations These are set b+ the ph+sical si?es of the pulle+s or ratios
in the geared head Then #hen a part program is being run the operator defines
#hich pulle+ %5 to /& is in use
The machineas pulle+ ratios are set on the 4onfigo3orts and 3ins dialog %figure 01& #here
the ma>imum speed of the four pulle+ sets is defined together #ith the default one to be
used The ma>imum speed is the speed at #hich the spindle #ill rotate #hen the motor is
at full speed *ull speed is achieved b+ 5..m pulse #idth in 3@M and at the set <el value
on Motor Tuning Sspindle ,>isS for Dtep and !irection
,s an e>ample, suppose the position #e #ill call S3ulle+ 5S is a step do#n of 0'5 from
motor to spindle and the ma>imum speed of the motor is 31.. rpm 3ulle+ 5 ma>imum
speed on 4onfigoMogic #ill be set to J-. rpm %31.. 0& 3ulle+ / might be a step up of
/'5 @ith the same motor speed its ma>imum speed #ould be set to 5/,/.. rpm %31.. x /&
The other pulle+s #ould be intermediate ratios The pulle+s do not need to be defined in
increasing speeds but the numbers should relate in some logical #a+ to the controls on
the machine tool
The Minim$m Speed value applies eBuall+ to all pulle+s and is e>pressed as a percentage
of the ma>imum speed and is, of course, also the minimum percentage 3@M signal ratio
Ef a speed lo#er than this is reBuested %b+ the D #ord etc& then Mach3 #ill reBuest +ou to
change the pulle+ ratio give a lo#er speed range *or e>ample, #ith a ma>imum speed of
5.,... rpm on pulle+ / and a minimum percentage of 0m then D/66 #ould reBuest a
different pulle+ This feature is to avoid operating the motor or its controller at a
speed belo# its minimum rating
Mach3 uses the pulle+ ratio information as follo#s'
@hen the part program e>ecutes an D #ord or a value is entered into the set speed
!9= then the value is compared #ith the ma>imum speed for the currentl+
selected pulle+ Ef the reBuested speed is greater than the ma>imum then an
error occurs
=ther#ise the percentage of the ma>imum for the pulle+ that has been reBuested
and this is used to set the 3@M #idth or Dtep pulses are generated to produce
that percentage of the ma>imum motor speed as set in Motor Tuning for the
SDpindle ,>isS
,s an e>ample suppose the ma> spindle speed for 3ulle+ s5 is 5... rpm D55.. #ould be
an error D1.. #ould give a pulse #idth of 1.m Ef the ma>imum Dtep and !irection
speed is 31.. rpm then the motor #ould be SsteppedS at -51. rpm %31.. x .1&
]
0015 Lelocidade do motor, velocidade do Dpindle e polias
= 3asso e !ireo e 3@M ambos,permitem Bue vocF controle a velocidade do motor do
spindle
Uuando vocF est usinando vocF e parte do programa esto preocupados com a velocidade do
spindle %= cIdigo D comanda a velocidade do spindle&
, velocidade do motor e do spindle esto naturalmente relacionados pelas polias ou a forma
de conectHlos
Usaremos o termo polia para cobrir os dois tipos de unidade neste manual
De vocF no tem controle de velocidade do motor e escolher a polia / com uma velocidade
m>ima de 5.... rpm e como isto ir prevenir ao Mach3 reclamando Bue vocF esta
e>ecutando um programa com um cIdigo D di?endo 1... rpm
Mach3 no pode conhecer isto se no for informado por vocF, o operador da mBuina
, relao de polias 8 selecionado em um determinado momento e vocF 8 responsvel por isso
"a verdade, a informao 8 dada em duas etapas
Uuando o sistema est configurado %isto 8, o Bue vocF est fa?endo agora&, vocF define at8
Uuatro combinaes disponCveis de polias Esto 8 definido pelo tamanho fCsico das polias ou
Buantidade de dentes das engrenagens 7nto, Buando uma parte do programa est sendo
e>ecutado o operador deve indicar a polia Bue esta em uso %5H/&
,s relaes de polia so definidas nao 4onfig 3ortas e dilogo 3inos %figura 01& onde a
velocidade m>ima dos Buatro conAuntos de polia so definidos em conAunto com o padro a
ser um utili?ado
, velocidade m>ima 8 a velocidade com Bue o ei>o ir girar Buando o motor est em
velocidade m>ima
Lelocidade m>ima 8 atingida Buando a largura de pulso do 3@M esta com 5..m e com o
valor definido em' set <el value on Motor Tuning Sspindle ,>isS for Dtep and !irection
4omo e>emplo, suponha Bue a posio Bue chamaremos de S3olia 5S 8 uma reduo no spindle
de 0 para 5 no ei>o do spindle e a velocidade m>ima do spindle 8 de 31.. rpm
, velocidade m>ima 3olia 5 em 4onfigo Mogic ser definido a J-. rpm %31.. u 0&
, 3olia / pode ser um passo para cima de /'5
4om a mesma velocidade do motor a sua velocidade m>ima seria definida como 5//.. rpm
%31.. > /& ,soutras polias poderiam ter ra?es intermedirias
,s polias no precisam ser definida em aumento da velocidade, mas os nmeros devem estar
ligados de alguma forma lIgica para os controles na mBuinaHferramenta
= valor da velocidade mCnima aplicaHse igualmente a todas as polias e 8 e>presso como uma
percentagem da velocidade m>ima e, 8 claro, tamb8m o percentual mCnimo de relao do sinal
do 3@M
De uma velocidade inferior a isto 8 solicitada %pelo cIdigo D etc&, ento Mach3 vai pedirHlhe
para alterar a relao de polias para uma gama de velocidade inferior
3or e>emplo, com uma velocidade m>ima de 5.... rpm usando a polia / e um mCnimo
percentual de 0m, indicado por D/66 ento vai ser reBuerido uma polia diferente
7sse recurso 8 para evitar o funcionamento do motor ou de seu controlador, a uma velocidade
abai>o do seu mCnimoefetivo
Mach3 usa a informao de ra?o de polias do seguinte modo'
H Uuando o programa e>ecuta parte do cIdigo D ou um valor 8 inserido no conAunto de
velocidade !9= ento o valor 8 comparado com a velocidade m>ima para o momento da
polia selecionado
De a velocidade reBuerida 8 maior Bue o m>imo, um erro ocorre
j 4aso contrrio, a percentagem do valor m>imo para a polia Bue esta sendo solicitada
8 usada para definir a largura do 3@M
4omo e>emplo, suponha Bue a velocidade m>ima do ei>o de polia s 5 8 de 5... rpm D55..
seria um erro D1.. daria uma largura de pulso de 1.m
De a etapa m>ima velocidade e direo 8 de 31.. rpm, em seguida, o motor teria um SreforoS
em -51. rpm %31.. > .,1&
_
,.,...2 !use 'idth moduated s%inde controer
To configure the spindle motor for 3@M control, chec$ the Dpindle ,>is 7nabled and
3@M 4ontrol bo>es on the 3ort and 3ins, 3rinter 3ort and ,>is Delection 3age tab %figure
05& !onat forget to #pply the changes !efine an output pin on the =utput Dignals
Delection 3age tab %figure 01& for the Dpindle Dtep This pin must be connected to +our
3@M motor control electronics `ou do not need one for Dpindle !irection so set this
pin to . #pply the changes
!efine 7>ternal ,ctivation signals in 3orts and 3ins and 4onfigureo=utput !evices
to s#itch the 3@M controller on(off and, if reBuired, to set the direction of rotation
"o# move to the 4onfigureo3orts l 3ins Dpindle =ptions and locate the +WM-ase Fre6
bo> The value in here is the freBuenc+ of the sBuare#ave #hose pulse #idth is modulated
This is the signal #hich appears on the Dpindle Dtep pin The higher the freBuenc+ +ou
choose here the faster +our controller #ill be able to respond to speed changes but the
lo#er the SresolutionS of chosen speeds The number of different speeds is the Engine
p$lse %re6$ency +WM-ase %re6 Thus for e>ample if +ou are running at 30,...
N? and
set the 3@MGase to 0. N? there are J.. discrete speeds available This is almost
certainl+ sufficient on an+ real s+stem as a motor #ith ma>imum speed of 31..
rpm could, theoreticall+, be controlled in steps of less than 1 rpm
]
001- , largura de pulso modulada controlador de ei>o
3ara configurar o motor do spindle para ser controlado por 3@M, verifiBue se as ligaes da
porta e dos pinos esto ativadas e selecionadas na pgina correspondente %figura05&
"o se esBuea de aplicar as alteraes
!efina um pino para o sinal de saCda Deleo guia 3age %figura 01& para o 3asso do spindle
7ste pino deve ser conectado a eletr^nica de controle 3@M do motor
LocF no precisa de um pino para a !ireo, portanto coloBue este pino em Vero ,pliBue as
alteraes
!efina os sinais e>terenos de ativao de saCda na porta e 3inos 4onfiguraro !ispositivos de
interruptor do controlador 3@M, ligue e desligue e, se necessrio, defina o sentido de rotao
,gora, passe para o 4onfigurar 3ortas l 3ins =pes de Dpindle e locali?e a cai>a *reB
3@MGase = valor aBui 8 a freBQFncia de =nda Uuadrada cuAa largura de pulso 8 modulada
7ste 8 o sinal Bue aparece no pino de 3asso do Dpindle
Uuanto maior a freBQFncia Bue vocF escolher mais rpido o controlador ser capa? de
responder Ts mudanas de velocidade, mas diminue a resoluo das velocidades escolhidas
= nmero de diferentes velocidades disponCveis esta em' Engine p$lse %re6$ency 8 +WM-ase
%re6
,ssim, por e>emplo, se vocF estiver e>ecutando a 30... N? e definir o 3@MGase a 0. N? h
J.. velocidades diferentes disponCveis
Esto 8 certamente o suficiente em BualBuer sistema real pois com um motor com velocidade
m>ima de 31.. rpm poderia, teoricamente ser controlado em intervalos de menos de 1 rp m
_
,.,...3 -te% and *irection s%inde controer
To configure the spindle motor for Dtep and !irection control, chec$ the Dpindle ,>is
7nabled bo>es on the 3ort and 3ins, 3rinter 3ort and ,>is Delection 3age tab %figure 05&
Meave 3@M 4ontrol unchec$ed !onat forget to #pply the changes !efine output pins on
the =utput Dignals Delection 3age tab %figure 01& for the Dpindle Dtep and Dpindle
!irection These pins must be connected to +our motor drive electronics #pply the
changes
!efine 7>ternal ,ctivation signals in 3orts and 3ins and 4onfigureo=utput !evices to
s#itch the spindle motor controller on(off if +ou #ish to ta$e po#er off the motor #hen
the spindle is stopped b+ M0 Et #ill not be rotating an+#a+ of course as Mach3 #ill not
be sending step pulses but, depending on the driver design, ma+ still be dissipating po#er
"o# move to 4onfigureoMotor Tuning for the SDpindle ,>isS The units for this #ill be
one revolution Do the Dteps per Unit are the number of pulses for one rev %eg -... for
a
5. times microHstepping drive or / x the line count of a servomotor encoder or
the eBuivalent #ith electronic gearing&
The <el bo> should be set to the number of revs per second at full speed Do a 31.. rpm
motor #ould need to be set to 1. This is not possible #ith a high line count encoder on
account of the ma>imum pulse rate from Mach3 %eg a 5.. line encoder allo#s :J0
revs per second on a 30,... N? s+stem& The spindle #ill generall+ reBuire a po#erful
motor #hose drive electronics is li$el+ to include electronic gearing #hich overcomes
this constraint
The #ccel bo> can be set b+ e>periment to give a smooth start and stop to the spindle
"ote' that if +ou #ant to enter a ver+ small value in the ,ccel bo> +ou do this b+ t+ping
rather than using the ,ccel slider , spindle runHup time of 3. seconds is Buite possible
]
0013 4ontrolando a direo do Dpindle por pulsos
3ara configurar o motor spindle para 3ulsos e controle de direo, marBue a cai>a do ei>o do
Dpindle ativando na 3orta e 3ino %figura 05&
!ei>e 3@M 4ontrol desmarcada
"o se esBuea de aplicar as alteraes
!efina os 3inos de DaCda em 4onfigureo=utput !evices %figura 01& para o 3asso e !ireo
7stes pinos deve ser ligado ao seu comando eletronico do motor ,pliBue as alteraes
!efina os sinais de ativao na 3orta e 3ins em 4onfiguraro !ispositivos para mudar o
controlador do motor do Dpindle em =n ( =ff, se Buiser desligar o motor Buando o Dpindle for
parado por M0 Esto no vai girar de nenhuma maneira 8 claro pois o Mach3 no estar
enviando pulsos de passo, mas, dependendo do proAeto do driver, o mesmo poder estar
consumindo e dissipando energia
,gora, v para 4onfiguraro Tuning Motor para o S7i>o do DpindleS , unidade para isso ser
uma revoluo ,ssim, os pulsos de cada Unidade devero ser o nmero de pulsos para uma
rev %por e>emplo, -... para 5. ve?es em microHstepping %7m meio passo, seria /..& ou / >
contagem de linha de um codificador ou o servomotor eBuivalente com engrenagem
eletr^nica&
, cai>a Lel deve ser definido como o nmero de rotaes por segundo na velocidade m>ima
,ssim, um motor em 31.. rpm precisaria ser aAustado para 1.
Esso no 8 possCvel com um codificador de linha de alta contagem Bue conta a ta>a de pulso
m>ima de Mach3 %3or e>emplo, um codificador de 5.. linhas, permite :J,0 revs por segundo
em um sistema de 30... N?& = Dpindle geralmente reBuer um poderoso motor cuAa unidade
eletr^nica provvel inclua um engrenagem eletr^nica Bue supera esta restrio
, cai>a de acelerao pode ser definida pela e>periFncia de dar um arranBue suave e parar o
Dpindle "ota' De vocF Buiser inserir um valor muito peBueno na cai>a ,ccel vc pode fa?FHlo,
digitando no lugar de usar o controle desli?ante ,ccel
*a?er o Dpindle chegar em rotao levando 3. segundos 8 bastante possCvel
_
,.,...4 $esting the s%inde drive
Ef +ou have a tacNometer or stroboscope then +ou can measure the spindle speed of
+our machine Ef not +ou #ill have to Audge it b+ e+e and using +our e>perience
=n Mach3 Dettings screen, choose a pulle+ that #ill allo# 6.. rpm Det the belt or
gearbo> on the machine to the corresponding position =n the 3rogram 9un screen set the
spindle speed reBuired to 6.. rpm and start it rotating Measure or estimate the speed Ef it
is #rong +ou #ill have to revisit +our calculations and setup
`ou might also chec$ the speeds on all the pulle+s in the same #a+ but #ith suitable
set speeds
]
001/ Teste da unidade spindle
De vocF tem um tac^metro estroboscIpio vocF pode medir a velocidade do ei>o de
seu Dpiindle De no vocF ter Bue AulgHlo pelo olho e usando sua e>periFncia
"a tela 4onfiguraes do Mach3, escolha uma polia para girar 6.. rpm
!efina a correia ou cai>a de velocidades na mBuina para a posio correspondente
"a tela 7>ecutar programa posicione o spindle para 6.. rpm e faaHo girar
Mea ou estime a velocidade De estiver errado vocF ter Bue rever seus clculos e
configurao
LocF tamb8m pode verificar a velocidade de todas as polias da mesma forma, mas
cada uma com a sua velocidade
_
,.. (ther con"iguration
5.6.1 Conig%re ho$ing and sotli$its
,...1.1 Re"erencing s%eeds and direction
The 4onfigoNome(Doftlimits dialog allo#s +ou to define #hat happens #hen a
reference operation %K-:5
or a screen button&
is performed
*igure 051 sho#s
the dialog The
Speed > is used to
avoid crashing into
the stop of an a>is
at full speed #hen
loo$ing for the
reference s#itch
@hen +ou are
referencing, Mach3
has no idea of the
position of an a>is
The direction it
#igure ,.1. ) &oming 3re"erencing5
moves in depends on the !ome 1eg chec$ bo>es Ef the relevant bo> is chec$ed then the
a>is #ill move in the minus direction until the Nome input becomes active Ef the
Nome input is alread+ active then it #ill move in the plus direction Dimilarl+ if the bo>
is unchec$ed then the a>is moves in the plus direction until the input is active and the
minus direction if it is alread+ active
]
01 =utras configuraes'
015 4onfigurar N=M7 e MEMET7D 3=9 D=*T@,97
0155 9eferenciando velocidades e direo
= dialogo' 4onfig oNome ( D=*TMEMETD permite Bue vocF defina o Bue acontece Buando
uma operao %K-:5 ou um boto na tela& 8 e>ecutada
, figura 051 mostra o dilogo
, Speed > 8 utili?ada para evitar uma parada total de um ei>o Bue esta a toda velocidade
Buando o interruptor de referFncia 8 acionado
Uuando vocF tem est referFncia, Mach3 no tem id8ia do posio de um ei>o
, direo do movimentos depende do cai>as de seleo Nome "eg
De a cai>a estiver marcada, ento o referido ei>o ir se mover na direo negatia at8 a entrada
de Nome torneHse ativa
De a entrada Nome A est ativa, ento ele ir se mover no sentido positivo
!a mesma forma, se a cai>a est desmarcada, ento o ei>o se move na direo positiva at8 Bue
a entrada fiBue ativa e negativa o sentido se ele A est ativo
_
,...1.2 !osition o" &ome s'itches
Ef the #$to ?ero chec$bo> is chec$ed then the a>is !9=s #ill be set to the
9eference(Nome D#itch location values defined in the !ome O%%. column %rather than
actual Vero& This can be useful to minimise homing time on a ver+ large and slo#
a>is
Et is, of course, necessar+ to have separate limit and reference s#itches if the
reference s#itch is not at the end of an a>is
]
015- 3osio dos interruptores Nome
De a opo #$to ?ero est marcada, ento o ei>o em !9= estar mostrando o Bue foi definido
como locali?ao em 9eferFncia ( Nome D#itch valores definidos na coluna !ome O%% %ao
inv8s de Vero reais&
Esso pode ser til para minimi?ar tempo em Bue um ei>o muito grande e lento v chegar em
Nome
Z, obviamente, necessrio ter chaves de referFncia separados se a chave de referFncia no est
no fim de um ei>o
_
,...1.3 Con"igure -o"t ;imits
,s discussed above most implementations of limit s#itches involve some compromises
and hitting them accidentall+ #ill reBuire intervention b+ the operator and ma+ reBuire
the s+stem to be reset and reHreferenced Doft limits can provide a protection against this
sort of inconvenient accident
The soft#are #ill refuse to allo# the a>es to move outside the declared range of the
soft limits of the Y, ` and V a>es These can be set in the range H666666 to k 666666
units for each a>is @hen Aogging motion gets near to the limit then its speed #ill be
reduced #hen inside an Slo" ?one #hich is defined in the table
Ef the Slo" ?one is too big then +ou #ill reduce the effective #or$ing area of the
machine Ef the+ are set too small then +ou ris$ hitting the hard#are limits
The defined limits onl+ appl+ #hen s#itched on using the So%t"are Limits toggle button
H see Mimits and Miscellaneous control famil+ for details
Ef a part program attempts to move be+ond a soft limit then it #ill raise an error
The softlimits values are also used to define the cutting envelope if Machine is selected for
the toolpath displa+ `ou ma+ find them useful for this even if +ou are not concerned
about actual limits
]
0153 4onfigurando Mimites em Doft#are
4omo discutido acima maioria das implementaes de chaves de limite envolvem alguns
compromissos pois se for acidentalmente acionado vai e>igir a interveno do operador e pode
e>igir Bue o sistema seAa restaurado e reHreferenciados
Mimites em Doft#are pode fornecer uma proteo contra esse tipo de acidente inconveniente
= soft#are no ir permitir Bue os ei>os se movimentem fora do intervalo declarado no soft
para Y, ` e V
7stes limites podem ser definidos na fai>a de k H666666 666666 unidades para cada ei>o
Uuando a movimentao fica perto do limite, ento a sua velocidade ser redu?ida dentro de
uma Vona Dlo# Bue 8 definido em tabela
De a ?ona Dlo# 8 muito grande, ento vocF vai redu?ir a rea efetiva de trabalho da mBuina
De eles forem muito peBuenas, ento vocF corre o risco de bater nos limites fCsicos
=s limites definidos apenas se aplicam Buando ligado utili?ando o boto Doft#are Mimites H
veAa a famClia de Mimites e controle !iversos para mais detalhes
De um programa da pea tenta ultrapassar um limite de soft, ento ele ir gerar um erro
=s valores D=*TMEMETD tamb8m so usados para definir o envelope de corte da mBuina se
for selecionado para a e>ibio do caminho da ferramenta LocF pode achaHlos teis para isso,
mesmo Bue vocF no est preocupado com limites reais
_
,...1.4 828 &ome ocation
The 3*B coordinates define the position in absolute coordinates to #hich the a>es #ill
move #hen a G2# is e>ecuted The+ are interpreted in the current units %K-.(K-5& and
not automaticall+ adAusted if the units s+stem is changed
]
015/ K-: local do Nome
, coordenadas K-: define a posio em coordenadas absolutas para Bue os ei>os sero
movimentadas Buando um comando K-: 8 e>ecutado
7les so interpretados nas unidades de corrente %K-.(K-5& e "<= so automaticamente
aAustado, se o sistema de unidades 8 alterado
_
5.6.2 Conig%re 1&ste$ 4otke&s
Mach3 has a set of
global hot$e+s that can
be used for Aogging or
to enter values into the
M!E line etc These
$e+s are configured in
the D+stem Not$e+s
Detup dialog %figure
05J& 4lic$ on the
button for the reBuired
function and then press
the $e+ to be used as
hot$e+ Ets value #ill
be displa+ed on the
dialog Ta$e care to
avoid duplicate use of
a code as this can cause
serious confusion
#igure ,.10) &ot4eys and (:M trigger con"iguration
This dialog also enables the codes for e>ternal buttons used as =7M Triggers to be defined
]
01- 4onfigurando teclas de acesso
Mach3 tem um conAunto de hot$e+s global Bue pode ser usado para movimentar ou
para inserir valores na M!E etc 7stes linha de teclas so configuradas em Distema Not$e+s
Detup dialog %figura 05J&
4liBue na boto para a necessria funo e pressione a tecla para ser usada como hot$e+ Deu
valor ser ser apresentado no dilogo Tome cuidado para evitar a duplicao de utili?ao de
um cIdigo, isto pode causar s8rias confuses
7ste dilogo tamb8m permite definir cIdigos para os botes e>ternos usados como gatilhos
=7M a serem definidos
_
5.6.3 Conig%re :acklash
Mach3 #ill attempt to compensate for
bac$lash in a>is drive mechanisms b+
attempting to approach each reBuired
coordinate from the same direction @hile
this is useful in applications li$e drilling
or
boring, it cannot overcome problems #ith
the machine in continuous cutting
The 4onfigoGac$lash dialog allo#s +ou to
give an estimate of the distance #hich the
a>is must bac$ up b+ to ensure the bac$lash
is ta$en up #hen the final Sfor#ardS
movement is made The speed at #hich this
movement is
to be made is also specified Dee figure 05:
%ote$ %a& These settings are onl+ used
#hen bac$lash compensation is enabled b+
the chec$bo>
%b& Gac$lash compensation is a Slast resortS
#hen the mechanical design of +our
machine
#igure ,.18 - Dac4ash con"iguration
cannot be improvedb Using it #ill generall+ disable the gconstant velocit+h features ar
gcornersh
%c& Mach3 is not able to full+ honour the a>is acceleration parameters #hen compensating
for bac$lash so stepper s+stems #ill generall+ have to be detuned to avoid ris$ of lost
steps
]
013 4onfigurando as *=MK,D
Mach3 vai tentar compensar a folga e>istente no ei>o de acionamento do mecanismos tentando
aAustar cada Ctem reBuerido coordenados a partir de uma mesma direo
7nBuanto Esso 8 til em aplicaes como perfurao, no se consegue ultrapassar os problemas
com a mBuina de corte contCnuo
= dilogo 4onfigo Gac$lash permite Bue vocF informe uma estimativa da distRncia Bue o ei>o
deva voltar para eliminar a folga Buando voltar do final do movimento
, velocidade com Bue esse movimento 8 a ser feita 8 tamb8m especificado
LeAa a figura 0,5: "otas'
$*) 7stas configuraes so usadas apenas Buando a compensao da folga 8 ativado pelo
chec$bo>
$5) , compensao Gac$lash 8 um Sltimo recursoS para corrigir folgas da sua mBuina
UsandoHo, isto dever desabilitar a velocidade constante no corte dos cantos
$.) Mach3 no 8 capa? de honrar plenamente os parRmetros de acelerao dos motores pois tem
Bue fa?er uma reduo de velocidade para compensao Bue tFm Bue ser feita para evitar o
risco de perder passos
_
5.6.4 Conig%re 1laving
Marge machines such as gantr+ routers or mills often need t#o drives, one on each side
of the gantr+ itself Ef these become out of step then the gantr+ #ill Srac$S and its cross
a>is not be perpendicular to the long a>is
`ou can use 4onfigoDlaving to configure Mach3 so one drive %sa+ the Y a>is& is the main
drive and can slave another to it %perhaps the 4 a>is configured as linear rather than
rotar+& Dee figure 056
!uring normal use the same number of step pulses #ill be sent to the master and slave
a>es #ith the speed and acceleration being determined b+ the Sslo#erS of the t#o
@hen a reference operation is reBuested the+ #ill move together until the Nome s#itch of
one is detected This drive #ill position Aust off the s#itch in the usual #a+ but the other
a>is #ill continue until its s#itch is detected #hen it #ill be positioned off it Thus the
pair of a>es #ill be SsBuared upS to the Nome s#itch positions and an+ rac$ing #hich has
occurred be eliminated
,lthough Mach3 $eeps the master and
slaves a>es in step, the !9= of the slave
a>is #ill not displa+ offsets applied b+ the
Tool table, fi>ture offsets etc Ets values
ma+ thus be confusing to the operator
@e therefore recommend that +ou use the
Dcreen !esigner to remove the a>is !9=
and related controls from all the screens
e>cept !iagnostics Dave ,s the ne# design
#ith a name other than the default and use
the Lie#oMoad Dcreen menu to load it into
Mach3
#igure ,.11 - -aving con"iguration
01/ 4onfigurao dos 7scravos
MBuinas de grande porte, tais como routers de pIrtico ou fre?adoras, muitas ve?es precisam de
duas unidades, uma em cada lado da do pIrtico
De estes ficarem fora de passo, o pIrtico ficar torto e seu ei>o transversal no ser perpendicular
ao ei>o longitudinal
LocF pode usar configurar em 4onfigo Dlaving uma unidade do Mach3 %digamos, o ei>o Y ser
a principal unidade e poder ter um ei>o escravo %talve? o ei>o 4 configurado como linear ou
rotativo&
LeAa a figura 0,56
!urante a utili?ao normal um mesmo nmero de pulsos para os passos sero enviado para os
ei>os Mestre e o 7scravos cuAa velocidade e a acelerao 8 determinada pelo mais lento dos dois
Uuando uma operao de Nome 8 solicitada eles vo caminhar Auntos at8 a chave Nome de um
deles seAa detectada
7sta unidade ser posicionada pela chave da maneira usual, mas o outro ei>o vai continuar at8
Bue o seu interruptor seAa detectado ,ssim, a par de ei>os sero S7nBuadradosS para mudar as
posies de origem corrigindo BualBuer desvio Bue eventualmente tenha acontecido
7mbora Mach3 corriAa o mestre e escravo nesta etapa, o visuali?ador do ei>o escravo
no ir e>ibir deslocamentos aplicados pela mesa, etc 7stes valores pode assim ficar confuso
para o operador 3or isso, recomendamos Bue vocF use o proAeto de telas para remover o !9=
dos ei>os e controles relacionados de todas as telas e>ceto !iagnostics
Dalvar como um novo proAeto com um nome diferente do padro e usar Ler o Moado menu da
tela para carregHlo em Mach3
_
5.6.5 Conig%re Toolpath
4onfigoToolpath allo#s +ou to define ho# the toolpath is displa+ed The dialog is sho#n
in figure 0-.
Origin sphere2 #hen chec$ed, displa+s a blob at the point of the toolpath
displa+ representing Yn., `n.,
Vn.
3D ,ompass2 #hen
chec$ed, sho#s arro#s
depicting the directions of
positive Y, ` and V in the
toolpath displa+
Machine /o$ndaries, #hen
chec$ed displa+s a bo>
corresponding to the
settings of the Doftlimits
%#hether or not the+ are
s#itched on&
Tool +osition, #hen
chec$ed, sho#s the current
position of the tool on the
displa+
#igure ,.2+ Con"igure $oo%ath
0og Follo" Mode, #hen chec$ed, causes the lines representing the toolpath to move
relative to the #indo# as the tool is Aogged En other #ords the tool position is fi>ed in the
toolpath displa+ #indo#
Sho"Tool as a/ove centerline in T$rn relates to Mach3Turn %to handle front and
rear toolposts&
Sho" Lathe O/Cect enables the 3! rendering of the obAect that #ill be produced b+
the toolpath %Mach3Turn onl+&
,olors for different elements of the displa+ can be configured The brightness of each of
the primar+ colors 9ed Kreen Glue are set on a scale . to 5 for each t+pe of line. 8int$ Use
a program li$e 3hotoshop to ma$e a color #hich +ou li$e and divide its 9KG values b+ -00
%it uses the scale . to -00& to get the values for Mach3
The #7a5is values allo# +ou to specif+ the position and orientation of the ,Ha>is if it
is configured as rotar+ and the displa+ is enabled b+ the # 4otations chec$bo>
4eset +lane on 4egen reverts the displa+ of the toolpath displa+ to the current
plane #henever it is regenerated %b+ double clic$ or button clic$&
-o5ed 3raphic displa+s a bo> at the boundaries of the tool movement
]
010 4onfigurando o caminho da ferramenta
4onfigo caminho da ferramenta permite Bue vocF defina como o caminho da ferramenta 8
e>ibido
, cai>a de dilogo 8 mostrada na *igura 0-.
Origin sphere, Buando marcada, mostra um ponto na tela do caminho da ferramenta %toolpath&
9epresentando Y n ., ` n ., V n .
3D ,ompass, Buando marcada, mostra setas representando as direes do
3ositivos Y, ` e V na tela de acompanhamento da ferramenta
Machine /o$ndaries2& limites da mBuina&, Buando marcada e>ibe uma cai>a correspondente ao
configuraes do D=*TMEMETD %Endependentemente de estarem ligados ou no&
Tool +osition&+osiDEo da *erramenta&, Buando marcada, mostra o atual posio da ferramenta
na tela de acompanhamento
*igura 056 H Dlaving configurao
*igura 0-. 4onfigurar o caminho da ferramenta
0og Follo" Mode %Modo de acompanhamento do movimento&, Buando marcada, fa? com Bue as
linhas Bue representam as traAetIrias do movimento relativo apaream na Aanela enBuanto a
ferramenta est movimentado
7m outras palavras, a posio da ferramenta 8 fi>ada na tela de acompanhamento
Sho"Tool as a/ove centerline in T$rn &# Ferramenta 8 mostrada com um circulo em volta&cima
da linha central em Turn refereHse a Mach3Turn %para lidar com frente e traseira toolposts&
Mostrar em Torno do obAeto permite a renderi?ao em 3! do obAeto Bue ser produ?ido pela
toolpath %Mach3Turn apenas&
4ores para os diferentes elementos do displa+ podem ser configurados
= brilho de cada uma das cores primrias Lermelho Lerde ,?ul so definidos em uma escala
de .H5 para cada tipo de linha
!ica' Use uma programa como o 3hotoshop para fa?er uma cor Bue vocF goste e divida seus
valores 9KG em -00 partes %7le usa a escala de . a -00& para obter os valores para Mach3
=s valores de um ei>o, permitem Bue vocF especifiBue a posio e a orientao do ei>o se , 8
configurado como o 9otar+ e a tela 8 ativada pela opo rotaes em um
9eset 3lano em 9egen reverte a e>ibio da tela toolpath ao plano atual
sempre Bue 8 regenerado %por cliBue duplo ou cliBue no boto&
4ai>a grfico, e>ibe uma cai>a nos limites do movimento da ferramenta
_
5.6.6 Conig%re Initial 1tate
4onfigoDtate opens a dialog #hich allo#s +ou to define the modes #hich are active #hen
Mach3 is loaded %ie the initial state of the s+stem& Et is sho#n in figure 0-5
Motion mode$ ,onstant velocity sets K1/, E5act Stop sets K15 *or details of these
option see 4onstant Lelocit+ and 7>act Dtop in chapter 5.
Distance mode$ #/sol$te sets K 6., Inc sets K65
.ctive plane$ YH` sets K5J, `HV sets K56, YHV sets K5:
&;D Mode$ En addition +ou can set the interpretation to be placed on E l 2 in arc moves
This is provided for compatibilit+ #ith different 4,M postHprocessor and to emulate other
machine controllers En Inc I0 mode E and 2 %the center point& are interpreted as relative to
#igure ,.21 - Initia -tate con"iguration
the starting point of a center format arc This is compatible #ith "EDT 7M4 En #/sol$te
I0 mode E and 2 are the coordinates of the center in the current coordinate s+stem %ie after
application of #or$, tool and K6- offsets& Ef circles al#a+s fail to displa+ or to cut
properl+ %especiall+ obvious b+ them being too big if the+ are far from the origin& then the
E2 mode is not compatible #ith +ou part program
.n error in this setting is the most fre'uent cause of 'uestions from users when
trying to cut circles.
&nitialiEation String$ is a set of valid KH4odes to set the desired initial state of Mach3
#hen it is started These are applied after the values set in the radio buttons above so ma+
override them Use the radio buttons #herever possible to avoid confusion Ef =se Init
on #LL F4esetsF is chec$ed then these codes #ill be applied ho#ever Mach3 is reset d
eg after an 7Dtop condition
0ther check bo(es$
+ersistent 0og Mode, if chec$ed, #ill remember the 2og Mode +ou have chosen
bet#een runs of Mach3Mill
+ersistent O%%sets, if chec$ed, #ill save the #or$ and tool offsets in the permanent
tables +ou have selected bet#een runs of Mach3Mill Dee also Optional O%%set Save.
Optional O%%set Save, if chec$ed, #ill prompt to chec$ that +ou #ant to actuall+ do an+
save reBuested in +ersistent O%%sets
,opy 3G; %rom 3GH.*G3 on startup, if chec$ed, #ill reHinitiaise the K0/ offset %ie #or$
offset 5& values from the #or$ offset -03 values #hen Mach3 is started 4hec$ this if +ou
#ant to start up K0/ to al#a+s be a fi>ed coordinate s+stem %eg the machine coordinate
s+stem& even if a previous user might have altered it and saved a nonHstandard set of
values
, further discussion of these options is given in chapter J
1o F4O on I$e$e2 if chec$ed, #ill dela+ the application of feed rate override until the
Bueue of commands #aiting to be implemented is empt+ This is sometimes necessar+ to
avoid e>ceeding permitted sppeds or accelerations #hen increasing the *9= above
5..m
!ome S" Sa%ety, if chec$ed, #ill prevent motion of a a>is during homing if the Nome
s#itch is alread+ active This is useful to prevent mechanical damage on a machine
#hich shares limit s#itches at both ends of an a>is #ith Nome
Shortest 4ot, if chec$ed, ma$es an+ rotar+ a>is treat the position given as an angle modulo
31. degrees and move b+ the shortest route to that position
De/$g this r$n, if chec$ed, gives e>tra diagnostics to the program designer =n use it on
,rt\s special reBuest
=se Watchdogs, if chec$ed, triggers and 7Dtop is Mach3 seems not to be running
correctl+ `ou ma+ need to unchec$ it if +ou get spurious 7Dtops on slo#er computers
#ith operations li$e loading @i?ards
Enhanced +$lsing, if chec$ed, #ill ensure the greatest accurac+ of timing pulses %and
hence smoothness of stepper drives& at the e>pense of additional central processor time
`ou should generall+ select this option
4$n Macrop$mp, if chec$ed, #ill on stattup loo$ for a file Macro3umpm5s in the
macro folder for the current profile and #ill run it ever+ -.. milli seconds
#$to Screen Enlarge, if chec$ed, #ill cause Mach3 to enlarge an+ screen, and all the
obAects on it, if it has fe#er pi>els than the current 34 screen mode so ensuring that it
fills the entire screen area
,harge p$mp On in EStop, if chec$ed, retains the charge pump output %or outputs&
even #hen 7Dtop is detected This is reBuired for the logic of some brea$out boards
? is *.GD on o$tp$t :J, if chec$ed, controls =utput s1 depending on the current position
in the program coordinate s+stem of the V a>is Ef V o .. then =utput s1 #ill be active
`ou must have a V a>is configured to use this feature but its Dtep and !irection outputs
can be configured to a nonHe>istent pin, for e>ample 3in ., 3ort .
Shuttle .ccel controls the responsiveness of Mach3 to the M3K #hen it is being used
to control the e>ecution of lines of KH4ode
-ookahead determines the number of lines of KH4ode that the interpreter can buffer
for e>ecution Et does not normall+ reBuire tuning
Dog &ncrements in #ycle Mode' The ,ycle 0og Step button #ill load the values in the
list into the Step !9= in turn This is often more convenient than t+ping into the Step
!9= 4ode the special value 666 to s#itch to 4ont 2og Mode
/eference Switch -oc' These values define the machine coordinate position to be set
on referencing, after hitting the Nome s#itch %if provided& for each a>is The values are
absolute positions in the setup units
"
011 4onfigurando o 7stado inicial
4onfigoDtate abre uma Aanela Bue permite definir os modos em Bue se ativa o Mach3 Buando 8
carregado %ou seAa, o estado inicial do sistema&
Z mostrado na figura 0-5
Motion mode$ FModo de Movimento' & !efine a velocidade constante K1/,e define parada e>ata
K153ara mais detalhes sobre duas opes veAa capCtulo 5.
Distance mode$ FModo de !istRncia'& Modo de distancia absoluta KH6., modo de distancia
incremental K65
.ctive plane$ F plano ativo'& define o plano Y` K5J, define o plano `V K56, define o plano
YV K5:
&;D Mode$ FM7do E ( 2'& ,l8m disso, vocF pode definir a interpretao a ser seguida em
movimentos de arco E l 2
Esto 8 fornecido para compatibilidade com diferentes 4,M pIsHprocessadores ou para emular
outros controladores da mBuina
7m Enc modo E2 Modo E e 2 %o ponto central& so interpretados como relativos para um
ponto de partida ao formatar um arco central
Esto 8 compatCvel com o "EDT 7M4 7m E2 modalidade absoluta E e 2 so as coordenadas do
centro do atual sistema de coordenadas %ou seAa, apIs aplicao do trabalho, ferramentas e
deslocamentos K6-&
De cCrculos sempre falham ao serem mostrados ou no corte correto %7specialmente Ibvio se eles
so muito grandes e se eles estiverem longe da origem&, o modo de E2 no esta compatCvel com
seu caso
*igura 0-5 H 7stado inicial de configurao
Um erro nesse cenrio 8 a causa mais freBQente de perguntas dos usurios ao tentar
cortar cCrculos
&nitialiEation String$ FDtring de Eniciali?ao& 8 um conAunto de cIdigos K vlidos para definir o
estado deseAado inicial do Mach3 Buando ele 8 iniciado
7stes so aplicados depois Bue os valores fi>ados nos botes acima, e vai substituiHlos
Use os botes de rdio, sempre Bue possCvel para evitar confuses
De g=se Init on #LL F4esetsF estiver marcada, ento esses cIdigos sero aplicadas sempre Bue
for acionado o 97D7T no Mach3 H por e>emplo, apIs uma condio de emergencia
0utras cai(as de sele=>o$
+ersistent 0og Mode, % Modo de Movimento 3ersistente&, se marcada, vai lembrar o modo 2og
escolhido entre e>ecues do Mach3Mill
+ersistent O%%sets,.&Deslocamentos persistentes&, se marcada, vai salvar o trabalho e
compensaes da ferramenta em tabelas selecionado entre as e>ecues de Mach3Mill
LeAa tamb8m opcional offset Dave
Optional O%%set Save, %Dalvar opcionalmente o deslocamento&, se marcada, ir pedir para verificar se
vocF Buer realmente fa?er economia de movimentos salvando os deslocamentos
,opy 3G; %rom 3GH.*G3 on startup, %4Ipia K0/ do K06-03 na iniciali?ao&, se marcada, ir reH
iniciali?ar o K0/ deslocado %e>emplo' trabalho offset 5& os valores do trabalho offset -03
Mach3 valores Buando 8 iniciado MarBue esta opo se vocF deseAa iniciar o K0/ a usar
sempre um sistema de coordenadas fi>o %por e>emplo, um sistema de coordenadas &, mesmo
Bue o usurio anterior possa ter alterado isso e salvou um conAunto noHpadro de valores
Uma discusso mais aprofundada dessas opes 8 dada no capCtulo J
1o F4O on I$e$e2 &" u *9= na fila&, se marcada, ir atrasar a aplicao da ta>a de
alimentao at8 Bue a fila de espera de comandos a serem implementadas fiBue va?ia Esso Ts
ve?es 8 necessrio para evitar ou superar a maior velocidade de acelerao permitida Buando
se aumenta a *9= acima de 5..m
!ome S" Sa%ety, %4have de Degurana Nome&, se marcada, vai impedir o movimento de um
ei>o durante homing se a chave A estiver ativo Esso 8 til para evitar danos mecRnicos em
uma mBuina Bue compartilham os mesmos interruptores em ambas as e>tremidades de um
ei>o com o Nome
Dhortest 9ot, %9ota 4urta&, se marcada, fa? todo o ei>o de rotao tratar a posio informada
como um Rngulo de 31. graus e vai se mover pelo caminho mais curto para essa posio
!ebug presente na e>ecuo, se marcada, d um diagnIstico e>tra para o criador do
programa Use apenas em condies especiais de ,rtas
=se Watchdogs%4es de guarda&, se marcado, De 7mergencias acionadas parecem no estarem
funcionando corretamente
LocF pode precisar desmarcarHlo se vocF comear emergFncias esprias em computadores
mais lentos com operaes em modo assistentido
Enhanced +$lsing, %3ulsao reforada&, se marcada, ir garantir o m>imo de preciso dos
pulsos de tempori?ao %e, portanto, suavidade das unidades de passo&, a e>pensas do tempo
do processador central adicional LocF geralmente deve selecionar essa opo
Macrop$mp, %7>ecutar Macro 9otinas&, se marcada, vai procurar por uma partida no arBuivo
Macro3umpm5s na pasta atual e ir e>ecutHlo a cada -.. milisegundos
#$to Screen Enlarge,%aumentar a tela automticamente&, se marcada, far com Bue Mach3 mplie
toda a tela, e todos os obAetos sobre ela, se tiver menos pi>els do Bue o atual modo de tela do
34 de forma a assegurar Bue ele preenche a rea da tela inteira
,harge p$mp On in EStop, Gomba ligada mesmo em emergencia&, se marcado, mant8m a saCda
da bomba de carga %ou saCdas&, mesmo Buando uma emergFncia 8 detectada Esso 8
necessrio para a lIgica de algumas placas G=G
? is *.GD on o$tp$t :J %V 8 -0! na saCda n u 1&, se marcada, os controles de saCda n u 1,
dependendo da posio atual no programa de sistema de coordenadas do ei>o V
De a saCda V o .,. s 1 em seguida, ficar ativo
LocF deve ter um ei>o V configurado para usar este recurso, mas o seu passo e saCda de
direo pode ser configurado para um pino ine>istente, por e>emplo 3in ., 3orta .
Shuttle .ccel FDhuttle ,ccel&, controla a resposta do Mach3 para a M3K, Buando ele est
sendo usado para controlar a e>ecuo das linhas de KH4ode
-ookaheadFMoo$ahead&, determina o nmero de linhas de KH4ode Bue o int8rprete pode
arma?enar para e>ecuo 7le normalmente no e>ige aAuste
Dog &ncrements in #ycle Mode F&incrementos no Modo de 4iclos do Movimento&' = 4iclo
do boto etapa de movimento, ir carregar os valores da lista !9= um 3asso de cada ve?
Esso 8 muitas ve?es mais conveniente do Bue digitar na !9= Dtep
4Idigo do valor especial 8 666 para alternar para 4ont 2og Mode
/eference Switch -oc F9eferFncia D#itch Moc&' 7stes valores definem na mBuina a
coordenada de posio a ser definido em referFncia, depois de bater na chave Nome %se
disponCvel& para cada ei>o =s valores so posies absolutas nas unidades de instalao
_
5.6." Conig%re other .ogic ite$s
The functions of the 4onfigoMogic dialog %figure 0--& are described belo#
#igure ,.22 - ;ogic Con"iguration diaog
31G;31+ #ontrol' Ef Moc$ !9=s to set up units is chec$ed then even though K-. and
K-5 #ill alter the #a+ Y, `, V etc #ords are interpreted %inch or millimetre& the !9=s
#ill al#a+s displa+ in the Detup Unit s+stem
Tool change$ ,n M1 tool change reBuest can be ignored or used to call the M1 macros
%Bv& Ef ,uto Tool 4hanger is chec$ed then the M1Dtart(M17nd macros #ill be called
but 4+cle Dtart does not need to be pressed at an+ stage
.ngular properties$ ,n a>is defined as angular is measured in degrees %that is to sa+
K-.(K-5 do not alter the interpretation of ,, G, 4 #ords&
6rogram end or MG or /ewind' defines action%s& to ta$e place at end or a re#ind of
+our part program 4hec$ the reBuired functions Caution: Gefore chec$ing the items to
remove offsets and to perform K6-5 +ou should be absolutel+ clear on ho# these features
#or$ or +ou ma+ find that the current position has coordinates ver+ different from #hat
+ou e>pect
at the end of a program
Debounce interval;&nde( Debounce$ Es the number of Mach - pulses that a s#itch must
be stable for its signal to be considered valid Do for a s+stem running at 30,... N? , 5..
#ould give about a 3 millisecond debounce %5.. 30... n ...-6 secs& The Ende> pulse
and the other inputs have independent settings
6rogram safety$ @hen chec$ed enables Enput s5 as a safet+ cover interloc$
!ditor$ The filename of the e>ecutable of the editor to be called b+ the KH4ode edit
button The Gro#se button allo#s a suitable file %eg 4'c#indo#scnotepade>e& to be
found
Serial output$ !efines the 4=M port number to be used for the serial output channel
and the baud rate at #hich it should output This port can be #ritten to from LG script in
a
macro and can be used to control special functions of a machine %eg M4! displa+,
toolH changers, a>is clamps, s#arf conve+or etc,&
0ther checkbo(es$
+ersistent D4Os, if chec$ed, then the a>is !9=s #ill have the same values on startup as
#hen Mach3 is closed do#n "ote that the positions of the ph+sical a>es are unli$el+ to
be preserved if the machine tool is po#ered do#n, especiall+ #ith microHstepper drives
Disa/le 3o$ge),oncavity chec.s, if unchec$ed, then, during cutter compensation %K/5
and K/-&, Mach3 #ill chec$ if the tool diameter is too large to cut ginsider cornersh
#ithout gouging the #or$ 4hec$ the bo> to disable the #arning
+lasma Mode, if chec$ed, this controls Mach3as implementation of constant velocit+
moves to suit the characteristics of plasma cutters
1o #ng$lar Discrimination' This is also onl+ relevant to constant velocit+ #or$ing
@hen unchec$ed Mach3 treats changes of direction #hose angle is greater than the
value set in the ,< #ng$lar Limit !9= as e>act stop %even if 4L mode is set& to avoid
e>cessive rounding of sharp corners *ull details of 4onstant Lelocit+ mode are given in
chapter 5.
FeedOveride +ersists, if chec$ed, then the selected feed override #ill be retained at the
end of a part program run
#llo" Wave %iles, if chec$ed, allo#s @indo#s @,L sound clips to be pla+ed b+
Mach3 This can be used, for e>ample to signal errors or attention reBuired b+ the
machine
#llo" Speech, if chec$ed, allo#s Mach3 to use the Microsoft Dpeech ,gent for s+stem
information messages and Sright buttonS Nelp te>t Dee the Dpeech option on the
@indo#s 4ontrol 3anel to configure the voice to be used, speed of spea$ing etc
3K; D"ell param in Milliseconds, if chec$ed then the command K/ 0... #ill give a
!#ell in running of 0 seconds Ef the control is unchec$ed it gives a d#ell of 5 hour -3
minutes -. secondsb
Set charge p$mp to G.! %or laser stand/y level' En this setting charge pump output or
output%s& are a 0 $N? signal %for compatibilit+ #ith some lasers& rather than the
standard
5-0$N? signal
=se Sa%eL?M Ef chec$ed then Mach3 #ill ma$e use of the Dafe V position defined
%ote$ Ef +ou use a machine #ithout referencing as the initial operation then it is safer
to leave this option unchec$ed as #ithout referencing the machine coordinate s+stem
is arbitrar+
Tool Selections +ersistent, if chec$ed, remembers the selected tool at shutdo#n of Mach3
custom macros into the ne# profile
]
01J 4onfigurando outros itens MIgicos
,s funes da cai>a de dilogo 4onfig Mogico %figura 0--& esto descritas abai>o
K-.(K-5 4ontrol' De Moc$ !9= 8 marcada para criar unidades, ento, apesar do
K-. e K-5 alterar a forma de Y, `, V, etc palavras so interpretadas %polegadas ou
milCmetros& e sero visuali?ados em !9= a unidade de medida
*erramenta de mudana' Um M1 pedido de mudana de ferramenta pode ser
ignorado ou usado para chamar o M1 macros %Uv& De ,uto Tool 4hanger esta
marcada, ento as macros M1Dtart(M17nd sero chamados, mas o 4+cle Dtart no
precisa ser pressionado em BualBuer fase
propriedades ,ngular' Um ei>o definido como angular 8 medido em graus %isto 8,
K-.(K-5 no alteram a interpretao de ,, G palavras, 4&
final do 3rograma, ou M3. ou 9e#ind' define a ao %s& a ter lugar no final ou um
retrocesso de sua programa da pea
LerifiBue as funes necessrias ,teno' ,ntes de verificar os itens para remover
deslocamentos e reali?ar K6-5 vocF deve estar absolutamente certo sobre como
esses recursos funcionam ou vocF pode achar Bue a situao atual tem coordenadas
muito diferente do Bue vocF espera no final de um programa
intervalo debounce ( Ende> debounce' Z o nmero de pulsos a se considerar para Bue
um interruptor deva ser considerado para ser estvel para o sinal ser considerado
vlido
,ssim, para um sistema rodando a 30... N?, 5.. daria cerca de um debounce 3
milissegundos %5.. v 30... n .,..-6 s& = pulso Ende> e as outras entradas tFm
configuraes independentes
3rograma de segurana' Uuando marcada estabelece a entrada s 5 para acionar o
bloBueio de segurana
7ditor' = nome do arBuivo Bue e>ecuta o editor a ser chamado para editar o KH4ode
= boto 3rocurar permite encontrar um arBuivo adeBuado %e>' 4' c #indo#s c
notepade>e&
DaCda serial' !efine o nmero da porta 4=M a ser utili?ada para o canal de saCda
serial e a ta>a de transmisso
7sta porta pode ser escrita a partir de um script em Macro de LG pode ser usado
para controlar as funes especiais de uma mBuina %por e>emplo, displa+ M4!,
carregadores de ferramentas, grampos fi>adores, transportador de aparas, etc&,
=utras cai>as'
3ersistencia nos !9=s, se observado em seguida, o ei>o visuali?adores tero os
mesmos valores na iniciali?ao como Buando Mach3 8 encerrado
"ote Bue as posies dos ei>os fCsicos no so susceptCveis de ser preservadas, se a
mBuinaHferramenta 8 desligada, especialmente com unidades de microHpasso
!esativar Kouge ( se desmarcada, ento, durante a compensao do cortador %K/5 e
K/-&, Mach3 ir verificar se o diRmetro da ferramenta 8 muito grande para Scortar
cantos internosS sem alargar o trabalho MarBue a cai>a para desativar o aviso
3lasma Mode, se marcada, a implementao deste controle de movimentos para uma
velocidade constante Bue atende as caracterCsticas dos cortadores de plasma
Dem !iscriminao ,ngular' 7ste tamb8m 8 relevante apenas para trabalhar em
velocidade constante
Uuando desmarcada, trata mudanas de direco, cuAo Rngulo 8 maior Bue o valor
fi>ado no o 4L ,ngular Mimite !9= como parar e>atamente %mesmo se o modo de
4L 8 definido& para evitar um e>cessivo arredondamento dos cantos afiados Todos
os detalhes do modo de velocidade constante so dadas no capCtulo 5.
*eed=veride persistencia, se marcada, ento a substituio da alimentao
selecionada ser retida no final da e>ecuo do programa da pea
3ermitir arBuivos @ave, se marcada, permite Bue o @indo#s use arBuivos de @,L
por Mach3
Esso pode ser usado, por e>emplo, para sinali?ar erros ou reBuerer ateno pela
mBuina
3ermitir fala, se marcada, Mach3 permite usar o Microsoft Dpeech ,gent para o
sistema mensagens de informao e de Ste>tos de aAuda o boto direitoS
LeAa a opo Lo? no painel de controle do @indo#s configurar a vo? a ser usada,
velocidade de fala etc
K./ !@ell 3aram em milissegundos, se marcada, ento o comando K/ 0... vai
dar uma parada na corrida de 0 segundos
De o controle for desmarcada ele d uma parada de 5 hora -3 minutos -. segundosb
3osiciona a bomba de carga em 0$N? para nCvel laser de espera' "este cenrio de
saCda da bomba de carga ou saCda %s& so um sinal de 0 $N? %para compatibilidade
com alguns lasers& em ve? do padro 5-0$N? sinal
Use DafeWV' De marcada, ento Mach3 vai usar segurana na posio V
"ota' De vocF usar uma mBuina, sem referFncia na sua operao inicial, ser mais
seguro dei>ar esta opo desmarcada, pois sem referFncia o sistema de coordenadas
da mBuina fica arbitrrio
*erramenta Delections persistente, se marcado, relembra a ferramenta selecionada no
desligamento do Mach3
_
,.0 &o' the !ro"ie in"ormation is stored
@hen the Mach3e>e program is run it #ill prompt +ou for the 3rofile file to use This #ill
generall+ be in the Mach3 folder and #ill have the e>tension YMM `ou can vie# and
print the contents of 3rofile files #ith Enternet 7>plorer %as YMM is a mar$Hup language
used on #eb pages&
Dhortcuts are set up b+ the s+stem installer to run Mach3e>e #ith default 3rofiles for a
Mill and for Turning %ie Mach3Mill and Mach3Turn& `ou can create +our o#n shortcuts
each #ith a different 3rofile so one computer can control a variet+ of machine tools
This is ver+ useful if +ou have more than one machine and the+ reBuire different values
for the motor tuning, or have different limit and Nome s#itch arrangements
`ou can either run Mach3e>e and choose from the list of available profiles or +ou can
set up e>tra shortcuts that specif+ the profile to use
En a shortcut, the profile to load is given in the S(pS argument in the Target of the shortcut
properties ,s an e>ample +ou should inspect the 3roperties of the Mach3Mill shortcut
This can be done, for e>ample, b+ right clic$ing the shortcut and choosing 3roperties
from the menu
,n YMM file for a profile can be edited b+ an e>ternal editor but +ou are very strongly
advised not to do this unless +ou are full+ conversant #ith the meaning of each entr+ in the
files as some users have encountered ver+ strange effects #ith misHformatted files "otice
that some tags %eg the screen la+out& are onl+ created #hen a builtHin default value is
overridden using Mach3 menus &t is much safer to use MachBs configuration menus
to update the HM- profiles.
@hen a ne# profile is created then a folder for storing its macros #ill be created Ef +ou
are gcloningh from a profile #ith custom macros then +ou must ta$e care to cop+ an+ such
]
0J 4omo as informaes de perfil so arma?enadas
Uuando o programa 8 e>ecutado Mach3e>e ir verificar no arBuivo de perfil de uso
7le fica geralmente na pasta Mach3 e ter a e>tenso YMM
LocF pode visuali?ar e imprimir o contedo dos arBuivos de perfil com Enternet
7>plorer %pois o YMM 8 uma linguagem de marcao utili?ada no pginas #eb&
=s atalhos so criados pela instalao do sistema para e>ecutar Mach3e>e com
perfis padro para uma fresa e de giro %ou seAa, Mach3Mill e Mach3Turn&
LocF pode criar seus prIprios atalhos de cada com um perfil diferente para um
computador pode controlar uma variedade de ferramentas de mBuina
Esto 8 muito til se vocF tiver mais de uma mBuina e Bue e>igem valores diferentes
para a afinao do motor, ou tem limite de diferentes modalidades e mudar de Nome
LocF pode e>ecutar Mach3e>e e escolha da lista de perfis disponCveis ou vocF pode
definir de atalhos e>tra Bue especificar o perfil de uso
7m um atalho, o perfil de carga 8 dada em Sp (S = argumento do alvo do atalho
propriedades 4omo e>emplo, vocF deve inspecionar as propriedades do atalho Esso
pode ser feito, por e>emplo, com o boto direito no atalho e escolha 3ropriedades
do menu
Um ,rBuivo YMM para um perfil pode ser editado por um editor e>terno, mas vocF
8 muito fortemente aconselhado a no fa?er isso a menos Bue esteAa completamente
familiari?ado com o significado de cada entrada na arBuivos pois alguns usurios se
depararam com efeitos muito estranho em arBuivos mal formatados
=bserve, Bue algumas marcas %por e>emplo, o la+out da tela& sI so criados Buando
construCdos com o valor padro substituCdo Buando do uso dos menus do Mach3
Z muito mais seguro usar menus de configurao para atuali?ar os perfis do YMM
Uuando um novo perfil 8 criado, em seguida, uma pasta para arma?enar suas macros
sero criados
De vocF est S4lonandoS um perfil personali?ado com macros, ento vocF deve
tomar cuidado para copiar tais macros personali?adas para o novo perfil
_
Mach3 contros and running a %art %rogram
Using Mach3Mi .-2 Rev 1.84-A2
.. Mach3 contros and running a %art %rogram
This chapter is intended for reference to e>plain the screen controls
provided kb+ Mach3 for setting up and running a Aob on the machine Et is
of relevance to machine operators and for partHprogrammers #ho are going
to prove their programs on Mach3
]
1 4ontroles do Mach3 e e>ecuo de um programa da pea
7ste capCtulo destinaHse como referFncia para e>plicar a tela de controles previstos
por Mach3 para a criao e e>ecuo de um trabalho com a mBuina Z relevante
para operadores de mBuinas e de programadores Bue esto indo para usar a sua
programao em Mach3
_
..1 Introduction
This chapter covers a lot of detail `ou ma+ #ish to s$im section 1- and then loo$ at
the sections for inputting and editing part programs before returning to the details of all
the screen controls
]
15 Entroduo
7ste capCtulo aborda um monte de detalhes LocF pode Buerer ver o ponto 1- e, em seguida
olhar para o sees de introduo e parte de programas de edio antes de retornar para os
detalhes de todas os controles de tela
_
..2 &o' the contros are e9%ained in this cha%ter
,lthough at first sight +ou ma+ feel daunted b+ the range of options and data displa+ed b+
Mach3, this is actuall+ organised into a fe# logical groups @e refer to these as *amilies
of 4ontrols G+ #a+ of e>planation of the term ScontrolS, this covers both buttons and
their associated $e+board shortcuts used to operate Mach3 and the information displa+ed
b+ !9=s %digital readHouts&, labels or M7!s %light emitting diodes&
The elements of each control famil+ are defined for reference in this chapter The
families are e>plained in order of importance for most users
`ou should, ho#ever, note that the actual screens of +our Mach does not include
every control of a famil+ #hen the famil+ is used This ma+ be to increase readabilit+ of
a
#igure ..1 - -creen s'itching contro "amiy
particular screen or to avoid accidental changes to the part being machined in a
production environment
, Dcreen !esigner is provided that allo#s controls to be removed or added from the
screens of a set of screens `ou can modif+ or design screens from scratch so that +ou can
add an+ controls to a particular screen if +our application reBuires this *or details see the
Mach3
,$stomisation #i$i
Mach3 contros and running a %art %rogram
Rev 1.84-A2 .-1 Using Mach3Mi
]
1- 4omo os controles so e>plicadas neste capCtulo
7mbora T primeira vista, vocF pode se sentir intimidado com a gama de opes e dados
apresentados por Mach3, este 8 realmente organi?ado em alguns grupos lIgicos
"Is nos referimos a eles como famClias de 4ontroles
, tCtulo de e>plicao do termo ScontroleS, isto abrange ambos os botes e os atalhos de
teclado usados para operar Mach3 e as informaes apresentadas pelo Lisuali?adores %digital
readHouts !9=&, etiBuetas ou M7!s %diodos emissores de lu?&
=s elementos de cada famClia de controle so definidos por referFncia neste capCtulo
,s famClias so e>plicadas por ordem de importRncia para a maioria dos usurios
LocF deve, no entanto, notar Bue as telas reais do seu Mach3 no incluem todos os
controles de uma famClia Buando a famClia 8 usada
Esto foi feito para aumentar a legibilidade de uma tela em particular ou para evitar alteraes
acidentais na parte Bue est sendo usinada em um ambiente de produo
, proAeto de tela permite Bue os controles possam ser removidos ou adicionado nestas telas ou
a um conAunto de telas LocF pode modificar ou reproAetar as telas a partir do ?ero de modo Bue
vocF pode adicionar BualBuer controles para uma tela especial se a sua aplicao e>ige isso
3ara mais informaes, consulte o Mach3 #i$i Tunning
_
6.2.1 1creen switching controls
These controls appear on each screen The+ allo# s#itching bet#een screens and
also displa+ information about the current state of the s+stem
]
1-5 4ontroles de 4omutao de telas
7sses controles aparecem em cada tela 7les permitem alternar entre telas e tamb8m
e>ibir informaes sobre o estado atual do sistema
]
..2.1.1 Reset
This is a toggle @hen the s+stem is 9eset the M7! glo#s steadil+, the charge pump pulse monitor
%if enabled& #ill output pulses and the 7nable outputs chosen #ill be active
]
1-55 9eset
Z uma alternRncia Buando clicado Uuando o sistema esta resetado o M7! brilha fi>o e ativa o
monitor de pulsos %se estiver marcado& para as saCdas e as saCdas habilitadas se escolhidas
estaro ativas
F
..2.1.2 ;a/es
The Sintelligent labelsS displa+ the last SerrorS message, the current modes, the file name of the
currentl+ loaded part program %if an+& and the 3rofile that is in use
_
1-5- Mabels
,s SetiBuetas inteligentesS mostram a Sltima mensagemS de erro, o modo atual, o nome do
Mach3 contros and running a %art %rogram
Using Mach3Mi .-2 Rev 1.84-A2
arBuivo atualmente carregado %se houver& e o perfil Bue est em uso
_
Rev 1.84-A2 .-1 Using Mach3Mi
Mach3 contros and running a %art %rogram
#igure ..2 - A9is contro "amiy
..2.1.3 -creen seection /uttons
These buttons s#itch the displa+ from screen to screen The $e+board shortcuts are
given after the names *or clarit+ in all cases #hen the+ are letters the+ are in upperH
case `ou should not, ho#ever, use the shift $e+ #hen pressing the shortcut
]
1-53 botes de seleo de tela
7stes botes mudam o visual de tela em tela
=s atalhos de teclado so mostrados depois os nomes
3ara maior clare?a em todos os casos as letras esto em maisculas
LocF no deve, entretanto, usar a tecla Dhift enBuanto pressionando o atalho
_
6.2.2 20is control a$il&
This famil+ is concerned #ith the current position of the tool %or more precisel+,
the controlled point&
The a>es have the follo#ing controls'
]
1-- *amClia de 4ontrole dos 7i>os
7sta famClia est preocupada com a posio atual da ferramenta %ou mais precisamente, o
ponto de controle&
=s ei>os tFm os seguintes comandos'
_
..2.2.1 Coordinate vaue *R(
These are displa+ed in the current units %K-.(K-5& unless loc$ed to the setup units on the
4onfigoMogic dialog The value is the coordinate of the controlled point in the displa+ed
coordinate s+stem This #ill generall+ be the coordinate s+stem of the current @or$
=ffset %initiall+ 5 H ie K0/& together #ith an+ K6- offsets applied Et can ho#ever be
s#itched to displa+ ,bsolute Machine 4oordinates
Using Mach3Mi .-2 Rev 1.84-A2
Mach3 contros and running a %art %rogram
`ou can t+pe a ne# value into an+ ,>is !9= This #ill modif+ the current @or$ =ffset
to ma$e the controlled point in the current coordinate s+stem be the value +ou have set
`ou are advised to set up @or$ =ffsets using the =ffsets screen until +ou are full+
familiar #ith #or$ing #ith multiple coordinate s+stems
]
1--5 Lalor de 4oordenadas !9=
7stes so e>ibidos nas unidades atuais %K-.(K-5&, salvo se trocadas para as unidades de
instalao no 4onfigo dilogo Mogic
= valor 8 das coordenadas do ponto controlado na e>ibio do sistema de coordenadas
Esso geralmente 8 o sistema de coordenadas do deslocamento no trabalho em reali?ao
%Enicialmente 5 H ou seAa, K0/&, Auntamente com BuaisBuer compensaes K6- aplicada
Todavia, pode ser transferido para mostrar 4ordenadas ,bsolutas da MBuina
LocF pode digitar um novo valor em BualBuer !9=
Esso vai modificar o atual trabalho e deslocar o ponto de controle no sistema de coordenadas
corrente para o valor Bue vocF definiu
LocFs so aconselhados a criar compensaes no trabalho usando a tela de compensaes at8
Bue esteAa completamente familiari?ado com o uso de mltiplos sistemas de coordenadas
_
..2.2.2 Re"erenced
The M7! is green if the a>is has been referenced %ie is in a $no#n actual position&
7ach a>is can be referenced using the 4e% #ll button Endividual a>es can be referenced
on the Diagnostics screen
Ef no Nome(reference s#itch is defined for the a>is, then the a>is #ill not actuall+
be moved but, if #$to ?ero D4O "hen !omed is chec$ed in
4onfigo9eferencing, then the absolute machine coordinate of the current
position of the a>is #ill be set to the value defined for the a>is in the
Nome(9eference s#itch locations table in the 4onfigoDtate dialog This is most
often ?ero
Ef there is a Nome(reference s#itch defined for the a>is and it is not providing
an active input #hen the 9ef is reBuested, then the a>is #ill be moved in the
Rev 1.84-A2 .-3 Using Mach3Mi
Mach3 contros and running a %art %rogram
direction defined in 4onfigo9eferencing until the input does become active Et
then bac$s off a short distance so that the input is inactive Ef the input is
alread+ active then the a>is Aust moves the same short distance into the inactive
position Ef #$to ?ero D4O "hen !omed is chec$ed in 4onfigo9eferencing
then the absolute machine coordinate of the current position of the a>is #ill be
set to the value defined for the a>is in the Nome(9eference s#itch locations
table in the 4onfigoDtate dialog
The De74e% #ll button does not move the a>es but stops them being in the referenced state
]
1--- 9eferenciamento
= M7! fica verde Buando o ei>o foi referenciado %ou seAa, est em uma posio conhecida &
4ada ei>o pode ser referenciado utili?ando o boto 9ef ,MM
7i>os individuais podem ser vistos na tela de !iagnIsticosj
De nenhum parRmetro de 9eferFncia(Nome foi definido para o ei>o, o ei>o no ir realmente ser
movido, mas se g,uto Vero !9= Buando Nomedh 8 posicionada em 4onfigo referenciar,ento a
coordenada absoluta da posio atual do ei>o ser definido com o valor definido para o ei>o em
Nome(referencia em 4onfigo Dtate dialog Esso geralmente 8 ?ero
j De houver uma chave de 9eferencia ( Nome definida para o ei>o e no est fornecendo uma
entrada ativa Buando o 9ef 8 solicitado, ento o ei>o ser movido na direo definida em
4onfigo referenciar, at8 a entrada se tornar ativa
7le em seguida, recua a uma curta distRncia de modo Bue a entrada fiBue em inativo
De a entrada A est ativo, apenas o ei>o se move a mesma distRncia curta para a posio
inativa
De ,uto Vero !9= Buando Nome 8 verificada em 4onfigo referencing, ento a coordenada
absoluta da mBuina ser definida com o valor definido para o ei>o da referFncia Nome da
tabela s#itch ( locais da 4onfigo dilogo do 7stado
= boto g !eH9ef ,llh no movimentam os ei>os, mas dei>aHos no estado de referFncia
_
..2.2.3 Machine coordinates
The Machine,oords button displa+s absolute machine coordinates The M7! #arns
that absolute coordinates are being displa+ed
]
1--3 coordenadas de mBuinas
= boto Machine4oords mostra as coordenadas absolutas da mBuina
= M7! adverte Buando as coordenadas absolutas esto sendo e>ibidas
]
..2.2.4 -cae
Dcale factors for an+ a>es can be set b+ K05 and can be cleared b+ K0. Ef a scale factor
%other than 5.& is set then it is applied to coordinates #hen the+ appear in KH4ode %eg as
Y #ords, ` #ords etc& The Dcale M7! #ill flash as a reminder that a scale is set for an
a>is The value defined b+ K05 #ill appear, and can be set, in the Dcale !9= "egative
values mirror the coordinates about the relevant a>is
]
Using Mach3Mi .-4 Rev 1.84-A2
Mach3 contros and running a %art %rogram
1--/ 7scala
*atores de escala para BualBuer dos ei>os pode ser definido por K05 e pode ser cancelada por
K0.
De um fator de escala %outro Bue 5.& seAa definido, em seguida, 8 aplicado para as
coordenadas Buando eles aparecem no KH4ode %por e>emplo, Y te>to, ` te>to `, etc&
, escala M7! pisca como um lembrete Bue uma escala foi definida para um ei>o
= valor definido pelo K05 vai aparecer e pode ser definido na escala !9=
=s valores negativos representam as coordenadas sobre o ei>o em causa
_
..2.2., -o"timits
The So%tlimits button enables the softlimits values defined in 4onfigoNoming(Mimits
]
1--0 Mimites por Doft#are
= boto permite Bue os valores seAam definidos em' Mimits ( 4onfigo Noming
_
..2.2.. Geri"y
The <eri%y button, #hich is onl+ applicable if +ou have Nome s#itches, #ill move to
them to verif+ if an+ steps might have been lost during preceding machining operations
]
1--1 Lerificao
= boto Lerificar, Bue sI 8 aplicvel se vocF tiver chaves de Nome, vai passar por elas
para verificar se as medidas poderiam ter sido perdidas durante operaes de usinagem
anterior
_
..2.2.0 *iameterHRadius correction
9otar+ a>es can have the appro>imate si?e of the #or$piece defined using the 9otational
!iameter control famil+ This si?e is used #hen ma$ing blended feedrate calculations
for coHordinated motion including rotational a>es The M7! indicates that a nonH?ero
value is defined
]
1--J !iRmetro ( 9aio de correo
7i>os rotativos, podem ter o seu tamanho definido utili?ando o controle da famClia de
!iRmetro7sse tamanho 8 usado para fa?er clculos coordenando ,vano e Movimento,
incluindo os ei>os de rotao
= M7! indica Bue um valor diferente de ?ero 8 definido
1-3 4ontrole de movimento para' SMove to S
7>istem muitos botes em telas diferentes, destinados a fcilitar o movimento da ferramenta
%ponto de controle& para um determinado local %por e>emplo, mudana de ferramenta&
7stes botes incluem' Koto Vs para movimentar todos os ei>os para ?ero,
Koto Mudana de *erramenta,
Koto Dafe V
Koto Nome
Rev 1.84-A2 .-, Using Mach3Mi
Mach3 contros and running a %art %rogram
,l8m disso Mach3 pode se lembrar de dois conAuntos diferentes de coordenadas e vo para
eles sobre demanda
7les so acionados por' Det 9eference 3oint %!efinir 3onto de 9eferFncia& e Koto 9ef 3oint
%L para o ponto de referencia&
1-/ M!E e *amilia de 7nsino
Minhas de KH4ode %Glocos& podem ser inseridos, para imediata e>ecuo, na
M!E %Manual !ata 7ntrada de linha&
Esto 8 selecionado clicando nele ou por M!E hot$e+ %7ntre na configurao padro&
Uuando a linha ficar ativa sua cor muda de cor e uma cai>a flutuante mostrando os comandos
Bue entraram recentemente 8 e>ibido
Um e>emplo 8 mostrado na figura 10
Teclas de setas para cima e teclas de seta para bai>o podem ser usado para selecionar a linhal
de modo Bue vocF pode reutili?ar uma linha Bue A tenha usado
, tecla 7nter causa a e>ecuo da linha atual do M!E e ele permanece ativo para a entrada de
outro conAunto de comandos
, tecla 7sc cancela a linha e a desmarca
Z preciso lembrar Bue, Buando 8 selecionadas todas as entradas do teclado e entrada de um
emulador de teclado 8 escrito na linha de M!E em ve? de controlar Mach3
7m particular, teclas de movimentao no sero reconhecidas' vocF deve teclar 7sc depois de
usar M!E
Mach3 pode lembrar de todas as linhas digitadas em M!E como ele 8 e>ecutado e arma?enH
los em um arBuivo usando o Teach Mode% modo de 7nsinar&
4liBue em Eniciar Teach, digite os comandos necessrios e, em seguida, cliBue em 3arar
ensinar = M7! pisca para lembrar Bue vocF est no modo de programao
=s comandos so grsvsdos no arBuivo com o nome convencional'
S4'(Mach3(KH4ode(M!ETeachtapS
4licandoHse em Moad ( 7ditar ir carregar este arBuivo em Mach3 onde ele pode ser e>ecutado
ou editado da forma habitual
LocF precisa 7>ecutar o programa para o ver na tela
De deseAar manter um determinado conAunto de comandos gravados, vocF deve editar o arBuivo
e usar Dalvar como no editor e dar ao arBuivo um nome e colocHlo em uma pasta conveniente
1-0 *amClia de 4ontrole de Movimentos
4ontroles de Movimento so agrupados em uma tela especial, Bue entra e sai Buando a tecla
Tab 8 pressionada no teclado 7scondeHse Buando Tab 8 novamente acionada
Dempre Bue o 2og ="X =** 8 e>ibido na tela atual, em seguida, os ei>os da mBuina podem
ser movimentados utili?ando'
%a& as teclas de atalho Aog H incluindo um M3K ligados atrav8s de uma emulador de teclado' as
teclas de atalho so definidas em hot$e+s 4onfigure ,>is,
Using Mach3Mi .-. Rev 1.84-A2
Mach3 contros and running a %art %rogram
%b& o volante M3K %D& conectada a um codificador na porta paralela, ou um dispositivo
Modbus
%c& Ao+stic$s interface como UDG Numan Enterface !evices, ou
%e& como uma caracterCstica de legado, um anlogo compatCvel com @indo#s Ao+stic$ De a
2og boto =" ( =** no 8 e>ibida ou 8 alternado para =**, ento , movimentao no 8
permitida por ra?es de segurana
1-05 Aogging Not$e+
7>istem trFs modos' 4ontCnuo, Dtep e M3K, Bue so selecionados pelo boto 2og Mode
e indicado pelos M7!s
Modo contCnuo move o ei>o ou ei>os, "a [Ta>a Menta A definida\ , Buando as teclas de atalho
so apertadas
, movimentao em alta velocidade pode ser usada com teclas de atalho no modo contCnuo e 8
definida como uma porcentagem do contido no !9= [Dlo# 2og 3ercentage
Esso pode ser configurado %no intervalo entre .,5m a 5..m& digitandoHse no !9=
3odem ser alterados em incrementos de 0m, com os botes ou as suas hot$e+s
7ste percentual Dlo# 2og pode ser substituCdo por apertar Dhift com a correspondente tecla de
atalho %s&
Um M7! ao lado do 4ont M7! indica Bue a velocidade m>ima esta selecionada
Modo de 3asso move o ei>o em um incremento %conforme definido pelo incremento 2og !9=&
para cada tecla pressionada
, corrente ta>a de avano %como definido com o cIdigo *& 8 usado para esses movimentos
= tamanho do incremento pode ser definido, digitando em Dtep !9= ou valores podem ser
fi>ados no presente !9= em ciclos atrav8s de um conAunto de 5. valores definidos pelo
usurio utili?ando o boto 4+cle 3asso 2og
= Modo incremental 8 selecionado pelo boto de alternRncia ou, se em modo contCnuo
temporariamente selecionadas pressionando 4trl antes de e>ecutar o movimento
1-0- porta paralela ou Modbus movimentao M3K
,t8 trFs codificadores de Buadratura ligados Ts portas paralelas ou ModGus pode ser
configurado como M3Ks para movimentao usando o 2og Mode para selecionar M3K 2og
Mode
= ei>o Bue vai do M3K Aogs 8 indicado pelos M7!s e os ei>os so instalados ciclados
atrav8s da tecla ,ltH, para M3K5, ,ltHG para M3K- e ,ltH4 para M3K3
Dobre o grfico da M3K ala so um conAunto de botes para selecionar o modo M3K
7m M3K Lelocit+ Mode a velocidade do movimento do ei>o est relacionado com a
velocidade de rotao do M3K com Mach3 ara garantir Bue a acelerao do ei>o e velocidade
m>ima seAa honrada
Esso d uma sensao muito natural ao ei>o de movimento Modo 3asso modo M3K (
Lelocidade atualmente trabalha como modo de velocidade
"o modo Dingle Dtep cada Sclic$S de pedidos M3K um encoder incremental passo Aog
%4om o conAunto de distRncia, para fa?er Aogging 3asso hot$e+&
Rev 1.84-A2 .-0 Using Mach3Mi
Mach3 contros and running a %art %rogram
,penas um pedido a um tempo ser permitido 7m outras palavras, se o ei>o A est se
movendo, em seguida, um ScliBueS ser ignorado
7m modo multiHpasso, os cliBues sero contabili?ados e em fila para a ao
"ote Bue isto significa Bue para passos largos rpido movimento da roda pode significar Bue o
ei>o movimenta uma considervel distRncia e por algum tempo apIs o movimento da roda
parar
,s etapas so implementado com um dado avano estabelecido em !9= M3K
7stes modos de passo so de uso particular em fa?endo muito bem os movimentos controlados
Buando a criao de trabalho em uma mBuina
LocF so aconselhados a comear a usar o Lelocit+ Mode
1-03 famClia de controle de velocidade do Dpindle
!ependendo do proAeto de sua mBuina, o ei>o da mBuina pode ser controlado de trFs
maneiras'
%a& , velocidade 8 fi>a ( ligado e desligado a mo,
%b& , Lelocidade 8 fi>a ( ligada e desligada por MHcodes via saCdas de ativao e>terna,
%c& !efinio de velocidade por 3@M usando Mach3 ou passo ( direo unidade
7sta famClia de controle 8 importante apenas para o caso %c&
= visuali?ador D tem o seu valor definido Buando uma palavra D 8 usado em um programa da
pea
Z o deseAado na velocidade do Dpindle
Tamb8m pode ser definido, posicionando no !9=
Mach3 no permitir Bue vocF definaHo de outra maneira Bue a uma velocidade menor do Bue
o fi>ado na Minima Lelocidade ou maior do Bue o definido no guia Ma> Dpeed em 4onfigo
3ort l 3ins 7i>o de instalao para a polia escolhida
De a entrada de Cndice est configurado e um sensor Bue gera pulsos como o ei>o gira
est ligado ao seu pino, em seguida, a velocidade atual ser e>ibida no visuali?ador 93M =
93M !9= no pode ser definida por vocF H use o visuali?ador D para comandar uma
velocidade
1-1 *amClia de 4ontrole de alimentao
1-15 Unidades de ,limentao por minuto
= 3rog *eed !9= mostra a ta>a de alimentao na unidade selecionada atualmente
%polegadas ( milCmetros por minuto&
7le 8 definido pela palavra * em um programa da pea ou digitando na * !9=
Mach3 dever usar esta ta>a, como a velocidade de e>ecuo em um programa da pea como a
ta>a real da coordenada movimento da ferramenta atrav8s do material
De esta ta>a no 8 possCvel devido T velocidade m>ima permitida de BualBuer ei>o, a ta>a de
alimentao real ser o maior possCvel
1-1- Unidades de ,limentao por rev
Using Mach3Mi .-8 Rev 1.84-A2
Mach3 contros and running a %art %rogram
4omo cortadores modernos so muitas ve?es especificados para cortar com SpontasS, pode ser
conveniente para especificar o avano por rotao %ou seAa' alimentao por ponta > nmero de
pontas da ferramenta&
= visuali?ador *eed 3rog d a ta>a de alimentao em unidades de corrente %3olegadas (
milCmetros& por rev do spindle
Esto 8 definido pela palavra * em um programa da pea ou digitando no !9=
, revoluo do spindle pode ser determinado pela !9= D ou da medida de contagem de
velocidade de pulsos de Cndice 4onfigo Mogic tem uma opo para definir Bual Mach3 vai
adotar
3ara empregar *eed Units ( rev, Mach3 deve saber o valor da medida da velocidade escolhida
do spindle Bue deve ter sido por'
%a& definida em um cIdigo D ou dados inseridos no D !9= na famClia de controle de
velocidade do ei>o ou
%b& o Cndice deve estar conectado para medir a real velocidade do spindle&
]=bserve Bue os valores num8ricos no controle ser muito diferente a no ser Bue a velocidade
do spindle fiBue perto de 5 rpmb 7nto, usando uma figura de alimentao por minuto, com
alimentao por rev modo provavelmente produ?ir uma Buebra desastrosa _
1-13 Mostrando a ,limentao
, alimentao atual em funcionamento para permitir o movimento coordenado de todos os
ei>os 8 e>ibido na Unidades ( min e Unidades ( rev De a velocidade do ei>o no est definida e
a velocidade do ei>o real no 8 medida em seguida, o valor de *eed por rev ficar sem sentido
1-1/ ,limentao Bue prevalesce
,o menos Bue M/6 est sendo usada, a velocidade de avano pode ser substituCdo
manualmente, na fai>a de -.m a -66m, atrav8s da introduo de uma percentagem da !9=
7ste valor pode ser atingido %7m passos de 5.m& com os botes ou seus atalhos de teclado e
sero redefinidos para 5..m = M7! alerta para uma substituio est em operao
= *9= !9= e>ibe o resultado da aplicao do calculo do percentual do avano
1-J 7>ecuo do programa
7sses controles lidam com a e>ecuo de um programa carregado ou parte dos comandos em
uma linha M!E
1-J5 inCcio do ciclo
Degurana aviso' "ote Bue o boto 4+cle Dtart, em geral vsi iniciar o movimento do spindle
!eve sempre ser configurado para e>igir as Sduas mosS na operao e se vocF estiver
atribuindo o seu prIprio hot$e+s, no deve ser apenas uma nica tecla
1-J- 3arada da ,limentao
= boto *eedhold ir parar a e>ecuo do programa da pea, o mais rapidamente possCvel, mas
de forma controlada para Bue ele possa ser reiniciado 4+cle Dtart
= ei>o e refrigerao perrmanecero ligados, mas podem ser parados manualmente, se
necessrio
Uuando em *eedNold vocF pode movimentar os ei>os, substituir uma ferramenta Buebrada etc
Rev 1.84-A2 .-1 Using Mach3Mi
Mach3 contros and running a %art %rogram
De vocF parou o spindle ou a refrigerao, vocF geralmente deve ligHlos antes de continuar a
e>ecuo de um programa de pea, contudo, lembreHse das posies do ei>o no momento da
*eedNold e retornar a eles antes de continuar o programa da pea
1-J3 Dtop
Dtop, pra o movimento do ei>o o mais rapidamente possCvel 3ode resultar em passos
perdidos %especialmente em ei>os desli?antes motori?ados& e a reiniciali?ao pode no ser
vlida
1-J/ 9e#ind
9ecua o programa carregado Bue esta em e>ecuo
1-J0 Dimples GMO
DingleGMO 8 um Miga(!esliga %com indicador M7!&
"o modo de um nico bloco de inCcio do ciclo ser e>ecutar a prI>ima linha nica parte do
programa e digite *eedNold
1-J1 7>ecuo 9eversa
9everse 9un 8 Miga(!esliga %com indicador M7!&
!eve ser usado apIs uma *eed Nold ou Dingle Gloco e o prI>imo 4+cle Dtart dever fa?er Bue
programa seAa e>ecutado em sentido inverso
Esto 8 particularmente til na recuperao de uma condio perdida do arco de corte de plasma
ou uma ferramenta Buebrada
1-JJ Minha "mero
Minha !9= 8 um nmero ordinal da linha atual no visor do KW4ode %Eniciando de .&
"ote Bue isto no est relacionado com a palavra S"S nmero da linha S
LocF pode escrever no !9= para definir a linha atual
1-J: 7>ecutar daBui
7>ecutar a partir daBui, fa? uma simulao de parte do programa para estabelecer Bue o estado
modal %K-.(K-5, K6.(K65 etc& deve ser, e ento pede um movimento para colocar o ponto de
controle na posio correta para o inCcio da linha
LocF no deve tentar 7>ecutar a partir de aBui, no meio de uma subHrotina
1-J6 !efinir prI>ima linha
7>ecutar a partir de aBui, mas sem a definio do modo de preparao ou de movimento
1-J5. Gloc$ !elete
= boto 7>cluir alterna a chave de Gloc$ !elete De ativado, em seguida, as linhas de KH4ode
Bue comeam com uma barra H ou seAa, ( H no ser e>ecutado
1-J55 parada opcional
= boto *im alterna a chave de parada opcional De ativado, o comando M.5
ser tratado como M..
1-: *amClia de 4ontrole de ,rBuivo
Using Mach3Mi .-1+ Rev 1.84-A2
Mach3 contros and running a %art %rogram
7sses controles, figura 16, esto envolvidos com o arBuivo do seu programa da pea 7les
devem ser autoHevidente na operao
1-6 !etalhes da *erramenta
"o grupo de detalhes da ferramenta figura 16, os controles e>ibem a ferramenta atual, os
deslocamentos para o seu comprimento e diRmetro e, em sistemas com entradas !igitali?adas,
permitem Bue seAa automaticamente ?erado o plano V
, menos Bue os pedidos de mudana de ferramenta esto sendo ignoradas %4onfigo Mogic&, ao
se deparar com um M1 Mach- vai se mover para Dafe V e parare vai piscar o Med de alterar
ferramenta
LocF poder continuar %depois de trocar a ferramenta&, clicando em EnCcio do ciclo
= tempo decorrido para este trabalho 8 e>ibido em horas, minutos e segundos
1-5. KH4ode e a famClia de controle do caminho da ferramenta
= programa e>ecutando atualmente um pea 8 e>ibido na Aanela do KH4ode
, linha atual 8 destacada e pode ser movid usando a barra de rolagem na Aanela
, e>ibio do caminho da ferramenta, figura 15., mostra o caminho Bue o ponto controlado
seguir no plano Y, `, V
Uuando um programa est sendo e>ecutado o caminho 8 pintado na cor selecionado em
4onfigo toolpath
7sta sobrepintura 8 dinRmica e no 8 preservada Buando alterna entre telas ou alterar pontos de
vista dos toolpath
7m certas ocasies vocF ver Bue a tela no seguir e>atamente o caminho previsto
Esto ocorre pela seguinte ra?o, Mach3 priori?a as tarefas Bue est fa?endo
7nviando pulsos de passo e>atamente para a mBuinaHferramenta, esta 8 a sua primeira
prioridade !esenhar o caminho da ferramenta 8 uma prioridade mais bai>a
Mach3 vai colocar os pontos na tela do caminho da ferramenta sempre Bue tiver o tempo livre
e unir esses pontos por linhas retas ,ssim, se o tempo 8 curto, apenas alguns pontos sero
escolhidos e os cCrculos durante e>ecuo de um programa de peas tendem a aparecer como
polCgonos onde os lados retos so muito visCveis Esso no 8 nada para se preocupar
, 7>ecuo do 3rograma de Dimulao ir e>ecutar o KH4ode, mas sem nenhum movimento
da ferramenta, e permitir Bue o tempo para fa?er a pea possa ser estimado
=s dados de limite do programa permitem verificar a e>curso m>ima do ponto controlado de
forma a ficar dentro do ra?ovel %por e>emplo, no moer a sua mesa&
, imagem tamb8m mostra visuali?adores ei>os !9=s e alguns controles de e>euo do
3rograma
De vocF tiver definido D=*TMEMETD Bue correspondem ao tamanho da sua mesa da mBuina,
ento 8 muitas ve?es til usar o boto 7>ibir para alternar entre o modo de trabalho para
mostrar o Buadro com o caminho da ferramenta em relao a sua mesaLeAa figura 155
=s dados na tela, podem movidos para a esBuerda clicando e arrastando o mouse nele
7le pode ser ampliado por shiftHesBuerda clicando e arrastando e pode ser deslocado arrastando
com um cliBue direito
Rev 1.84-A2 .-11 Using Mach3Mi
Mach3 contros and running a %art %rogram
= boto Kerar vai regenerar o caminho da ferramenta e mostrar a partir do KH4ode Bue esta
atualmente habilitado com o deslocamentos em K6-
"ota' Z muito importante em regenerar o toolpath depois de alterar os valores das
compensaes, tanto para obter o efeito visual correto e porBue 8 utili?adas para e>ecutar
clculos Buando se utili?a K/- e K/3 para a compensao do cortador
1-55 Trabalho offset e uma ferramenta de controle de tabela de famClia
Trabalho =ffset e tabelas ferramenta pode ser acessada a partir do menu do operador e,
evidentemente, no um programa da pea, mas muitas ve?es 8 mais conveniente para manipulH
los atrav8s dessa famClia 9emeter para o 4apCtulo J para obter informaes sobre as tabelas e
t8cnicas, como STocandoS
3or causa das definies subAacentes KW4ode de trabalho =ffset e tabelas ferramenta de
trabalho em pouco maneiras diferentes
,viso' , alterao do Trabalho e deslocamentos ferramenta em uso nunca realmente move a
ferramenta a mBuina, embora, naturalmente alterar as leituras ei>o !9=
"o entanto, um movimento K.,K5 etc&, apIs aAuste offsets novos ser no novo sistema de
coordenadas
LocF tem Bue entender o Bue vocF est fa?endo se vocF deseAo de evitar falhas no sua mBuina
1-555 !eslocamento de Trabalho
Mach3 por padro utili?a para seu deslocamento de Trabalho o nmero 5
7scolha BualBuer valor de 5H-00, e coloBue no =ffset !9= e este ser o seu deslocamento de
trabalho %Ts ve?es so chamado de !eslocamentos fi>os
!igitando no !9= eBuivalente a uma parte do programa de emisso K00 a 06 ou K0:5 para
K06-03
%Uv&
LocF tamb8m pode definir o actual sistema offset usando os botes de fi>ao
LocF pode alterar o valor dos valores de deslocamento, escrevendo no !9= em 3art =ffset
%!eslocamento de 3ea 8 outro nome para a fi>ao do trabalho&
=s valores tamb8m podem ser definidas nestes !9=s movendo os ei>os para um local
deseAado e clicar em !efinir ou boto Delect =s ei>os Y e ` e V so definidos de forma
ligeiramente diferente
V 8 mais fcil de entender isso vamos descrevFHlo primeiro
= deslocamento de V geralmente 8 criado com uma ferramenta de SmestreS no spindle
o V para outras ferramentas sero corrigidas pela mesa de ferramentas
Um bloco de calibre ou at8 mesmo um pedao de papel alumCnio ou papel 8 desli?ado entre a
ferramenta e a parte superior do trabalho %se este for a V n .,.& ou a mesa %se 7sta 8 a V n .,.&
= ei>o V ento 8 movimentado muito suavemente para bai>o at8 Bue o medidor fiBue preso
apenas pela ferramenta
, espessura da bitola 8 inserido no bloco no !9= ,ltura V se boto for clicado
Esto ir definir o valor V do deslocamento para o trabalho atual para uma ferramenta Bue esta
em uma determinada altura
Using Mach3Mi .-12 Rev 1.84-A2
2
Mach3 contros and running a %art %rogram
= processo de Y e ` 8 similar, e>ceto Bue o toBue pode ser feito em BualBuer um dos Buatro
lados da pea e tem Bue ter levado em conta o diRmetro da ferramenta %ou sonda& e a
espessura de um gabarito do Bue foi usado para dar a SsensaoS de tocar na pea
3or e>emplo, para definir a borda inferior de uma pea de material a ter ` n .. com uma
ferramenta de diRmetro de .,0 Se um bloco padro de .,5S, vocF deve digitar .,J de !iametro
no !9= %diRmetro da ferramenta mais duas ve?es o calibre& e cliBue no boto Delecionar do
Bue foi selecionado, dependendo da configurao do deslocamento persistente e Dalvar =ffsets
em 4onfigo o 7stado novos valores sero lembrados a partir daBui
1-55- *erramentas
,s ferramentas so numeradas de . a -00
= nmero da ferramentas 8 selecionado pelo cIdigo T em um programa de pea ou
digitando o nmero T no !9= correspondente
Deus deslocamentos so considerados somente se estiver ligado no boto =ffset Tool
=n ( =ff %ou ainda o K/3 e K/6 eBuivalente na parte do programa&
7m Mach3Mill sI o V offset de !iRmetro 8 utili?ado para a ferramenta
= diRmetro pode ser inseridos no !9= e VHoffset %ou seAa, a compensao para o
comprimento da ferramenta& ser inserido diretamente ou por cliBues
1-553 ,cesso direto aos deslocamentos por Tabela
,s tabela podem ser abertos e editados diretamente e depois salvadas
_
6.2.3 ;!ove to; controls
There are man+ buttons on different screens designed
to ma$e it eas+ to move the tool %controlled point& to a
particular location %eg for a tool change& These
buttons include' 3oto ?s to move all a>es to ?ero, 3oto
Tool ,hange, 3oto Sa%e ?2 3oto !ome.
En addition Mach3 #ill remember t#o different sets
of coordinates and go to them on demand These are
controlled /y Set 4e%erence +oint and 3oto 4e% +oint,
and b+ Set <aria/le +osition and 3oto <aria/le
+osition
6.2.4 !DI and Teach control a$il&
KH4ode lines
%bloc$s& can be
entered, for
immediate
e>ecution, into the
M!E %Manual !ata
Enput& line This is
selected b+
#igure ..4 ) Controed %oint
memories A $each
clic$ing in it or the
#igure .., ) M*I ine
M!E hot$e+ %7nter in the default configuration& @hen
the M!E line is active its color changes and a fl+out
bo> sho#ing the recentl+ entered commands is
displa+ed
,n e>ample is sho#n in figure 10 The cursor up and
do#n arro# $e+s can be used to select from the fl+out
so that +ou can reuse a line that +ou have alread+
entered The Enter $e+ causes Mach3 to e>ecute the
current M!E line and it remains active for input of
another set of commands The Esc $e+ clears the line
and deHselects it `ou need to remember that #hen it
is selected all $e+board input %and input from a
$e+board
emulator or custom $e+board& is #ritten in the M!E
line rather than controlling Mach3 En particular,
Aogging $e+s #ill not be recognised' +ou must Esc after
entering M!E
Mach3 can remember all the M!E lines as it
e>ecutes them and store them in a file b+ using the
Teach
facilit+ 4lic$ Start Teach, enter the reBuired
commands
and then clic$ Stop Teach The M7! blin$s to remind
+ou that +ou are in Teach Mode The commands are
#ritten in the file #ith the conventional name
S4'(Mach3(KH4ode(M!ETeachtapS 4lic$ing
Moad(7dit #ill load this file into Mach3 #here it can be
run or edited in the usual #a+ d +ou need to go to the
3rogram 9un screen to see it Ef +ou #ish to $eep a
given set of taught commands then +ou should 7dit the
file and use Save #s in the editor to give it +our o#n
name and put it in a convenient folder
6.2.5 <ogging control a$il&
2ogging controls are collected on a special screen
#hich fl+sHout into use #hen the Ta/ $e+ is pressed on
the $e+board Et is hidden b+ a second press of Ta/
This is illustrated in figure 11(
#igure ... - 2ogging contro
"amiy
@henever the 0og O1NOFF button is displa+ed on the current screen then the a>es of the
machine can be Aogged using %a& the Aog hot$e+s d including an M3K connected via a
$e+board emulator' the hot$e+s are defined in 4onfigure ,>is hot$e+se %b& M3K
hand#heel %s& connected to an encoder on the parallel porte or a Modbus device %c&
Ao+stic$s interfaced as UDG Numan Enterface !evicese or %e& as a legac+ feature, a
@indo#s compatible analog Ao+stic$
Ef the 0og O1)OFF button is not displa+ed or it is toggled to =** then Aogging is
not allo#ed for safet+ reasons
..2.,.1 &ot4ey Iogging
There are three modes 4ontinuous, Dtep and M3K #hich are selected b+ the 0og Mode
button and indicated b+ the M7!s
4ontinuous mode moves the a>is or a>es at the defined slo# Aog rate #hile the hot$e+s
are depressed
The Aogging speed used #ith hot$e+s in 4ontinuous mode is set as a percentage of the
rapid traverse rate b+ the Slo" 0og +ercentage !9= This can be set %in the range .5m to
5..m& b+ t+ping into the !9= Et can be nudged in 0m increments b+ the buttons or their
hot$e+s
This Slo" 0og +ercentage can be overridden b+ depressing Shi%t #ith the hot$e+%s& ,n
M7! beside the 4ont M7! indicates this full speed Aogging is selected
Dtep mode moves the a>is b+ one increment %as defined b+ the 0og Increment !9=&
for each $e+press The current feedrate %as defined b+ the * #ord& is used for these
moves
The si?e of increment can be set b+ t+ping it into the Step !9= or values can be set in this
!9= b+ c+cling through a set of 5. user definable values using the ,ycle 0og Step button
Encremental mode is selected b+ the toggle button or, if in 4ontinuous Mode
temporaril+ selected b+ holding do#n 4trl before performing the Aog
..2.,.2 !arae %ort or Mod/us M!8 Iogging
Up to three Buadrature encoders connected to the parallel ports or ModGus can be
configured as M3Ks for Aogging b+ using the 0og Mode button to select M+3 0og
Mode
The a>is that the M3K #ill Aogs is indicated b+ the M7!s and the installed a>es are
c+cled through b+ the ,ltH, button for M3K5, ,ltHG for M3K- and ,ltH4 for M3K3
=ver the graphic of the M3K handle are a set of buttons for selecting the M3K mode
En M+3 <elocity Mode the velocit+ of the a>is movement is related to the rotational
speed of the M3K #ith Mach3 ensuring that the acceleration of the a>is and top speed if
honoured This gives a ver+ natural feel to a>is movement M+3 Step)<elocity mode
currentl+ #or$s li$e velocit+ mode
En Single Step mode each Sclic$S from the M3K encoder reBuests one incremental Aog
step %#ith the distance set as for hot$e+ Dtep Aogging& =nl+ one reBuest at a time #ill be
allo#ed En other #ords if the a>is is alread+ moving then a gclic$h #ill be ignored En
M$lti7step mode, clic$s #ill be counted and Bueued for action "ote that this means that
for large steps rapid movement of the #heel ma+ mean that the a>is moves a considerable
distance and for some time after the #heel movement has stopped The steps are
implemented #ith the federate given b+
the M+3 Feedrate !9=
These step modes are of particular use in
ma$ing ver+ fine controlled movements
#hen setting up #or$ on a machine
`ou are advised to start using Lelocit+
Mode
..2.,.3 -%inde -%eed contro "amiy
!epending on the design of +our
machine, the machine spindle can be
controlled in three #a+s' %a& Dpeed is
fi>ed(set b+ hand, s#itched on and off
b+ hande %b& Dpeed fi>ed(set b+ hand,
s#itched on and off b+ MHcodes via
e>ternal activation outputs, %c& Dpeed set
b+ Mach3 using 3@M or step(direction
drive
#igure ... - -%inde s%eed contro "amiy
This control famil+ is onl+ important for case %c&
The S !9= has its value set #hen an D #ord is used in a part program Et is the
desired spindle speed Et can also be set b+ t+ping into the !9=
Mach3 #ill not allo# +ou to tr+ to set it %in either #a+& to a speed less than that set in
Min Speed or greater than that set in Ma5 Speed on 4onfigo3ort l 3ins Dpindle Detup
tab for the chosen pulle+
Ef the Inde5 input is configured and a sensor #hich generates pulses as the spindle revolves
is connected to its pin, then the current speed #ill be displa+ed in the 4+M !9= The 4+M
!9= cannot be set b+ +ou d use the S !9= to command a speed
6.2.6 =eed control a$il&
..2...1 #eed Units %er minute
The +rog Feed !9= gives the feed rate in current units %inches(millimetres per minute&
Et is set b+ the * #ord in a part program or b+ t+ping into the F !9= Mach3 #ill aim to
use
this speed as the actual rate of the coH
ordinated movement of the tool through the
material Ef this rate is not possible because of
the ma>imum permitted speed of an+ a>is
then the actual feed rate #ill be the highest
achievable
..2...2 #eed Units %er rev.
,s modern cutters are often specified b+ the
permitted cut per StipS it ma+ be convenient to
specif+ the feed per revolution %ie feed per
tip x number of tips on tool& The +rog Feed
!9= gives the feed rate in current units
%inches(millimetres& per rev of the spindle Et
is
set b+ the * #ord in a part program or b+
t+ping into the !9=
#igure ..0 #eed contro "amiy
, revolution of the spindle can either be determined b+ the S !9= or from the measured
speed b+ counting inde> pulses 4onfigoMogic has a chec$bo> to define #hich Mach3
#ill adopt
To emplo+ *eed units(rev, Mach3 must $no# the value of the chosen measure of the
speed of the spindle %ie it must have been %a& defined in an D #ord or b+ data entered to
S !9=
in the Dpindle speed control famil+ or %b& the Ende> must be connected up to measure
actual spindle speed&
%otice that the numeric values in the control will be very different unless spindle
speed is near to + rpm* So using a feed per minute figure with feed per rev mode will
probably produce a disastrous crash.
..2...3 #eed dis%ay
The actual feed in operation allo#ing for the coHordinated motion of all a>es is displa+ed
in =nits)min and =nits)rev. Ef the spindle speed is not set and the actual spindle speed is
not measured then the Feed per rev value #ill be meaningless
..2...4 #eed override
Unless M/6 %!isable feedrate override& is in use, the feedrate can be manuall+
overridden, in the range -.m to -66m, b+ entering a percentage in the !9= This value
can be nudged %in steps of 5.m& #ith the buttons or their $e+board shortcuts and be reset
to 5..m The M7! #arns of an override is in operation
The F4O !9= displa+s the calculated result of appl+ing the percentage override to the
set feedrate
6.2." ,rogra$ )%nning control a$il&
These controls handle the e>ecution of a loaded part program or the commands on an M!E
line
..2.0.1 Cyce -tart
Safety warning$ "ote that the ,ycle Start button #ill, in general, start the spindle and
a>is movement Et should al#a+s be configured to reBuire St#o handS operation and if +ou
are assigning +our o#n hot$e+s it should not be a single $e+stro$e
..2.0.2 #eed&od
The *eedhold button #ill stop the e>ecution of the part program as Buic$l+ as possible
but in a controlled #a+ so it can be restarted b+ 4+cle Dtart The spindle and coolant #ill
remain on but can be stopped manuall+ if reBuired
@hen in *eedNold +ou can Aog the a>es, replace a bro$en tool etc Ef +ou have stopped
the spindle or coolant then +ou #ill generall+ #ant to turn them on before continuing
Mach3
#ill ho#ever, remember the a>is positions at the time of the *eedNold and return to
them before continuing the part program
#igure ..8 - !rogram running "amiy
..2.0.3 -to%
Stop halts a>is motion as Buic$l+ as possible Et ma+ result in lost steps %especiall+
on stepper motor driven a>es& and restarting ma+ not be valid
..2.0.4 Re'ind
9e#inds the currentl+ loaded part program
..2.0., -inge D;C
Single-LO is a toggle %#ith indicator M7!& En Dingle Gloc$ mode a 4+cle Dtart
#ill e>ecute the ne>t single line of the part program and then enter *eedNold
..2.0.. Reverse Run
4everse 4$n is a toggle %#ith indicator M7!&. Et should be used after a *eed Nold or Dingle
Gloc$ and the ne>t 4+cle Dtart #ill cause the part program to run in reverse This is
particularl+ useful in recovering from a lost arc condition in plasma cutting or a bro$en
tool
..2.0.0 ;ine Num/er
Line !9= is the ordinal number of the current line in the KH4ode displa+ #indo#
%starting from .& "ote that this is not related to the S" #ordS line number
`ou can t+pe into this !9= to set the current line
..2.0.8 Run "rom here
4$n %rom here performs a dumm+ run of the part program to establish #hat the modal state
%K-.(K-5, K6.(K65 etc& should be and then prompts for a move to put the controlled
point in the correct position to for the start of the line in Line 1$m/er. `ou should not
attempt to 4$n %rom here in the middle of a subroutine
..2.0.1 -et ne9t ine
Mi$e 4$n %rom here but #ithout the preparator+ mode setting or move
..2.0.1+ Doc4 *eete
The Delete button toggles the Gloc$ !elete Ss#itchS Ef enabled then lines of KH4ode
#hich start #ith a slash H ie ( H #ill not be e>ecuted
..2.0.11 (%tiona -to%
The 7nd button toggles the =ptional Dtop Ss#itchS Ef enabled then the M.5 command
#ill be treated as M..
6.2.9 =ile control a$il&
These controls, figure 16, are involved #ith the file of +our part program The+ should
be selfHevident in operation
6.2.> Tool details
En the Tool !etails group, figure 16, controls displa+
the current tool, the offsets for its length and
diameter and, on s+stems #ith a !igities input, allo#
it to be automaticall+ ?ero to the V plane
Unless tool change reBuests are being ignored
%4onfigoMogic&, on encountering an M1 Mach3
#ill move to Dafe V and stop, flashing the Tool
,hange
M7! `ou continue %after changing the tool& b+ clic$ing
,ycle Start
The elapsed time for the current Aob is displa+ed
in hours, minutes and seconds
6.2.1? @-Code and Toolpath control
a$il&
#igure ..1 ) $oo *etais
The currentl+ loaded part program is displa+ed in the KH4ode #indo# The current line
is highlighted and can be moved using the scroll bar on the #indo#
The Toolpath displa+, figure 15., sho#s the path that the controlled point #ill follo# in
the Y, `, V planes @hen a part program is e>ecuting the path is overpainted in the color
selected in 4onfigoToolpath This overpainting is d+namic and is not preserved #hen +ou
change screens or indeed alter vie#s of the toolpath
=n occasions +ou #ill find that the displa+ does not e>actl+ follo# the planned path Et
occurs for the follo#ing reason Mach3 prioritises the tas$s it is doing Dending accurate
step pulses to the machine tool is the first priorit+ !ra#ing the tool path is a lo#er
priorit+
Mach3 #ill dra# points on the toolpath displa+ #henever it has spare time and it Aoins
these points b+ straight lines Do, if time is short, onl+ a fe# points #ill be dra#n and
circles #ill
#igure ..1+ - $oo%ath "amiy
tend to appear as pol+gons #here the straight sides are ver+ noticeable This is nothing
to #orr+ about
The Sim$late +rogram 4$n button #ill e>ecute the KH4ode, but #ithout an+ tool
movement, and allo# the time to ma$e the part to be estimated
The +rogram Limits data allo# +ou to chec$ the ma>imum e>cursion of the
controlled point to be reasonable %eg not milling the top off the table&
The screenshot also sho#s a>is !9=s and some 3rogram 9un controls
Ef +ou have defined softlimits #hich correspond to the si?e of +our machine table then it
is often useful to use the Display Mode button to toggle from 2ob to Table mode to sho#
the toolpath in relation to the table Dee figure 155
The toolpath displa+ can be
rotated b+ left clic$ing and
dragging the mouse in it Et
can be ?oomed b+ shiftHleft
clic$ing and dragging and
can be panned b+ dragging
a right clic$
The 4egenerate button #ill
regenerate the toolpath
displa+ from the KH4ode
#ith the currentl+ enabled
fi>ture and K6- offsets
%ote$ Et is ver+ important
to regenerate the toolpath
#igure ..11 ) $oo%ath in reation to ta/e
after changing the values of offsets both to get the correct visual effect and because it
is used to perform calculations #hen using K/- and K/3 for cutter compensation
6.2.11 5ork oset and tool table control a$il&
@or$ =ffset and Tool tables can be accessed from the =perator menu and, of course,
#ithin a part program but it is often most convenient to manipulate them through this
famil+ 9efer to chapter J for details of the tables and techniBues li$e STouchingS
Gecause of the underl+ing KH4ode definitions @or$ =ffset and Tool tables #or$ in
slightl+ different #a+s
<arning$ 4hanging the @or$ and Tool offsets in use #ill never actuall+ move the tool
on the machine although it #ill of course alter the a>is !9= readings No#ever, a move
K., K5 etc& after setting
ne# offsets #ill be in the
ne# coordinate s+stem
`ou must understand
#hat +ou are doing if +ou
#ish to avoid crashes on
+our machine
..2.11.1 6or4 (""sets
Mach3 b+ default uses
@or$ =ffset number 5
4hoosing an+ value from
5 to -00, and entering it
in the ,$rrent Wor.
O%%set !9=, #ill ma$e
that @or$ =ffset current
@or$ offsets are
sometimes called *i>ture
=ffsets
#igure ..12 ) 6or4 o""sets "amiy
T+ping into the !9= is eBuivalent to a part program issuing K00 to 06 or K0:5 to
K06-03 %Bv&
`ou can also set the current offset s+stem using the Fi5t$re buttons
`ou can change the value of the offset values for the current offset s+stem b+ t+ping
into the relevant +art O%%set !9=s %3art =ffset is +et another name for @or$ and
*i>ture offsetsb&
Lalues can also be set in these !9=s b+ moving the a>es to a desired place and clic$ing
as Set or Select /$tton. The Y and ` a>es and V a>is are set in slightl+ different #a+s V is
easier to understand so #e #ill describe it first
The V offset #ill usuall+ be set up #ith a gmaster toolh in the spindle The V for other tools
#ill then be corrected b+ the tool table , gage bloc$ or sometimes even a piece of foil or
paper is slid bet#een the tool and the top of the #or$ %if this is to be V n ..& or the table
%if this is to be V n ..& The V a>is is ver+ gentl+ Aogged do#n until the gage is Aust
trapped b+ the tool The thic$ness of the gage is entered into the 3age -loc. !eight !9=
and the Set ? /$tton is clic$ed This #ill set up the V value of the current #or$ offset so
that the tool is at the given height
The process for Y and ` is similar e>cept the touching might be done on an+ of four
sides of the part and account has to be ta$en of the diameter of the tool %or probe& and the
thic$ness of an+ gage being used to give gfeelh to the touching process
*or e>ample to set the bottom edge of a piece of material to be ` n .. #ith a tool of
diameter .0h and a .5h gage bloc$, +ou #ould enter .J in the Edge Finder Dia !9=
%ie the diameter of the tool plus t#ice the gage& and clic$ the Delect button that is ringed
in figure 15-
!epending on +our configuration of 3ersistent =ffsets and =ffsets Dave in 4onfigoDtate
the ne# values #ill be remembered from one run of Mach3 to another
..2.11.2 $oos
Tools are numbered from . to -00
The tool number is selected b+ the
T #ord in a part program or
entering the number in the T !9=
Ets offsets are onl+ applied if the+
are s#itched =n b+ the Tool O%%set
On)O%% toggle button %or the
eBuivalent K/3 and K/6 in the part
program&
En Mach3Mill onl+ the ? o%%set and
Diameter are used for tools The
diameter can be entered in the
!9= and the VHoffset %ie
compensation
#igure ..13 ) $oo (""set
for tool length& be entered directl+ or b+ Touching The Det Tool =ffset feature #or$s
e>actl+ as set V #ith #ith @or$ =ffsets
Tool =ffset data is made persistent bet#een runs in the same #a+ as @or$ =ffset data
..2.11.3 *irect access to (""set $a/es
The tables can be opened and edited directl+
using the Save Wor. O%%sets and Save Tool
O%%sets buttons or the =peratoro*i>tures %ie
@or$ =ffsets& and =peratoroTooltable
menus
6.2.12 )otational Dia$eter control
a$il&
,s described in the *eedrate
control famil+, it is possible to
define the appro>imate si?e of
a
#igure ..14 - Rotationa diameters
rotated #or$piece so the rotational a>is speed can be correctl+ included in the
blended feedrate The relevant diameters are entered in the !9=s of this famil+
The ,>is control *amil+ has #arning M7!%s& to indicated the setting of nonH?ero
values here
Lalues are not reBuired if rotar+ movement is not to be coordinated #ith linear a>es En
this case a suitable * #ord for degrees per minute or degrees per rev should be
programmed
]
1-5- *amilia dos controles de !iametro do 7i>o 9otativo
4onforme descrito na famClia de controle do avano, 8 possCvel definir o tamanho apro>imado
de uma ferramenta de trabalho rotativa nos controles do Mach3 para Bue seAam combinados na
e>ecuo de um programa de pea para poder ser considerados nos procedimentos Auntamente
com o ,vano
=s diRmetros relevantes so escritos no !9= desta famClia
, famClia de controle dos ei>os, possuem M7!s de advertFncia indicando Buando os valores
so diferentes de ?ero
=s valores no so necessrios se a rotao no deve ser coordenada com ei>os lineares
"este caso, um cIdigo * adeBuado para graus por minuto ou graus por rev deve ser
programado
_
6.2.13 Tangential control a$il&
=n a machine to cut vin+l or fabric it is ver+ useful
to use a rotar+ a>is to control the direction that the
$nife points Et #ill cut best if tangential to the
direction in #hich the Y and ` a>es are moving at
an+ time
Mach3 #ill control the , a>is li$e this for K5 moves
4learl+ the point of the $nife should be as near to the
a>is about #hich a turns and this a>is must be
parallel to the V a>is of the machine
The feature is enabled b+ the Tangential ,ontrol
#igure ..1, ) $angentia contro
"amiy
button En most applications there is a limit to the angle through #hich the $nife can be
turned at a corner #hile it is in the material This value is defined in Mift ,ngle ,n+
corner #here the change in angle reBuired is greater than Mift ,ngle #ill cause the V a>is
to rise b+ the value in Mift V, the $nife #ill turn and then V #ill drop so it reHenters the
material in the ne# direction
]
1-53 famClia de 4ontrole Tangencial
7m uma mBuina de cortar vinil ou tecido 8 muito til utili?ao de um ei>o rotativo para
controlar a direo Bue a faca fica direcionada *icar melhor se o corte for tangencial T
direo em Bue os ei>os Y e ` esto se movendo a BualBuer momento
Mach3 vai controlar o ei>o , desta forma, como se estivesse com o comando K5
Z evidente Bue o ponto da faca deve ser to prI>imo ao ei>o sobre o Bual este ei>o gira e este
deve ser paralelo ao ei>o V da mBuina
= recurso 8 ativado pelo boto de controle tangencial
"a maioria das aplicaes, h um limite para o Rngulo atrav8s do Bual a faca pode ser
transformada em um canto enBuanto ele est no material 7ste valor 8 definido no wngulo de
Mevante
UualBuer canto onde a mudana no Rngulo for maior Bue Mift ,ngle far com Bue o ei>o V vai
aumentar o valor da elevao V, vai virar a faca e depois V vai bai>ar e assim vai reHentrar no
material na nova direo
_
6.2.14 .i$its and $iscellaneo%s
control a$il&
..2.14.1 In%ut Activation 4
Enput activation signal / can be configured to
give a hard #ired Dingle Dtep function
eBuivalent to the Single button in the 3rogram
9unning control famil+
..2.14.2 (verride imits
Mach3 can use soft#are to override
limit s#itches connected to its inputs #igure ..1. - ;imits contro "amiy
This can be automatic ie the Aogging performed immediatel+ after a reset #ill not
be subAect to limits until the a>is is Aogged off the
limit s#itches The Toggle button and #arning
M7! for #$to Limit Override controls this
,s an alternative limits ma+ be loc$ed out
using the =ver9ide Mimits toggle Ets use is
indicated b+ the M7!
%otice that these controls do not appl+ if limit
s#itches are #ired to the drive electronics or
to activate 7Dtop En this case an e>ternal
electrical override s#itch #ill be needed to
disable the s#itch circuit #hile +ou Aog off
them
6.2.15 1&ste$ 1ettings control
a$il&
ote: The controls in this %amily are not
in one place on the screens released
"ith
#igure ..10 ) -ystem -ettings? -a"e J
contros etc.
Mach3. Po$ "ill need to h$nt %or them on +rogram 4$n2 Settings and
Diagnostics screens.
]
1-5/ *amilia de 4ontroles de Mimites e miscelRnea
1-5/5 ,tivao de / entradas
Uuatro entradas de ativao de sinal podem ser configuradas como uma nica para dar uma
funo de simples ligao eBuivalente a um boto nico na e>ecuo do programa
1-5/- limites =verride
Mach3 pode usar o soft#are para substituir limite conectados para estas entradas
Esso pode ser automtico, por e>emplo, a movimentao reali?ada imediatamente apIs um reset
no ser suAeitas aos limites at8 Bue o ei>o seAa movimentado fora dos interruptores
Um boto liga e desliga o ,uto Mimite, e 8 sinali?ado pelo M7! correspondente
!a mesma forma limites alternativos podem ser bloBueado Deu uso 8 indicado pelo M7!
=bserve Bue esses controles no so aplicveis se o interrupor de limite esto ligados T
eletr^nica ou a unidade de emergFncia esta acionada
"este caso, um interruptor e>terno de ultrapassagem el8trica 8 necessrio para
desativar o circuito comutador, enBuanto vocF se movimenta fora deles
_
..2.1,.1 Units
This toggle implements the K-. and K-5 codes to change the current measurement
units `ou are strongly advised not to do this e>cept in small fragments of part program
on account of the fact that @or$ =ffset and Tool =ffset tables are in one fi>ed set of
units
..2.1,.2 -a"e J
This famil+ allo#s +ou to define the V value #hich is clear of clamps and parts of
the #or$piece Et #ill be used for homing and changing the tool
..2.1,.3 CG ModeHAnguar ;imit
This M7! is lit #hen the s+stem is running in S4onstant Lelocit+S mode This #ill give
smoother and faster operation than S7>act stopS mode but ma+ cause some rounding at
sharp corners depending on the speed of the a>is drives 7ven #hen the s+stem is in 4L
mode a corner #ith a change of direction more acute than the value given in the
#ng$lar Limit !9= #ill be performed as if 7>act Dtop #as selected *ull details of this
are given under ,onstant <elocity in chapter 5.
..2.1,.4 (""ine
This toggle and #arning
M7! SdisconnectsS all the
output signals of Mach3
This is intended for
machine setup and testing
Ets use during a part
program #ill cause +ou all
sorts of positioning
problems
#igure ..18 - :ncoder contro "amiy
[
1-50 *amilia dos controles de 4onfigurao do Distema
"ota' =s controles dessa famClia no se encontram nas telas do Mach3
LocF ter Bue procurar por eles Buando o programa estiver em e>ecuo nas telas de !efinies
e !iagnIstico
1-505 Unidades
7sta alternRncia implementa o K-. e K-5 cIdigos para alterar as unidades correntes de medida
Lc est fortemente aconselhado a no alterar isto, e>ceto em peBuenos fragmentos de programa
da pea
1-50- Dafe V
7ssa famClia permite definir o valor de V 7le ser usado para posicionaHlo e mudar a
ferramenta
1-503 Mode 4L ( Mimite ,ngular
7ste M7! acende Buando o sistema est funcionando em modo de Svelocidade constanteS
Esto vai ter um funcionamento mais suave e mais rpido do Bue Sparar o modo e>atoS, mas pode
causar algum arredondamento cantos afiados, dependendo da velocidade dos ei>os
Mesmo Buando o sistema est em modo 4L, um canto com uma mudana de direo mais
aguda do Bue o valor dado no !9= do Mimite ,ngular ser reali?ada como se uma parada
imediata tenha sido acionada
Todos os detalhes so apresentados em velocidade constante em capCtulo 5.
1-50/ =ffline
7sta alternRncia e alerta M7! SdesconectaS todos os sinais de saCda do Mach3
Esto se destina a configurao da mBuina e teste
= seu uso durante a e>ecuo de uma pea trar problemas de posicionamento
]
6.2.16 /ncoder control a$il&
This famil+ displa+s the values from the a>is encoders and allo#s them to be transferred
to and from the main a>is !9=s
The ?ero button #ill reset the corresponding encoder !9= to ?ero
The To D4O button copies the value into the main a>is !9= %ie applies this values as a
K6- offset&
The Load D4O button loads the encoder !9= from the corresponding main a>is !9=
]
1-51 famClia de controle de 7ncoder
7sta famClia mostra os valores dos encoders dos ei>os e permite Bue eles seAam transferidos para
os !9=s do ei>o principal
= boto de Vero ir ?erar o !9= do correspondente encoder
= boto To !9= copia o valor dele para o !9= do ei>o principal %ou seAa, aplicaHse estes
valores como um K6- offset&
= boto de carga no !9= carrega no !9= o codigo e>istente no ei>o principal correspondente
_
6.2.1" 2%to$atic - control a$il&
Mach3 has the
facilit+ to set a lo#er
limit for moves in the
V a>is Dee
4onfigoMogic dialog
for the static setting
of this EnhibitHV
value
#igure ..11 ) Automatic J contro
There is also a control famil+ #hich allo#s this Inhi/it ? value to be set #hile
preparing and before running a KH4ode program This is sho#n in figure 156
4ode the program, #hich might often be a !Y* or N3KM import, so that it ma$es a
single cut or set of cuts at the finall+ desired V depth %perhaps V n H.1 inch assuming top
of #or$piece is V n .& The last command should be an M3. %9e#ind&
Using the ,utomatic V 4ontrol controls %a& set the ?7inhi/it value to the V for depth for
the first roughing cut %perhaps Vn H..0& %b& the Lo"er ?7Inhi/it to the successive cut
depths %#e might allo# .5 as the tool has some side support& The #hole Aob #ill need
seven passes to get to V n H.1, so %c& enter J in L %Moop& =n pressing 4+cle Dtart the
machine #ill automaticall+ ma$e the series of cuts at increasing V depth The !9=s trac$
the progress decrementing L as the+ are performed and updating the VHinhibit value Ef the
given number of L does not reach the part programas reBuested V depth then +ou can
update the L !9= and restart the program
]
1-5J *amilia do controle automtico de V
Mach3 tem uma facilidade para estabelecer um limite inferior de movimento do ei>o V
Ler 4onfigo dilogo Mogic para a configurao esttica deste valor de EnibirHV
7>iste tamb8m uma famClia de controle Bue permite Bue este valor de inibio V seAa definido
durante a preparao e antes de e>ecutar um programa KH4ode
Esso 8 mostrado na figura 156 4Idigo do programa, Bue pode muitas ve?es ser a importao
de um !Y* ou N3KM, de modo Bue ele fa? um nico corte ou conAunto de cortes na
profundidade deseAada V %talve? V n H.,1 polegadas assumindo topo da pea 8 V n .&
= ltimo comando deve ser uma M3. %9e#ind& na e>ecuo de um programa da pea
Usando os controles ,utomatic 4ontrol V %um Aogo&, o VHinibir valor para o V para a
profundidade de cortar primeiro desbaste %talve? V n H.,.0& %b& da Gai>aHV Enibir ao corte
sucessivos profundidades %3odemos permitir Bue .,5 como a ferramenta tem algum suporte
lateral&
= trabalho em seu conAunto ter sete passes para chegar ao V n H.,1, ento %c& entrar em M J
%Moop& ,o pressionar 4+cle Dtart da mBuina ir automaticamente fa?er a s8rie de cortes para
aumentar a profundidade V
=s !9=s acompanham o progresso decrementando em M T medida Bue vo sendo e>ecutadas
e atuali?am o valor de VHinibir
De o determinado nmero de M no atingir o programa pedido para a profundidade da pea
pedido em V, ento vocF pode atuali?ar !9= M e reiniciar o programa
_
6.2.19 .aser Trigger o%tp%t a$il&
Mach3 #ill output a pulse on the !igitise Trigger =ut
3in %if defined& #hen the Y or ` a>es pass through
trigger points
The Maser Trigger group of controls allo#s +ou to
define the grid points in the current units and relative to
an arbitrar+ datum
4lic$ Laser 3rid ?ero #hen the controlled point is at the
desired grid origin !efine the positions of the grid lines
in Y and ` a>es and clic$ Toggle to enable the output of
pulses #henever an a>is crosses a grid line
This feature is e>perimental and subAect to change in
later releases
#igure ..2+ ) *igitise !use
"amiy
]
1-5: *amilia saCda Trigger para Maser
Mach3 dever ter um pulso de saCda digital %se definido&, Buando os ei>os Y ou ` passar pelos
pontos
= Maser Trigger grupo de controles permite Bue vocF defina os pontos de grade na unidade
atual e em relao a uma coordenada arbitrria
4liBue em [Maser Krid Vero\ Buando o ponto de controle estiver na origem da grade deseAada
!efina as posies das linhas de grade em 7i>os Y e ` e cliBue em ,lternar para permitir a
saCda de pulsos, sempre Bue um ei>o cru?a uma linha de grade
7sse recurso 8 e>perimental e suAeita a mudanas apIs o lanamento
]
6.2.1> C%sto$ controls a$ilies
Mach3 allo#s a machine builder, #hich could be +ou or +our supplier, to add a #hole
range of features b+ custom screens #hich can have !9=s, M7!s and buttons #hich are
used b+ LG Dcript programs %either attached to the buttons or run from macro files&
7>amples of such facilities are given in the Mach3 ,$stomisation manual These e>ample
also sho# ho# different Mach3 screens can loo$ to suit different applications even though
the+ perform essentiall+ the same function reBuired b+ a milling machine or router
]
1-56 famClias controles personali?ados
Mach3 permite Bue um construtor da mBuina, Bue poderia ser vocF ou o seu fornecedor, para
adicionar um conAunto de recursos em telas personali?adas Bue podem ter visuali?adores, M7!s
e botes Bue so usados por programas LG Dcript %Buer ligados aos botes ou e>ecutar
arBuivos de macro& 7>emplos destas instalaes no so indicados no manual Tunning Mach3
7stes e>emplos mostram tamb8m como diferentes telas Mach3 pode olhar para diferentes
aplicaes, apesar de reali?ar essencialmente a mesma funo reBuerida por uma fresadora ou
router
_
..3 Using 6i7ards
Mach3 @i?ards are
an e>tension to the
Teach facilit+ #hich
allo#s +ou to define
some machining
operations using one
or more special
screens The @i?ard
#ill then generate KH
code to ma$e the
reBuired cuts
7>amples of @i?ards
include machining a
circular poc$et,
drilling an arra+ of
holes and engraving
te>t
The Load Wiards
#igure ..21 ) Choosing a 6i7ard
button displa+s a table of @i?ards installed on +our s+stem `ou choose the one reBuired
and clic$ 4$n The @i?ard screen %or sometimes one of several screens& #ill be displa+ed
4hapter 3 includes an e>ample for milling a poc$et *igure 1-- is the @i?ard for
engraving te>t
#igure ..22 ) $he 6rite 6i7ard screen
@i?ards have been contributed b+ several authors and depending on their purpose there are
slight differences in the control buttons 7ach @i?ard #ill ho#ever have a means of
posting the KH4ode to Mach3 %mar$ed @rite in figure 1--& and a means of returning to
the main Mach3 screens Most @i?ards allo# +ou to save +our settings so that running the
@i?ard again gives the same initial values for the !9=s etc
*igure 1-3 sho#s a section of the Toolpath screen after the Write button is pressed
on figure 1--
#igure ..23 ) A"ter running the 6rite 'i7ard
The Last Wiard buttons runs the #i?ard +ou most recentl+ used #ithout the trouble
of selecting it from the list
The ,onversational button runs a set of #i?ards designed b+ "e#fangled Dolutions These
are supplied #ith Mach3 but reBuire a separate license for them to be used to generate
code
]
Usando 1,3 @i?ards
TrataHse de uma e>tenso para facilitar o aprendi?ado e permite Bue vocF defina alguns
operaes de usinagem em uma ou mais telas apropriadas
= ,ssistente ir gerar KH4ode para fa?er o cortes necessrios
7>emplos de assistente de usinagem inclui um circulo, perfurao de um conAunto de
furos e gravura de um te>to
, e>ecuo do assistente por um boto e>ibe um Buadro dos ,ssistentes instalado em seu
sistema
LocF escolhe o reBuerido e cliBue em 7>ecutar , tela do assistente %ou Ts ve?es uma das
vrias telas& sero e>ibidas
4apCtulo 3 inclui um e>emplo para moagem de um sulco de te>to
,ssistentes, so contribuies de vrios autores e dependendo da sua finalidade, e>istem
ligeiras diferenas nos botes de controle
4ada assistente no entanto, tem um meio de postagem do KH4ode para Mach3 %gravado em
1--& e um meio de voltar para a tela principal do Mach3 , maioria dos @i?ards permite Bue
vocF salve suas configuraes para Bue a e>ecuo do ,ssistente possa mais uma ve?
posicionar os mesmos valores iniciais para a visuali?adores etc
= boto [4onversational\ carrega uma s8rie de assistentes especiais proAetados por "e#fangled
Dolutions, mas vc necessitaB de lincensa especial para gerar o cIdigo
_
..4 ;oading a 8-Code %art %rogram
Ef +ou have an
e>isting part program
#hich #as #ritten b+
hand or a 4,!(4,M
pac$age then +ou
load it into Mach3
using the Load 37
,ode button `ou
choose the file from
a standard @indo#s
file open dialog
,lternativel+ +ou can
choose from a list of
recentl+ used files
#hich is displa+ed
b+ the 4ecent Files
screen button
#igure ..24 ) ;oading 8-Code
@hen the file is chosen, Mach3 #ill load and anal+se the code This #ill generate a
toolpath for it, #hich #ill be displa+ed, and #ill establish the program e>trema
The loaded program code #ill be displa+ed in the KH4ode list #indo# `ou can
scroll through this moving the highlighted current line using the scroll bar
_
1,/ 4arregando um programa parte do KH4ode
De vocF tem um programa da pea Bue foi escrito a mo ou um pacote de 4,! ( 4,M
, ento vocF pode carregHlo em Mach3 usando o boto Moad KH4ode
LocF escolha o arBuivo a partir de um dialogo no padro do @indo#s
,lternativamente, vocF pode escolher de entre uma lista de arBuivos utili?ados recentemente
Bue 8 e>ibido pelos ,rBuivos 9ecentes na tela
Uuando o arBuivo for escolhido, Mach3 vai carregar e analisar o cIdigo
Esso ir gerar um caminho da ferramenta para ele, e ser e>ibido, e ir estabelecer os e>tremos
do programa
= cIdigo do programa carregado ser e>ibido na Aanela de KH4ode
LocF pode rolar atrav8s deste movimento e destacar a linha atual usando a barra de rolagem
7 e>ecutar um programa da pea
_
Mach3 contros and running a %art %rogram
.., :diting a %art %rogram
3rovided +ou have defined a program to be used as the KH4ode editor %in 4onfigoMogic&,
+ou can edit the code b+ clic$ing the Edit button `our nominated editor #ill open in a
ne# #indo# #ith the code loaded into it
@hen +ou have finished editing +ou should save the file and e>it the editor This is
probabl+ most easil+ done b+ using the close bo> and repl+ing `es to the S!o +ou #ant
to save the changesXS dialog
@hile editing, Mach3 is suspended Ef +ou clic$ in its #indo# it #ill appear to be
loc$ed up `ou can easil+ recover b+ returning to the editor and closing it
,fter editing the revised code #ill again be anal+sed and used to regenerate the
toolpath and e>trema `ou can regenerate the toolpath at an+ time using the
4egenerate button
]
1,0 7ditando parte de um programa
!esde Bue vocF tenha definido um programa para ser usado com o editor de KH4ode %em
4onfigo Mogic&, vocF pode editar o cIdigo clicando no boto 7ditar Deu editor vai renomeaHlo
e ser aberto em uma nova Aanela com o cIdigo carregado
Uuando vocF terminar a edio vocF deve salvar o arBuivo e saia do editor
!urante a edio, o Mach3 8 suspenso
LocF pode facilmente recuperar, voltar ao editor e fechHlo
!epois de editar, o cIdigo revisado ser novamente analisado e utili?ado para gerar o toolpath
e limites e>ternos LocF pode regenerar o toolpath a BualBuer momento, usando o boto Kerar
_
... Manua %re%aration and running a %art %rogram
6.6.1 Inp%tting a hand-written progra$
Ef +ou #ant to #rite a program Sfrom scratchS then +ou can either do so b+ running
the editor outside Mach3 and saving the file or +ou can use the Edit button #ith no
part
program loaded En this case +ou #ill have to Dave ,s the completed file and e>it the editor
En both cases +ou #ill have to use *ileoMoad KH4ode to load +our ne# program into
Mach3
<arning$ 7rrors in lines of code are generall+ ignored `ou should not rel+ on being
given a detailed s+nta> chec$
Mach3 contros and running a %art %rogram
6.6.2 :eore &o% r%n a part progra$
Et is good practice for a part program to ma$e no assumptions about the state of the
mach #hen it starts Et should therefore include K5J(K5:(K56, K-.(K-5, K/., K/6,
K15(K1-
K6.(K65, K63(K6/
ine
,
Mach3 contros and running a %art %rogram
`ou should ensure that the a>es are in a $no#n reference position H probabl+ b+ using the
4e% #ll button
`ou need to decide #hether the program starts #ith an D #ord or if +ou need to set
the spindle speed b+ hand or b+ entering a value in the S !9=
`ou #ill need to ensure that a suitable feedrate is set before an+ K.5(K.-(K.3
commands are e>ecuted This ma+ be done b+ an * #ord or entering data into the F
!9=
"e>t +ou ma+ need to select a Tool and(or @or$ =ffset
*inall+, unless the program has been proved to be valid +ou should attempt a dr+
run, cutting SairS to see that nothing terrible happens
6.6.3 )%nning &o%r progra$
`ou should monitor the first run of an+ program #ith great care `ou ma+ find that +ou
need to override the feed rate or, perhaps, spindle speed to minimise chattering or to
optimise production @hen +ou #ant to ma$e changes +ou should either do this on the
Sfl+S or use the +a$se button, ma$e +our changes and the clic$ ,ycle Start
]
1,1 3reparao manual e e>ecuo de um programa de pea
115 Entroduo de um programa escrito T mo
De vocF Buiser escrever um programa Sdo ?eroS, ento vocF pode fa?FHlo, e>ecutando o
editor fora do Mach3 e salvando o arBuivo, ou vocF pode usar o boto 7ditar, sem o programa
estar carregado "este caso, vocF ter Bue salvar o arBuivo preenchido e sair do editor
7m ambos os casos, vocF ter Bue usar o Moad *ileo KW4ode para carregar o novo programa
em Mach3
,teno' os erros em linhas de cIdigo so geralmente ignorados LocF no deve confiar e faa
uma checagem de sinta>e bem detalhada
11- ,ntes de e>ecutar um programa da pea
Z uma boa prtica para um programa da pea em no fa?er suposies sobre o estado da
mBuina Buando se inicia
!eve, portanto, incluir K5J(K5:(K56, K-.(K-5, K/., K/6, K15(K1-,
K6.(K65, K63(K6/
LocF deve garantir Bue os ei>os esto em uma posio de referFncia conhecido H
provavelmente usando o boto 9ef ,ll
LocF precisa decidir se o programa comea com uma palavra D ou se vocF precisa definir o
velocidade do ei>o com a mo ou digitando um valor na !9= D
LocF vai precisar se assegurar Bue um avano adeBuado seAa definido antes de BualBuer
comando K.5(K.-(K.3 serem e>ecutados Esso pode ser feito por uma palavra * ou inserir
dados na !9= *
7m seguida, vocF pode precisar selecionar uma ferramenta e ( ou trabalho =ffset
*inalmente, a menos Bue o programa tem provado ser vlido, vocF deve tentar uma corrida
seca, gcorte do ar S para ver Bue nada terrCvel acontece
113 7>ecutando o programa
LocF deve acompanhar a primeira e>ecuo de BualBuer programa com grande cuidado
Mach3 contros and running a %art %rogram
LocF pode achar Bue haAa necessidade de alterar a ta>a de alimentao ou, talve?, a velocidade
do ei>o para minimi?ar a vibrao ou otimi?ar a produo
Uuando vocF Buiser fa?er as alteraes vocF deve fa?er isso, S S ou use o boto de pausa, faa
as alteraes e cliBue em 4+cle Dtart
_
..0 Duiding 8-Code /y im%orting other "ies
Mach3 #ill convert files in !Y*, N3KM or 237K
format into KH4ode #hich #ill cut a
representation of them
This is done using the *ileoEmport
N3KM(GM3(23K or the *ileoEmporto!Y* menu
Naving chosen a file t+pe +ou have to load the
original file `ou are prompted for parameters to
define the conversion and feed and coolant
commands to be included in the part program
`ou
#igure ..20 Choosing im%ort "iter
the import the data Mach3 has to create a T,3 #or$ing file #hich contains the generated
KH4ode, so +ou #ill be prompted b+ a file save dialog for a name and folder for this
The T,3 file is then loaded into Mach3 and +ou can run it as #ith an+ other part
program *ull details of the conversion processes and their parameters are given in
chapter :
]
1,J 4onstruindo KH4ode importado de outros arBuivos
Mach3 vai converter arBuivos nos formatos !Y*, N3KM ou 237K para o formato em KH4ode
Esso 8 feito usando o ,rBuivoo Emportar N3KM ( GM3 ( 23K ou ,rBuivoo Emportaro menu
!Y*
Tendo escolhido o tipo de arBuivo de origem Bue vocF Buer carregar, vocF ser solicitado a
definir os parRmetros para a converso e ento outros dados podem ser incluCdos no programa,
como por e>emplo a refrigerao
,o importar os dados, Mach3 tem Bue criar um arBuivo T,3 de trabalho Bue cont8m os KH
4ode gerados, assim, vocF vai ser solicitado por um processo de dilogo fornecer um nome e
uma pasta para salvar o arBuivo
= arBuivo T,3 8 ento carregado para Mach3 e vocF pode e>ecutHlo como acontece com
BualBuer outro programa
Maiores detalhes sobre os processos de converso e seus parRmetros so apresentados no
capCtulo :
_
Coordinate systems? too ta/e and "i9tures
Using Mach3Mi 0-2 Rev 1.84-A2
2
0. Coordinate systems? too ta/e and "i9tures
This chapter e>plains ho# Mach3 #or$s out #here e>actl+ +ou mean
#hen +ou as$ the tool to move to a given position Et describes the idea of
a coordinate s+stem, defines the Machine 4oordinate D+stem and sho#s
ho# +ou can specif+ the lengths of each Tool, the position of a #or$piece
in a *i>ture and, if +ou need to, to add +our o#n variable =ffsets
`ou ma+ find it heav+ going on the first read @e suggest that +ou tr+
out the techniBues using +our o#n machine tool Et is not eas+ to do this
Aust Sdes$S running Mach3 as +ou need to see #here an actual tool is and
+ou #ill need to understand simple KH4ode commands li$e K.. and
K.5
Mach3 can be used #ithout a detailed understanding of this chapter but
+ou #ill find that using its concepts ma$es setting up Aobs on +our machine
is ver+ much Buic$er and more reliable
]
J =s sistemas de coordenadas, tabela de ferramentas e utensClios
7ste capCtulo e>plica como Mach3 funciona e para onde e>atamente a ferramenta vai Buando
vocF mandar a ferramenta se mover para uma posio determinada
7le descreve a id8ia de um sistema de coordenadas, define o sistema de coordenadas da
mBuina e mostra como vocF pode especificar o tamanho de cada ferramenta, e a posio de
fi>ao da pea e, se for necessrio, para adicionar uma varivel com o seu deslocamento
LocF pode achar Bue esta leitura seAa suficiente
Dugerimos Bue vocF tente as t8cnicas aBui descritas usando a sua prIpria mBuina
"o 8 fcil fa?er isso apenas usando a sua SMesaS
Z necessrio e>ecutar o Mach3 pois vocF precisa ver onde como uma ferramenta real se
comporta e vocF ter de compreender comandos simples do KH4ode como K.. e K.5
Mach3 pode ser usado sem um entendimento detalhado do presente capCtulo, mas vocF
vai achar Bue com seus conceitos usando a sua mBuina 8 muito mais rpido e mais confivel
_
0.1 Machine coordinate system
6en,holder
Table
Coordinate systems? too ta/e and "i9tures
Rev 1.84-A2 0-1 Using Mach3Mi
#igure 0.1 - Dasic *ra'ing Machine
`ou have seen that most Mach3 screens have !9=s labelled SY ,>isS, S` ,>isS etc Ef
+ou are going to ma$e parts accuratel+ and minimise the chance of +our tool crashing into
an+thing +ou need to understand e>actl+ #hat these values mean at all times #hen +ou are
setting up a Aob or running a part program
This is easiest to e>plain loo$ing at a machine @e have chosen an imaginar+ machine
that ma$es it easier to visualise ho# the coordinate s+stem #or$s *igure J5 sho#s #hat
it is li$e
Et is a machine for producing dra#ings #ith a ballpoint or felt tipped pen on paper or
cardboard Et consists of a fi>ed table and a c+lindrical penHholder #hich can move left
and right %Y direction&, front and bac$ %` direction& and up and do#n %VHdirection& The
figure sho#s a sBuare #hich has Aust been dra#n on the paper
*igure J- sho#s the Machine 4oordinate D+stem #hich measures %lets sa+ in inches&
from the surface of the table at its bottom left hand corner ,s +ou #ill see the bottom left
corner of the paper is at Yn-, `n5 and Vn. %neglecting paper thic$ness& The point of the
pen is at Yn3, `n- and it loo$s as though Vn53
Ef the point of the pen #as at the corner of the table then, on this machine, it #ould be in
its 8ome or referenced position This position is often defined b+ the position of Nome
s#itches #hich the machine moves to #hen it is s#itched on ,t an+ event there #ill be a
Using Mach3Mi 0-2 Rev 1.84-A2
Coordinate systems? too ta/e and "i9tures
<J
<@
#igure 0.2 Machine coordinate system
?ero position for each a>is called the absolute machine Eero @e #ill come bac$ to #here
Nome might actuall+ be put on a real machine
The point of the pen, li$e the end of a cutting tool, is #here things happen and is called the
#ontrolled 6oint The ,>is !9=s in Mach3 always displa+ the coordinates of the
4ontrolled 3oint relative to some coordinate s+stem The reason +ou are having to read
this chapter is that it is not al#a+s convenient to have the ?eros of the measuring
coordinate s+stem at a fi>ed place of the machine %li$e the corner of the table in our
e>ample&
, simple e>ample #ill sho# #h+ this is so
The follo#ing part program loo$s, at first sight, suitable for dra#ing the 5S sBuare in *igure
J5'
410 G20 %10 G.0 &set )p i$perial )nits5 a sl(+ fee, rate etc.-
420 G0 62.0 &lift pen-
430 G0 X0.# Y0.3 &rapi, t( b(tt($ left (f s7)are-
4"0 G1 60.0 &pen ,(+n-
450 Y1.3 &+e can leave ()t t'e G1 as +e 'ave !)st ,(ne (ne-
460 X1.#
480 Y0.3 &g(ing cl(c3+ise r()n, s'ape-
4#0 X0.#
4.0 G0 X0.0 Y0.0 62.0 &$(ve pen ()t (f t'e +ay an, lift it-
4100 *30 &en, pr(gra$-
7ven if +ou cannot +et follo# all the code it is eas+ to see #hat is happening *or e>ample
on line "3. the machine is told to move the 4ontrolled 3oint to Yn.:, `n.3 G+ line
"1. the 4ontrolled 3oint #ill be at Yn5:, `n53 and so the !9=s #ill read'
= A9is 1.8+++ @ A9is 1.3+++ J A9is +.++++
The problem, of course, is that the sBuare has not been dra#n on the paper li$e in figure
J5 but on the table near the corner The part program #riter has measured from the corner
of the paper but the machine is measuring from its machine ?ero position
]
Rev 1.84-A2 0-1 Using Mach3Mi
Coordinate systems? too ta/e and "i9tures
J,5 sistema de coordenadas da mBuina
LocF viu Bue as telas do Mach3 tem !9=s chamados de Sei>o YS, Sei>o ` etcS
De vamos fa?er as peas com preciso e minimi?ar a chance de bater em BualBuer coisa na sua
4"4 ento vocF precisa entender e>atamente o Bue estes valores significam em todas as ve?es
Bue vocF est na criao de um trabalho ou e>ecutando um programa da pea
Z mais fcil de e>plicar olhando para um mBuina =ptamos por uma mBuina imaginria Bue
torna mais fcil visuali?ar como funciona o sistema de coordenadas
Z uma mBuina para a produo de desenhos com uma caneta esferogrfica ou caneta de feltro
sobre papel ou papelo
Z constituCda por um tabuleiro fi>o e um portaHcaneta, Bue pode mover para a esBuerda e
direita %direo Y&, frente e verso %direo `& para cima e para bai>o %direo V&
, figura mostra um Buadrado sendo desenhado sobre o papel
, *igura J- Mostra o sistema de coordenadas da mBuina com medidas na superfCcie da mesa
em seu canto inferior esBuerdo %estamos falando em polegadas&
4omo vocF ver no canto inferior esBuerdo do papel est em Y n -, ` n 5 e V n .
%despre?ando a espessura do papel&
= ponto da caneta esta em Y n 3, ` n - e digamos Bue V n 53
De a ponta da caneta estava no canto da mesa, em seguida, nesta mBuina, eu diria Bue ela esta
na sua Nome ou posio de referFncia
7sta posio 8 geralmente definida pela posio da chave de Nome pois a mBuina se move e
para Buando ela estiver ligada
7m BualBuer caso, dever haver uma posio . para cada um dos ei>os Bue 8 chamada de ?ero
absoluto
Lamos ver agora onde Nome pode ser realmente colocado em uma mBuina real
= ponto da caneta, assim como uma ferramenta de corte, 8 onde as coisas acontecem e 8
chamado de 3onto controlado
=s !9=s dos ei>os no Mach3 sempre mostram as coordenadas do controlado em relao a
algum sistema de coordenadas
, ra?o de vocF ter Bue ler esse capCtulo 8 Bue nem sempre 8 conveniente ter os ?eros das
coordenadas do sistema em um lugar fi>o da mBuina %como o canto da mesa, no nosso
e>emplo&
Um e>emplo simples ir mostrar por Bue deve ser assim
, parte seguinte do programa parece, T primeira vista, adeBuados para a elaborao de um
Buadrado de 5S na *igura J5'
"5. K-. K6. *5. %conAunto de unidades imperiais, uma ta>a de avano lento, etc&
"-. K. V-. %caneta elevador&
"3. K. fundo Y.: `.3 %rpido para a esBuerda do Buadrado&
"/. K5 V.. %caneta&
`53 "0. %podemos dei>ar de fora o K5 como temos feito apenas um&
Y5: "1.
"J. `.3 %indo forma redonda horrio&
Using Mach3Mi 0-2 Rev 1.84-A2
Coordinate systems? too ta/e and "i9tures
Y.: ":.
"6. K. Y.. `.. V-. %pena sair do caminho e levantHla&
"5.. M3. %final do programal&
Mesmo se vc no acompanhar todo o cIdigo 8 fcil ver o Bue est acontecendo
3or e>emplo' "a linha "3. a mBuina 8 instruCda a mover o ponto para Y n .: ` n .3
,trav8s da linha "1. 3onto vai para Y n 5:, ` n 53 e assim os !9= vo apresentar'
7i>o Y 5:... 7i>o ` 53... 7i>o V .....
= problema, 8 claro, Bue o Buadrado no tenha sido desenhado no papel como na figura J5
mas sobre a mesa perto do canto
, parte do programa considera a partir do canto do papel, mas a mBuina esta medindo da
posio ?ero da mBuina
_
0.2 6or4 o""sets
Mach3, li$e all machine controllers, allo#s +ou to move the origin of the coordinate
s+stem or, in other #ords #here it measures from %ie #here on the machine is to
considered to be ?ero for moves of Y, ` V etc&
This is called offsetting the coordinate s+stem
Rev 1.84-A2 0-3 Using Mach3Mi