Hurco BMC 30 AP

More
08 Feb 2026 16:12 #342656 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
Hello everyone, we've now integrated several pushbuttons and switches. The signals are being received and are functioning correctly. However, a new problem has arisen: as soon as I switch on the machine, the X and Y axes start moving immediately, and Linux CNC goes into error mode. I don't recall ever having this problem before. Nothing has been changed in the wiring. Perhaps someone has a crucial suggestion.

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

More
08 Feb 2026 18:23 #342660 by andypugh
Replied by andypugh on topic Hurco BMC 30 AP
It sounds like the servo amps are being enabled without the PIDs being enabled.

Start LinuxCNC from the command-line and make sure that there are no error messages in there.

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

More
09 Feb 2026 21:22 #342734 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
We created a file using the proconf Wizard.
We compared it to ours because ours was created with an older version.
We noticed some differences.
Then we imported the differing lines into our HAL file, which successfully removed the errors, but the axes still move slowly automatically.
In the HAL file, we marked the sections we took from the other configuration with #####Test######
Items we commented out are marked with two ##.
Attachments:

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

More
09 Feb 2026 22:27 #342739 by tommylight
Replied by tommylight on topic Hurco BMC 30 AP
From your hal file:
##net x-index-enable  <=> pid.x.index-enable
##net x-enable        =>  pid.x.enable
##net x-pos-cmd       =>  pid.x.command
##net x-pos-fb        =>  pid.x.feedback
##net x-output        <=  pid.x.output

##################TEST#############################
# joint-0 enable chain
net joint-0-index-enable <=> pid.x.index-enable
net joint-0-index-enable <=> joint.0.index-enable
net joint-0-index-enable <=> hm2_7i97.0.encoder.00.index-enable

net joint-0-enable <= joint.0.amp-enable-out
net joint-0-enable => pid.x.enable
net joint-0-enable => hm2_7i97.0.pwmgen.00.enable
###################################################

# ---PWM Generator signals/setup---

##setp   hm2_7i97.0.pwmgen.00.scale  [JOINT_0]OUTPUT_SCALE
##setp   hm2_7i97.0.pwmgen.00.output-type 1
##setp   hm2_7i97.0.pwmgen.00.offset-mode true

##net x-output     => hm2_7i97.0.pwmgen.00.value
##net x-pos-cmd    <= joint.0.motor-pos-cmd
##net x-enable     <= joint.0.amp-enable-out
##net x-enable   => hm2_7i97.0.pwmgen.00.enable

Looks like a chemically castrated hal file, so what am i missing as that can not work.

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

More
09 Feb 2026 22:31 #342740 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
What do you suggest?
Creating a new .hal file?

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

More
09 Feb 2026 23:02 #342741 by PCW
Replied by PCW on topic Hurco BMC 30 AP
There are many missing connections in the hal file:

As a start I would uncomment the high-lighted commands
##net x-index-enable <=> pid.x.index-enable
##net x-enable => pid.x.enable
##net x-pos-cmd => pid.x.command
##net x-pos-fb => pid.x.feedback
##net x-output <= pid.x.output

##################TEST#############################
# joint-0 enable chain
net joint-0-index-enable <=> pid.x.index-enable
net joint-0-index-enable <=> joint.0.index-enable
net joint-0-index-enable <=> hm2_7i97.0.encoder.00.index-enable

net joint-0-enable <= joint.0.amp-enable-out
net joint-0-enable => pid.x.enable
net joint-0-enable => hm2_7i97.0.pwmgen.00.enable
###################################################

# ---PWM Generator signals/setup---

##setp hm2_7i97.0.pwmgen.00.scale [JOINT_0]OUTPUT_SCALE
##setp hm2_7i97.0.pwmgen.00.output-type 1
##setp hm2_7i97.0.pwmgen.00.offset-mode true

##net x-output => hm2_7i97.0.pwmgen.00.value
##net x-pos-cmd <= joint.0.motor-pos-cmd
##net x-enable <= joint.0.amp-enable-out
##net x-enable => hm2_7i97.0.pwmgen.00.enable


 

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

More
10 Feb 2026 00:19 #342743 by tommylight
Replied by tommylight on topic Hurco BMC 30 AP
Should also get rid of the TEST part completely, left side of pin names are just pin names (non existing ones that you created) so they will do nothing as they are.
So you will most probably need to uncoment all the listed stuff from PCW, for all joints/axis.

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

More
10 Feb 2026 00:38 #342744 by PCW
Replied by PCW on topic Hurco BMC 30 AP
# ---PWM Generator signals/setup---

##setp hm2_7i97.0.pwmgen.00.scale [JOINT_0]OUTPUT_SCALE
##setp hm2_7i97.0.pwmgen.00.output-type 1
##setp hm2_7i97.0.pwmgen.00.offset-mode true

If you want to delete the TEST sections, either don't delete
this part, or delete it and uncomment the commented out section
above (since they are duplicates)

##################TEST#############################
setp hm2_7i97.0.pwmgen.00.output-type 1 #PWM pin0
setp hm2_7i97.0.pwmgen.00.offset-mode 1 # offset mode so 50% = 0
setp hm2_7i97.0.pwmgen.00.scale [JOINT_0]OUTPUT_SCALE
###################################################
The following user(s) said Thank You: tommylight

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

More
10 Feb 2026 21:27 #342789 by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
Hi everyone,
thanks in advance for your help.
We tried a few things again today, but unfortunately the axes start moving immediately when the machine is enabled.
We tried creating a new HAL with the Mesact tool to compare the programming.
Unfortunately, we weren't successful again.
Can someone help me and tell me exactly what's wrong and how to fix it? It all worked before; there's also a video about it in this thread.
Attachments:

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

More
10 Feb 2026 21:34 - 10 Feb 2026 21:35 #342790 by PCW
Replied by PCW on topic Hurco BMC 30 AP
Can you plot the signals:

x-pos-cmd
x-pos-fb
x-output

(with HalScope)

when you start LinuxCNC?

This will help to debug the issue.


 
Last edit: 10 Feb 2026 21:35 by PCW.

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

Time to create page: 0.128 seconds
Powered by Kunena Forum