Please help me for uptate axis 2.5.4 to Gmoccapy

More
30 Dec 2017 06:40 - 30 Dec 2017 07:03 #103842 by Weiler810T

Mine are all negative, because my 3D- probe is longer than most of my tools?



My sensor is very high so I do not collide with the machine vice
#<len> = [#<second>-#<first>+190] (calculate length)
then the 190 are the height of the tool sensor in the macro?
( I got the macro from Rene-Dev ;) )

There is the possibility with macro the motion.probe input pin on and off?
Attachments:
Last edit: 30 Dec 2017 07:03 by Weiler810T.

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

More
30 Dec 2017 08:31 #103844 by newbynobi
Hallo Siggi,

I solve this with user M commands. I.E. I need to disconnect one limit pin to be able to enter the tool changer, so in my macro I have a command M152 with following content:
#!/bin/sh

# M152 : Command to disconnect the tool changer protection switch
# M152 : Datei, um den Limit Y+ Schalter abzukoppeln (Werkzeugwechsler Sicherheitsschalter)

halcmd unlinkp hm2_7i80.0.gpio.055.in

exit 0

and to connect the pin again I use M153 with this content:
#!/bin/sh

# M153 : Command to reconnect the tool changer protection switch
# M153 : Datei, um den Limit Y+ Schalter wieder anzubinden (Werkzeugwechsler Sicherheitsschalter)

halcmd net max-y   hm2_7i80.0.gpio.055.in

exit 0

Both files must be in you subroutine path and has to be executable.
Then in your code you just use M152 and M153 to enable or disable the pin.

Norbert
The following user(s) said Thank You: Weiler810T

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

More
07 Jan 2018 10:58 #104100 by Weiler810T
Hallo Norbert

The last Action to help me ;)
Tischwechseln no funktion.When I activate the pin net Tisch-oben pyvcp.Tisch-oben => or2.4.in1 in the gmoccapy_postgui.hal,Gmoccapy chrashed.
# net Fehlerausgang "some OUT PIN"   <= gmoccapy.error

##################################
####  Tischwechseln          #####
##################################

# net Tisch-oben pyvcp.Tisch-oben  => or2.4.in1
Any Idea ?

Pin used:






File used

File Attachment:

File Name: WSW.comp
File Size:9 KB

File Attachment:

File Name: gmoccapy_p...1-07.hal
File Size:1 KB

File Attachment:

File Name: Werkstueck...sler.hal
File Size:2 KB



Siggi

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

More
07 Jan 2018 11:17 #104102 by newbynobi
Hallo Siggi,
I just checked with the first config you sendet me. Even in that one the line was commented out:
##############################
#####     Tisch oben      ####
#############################################################################################################################################################################################################

#net Tisch-oben pyvcp.Tisch-oben  => or2.4.in1 

So just do not use that line. What happens then?

That pin pyvcp.Tisch-oben was not included in the pyvcp panel I translated for you to be a glade panel.

Norbert

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

More
07 Jan 2018 12:05 - 07 Jan 2018 12:08 #104104 by Weiler810T
Hallo Norbert

when activate the net Tisch-oben pyvcp.Tisch-oben => or2.4.in1 Gmoccapy crashed.
 7053
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components 
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
INIFILE=/home/chiron/linuxcnc/configs/ChironFZ16/chiron.ini
PARAMETER_FILE=hm2-servo.var
TASK=milltask
HALUI=halui
DISPLAY=gmoccapy
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Killing task linuxcncsvr, PID=7053
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

That pin pyvcp.Tisch-oben was not included in the pyvcp panel I translated for you to be a glade panel.


This line was there from the beginning pyvcp_2017-11-01.hal

########################
### Graf. Bedienfeld ###
########################


#############
### Laden  ##
######################################################################################################################################################################

addf time.0 servo-thread  



#############
###  WZW  ###
######################################################################################################################################################################

net Taster-Werkzeug-1  pyvcp.btn01 => WZW.Taster-WKZ-01           
net Taster-Werkzeug-2  pyvcp.btn02 => WZW.Taster-WKZ-02            
net Taster-Werkzeug-3  pyvcp.btn03 => WZW.Taster-WKZ-03            
net Taster-Werkzeug-4  pyvcp.btn04 => WZW.Taster-WKZ-04            
net Taster-Werkzeug-5  pyvcp.btn05 => WZW.Taster-WKZ-05            
net Taster-Werkzeug-6  pyvcp.btn06 => WZW.Taster-WKZ-06            
net Taster-Werkzeug-7  pyvcp.btn07 => WZW.Taster-WKZ-07            
net Taster-Werkzeug-8  pyvcp.btn08 => WZW.Taster-WKZ-08            
net Taster-Werkzeug-9  pyvcp.btn09 => WZW.Taster-WKZ-09            
net Taster-Werkzeug-10 pyvcp.btn10 => WZW.Taster-WKZ-10            
net Taster-Werkzeug-11 pyvcp.btn11 => WZW.Taster-WKZ-11            
net Taster-Werkzeug-12 pyvcp.btn12 => WZW.Taster-WKZ-12            

