Linuxcnc error

More
9 years 6 months ago #92319 by chelseafan
Replied by chelseafan on topic Linuxcnc error
thanks guys for replying, this is my last error so i think the finishing line is nearly there. the reason i know that is because i commented out the line and linuxcnc opened. i cant see it as im on a windows computer at minute but the line i commented out is at the bottom of custom.hal and is one line with loads of ### above and below it. the message with it refers to hacking the io and uncommenting the line when the toolchanger is working.
i didnt actually get the machine to jog as to be honest i had no idea what to do when linuxcnc opened so ive started to read up on that now.

as for this last error. im assuning i have it installed. it was there on the pc when i got it under application/cnc. and i can only assume cncbasher knew what he was doing and did a rip install. am i able to check this somehow?

ive already tried what you suggested and changed the name of the new file to iocontrol.cc and this didnt work it wouldnt do a make and wanted to know where the file iocontrol-orac.cc was. from what i could see looking around linuxcnc when it loaded was that the machine thinks its at tool zero. and inputs 16,17,18 are my inputs for this. all these inputs are at 10volts, from abit of reading i believe two of these are used with a truth table to determine the tool and the third is for reversing the motor back onto its stop.

i think from comparing the standard file thats in the wiki that arceye did to mine cncbasher has done modifications over the years. these should be right as he was suppose to of run the machine before i got it.

im not really sure to be honest about this line ive commented out and if it will stop the toolchanger from working ill post it up when i can open the hal file properly.

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

More
9 years 6 months ago #92321 by ArcEye
Replied by ArcEye on topic Linuxcnc error

ive already tried what you suggested and changed the name of the new file to iocontrol.cc and this didnt work it wouldnt do a make and wanted to know where the file iocontrol-orac.cc was.


If you read the header of the Submakefile, it tells you what is going on
Code:
* # Amended 23082014 # ArcEye # # Add specific iocontrol components for Orac and Triac toolchangers # # Select the relevant io in the ini file # # [EMCIO] # EMCIO = io-triac (io-orac, or io for default) # # IOSRCS := emc/iotask/ioControl.cc emc/rs274ngc/tool_parse.cc IOV2SRCS := emc/iotask/ioControl_v2.cc emc/rs274ngc/tool_parse.cc IOVORACSRCS := emc/iotask/ioControl_orac.cc emc/rs274ngc/tool_parse.cc IOVTRIACSRCS := emc/iotask/ioControl_triac.cc emc/rs274ngc/tool_parse.cc USERSRCS += $(IOSRCS) $(IOV2SRCS) $(IOVORACSRCS) $(IOVTRIACSRCS) ../bin/io: $(call TOOBJS, $(IOSRCS)) ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0 $(ECHO) Linking $(notdir $@) @$(CXX) $(LDFLAGS) -o $@ $^ ../bin/iov2: $(call TOOBJS, $(IOV2SRCS)) ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0 $(ECHO) Linking $(notdir $@) @$(CXX) $(LDFLAGS) -o $@ $^ ../bin/io-orac: $(call TOOBJS, $(IOVORACSRCS)) ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0 $(ECHO) Linking $(notdir $@) @$(CXX) $(LDFLAGS) -o $@ $^ ../bin/io-triac: $(call TOOBJS, $(IOVTRIACSRCS)) ../lib/liblinuxcnc.a ../lib/libnml.so.0 ../lib/liblinuxcnchal.so.0 ../lib/liblinuxcncini.so.0 $(ECHO) Linking $(notdir $@) @$(CXX) $(LDFLAGS) -o $@ $^ TARGETS += ../bin/io ../bin/iov2 ../bin/io-orac ../bin/io-triac

4 different versions of iocontrol are built and you select which one you want from the ini file

@cncbasher used the same computer for several machines, which is why I set up the build so that he had all the different versions available, just needed to specify which in the config.

i didnt actually get the machine to jog as to be honest i had no idea what to do when linuxcnc opened so ive started to read up on that now.


I think you just need to get to know linuxcnc for now.
The tool number initialisation can be brought back in when you have more of a clue what you are doing.

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

