Operator Error : Operator Error : M6 / change epilog : Python argument types in emccanon.CHANGE_TOOL ( ) did not match C ++ signature : CHANGE_TOOL ( int ) o sub M73 O111 IF [#<_current_tool> EQ #<_selected_tool>] O RETURN [1] O111 ENDIF (print, rack_change: loaded tool=#<_current_tool> current pocket: #<_current_pocket>) (print, rack_change: selected tool=#<_selected_tool> selected pocket: #<_selected_pocket>) M140 G0 G61 G49 g40 G1 F5000 Z300 X17.9 G4 P1 (print, tool_change started) M64 P#<_ini[pins]nazad> ; 0TVARA POKLOPAC G4 P#<_ini[dwell]post_unlock> ( --- Provera da li je otvorio poklopac--- ) o601 if [#<_hal[poklopac-input] > EQ 1] (MSG, GRESKA: Nije otvoren poklopac!) M2 O601 endif #M73 (auto-restore modal settings on return) ;G61 ;O111 IF [#<_current_tool> EQ #<_selected_tool>] ; O RETURN [1] ;O111 ENDIF ; M66 p0,p1,p2, digitalni inputi M66 P0 L3 visok L4 niZak ZA SIGURNO STEZANJE I OTPUSTANJE ; unload previous tool o300 if [#<_current_pocket> GT 0] o call [#<_current_pocket>] G91 G1 F3000 Z-100 G4 p1 G1 F400 Z-20 ;dokle se spusta od ini tol hol clear M64 P#<_ini[pins]lock> ; set lock pin G4 P#<_ini[dwell]post_unlock> M64 P#<_ini[pins]flush> ; set flush pin ( --- Provera da li je prethodni alat zaključan --- ) ; o600 if [#<_hal[tool-otkljucan-input] > EQ 1] ; (MSG, GRESKA: Alat još uvek zaključan! Otključaj pre izvlačenja!) ; M2 ;O600 endif G1 F4000 Z175 G4P0.2 G90 o300 endif ; NOVI ALAT o call [#<_selected_pocket>] ; micges - please explain! o400 if [#<_absolute>] M64 P#<_ini[pins]nazad> ; 0TVARA POKLOPAC G4 P#<_ini[dwell]post_unlock> ( --- Provera da li je otvorio poklopac--- ) o602 if [#<_hal[poklopac-input] > EQ 1] (MSG, GRESKA: Nije otvoren poklopac!) M2 O602 endif G91 G1 F2500 Z-120 M64 P #<_ini[pins]lock> ; set lock pin ;G4 P #<_ini[dwell]post_unlock> M64 P #<_ini[pins]flush> ; set flush pin G4 P #<_ini[dwell]post_unlock> ;( --- Provera da li je prethodni alat zaključan --- ) ;O700 IF [#<_hal [tool-otkljucan-input] > EQ 1] ; (MSG, GRESKA: Nije otvorio za alat! ) ; M2 ;O700 ENDIF G1 F300 Z-15 G4 P #<_ini[dwell]post_unlock> M65 P #<_ini[pins]lock> ; set lock pin ;G4 P #<_ini[dwell]post_unlock> M65 P #<_ini[pins]flush> ; set flush pin G4 P #<_ini[dwell]post_unlock> ;O900 IF [#<_hal [tool-zakljucan-input] > EQ 1] ; (MSG, GRESKA: Alat nije zaključan !) ; M2 ;O900 ENDIF G1 F4000 Z150 G90 G0 G64 M65 P#<_ini[pins]nazad> ; ZATVARA POKLOPAC o400 else G1 F500 Z50 o400 endif ;(M65 P #<_ini[pins]lock> ; drop lock pin) ;G4 P #<_ini[dwell]post_unlock> ;(M65 P #<_ini[pins]flush> ; set flush pin) ; NB: this is reordered wrt micges patch: ; tool_holder_clear_move came after load_tool_msg ;o call; ( MERENJE VISINE ALATA ) G00 G90 ( apsolutne koordinate ) G54 ( koristi G54 sistem ) G40 ( isključi kompenzaciju ) G49 ( resetiraj dužinu alata ako postoji ) ( *** PROMENLJIVE *** ) #<_probe_height> = 5.00 ( visina sonde u mm – PRILAGODI ) M6 T#<_selected_tool> ( *** Idi iznad sonde *** ) G0 X17.9 Y1285 ( pozicija iznad sonde – PRILAGODI prema tvojoj mašini ) G1 F2000 Z110 g4p1 ( bezbedna visina iznad sonde ) G91 ( *** Probing komanda *** ) G38.2 Z-60 F300 ( spuštaj dok ne dodirne – PRILAGODI brzinu i dubinu ) G1 Z2 G38.2 Z-5 F50 G90 ( *** Provera da li je sondiranje uspelo *** ) O101 IF [#5063 EQ 0] (MSG, Greska: Sonda nije detektovana!) M2 O101 ENDIF ( *** Upis duzine alata *** ) ;G10 L10 P2 Z[#<_probe_height>] G10 L10 P#<_selected_tool> Z[#<_probe_height>] ( *** Aktivacija dužine alata *** ) ;G43 H#<_selected_tool> ( *** Podizanje *** ) G0 Z200 M142 (MSG, Alat uspesno izmeren!) o endsub [1] M2