- Posts: 297
- Thank you received: 4
Gantry machine progress
9 years 3 months ago #96735
by Yannis
Replied by Yannis on topic Gantry machine progres
Please Log in or Create an account to join the conversation.
9 years 3 months ago #96736
by andypugh
Replied by andypugh on topic Gantry machine progres
./my_LinuxCNC_machine12-7.hal:168: "pid.y1.index-enable" does not exist.
This tells you that line 168 of the HAL file my_LinuxCNC_machine12-7.hal contains a reference to a pid.y1 pin that dos not exist.
So, why does that pin not exist? Have you changed the "loadrt" line to create a pid.y1 function?
Don't forget that you need a matching addf for the pid.y1 too.
If you make the edit I suggested then you will have pid.y0 and pid.y1 but _not_ pid.y. I think that this is a better idea as then you can't accidentally leave a pid.y in the wrong section of the HAL file without raising an error.
Don't worry about going through the files one error at a time. It is what I always end up doing with a new machine setup.
This tells you that line 168 of the HAL file my_LinuxCNC_machine12-7.hal contains a reference to a pid.y1 pin that dos not exist.
So, why does that pin not exist? Have you changed the "loadrt" line to create a pid.y1 function?
Don't forget that you need a matching addf for the pid.y1 too.
If you make the edit I suggested then you will have pid.y0 and pid.y1 but _not_ pid.y. I think that this is a better idea as then you can't accidentally leave a pid.y in the wrong section of the HAL file without raising an error.
Don't worry about going through the files one error at a time. It is what I always end up doing with a new machine setup.
Please Log in or Create an account to join the conversation.
9 years 3 months ago #96738
by Yannis
Replied by Yannis on topic Gantry machine progres
Please Log in or Create an account to join the conversation.
9 years 3 months ago #96740
by Yannis
Replied by Yannis on topic Gantry machine progres
if i change the y to y0 i sud change it in all the y section??
setp pid.y.Pgain [JOINT_1]P
setp pid.y.Igain [JOINT_1]I
setp pid.y.Dgain [JOINT_1]D
setp pid.y.bias [JOINT_1]BIAS
setp pid.y.FF0 [JOINT_1]FF0
setp pid.y.FF1 [JOINT_1]FF1
setp pid.y.FF2 [JOINT_1]FF2
setp pid.y.deadband [JOINT_1]DEADBAND
setp pid.y.maxoutput [JOINT_1]MAX_OUTPUT
setp pid.y.error-previous-target true
net y-index-enable <=> pid.y.index-enable
net y-enable => pid.y.enable
net y-pos-cmd => pid.y.command
net y-vel-cmd => pid.y.command-deriv
net y-pos-fb => pid.y.feedback
net y-output => pid.y.output
# ---PWM Generator signals/setup---
setp hm2_5i25.0.7i77.0.1.analogout1-scalemax [JOINT_1]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout1-minlim [JOINT_1]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout1-maxlim [JOINT_1]OUTPUT_MAX_LIMIT
net y-output => hm2_5i25.0.7i77.0.1.analogout1
net y-pos-cmd joint.1.motor-pos-cmd
net y-enable joint.1.amp-enable-out
# ---Encoder feedback signals/setup---
setp hm2_5i25.0.encoder.01.counter-mode 0
setp hm2_5i25.0.encoder.01.filter 1
setp hm2_5i25.0.encoder.01.index-invert 0
setp hm2_5i25.0.encoder.01.index-mask 0
setp hm2_5i25.0.encoder.01.index-mask-invert 0
setp hm2_5i25.0.encoder.01.scale [JOINT_1]ENCODER_SCALE
net y-pos-fb <= hm2_5i25.0.encoder.01.position
net y-vel-fb <= hm2_5i25.0.encoder.01.velocity
net y-pos-fb => joint.1.motor-pos-fb
net y-index-enable joint.1.index-enable <=> hm2_5i25.0.encoder.01.index-enable
net y-pos-rawcounts <= hm2_5i25.0.encoder.01.rawcounts
# ---setup home / limit switch signals---
net y-home-sw => joint.1.home-sw-in
net y-neg-limit => joint.1.neg-lim-sw-in
net y-pos-limit => joint.1.pos-lim-sw-in
setp pid.y.Pgain [JOINT_1]P
setp pid.y.Igain [JOINT_1]I
setp pid.y.Dgain [JOINT_1]D
setp pid.y.bias [JOINT_1]BIAS
setp pid.y.FF0 [JOINT_1]FF0
setp pid.y.FF1 [JOINT_1]FF1
setp pid.y.FF2 [JOINT_1]FF2
setp pid.y.deadband [JOINT_1]DEADBAND
setp pid.y.maxoutput [JOINT_1]MAX_OUTPUT
setp pid.y.error-previous-target true
net y-index-enable <=> pid.y.index-enable
net y-enable => pid.y.enable
net y-pos-cmd => pid.y.command
net y-vel-cmd => pid.y.command-deriv
net y-pos-fb => pid.y.feedback
net y-output => pid.y.output
# ---PWM Generator signals/setup---
setp hm2_5i25.0.7i77.0.1.analogout1-scalemax [JOINT_1]OUTPUT_SCALE
setp hm2_5i25.0.7i77.0.1.analogout1-minlim [JOINT_1]OUTPUT_MIN_LIMIT
setp hm2_5i25.0.7i77.0.1.analogout1-maxlim [JOINT_1]OUTPUT_MAX_LIMIT
net y-output => hm2_5i25.0.7i77.0.1.analogout1
net y-pos-cmd joint.1.motor-pos-cmd
net y-enable joint.1.amp-enable-out
# ---Encoder feedback signals/setup---
setp hm2_5i25.0.encoder.01.counter-mode 0
setp hm2_5i25.0.encoder.01.filter 1
setp hm2_5i25.0.encoder.01.index-invert 0
setp hm2_5i25.0.encoder.01.index-mask 0
setp hm2_5i25.0.encoder.01.index-mask-invert 0
setp hm2_5i25.0.encoder.01.scale [JOINT_1]ENCODER_SCALE
net y-pos-fb <= hm2_5i25.0.encoder.01.position
net y-vel-fb <= hm2_5i25.0.encoder.01.velocity
net y-pos-fb => joint.1.motor-pos-fb
net y-index-enable joint.1.index-enable <=> hm2_5i25.0.encoder.01.index-enable
net y-pos-rawcounts <= hm2_5i25.0.encoder.01.rawcounts
# ---setup home / limit switch signals---
net y-home-sw => joint.1.home-sw-in
net y-neg-limit => joint.1.neg-lim-sw-in
net y-pos-limit => joint.1.pos-lim-sw-in
Please Log in or Create an account to join the conversation.
9 years 3 months ago #96747
by andypugh
Yes, I think that is the best way, it saves any confusion later.
Replied by andypugh on topic Gantry machine progres
Yannis wrote: if i change the y to y0 i sud change it in all the y section??
Yes, I think that is the best way, it saves any confusion later.
Please Log in or Create an account to join the conversation.
9 years 3 months ago #96748
by Yannis
Replied by Yannis on topic Gantry machine progres
Please Log in or Create an account to join the conversation.
Time to create page: 0.357 seconds