net Sensor-Werkzeug-1-unten  => pyvcp.led-01
net Sensor-Werkzeug-2-unten  => pyvcp.led-02
net Sensor-Werkzeug-3-unten  => pyvcp.led-03
net Sensor-Werkzeug-4-unten  => pyvcp.led-04
net Sensor-Werkzeug-5-unten  => pyvcp.led-05
net Sensor-Werkzeug-6-unten  => pyvcp.led-06
net Sensor-Werkzeug-7-unten  => pyvcp.led-07
net Sensor-Werkzeug-8-unten  => pyvcp.led-08
net Sensor-Werkzeug-9-unten  => pyvcp.led-09
net Sensor-Werkzeug-10-unten => pyvcp.led-10
net Sensor-Werkzeug-11-unten => pyvcp.led-11
net Sensor-Werkzeug-12-unten => pyvcp.led-12



#################
## Bedienmodus ##
######################################################################################################################################################################

net IS-MAN                     => pyvcp.MAN-mode
net IS-MDI  halui.mode.is-mdi  => pyvcp.MDI-mode
net IS-AUTO halui.mode.is-auto => pyvcp.AUTO-mode



#################
###   Timer   ###
######################################################################################################################################################################

net Laeuft-Programm  halui.program.is-running => time.0.start  
net Zyklus-Sekunden  time.0.seconds           => pyvcp.Sekunden 
net Zyklus-Minuten   time.0.minutes           => pyvcp.Minuten
net Zyklus-Stunden   time.0.hours             => pyvcp.Stunden



###################
# Drehzahlanzeige #
######################################################################################################################################################################

net Ausgabe-Drehzahl-rpm Spindel.Ausgabe-Drehzahl-rpm => pyvcp.Spindel-rpm



#######################
# Lampe Referenzfahrt #
######################################################################################################################################################################

net Lampe-Achsen-referenziert  and2.2.out              => pyvcp.Referenz-fertig-LED

##################################
#####    Meldung Löschen    ######
#############################################################################################################################################################################################################

net Fehler-loeschen hm2_5i20.1.gpio.037.in_not => axisui.notifications-clear
net Fehler-loeschen                            => axisui.notifications-clear-error
net Fehler-loeschen                            => axisui.notifications-clear-info

##############################
#####      Gsimple      ######
#############################################################################################################################################################################################################

net Gsimple-Start         pyvcp.GSimple  => halui.mdi-command-03
net Programm-uebertragen  pyvcp.sendprgm => halui.mdi-command-04

##############################
#####     Tisch oben      ####
#############################################################################################################################################################################################################

#net Tisch-oben pyvcp.Tisch-oben  => or2.4.in1 



Siggi
Last edit: 07 Jan 2018 12:08 by Weiler810T.

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

More
07 Jan 2018 14:11 #104109 by newbynobi
Hallo Siggi,

das ist genau das was ich gesdagt habe, die Zeile war nie aktiv! Du hast nun die Zeile aber aktiv gemacht, da du das erste Rautenzeichen entfernt hast. Da es kein pyVCP Panel mehr gibt, wird der Pin nicht gefunden und somit crashed LinuxCNC.

Wenn du die Zeile einfach löscht, dann sollte das Problem gelöst sein.

Norbert

That#s what I told you. The line was not aktiv at any time, but you erased the first "#" making the line active, resulting in the mentioned chrash from LinuxCNC.
If you delete the complete line, the problem should be gone.

Norbert

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

More
07 Jan 2018 17:18 - 07 Jan 2018 17:46 #104124 by Weiler810T
Hallo Norbert

In dieser Configuration bekomme ich ich immer die Fehlermeldung :
44 Achtung:  Drehbewegung zu langsam evtl. durch Druckmangel oder Sensor reagiert nicht!

Kann auch sein das bei der Erneuerung der Festo-teile und Verkabelung was schief gelaufen ist :blink:



Wie kann man die pin mit Hal-cmd eineln ansteuern ? (Beispiel)
Attachments:
Last edit: 07 Jan 2018 17:46 by Weiler810T. Reason: Bild hinzugefügt

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

Moderators: newbynobiHansU
Time to create page: 0.123 seconds
Powered by Kunena Forum