Please help me for uptate axis 2.5.4 to Gmoccapy

More
28 Oct 2017 10:55 #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:

File Attachment:

File Name: configs.ta...10-28.gz
File Size:58 KB


thank you ever in advance:)
greetz Siggi
Attachments:

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

More
28 Oct 2017 11:56 #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:
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 or Create an account to join the conversation.

More
28 Oct 2017 13:55 - 01 Nov 2017 11:06 #100924 by Weiler810T
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.
Last edit: 01 Nov 2017 11:06 by newbynobi.

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

More
28 Oct 2017 14:12 - 28 Oct 2017 14:15 #100925 by newbynobi
Is this the same computer?
Linuxcnc has problems to load a realtime component.

This is the relevant part:
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:
#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
Last edit: 28 Oct 2017 14:15 by newbynobi.

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

More
29 Oct 2017 09:55 #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?
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:
halcompile --install Nullen.comp

More Details are in:
comp docs

Norbert

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

More
29 Oct 2017 11:58 #100970 by Weiler810T
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 or Create an account to join the conversation.

More
29 Oct 2017 16:13 #100974 by Weiler810T
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 or Create an account to join the conversation.

More
30 Oct 2017 09:55 - 30 Oct 2017 09:56 #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
Last edit: 30 Oct 2017 09:56 by newbynobi.

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

More
01 Nov 2017 09:37 - 01 Nov 2017 11:02 #101114 by Weiler810T
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


File Attachment:

File Name: 5i20_2017-11-01.ini
File Size:7 KB

File Attachment:

File Name: pyvcp.hal
File Size:4 KB

File Attachment:

File Name: configs.ta...-01-2.gz
File Size:58 KB


Siggi
Attachments:
Last edit: 01 Nov 2017 11:02 by newbynobi.

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

More
01 Nov 2017 10:58 - 01 Nov 2017 11:09 #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:
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
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.
Last edit: 01 Nov 2017 11:09 by newbynobi.

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

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