Hurco BMC 30 AP

More
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?

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

More
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


 

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

More
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.

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

More
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
###################################################
The following user(s) said Thank You: tommylight

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

More
8 months 3 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.

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

More
8 months 3 weeks ago - 8 months 3 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.


 
Last edit: 8 months 3 weeks ago by PCW.

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

Time to create page: 0.132 seconds
Powered by Kunena Forum