Please help me for uptate axis 2.5.4 to Gmoccapy

  • Weiler810T
  • Topic Author
  • New Member
  • New Member
More
9 years 3 days ago #100918 by Weiler810T
Hello

I need help with the implementation from Axis 2.5.4 to Gmoccapy, i am a neeby in things Linuxcnc. Here is my configfolder:

Attachment not found



thank you ever in advance:)
greetz Siggi

Please Log in to join the conversation.

More
9 years 3 days ago #100919 by newbynobi
Hallo,

being a newby, that is quiet a complicated configuration.
We need to do the change in various steps, as I do not have such a nice hardware to test here ;-)

The biggest stuff will be the change of your custom panel from pyvcp to gladeVCP, as gmoccapy does not support pyvcp!

OK, lets begin:
Make a copy of your config folder!
Open the ini file and delete the entries:
Code:
PYVCP = pyvcp.xml POSTGUI_HALFILE = pyvcp.hal

change:
DISPLAY = axis
to
DISPLAY = gmoccapy

open a terminal and enter
linuxcnc
select the new config and start it.

I am sure the config will not start, so please watch the output in the terminal and post it here, so we can take the next step.

Norbert

Please Log in to join the conversation.

  • Weiler810T
  • Topic Author
  • New Member
  • New Member
More
9 years 3 days ago #100924 by Weiler810T
Replied by Weiler810T on topic Please help me for uptate axis 2.5.4 to Gmoccapy
Ok, Norbert,here is the first test result:

Print file information:
Moderator deleted unneeded lines:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Nullen.ko: Invalid module format
./loadrt.hal:7: exit value: 1
./loadrt.hal:7: insmod for Nullen failed, returned -1
See the output of 'dmesg' for more information.

Please Log in to join the conversation.

More
9 years 3 days ago #100925 by newbynobi
Is this the same computer?
Linuxcnc has problems to load a realtime component.

This is the relevant part:
Code:
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Nullen.ko: Invalid module format ./loadrt.hal:7: exit value: 1 ./loadrt.hal:7: insmod for Nullen failed, returned -1

but it could be caused, because there is a problem loading the realtime part.
Have you changed any path settings?

Please try to uncomment the following hal files:
Code:
#HALFILE = loadrt.hal #HALFILE = Maschine.hal #HALFILE = Spindel.hal #HALFILE = Bedienfeld.hal #HALFILE = Werkstückwechsler.hal #HALFILE = Werkzeugwechsler.hal #HALFILE = Handrad.hal #HALFILE = Meldung.hal

try again and report.

Norbert

Please Log in to join the conversation.

More
9 years 2 days ago #100967 by newbynobi
Together we will be able to redo that part ;-)

OK, lets go on with small steps:

Are the other custom comp files also copies of an old system?
The following components seem to be custom ones.
Could you post the code of them, so I can try to see what is wrong, or if they just need to be compiled again under the new OS?
Code:
loadrt Nullen loadrt Meldung loadrt Spindel loadrt SF loadrt WZW loadrt WSW loadrt Increment loadrt tuerueberwachung

If you do have the source code, you can easy recompile them, i.e. for Nullen:
Code:
halcompile --install Nullen.comp

More Details are in:
comp docs

Norbert

Please Log in to join the conversation.

  • Weiler810T
  • Topic Author
  • New Member
  • New Member
More
9 years 2 days ago #100970 by Weiler810T
Replied by Weiler810T on topic Please help me for uptate axis 2.5.4 to Gmoccapy
Servus Norbert

The Comp-files are from the old system.Can be that the source-code is still on the hard disk.
I will be back on Wednesday, I have to go to work tomorrow.

Greetz Siggi

Please Log in to join the conversation.

  • Weiler810T
  • Topic Author
  • New Member
  • New Member
More
9 years 2 days ago #100974 by Weiler810T
Replied by Weiler810T on topic Please help me for uptate axis 2.5.4 to Gmoccapy
YIPIYEAHHH :silly: :laugh:

es funktioniert, its running :laugh: :laugh: :laugh:

