Hurco BMC 30 AP

More
07 May 2026 22:39 #346264 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
I'll swap them both and see if that solves the problem. Otherwise, it'll be difficult.

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

More
13 May 2026 18:13 #346378 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
A quick update from my end: I replaced the two components on the encoder board, but unfortunately, the encoder signal is still not being processed. Without a schematic, I really don't know where else to look.

I'm still waiting for the optocoupler so I can get the second board back up and running.

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

More
25 May 2026 19:13 - 25 May 2026 19:19 #346618 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
I replaced the optocoupler, and the output is working again.I attempted to set up the tool changer. Unfortunately, I keep receiving the following error messages when starting LinuxCNC. Attached is my .ini file.
Attachments:
Last edit: 25 May 2026 19:19 by 5_Zylinder.

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
26 May 2026 01:54 #346640 by tommylight
Replied by tommylight on topic Hurco BMC 30 AP
Those seem like two separate issues, one remap is not doing OK and the other complaining about gcode, are you running the default "Linux CNC" gcode?

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

More
26 May 2026 05:19 #346655 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
Thanks for your reply. What do you need to help narrow down the problem? I only adapted the `Toolchanger.ngc` file for my machine; otherwise, I haven't changed anything in the G-code.
The following user(s) said Thank You: tommylight

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

  • tommylight
  • tommylight's Avatar
  • Away
  • Moderator
  • Moderator
More
30 May 2026 01:18 #346751 by tommylight
Replied by tommylight on topic Hurco BMC 30 AP
We would need more info about what you want to do and what you already did.

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

More
11 Jun 2026 20:48 #347035 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
Hello,

We created the `toolchanger_index_new` HAL file to map all the M-codes for `toolchange.ngc`; this kept things reasonably organized and allowed us to track what codes like M66 actually do.
Then we built the NGC file.
Once that was done, we integrated everything and added the remap section to the INI file.
When we started LinuxCNC, we got the error message mentioned in the previous post.
We suspect there might be an issue with the file path or something similar.
As soon as we comment out the remap configuration, everything runs without problems again.

The only exception is the `conv-float-32` converter; it used to work, but now LinuxCNC claims it already exists.
That is likely a separate issue and unrelated to the mapping setup mentioned above.
Attachments:

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

More
10 Jul 2026 17:09 #347664 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
Hi everyone,
I’ve tried a few more times to solve my problem, but unfortunately, I’m not getting anywhere. Perhaps someone can tell me how to fix the issue so I can get the tool changer up and running.

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

More
10 Jul 2026 18:39 #347666 by Aciera
Replied by Aciera on topic Hurco BMC 30 AP
Re: forum.linuxcnc.org/30-cnc-machines/42689...0-ap?start=80#346618

1. These two errors are connected. The parameter #<_tool_in_spindle> is not defined because 'change_prolog' cannot be found.

2. Looking at your ini file it seems that your paths are messed up. TOPLEVEL should point to the file 'toplevel.py' not just some folder:
[PYTHON]
PATH_PREPEND = python
TOPLEVEL = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/python/
PATH_APPEND = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/



[RS274NGC]

PARAMETER_FILE = linuxcnc.var
#SUBROUTINE_PATH = /home/cnc/linuxcnc/nc_files/remap_lib/python-stdglue/python/
#USER_M_PATH = /home/cnc/linuxcnc/nc_files/hurcoMCODE
#REMAP= M6 modalgroup=6 ngc=sub_progs/Werkzeugwechsel_Main

SUBROUTINE_PATH = ./
#REMAP=M6   modalgroup=6 ngc=toolchange
REMAP=M6   modalgroup=6  prolog=change_prolog ngc=toolchange epilog=change_epilog

# parameters exposed by setspeed_prolog/evaluated by setspeed_epilog:
#<speed>

#REMAP= S prolog=setspeed_prolog ngc=setspeed epilog=setspeed_epilog

Since we don't have your complete config folder there is no telling where you have the relevant files but if you compare your setting with the built in 'sim/axis/remap/extend-builtins/' you might get some ideas.

(You will find the [PYTHON] section at the very bottom of the ini file below):
github.com/LinuxCNC/linuxcnc/blob/2.9/co.../extend-builtins.ini

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

More
11 Jul 2026 09:07 #347675 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
Hi, thanks for your help. Unfortunately, I misunderstood something last time. I have uploaded my complete LinuxCNC folder as an attachment.
Attachments:

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

Time to create page: 0.163 seconds
Powered by Kunena Forum