- Posts: 208
- Thank you received: 0
MesaCT and 7i76eu Issues with generated configuration
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
10 months 3 weeks ago #339710
by LearningLinuxCNC
It could be that I am an imbecile. However when I used MesaCT as installed per the instructions here using apt
gnipsel.com/linuxcnc/mesact/install.html#install-with-apt
. I did not get an anywhere near working configuration out of the tool. The stepper configurations were very incomplete. The feedback loop was not closed in fact the PID output was not even sent to the mesa stepper driver.
I will post up my configuration files from the output shortly.
I will post up my configuration files from the output shortly.
Please Log in to join the conversation.
- LearningLinuxCNC
- Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 208
- Thank you received: 0
10 months 3 weeks ago #339748
by LearningLinuxCNC
Replied by LearningLinuxCNC on topic MesaCT and 7i76eu Issues with generated configuration
Here is a generated HAL file X axis configuration.
This is what I had to change it to in order to make it work properly.
Code:
# Axis: X Joint: 0 Output: 2
# PID Setup
setp pid.x.Pgain [JOINT_0](P)
setp pid.x.Igain [JOINT_0](I)
setp pid.x.Dgain [JOINT_0](D)
setp pid.x.bias [JOINT_0](BIAS)
setp pid.x.FF0 [JOINT_0](FF0)
setp pid.x.FF1 [JOINT_0](FF1)
setp pid.x.FF2 [JOINT_0](FF2)
setp pid.x.deadband [JOINT_0](DEADBAND)
setp pid.x.maxoutput [JOINT_0](MAX_OUTPUT)
setp pid.x.error-previous-target True
# 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-enable <= joint.0.amp-enable-out
net joint-0-enable => pid.x.enable
# position command and feedback
net joint-0-pos-cmd <= joint.0.motor-pos-cmd
net joint-0-pos-cmd => pid.x.command
net joint-0-pos-fb <= hm2_[MESA](BOARD).0.stepgen.00.position-fb
net joint-0-pos-fb => joint.0.motor-pos-fb
net joint-0-pos-fb => pid.x.feedback
# PID Output
net joint.0.output <= pid.x.output
# Axis: Z Joint: 1 Output: 3
This is what I had to change it to in order to make it work properly.
Code:
# Axis: X Joint: 0 Output: 2
# PID Setup
setp pid.x.Pgain [JOINT_0](P)
setp pid.x.Igain [JOINT_0](I)
setp pid.x.Dgain [JOINT_0](D)
setp pid.x.bias [JOINT_0](BIAS)
setp pid.x.FF0 [JOINT_0](FF0)
setp pid.x.FF1 [JOINT_0](FF1)
setp pid.x.FF2 [JOINT_0](FF2)
setp pid.x.deadband [JOINT_0](DEADBAND)
setp pid.x.maxoutput [JOINT_0](MAX_OUTPUT)
setp pid.x.error-previous-target True
setp pid.x.maxerror 0.0005
# 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-enable <= joint.0.amp-enable-out
net joint-0-enable => pid.x.enable
net joint-0-enable => hm2_[MESA](BOARD).0.stepgen.02.enable
# position command and feedback
net joint-0-pos-cmd <= joint.0.motor-pos-cmd
net joint-0-pos-cmd => pid.x.command
net joint-0-vel-cmd <= joint.0.vel-cmd
net joint-0-pos-fb <= hm2_[MESA](BOARD).0.stepgen.02.position-fb
net joint-0-pos-fb => joint.0.motor-pos-fb
net joint-0-pos-fb => pid.x.feedback
# PID Output
net joint.0.output <= pid.x.output
net joint.0.output => hm2_[MESA](BOARD).0.stepgen.02.velocity-cmd
Please Log in to join the conversation.
10 months 3 weeks ago #339763
by PCW
Replied by PCW on topic MesaCT and 7i76eu Issues with generated configuration
You might post a link to this thread on the MesaCT topic
Please Log in to join the conversation.
Time to create page: 0.084 seconds