root@chiron:~# cd /home/chiron/linuxcnc/src/hal/drivers
root@chiron:/home/chiron/linuxcnc/src/hal/drivers# halcompile --install Nullen.comp
make KBUILD_EXTRA_SYMBOLS=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/Module.symvers -C /usr/src/linux-headers-3.4-9-rtai-686-pae SUBDIRS=`pwd` CC=gcc V=0 modules
make[1]: Entering directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
CC [M] /tmp/tmpZkMnUD/Nullen.o
Building modules, stage 2.
MODPOST 1 modules
CC /tmp/tmpZkMnUD/Nullen.mod.o
LD [M] /tmp/tmpZkMnUD/Nullen.ko
make[1]: Leaving directory `/usr/src/linux-headers-3.4-9-rtai-686-pae'
cp Nullen.ko /usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc/
root@chiron:/home/chiron/linuxcnc/src/hal/drivers#

greetz Siggi

Please Log in to join the conversation.

More
9 years 1 day ago #101006 by newbynobi
Hallo Siggi,

ok, thats good. What about your pyVCP panel, do you want to integrate that features also to gmoccapy?
If so, I will make you the glade panel and lead you through the integration.

Have you connected the spindle feedback to the gmoccapy.spindle_feedback_bar hal pin?
And also the spindle-at-speed signal to gmoccapy.spindle_at_speed hal pin?
You may want to connect also the hal pin gmoccapy.tooloffset-x and gmoccapy.tooloffset-z

That way you can take advantage of all gmoccapy features.

Please make sure, that the mentioned hal connections need to be made in a separate postgui.hal

Norbert

Please Log in to join the conversation.

  • Weiler810T
  • Topic Author
  • New Member
  • New Member
More
8 years 11 months ago #101114 by Weiler810T
Replied by Weiler810T on topic Please help me for uptate axis 2.5.4 to Gmoccapy
Ok, next step ,all compiled and Gmoccapy turn on and crashed.
Print file information:

MODERATOR deleted unneeded lines:
Debug file information:
.
./Maschine.hal:4: Warning: File contains DOS-style line endings.
./Bedienfeld.hal:4: Warning: File contains DOS-style line endings.
./Werkstückwechsler.hal:4: Warning: File contains DOS-style line endings.
./Werkzeugwechsler.hal:4: Warning: File contains DOS-style line endings.
./Handrad.hal:4: Warning: File contains DOS-style line endings.
./Meldung.hal:4: Warning: File contains DOS-style line endings.

pyvcp.hal:4: Warning: File contains DOS-style line endings.
pyvcp.hal:18: Pin 'pyvcp.btn01' does not exist


Attachment not found

Attachment not found

Attachment not found



Siggi

Please Log in to join the conversation.

More
8 years 11 months ago #101119 by newbynobi
Hallo Siggi,

please do not make the thread so long, by including all the messages as text. Please copy it in a file and post the file, thats makes it easier to follow the thread.

Here is the relevant part:
Code:
Debug file information: . ./Maschine.hal:4: Warning: File contains DOS-style line endings. ./Bedienfeld.hal:4: Warning: File contains DOS-style line endings. ./Werkstückwechsler.hal:4: Warning: File contains DOS-style line endings. ./Werkzeugwechsler.hal:4: Warning: File contains DOS-style line endings. ./Handrad.hal:4: Warning: File contains DOS-style line endings. ./Meldung.hal:4: Warning: File contains DOS-style line endings. /usr/bin/gmoccapy:237: GtkWarning: Invalid icon size 48 self.widgets.window1.show() (gmoccapy:5909): GtkSourceView-CRITICAL **: gtk_source_language_manager_set_search_path: assertion `lm->priv->ids == NULL' failed pyvcp.hal:4: Warning: File contains DOS-style line endings. pyvcp.hal:18: Pin 'pyvcp.btn01' does not exist

First of all, never ever edít a hal file in Windows, as you get wrong line endings!

You need to reformat the files,

Rename all the files you need to convert and try
Code:
dos2unix Maschine.hal.old Mascine.hal
May be you have to install dos2unix first.

Then comment out the line 140 of the INI, where you do load the pyvcp.hal, That file can not be loaded, as gmoccapy does not work with pyvcp panels. (I mentioned this already in a previous post)

Report.

Norbert

P.S. I edited this thread to make it easier to follow.

Please Log in to join the conversation.

Time to create page: 0.141 seconds
Powered by Kunena Forum