Autor Tópico: Telas pre-definidas para funções especificas  (Lida 9762 vezes)

Description:

0 Membros e 1 Visitante estão vendo este tópico.

Offline F.Gilii

  • Administrador
  • CNCMASTER
  • *******
  • Posts: 13796
  • Sexo: Masculino
  • Consultoria, Automação e Construção de Máquinas
  • Cidade - UF: Atibaia - SP
  • Nome:: Fabio Gilii
  • Profissão: Tec. Mecanica de Precisão
Re:Telas pre-definidas para funções especificas
« Resposta #60 Online: 28 de Novembro de 2015, 12:51 »
Tentei de novo mandar o que me pediu, mas seu e-mail não funciona

Delivery to the following recipient failed permanently:

      [email protected]

 Technical details of permanent failure:
 Google tried to deliver your message, but it was rejected by the server for the recipient domain terra.com.br by vip-us-br-mx.terra.com. [208.84.244.133].

 The error that the other server returned was:
 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table


Offline F.Gilii

  • Administrador
  • CNCMASTER
  • *******
  • Posts: 13796
  • Sexo: Masculino
  • Consultoria, Automação e Construção de Máquinas
  • Cidade - UF: Atibaia - SP
  • Nome:: Fabio Gilii
  • Profissão: Tec. Mecanica de Precisão
Re:Telas pre-definidas para funções especificas
« Resposta #61 Online: 28 de Novembro de 2015, 12:52 »
Aqui está a sua macro:

Sub Main()
DoOEMButton (169)

Diafuro = Abs(GetUserDRO (1074))
ToolDia = Abs(GetUserDRO (1075))
ToolRad = ToolDia / 2
XCenter = GetUserDRO (1071)
YCenter = GetUserDRO (1072)
ZStart = GetUserDRO (1077)
Feed = Abs(GetUserDRO (1082))
Depth = Abs(GetUserDRO (1080))
Holes = Abs(GetUserDRO (1076))
Centros = Abs(GetUserDRO (1073))

 ' test inputs


If Feed = 0 Then
    Code "(MSG,Avanço não pode ser zero)"
    Exit Sub
End If

If ZStart = 0 Then
    Code "(MSG,Altura não pode ser zero)"
    Exit Sub
End If

If ToolDia = 0 Then
    Code "(MSG,Diametro da ferramenta não pode ser zero)"
    Exit Sub
End If
 
If ToolDia > Diafuro - 2 * Depth Then
    Code "(MSG,Diam. Ferramenta > Diam. Furo)"
    Exit Sub
End If


OpenTeachFile "peça.pie"

XStart = XCenter + (Diafuro / 2) - ToolRad
YStart = YCenter

Code "G0 G49 G40  G17 G80 G50 G90 G21"
Code "F" & Feed
Code "M03"


For i = 0 To Holes - 1
   X = XStart + (i * Centros)
   XArc = XCenter + (i * Centros)
   Code "G00 Z" & ZStart
   Code "G00 X" & X & " Y" & YStart
   Code "G01 Z-" & Depth & " F" & (Feed/4)
   Code "G02 X" & X & " Y" & YStart & " I" & Round((Xarc  - X), 4) & " J0" & " F" & Feed
   Code "G00 Z" & ZStart
   'Code "G00 X" & XArc & " Y" & YCenter
Next i

Code "M5 M9"
Code ("M30")

CloseTeachFile

Call LoadTeachFile()

End Sub
 

Offline ismael

  • Hobby
  • ****
  • Posts: 623
Re:Telas pre-definidas para funções especificas
« Resposta #62 Online: 28 de Novembro de 2015, 17:09 »
Boa tarde.

Te mandei um email particular,  vc não recebeu ?

Abraço

Offline F.Gilii

  • Administrador
  • CNCMASTER
  • *******
  • Posts: 13796
  • Sexo: Masculino
  • Consultoria, Automação e Construção de Máquinas
  • Cidade - UF: Atibaia - SP
  • Nome:: Fabio Gilii
  • Profissão: Tec. Mecanica de Precisão
Re:Telas pre-definidas para funções especificas
« Resposta #63 Online: 28 de Novembro de 2015, 17:34 »
Recebí e respondí, mas seu e-mail não funciona...

Offline ismael

  • Hobby
  • ****
  • Posts: 623
Re:Telas pre-definidas para funções especificas
« Resposta #64 Online: 28 de Novembro de 2015, 17:53 »
Mas na mensagem tem um novo e-mail. Mas já consegui abrir a macro.
Só estou tentando entender ela, se possível colocar comentário agradeço.

Abraço


 

/** * */