Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emccanon function signature changed causing error message #3079

Open
c-morley opened this issue Aug 18, 2024 · 6 comments
Open

emccanon function signature changed causing error message #3079

c-morley opened this issue Aug 18, 2024 · 6 comments

Comments

@c-morley
Copy link
Collaborator

recent master

running sim/qtdragon/qtdragon_probe_tool/tdragon_auto_tool_probe.ini
causes an error message when loading chips.ngc:

G-Code error in 3D_Chips.ngc
Near line 0 of
/home/chris/linuxcnc/nc_files/examples/3D_Chips.ngc
M6/change_epilog: Python argument types in
emccanon.CHANGE_TOOL(int)
did not match C++ signature:
CHANGE_TOOL(void)

This config uses remap of m6

@c-morley
Copy link
Collaborator Author

ok this is caused because I have an installed version of linuxcnc that is 2.9 based.
My sim INI uses paths like: ~/linuxcnc/nc_files/examples/remap_lib
I do this so that in an installed version the sim actually works.

Any idea how to best handle the need for different paths for RIP vrs installed versions?

@6XoCtujg2C0gne
Copy link
Contributor

6XoCtujg2C0gne commented Aug 19, 2024 via email

@KennethThompson
Copy link

KennethThompson commented Mar 5, 2025

ok this is caused because I have an installed version of linuxcnc that is 2.9 based. My sim INI uses paths like: ~/linuxcnc/nc_files/examples/remap_lib I do this so that in an installed version the sim actually works.

Any idea how to best handle the need for different paths for RIP vrs installed versions?

Chris. I am the author of a plugin for Rapid Change ATC that uses qtdragon_hd. M6 is remapped properly, and the first tool pickup works great. But then when a second tool is selected either manually or through a program's gcode, an error appears with this exact reference to the signature of emccanon.CHANGE_TOOL(int) did not match C++ signature CHANG_TOOL(void). Based on your comments in this thread, it appears to be an issue with pathing of the python glue file. But the answer from 6X about the rip-environment does not appear applicable. Linux 2.9 is installed via build bot. Do you have any suggestions on how to fix this signature issue? @c-morley

@KennethThompson
Copy link

KennethThompson commented Mar 5, 2025

@c-morley As an aside, I would love to bundle the ATC plugin with qtdragon as a native interface. At the moment its in the 'User' tab.

Image

@c-morley
Copy link
Collaborator Author

c-morley commented Mar 7, 2025

Can you post the remap code? And you can confirm only linuxcnc 2.9 is on the system (not master too) ?
Are you saying you want a custom version of Qtdragon to supply to your customers? yes it's possible.
If you can supply the custom panel I'll see what I can do.
Nice looking tool changer and good job on the custom panel!

@KennethThompson
Copy link

Can you post the remap code? And you can confirm only linuxcnc 2.9 is on the system (not master too) ? Are you saying you want a custom version of Qtdragon to supply to your customers? yes it's possible. If you can supply the custom panel I'll see what I can do. Nice looking tool changer and good job on the custom panel!

I will see about getting answers to your questions. I've been working with a user of my plugin who realized he was running the latest, 2.10, of linux cnc and then downgraded. We are working through a different error now. I have this plugin released under the MIT license, and would love to just bundle it with qtdragon if its possible. The plugin is specific to the RapidChange ATC. I'll get my sim profile in a git repo with the plugin so you can have a copy that loads up without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants