Brauche bitte Hilfe bei der Steuerung des Werkzeugrevolvers

More
2 years 3 months ago #305182 by tommylight
Strange, i noticed it the second i seen it.
I have a slant bed lathe, name Micro slant 15, as luck would have it.
X should move perpendicular to spindle center point, well the tool tip should, but from the first picture there is only a single spot when that happens and that will move with tool length, so any motion of the X axis will move away from the spindle center point.
Or to try to simplify it, the hole bed can be slanted, having only the X axis slanted is no good.
Instead of us shooting ideas here, can the Op do a video moving the X axis by hand, please?

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

More
2 years 3 months ago #305192 by CHEROKEE-Laredo
Schaue Dir mal das Video
an.Habe einen ähnlichen Werkzeugwechsler wie Du und folgende Subroutinen verwendet
o<wzwneu> sub
#4001=45 (bei 8 WZ-Halter 360 Grad durch 8)
#4000=1 (Wartezeit in Sekunden für die Eingänge)
M61 Q#4999 (Werkzeug aus Speicher setzen)
o500 if[#<_current_tool> EQ #<_selected_tool>]
(DEBUG,Tool bereits in Spindel)
o500 elseif [#<_current_tool> NE #<_selected_tool>]
G0 G90 G53 X200 U100 Z300
o501 if[#<_current_tool> EQ 0] (aktuelles WZ ist T0)
o<ventil_an> call
(Endposition)
G0 B[#<_selected_tool> * #4001-#4001] (Karusell drehen)

M6 G43
#4999=#5400 (WZ dauerhaft merken)

o<ventil_aus> call


o501 elseif [#<_current_tool> GT 0] (aktuelles WZ nicht T0)
o502 if [#<_selected_tool> EQ 0] (gewähltes WZ T0)
o<ventil_an> call
G0 B[#<_current_tool> * #4001-#4001] (Karusell drehen)

(Endposition)


M6 G43
#4999=#5400 (WZ dauerhaft merken)

o<ventil_aus> call

o502 elseif [#<_selected_tool> NE 0] (gewähltes WZ nicht T0)
o<ventil_an> call
G0 B[#<_current_tool> * #4001-#4001] (Karusell drehen)




G0 B[#<_selected_tool> * #4001-#4001] (Karusell drehen)
(wieder runter neues wz)

M6 G43
#4999=#5400 (WZ dauerhaft merken)

o<ventil_aus> call

o502 endif
o501 endif
o500 endif

o<wzwneu> endsub
m2



o<Ventil_an> sub

M66 P0 (Eingang ob Druck ausreichend ?)
M64 P0 (Ausgang setzen für Ventil an)
G4 P2
o100 if [#5399 EQ -1] (Stop falls kein Druck. M0)
(DEBUG,STOP: kein Druck!)
(DEBUG,Druckluft einschalten dann weiter mit Start oder Programm abbrechen! Crash Gefahr!)
M0 (Porgrammstop, mit Start geht es weiter)
o100 endif


o<Ventil_an> endsub
m2

o<Ventil_aus> sub

(M66 P0 L4 Eingang ob Klappe geschlossen?)
M65 P0 (Ausgang setzen für Ventil aus )
G4 P2

o100 if [#5399 EQ -1] (Stop falls Klappe nicht geschlossen. M0)
(DEBUG,STOP: kein Druck!)
(DEBUG,Druckluft einschalten dann weiter mit Start oder Programm abbrechen! Crash Gefahr!)
M0 (Stop falls Ventil nicht aus. M0)
o100 endif

o<Ventil_aus> endsub
m2

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

More
2 years 3 months ago #305193 by tommylight
Another look and, still the same.
The X axis moves at a 40-45 degree to spindle center point, it does not move perpendicular to it.

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

More
2 years 3 months ago #305206 by WKS-3D
The tool tip moves exactly to the center of the workpiece at 45 degrees. It is the same as if you had a normal support, only from the other side and at 45 degrees. 

 
 


@ CHEROKEE-Laredo

Danke, schaue ich mir an.

 

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

More
More
2 years 3 months ago #305624 by WKS-3D
Ich habe das jetzt mal so probiert wie Talla83 das gemacht und @CHEROKEE-Laredo auf Seite 1 vorgeschlagen hat, allerdings in stark gekürzter Version, erstmal ohne irgendwelche Kontrollsignale und ohne T0, denn T0 habe ich am Werkzeugrevolver nicht.
In meiner Konfiguration wird auch die Pneumatik nicht geschaltet, weil ich das nicht hinbekomme, im Beispiel werden mit GPIOs die Signale ausgegeben, ich habe aber nur OUTPUTs (7i92TM+7i76+7i85) und so einiges damit versucht, aber es klappt nicht.
Mit der jetzigen Konfiguration und dem Aufruf in MDI von zB. "T1 M6" passiert nichts bzw. der Pfeil von "Aktuelle Datei ausführen" oben in der Leiste bleibt gedrückt. Unten steht auch weiterhin, Kein Werkzeug.

 

Die "toolchange.ngc" sieht so aus:

o<toolchange> sub
#4001=45
M61 Q#4999
o500 if[#<_current_tool> EQ #<_selected_tool>]
    (DEBUG,Tool bereits in Spindel)
o500 elseif [#<_current_tool> NE #<_selected_tool>]
    G0 W[#<_selected_tool> * #4001-#4001]
    M6 G43
    #4999=#5400
o500 endif
o<toolchange> endsub
m2

In der INI-Datei steht:

REMAP= M6 modalgroup=6 ngc=toolchange

In der "linuxcnc.var" wurde der Parameter #4999 eingefügt.

Wenn ich in MDI zB. "G0 W45" ausführe, dann dreht sich der Stepper, das funktioniert problemlos.

Um das Pneumatikventil zu schalten habe ich das hier gemacht:

"revolver_klemmen.ngc"

o<revolver_klemmen> sub
M65 P0            (Ausgang setzen Revolver klemmen)
o<revolver_klemmen> endsub
m2


"revolver_loesen.ngc"

o<revolver_loesen> sub
M64 P0                         (Ausgang setzen Revolver loesen)
o<revolver_loesen> endsub
m2

und in der "custom_postgui.hal":

# --- Werkzeug-Revolver loesen-spannen ---
setp hm2_7i92.0.7i76.0.0.output-00 true
net   wkz-rev-pneumatik  hm2_7i92.0.7i76.0.0.output-00  <= motion.digital-out-00

Warum funktioniert überhaupt nichts davon, wo liegen die Fehler?

Danke und Gruß
Olli

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

Moderators: Muecke
Time to create page: 0.393 seconds
Powered by Kunena Forum