Linuxcnc error

More
9 years 6 months ago #92232 by chelseafan
Replied by chelseafan on topic Linuxcnc error
Sadly it didn't work which is a bummer. I had a flick through the Hal file and traced the toolchanger cable and all seems fine with the wiring. The. Board appears to be powered up that the toolchanger runs through. And I couldn't spot anything in the Hal file. Any ideas? I'm not really sure how the tool changer works and how it defines the tool number. And what inputs to test. But still wonder if this could be linked to the iocontrol file.

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

More
9 years 6 months ago #92248 by chelseafan
Replied by chelseafan on topic Linuxcnc error
just had a thought, iocontrol.cc is a standard file i believe looking at 2.7 directory. i assumed the custom file was already transfered in there due to oracchanger.comp being in it location already. i wonder if i need to copy my custom file over and overwrite the standard one. ill try that tonight.

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

More
9 years 6 months ago #92291 by chelseafan
Replied by chelseafan on topic Linuxcnc error
wasnt anything to do with that. so im back with the same issue iocontrol.0.currenttool pin doesnt exist. ive looked through the iocontrol.cc file and that line doesnt exist in there from what i can see but it does exist in my iocontrol-orac.cc file. so could there be an issue somewhere to do with this. i feel like i must be nearly there now.

any ideas

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

More
9 years 6 months ago #92293 by chelseafan
Replied by chelseafan on topic Linuxcnc error

File Attachment:

File Name: ioControl_orac.txt
File Size:38.08 KB

File Attachment:

File Name: Submakefile.txt
File Size:1.51 KB


ive attached the two files in text format as it wouldnt let me upload otherwise. in the submakefile it mentions emc and making it = io, io-orac, io-triac. io is the defualt setting. well i changed that a while ago from io-orac to io due to an error saying it can not load emc io-orac. so possibly this is my issue and i need to go back and fix this issue?

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

More
9 years 6 months ago #92314 by rodw
Replied by rodw on topic Linuxcnc error
Have you actually installed Linuxcnc by compiling from source? You've never been clear about that.

It looks like your missing pin is created in the
Code:
////////// NEW SECTION
by this line of code
Code:
// currenttool retval = hal_pin_s32_newf(HAL_IN, &(iocontrol_data->currenttool), comp_id, "iocontrol.%d.currenttool", n);

So the long and the short of it is that the pin will never exist unless the C code is compiled.I would also expect that it needs to be renamed to IoControl.cc but keep a backup of the original of that name so you can fall back.

Once you do that, use make to compile linuxcnc and halcompile to make your component and it will probably work.

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

More
9 years 6 months ago #92317 by ArcEye
Replied by ArcEye on topic Linuxcnc error
The lathe needs to run from a RIP build, with the modified iocontrol source file in it.
Otherwise the required mechanism for setting the initial tool number does not exist.

You can either build the toolchanger component in the source tree or seperately with comp (halcompile)

The component and modified iocontrol were written quite a few years ago for 2.5 or 2.6. If anything has changed with iocontrol since, that modified component might need updating, but it should just work.

I have never seen the lathe and only communicated online regards it.

I have not used linuxcnc for 3 years and have no further info regards this.

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

Time to create page: 0.475 seconds
Powered by Kunena Forum