More
9 years 6 months ago #92351 by chelseafan
Replied by chelseafan on topic Linuxcnc error
you say it can be brought back in the tool changer but it cant because i just get an error. i did read the submake file. ive specifying io-orac but linuxcnc cant open this and errors out so ive specified "io". the line i have commented out is
###############################################
#connect this when toolchanger up and running and hacked io executable
#hook output from toolchanger to input to hacked iocontrol
#net tool-in-start <= oracchanger.starttool => iocontrol.0.currenttool
#################################################

so my question is can the toolchanger work with this line commented out and with "io" specified and not io-orac?

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

More
9 years 6 months ago #92409 by ArcEye
Replied by ArcEye on topic Linuxcnc error
You will be able to bring in the tool number initialisation once you understand enough about linuxcnc to follow the instructions and build io-orac and load that instead.

Loading io instead will not work because it does not contain the pin you are trying to net to, but someone has already told you that previously.

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

More
9 years 6 months ago #92419 by chelseafan
Replied by chelseafan on topic Linuxcnc error
yeah i realised that this morning when i started to think about it, so it was abit of a silly question.

im not really sure im up to learning building linuxcnc to that degree of building components and actually understanding it all. understanding enough to fix little errors and rebuilding and sorting out things such as iocontrol is alot different. I bought the machines on the impression they was working because i wanted to get cracking using them. And although i dont mind doing these fixes as im learning alot but of it goes over my head at the minute and i dont have the time to learn it all or the skill either. If it comes to that, im almost tempted to rip it out and go mach3 as i have a friend who has experience there. And to make things worse i bought two machines and this was suppose to be the easier of the two as i have had to do some wiring on the triac so i need to get this working and leave it be to work on the triac.

you say i need to build io-orac and load this. first of all how is something like this built? do you mean actually re do it completely or just build the file into linuxcnc? is this done when iocontrol-orac.cc is placed in the iotask folder and a make clean done which then creates io-orac in the bin folder (i think it is)?
secondly iv checked the folder and io-orac is there and ive done all of them things but it wont load. so would this mean i have an error in the iocontrol-orac.cc file? cncbasher was a cleaver bloke from what i could gather so i must be 99% there.
so just to clear up what i have done in this order aswell. I changed the ini setting to emc=io this allowed me to get past the error of io-orac not loading. i then compiled oracchanger.comp thanks to rodw's help. Ive commented out the toolchanger line which allows me to power the machine up and move the machines axis and power the spindle. i have checked and recopied that the iocontrol files and submakefiles are in the relavant folders and done a make clean. i changed the ini file back to io-orac and it wont load this.

so i think i have done everything right have i not? sorry if it comes across as arsey im not im just alittle frustrated and inbetween some of the messgaes i have realised my question is stupid and done the suggested things so im not ignoring any of the advice at all. i think i have done everything suggested.

basically can you eloborate abit more arceye please on building io-orac please, or anyone else?

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

More
9 years 6 months ago #92424 by ArcEye
Replied by ArcEye on topic Linuxcnc error
You need to do a RIP build (run in place)
linuxcnc.org/docs/devel/html/code/building-linuxcnc.html
To build it you will need the packages to supply build requirements
www.wiki.eusurplus.com/index.php?title=LinuxCNC_Run_In_Place

Looks like you already have one if you are running 2.8

The Submakefile will build all the versions of iocontrol and you can select the right one from your ini file

Linuxcnc-dev/src/emc/iotask should contain the Submakefile I amended plus the 4 versions of iocontrol that are
built from it (ioControl.cc, ioControl_v2.cc, ioControl_orac.cc and ioControl_triac.cc)

Put oracchanger.comp into Linuxcnc-dev/src/hal/components

Then cd to Linuxcnc-dev/src
Code:
make clean ./autogen.sh ./configure --(here you need to refer to the first link to build for the right kernel) make -j$(nproc) sudo make setuid cd ../ . ./scripts/rip-environment

That should build and install 4 versions of iocontrol in Linuxcnc-dev/bin/
Your oracchanger component should be in Linuxcnc-dev/rtlib/{kernel flavour}/

None of this is special to this machine, it is general building 101.

The bottom line, is that having a source file in a folder does nothing, you need to build a binary from that source, which means rebuilding the RIP.

Others should be able to help you with build dependencies etc which are bound to come up

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

Time to create page: 0.491 seconds
Powered by Kunena Forum