- Posts: 64
- Thank you received: 0
Hurco BMC 30 AP
- 5_Zylinder
- Topic Author
- Offline
- Senior Member
-
Less
More
8 months 3 weeks ago #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 to join the conversation.
8 months 3 weeks ago #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.
Start LinuxCNC from the command-line and make sure that there are no error messages in there.
Please Log in to join the conversation.
- 5_Zylinder
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 64
- Thank you received: 0
8 months 3 weeks ago #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 ##.
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 ##.
Please Log in to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
8 months 3 weeks ago #342739
by tommylight
Replied by tommylight on topic Hurco BMC 30 AP
From your hal file:
Looks like a chemically castrated hal file, so what am i missing as that can not work.
Code:
##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 to join the conversation.
- 5_Zylinder
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 64
- Thank you received: 0
8 months 3 weeks ago #342740
by 5_Zylinder
Replied by 5_Zylinder on topic Hurco BMC 30 AP
What do you suggest?
Creating a new .hal file?
Creating a new .hal file?
Please Log in to join the conversation.
8 months 3 weeks ago #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
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 to join the conversation.
- tommylight
-
- Away
- Administrator
-
Less
More
- Posts: 22008
- Thank you received: 3
8 months 3 weeks ago #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.
So you will most probably need to uncoment all the listed stuff from PCW, for all joints/axis.
Please Log in to join the conversation.
8 months 3 weeks ago #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
###################################################
##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
###################################################
Please Log in to join the conversation.
- 5_Zylinder
- Topic Author
- Offline
- Senior Member
-
Less
More
- Posts: 64
- Thank you received: 0
8 months 2 weeks ago #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.
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.
Please Log in to join the conversation.
8 months 2 weeks ago #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.
x-pos-cmd
x-pos-fb
x-output
(with HalScope)
when you start LinuxCNC?
This will help to debug the issue.
Please Log in to join the conversation.
Time to create page: 0.169 seconds
