Mesa 7I44-7I70/7I71

More
29 Feb 2012 19:56 #18217 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
well that wont work as you dont have a path from
hm2_5i23.0.resolver.02.position to axis.2.motor-pos-fb

what drives net z-pos-fb?


I wish I knew....LOL

Sorry,I am reading the manuals, hoping I see it.

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

More
29 Feb 2012 20:02 #18218 by cncbasher
Replied by cncbasher on topic Re:Mesa 7I44-7I70/7I71
can you post your hal file in full , and i'll take a look

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

More
29 Feb 2012 20:16 #18219 by cncbasher
Replied by cncbasher on topic Re:Mesa 7I44-7I70/7I71
change this :
net motor.02.pos-fb <= hm2_5i23.0.resolver.02.pos
net z-pos-fb => axis.2.motor-pos-fb

to :
net motor.02.pos-fb <= hm2_5i23.0.resolver.02.pos
net motor.02.pos-fb => axis.2.motor-pos-fb

should work but without seeing your hal file , i dont know your pin or signal names

you need to configure the resolver to a signalname and then forward the signal name to the motor
looking at the above should give you a spark of enlightenment

Dave

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

More
29 Feb 2012 20:18 #18220 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
/home/srt/emc2/configs/cinlathe/cinlathe.hal Page 1 of 5
# Generated by PNCconf at Tue Dec 27 13:45:21 2011
# Edited 12/27/12 Jeff Johnson
# overwritten when you run PNCconf again
loadrt trivkins
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[TRAJ]AXES
loadrt probe_parport
loadrt hostmot2
loadrt hm2_pci config="firmware=hm2/5i23/rmsvss6_8.bit num_resolvers=3 num_pwmgens=3 num_3pwmgens=0
num_stepgens=0 "
setp hm2_5i23.0.pwmgen.pwm_frequency 24000
setp hm2_5i23.0.pwmgen.pdm_frequency 6000
setp hm2_5i23.0.watchdog.timeout_ns 10000000
loadrt pid names=pid.x,pid.z,pid.s,0,1,2
loadrt abs names=
loadrt lowpass names=lowpass.0,lowpass.1,lowpass.2
loadrt scale names=scale.0,scale.1,scale.2
loadrt classicladder_rt numPhysInputs=15 numPhysOutputs=15 numS32in=10 numS32out=10 numFloatIn=10
numFloatOut=10
loadrt mux16 names=foincr,soincr
addf hm2_5i23.0.read servo-thread
addf motion-command-handler servo-thread
addf motion-controller servo-thread
addf pid.x.do-pid-calcs servo-thread
addf pid.z.do-pid-calcs servo-thread
addf pid.s.do-pid-calcs servo-thread
addf 0.do-pid-calcs servo-thread
addf 1.do-pid-calcs servo-thread
addf 2.do-pid-calcs servo-thread
addf classicladder.0.refresh servo-thread
addf foincr servo-thread
addf soincr servo-thread
addf hm2_5i23.0.write servo-thread
addf hm2_5i23.0.pet_watchdog servo-thread
# external output signals
# external input signals
#*******************
# AXIS X
#*******************
setp pid.x.Pgain [AXIS_0]P
setp pid.x.Igain [AXIS_0]I
setp pid.x.Dgain [AXIS_0]D
setp pid.x.bias [AXIS_0]BIAS
setp pid.x.FF0 [AXIS_0]FF0
setp pid.x.FF1 [AXIS_0]FF1
setp pid.x.FF2 [AXIS_0]FF2
setp pid.x.deadband [AXIS_0]DEADBAND
setp pid.x.maxoutput [AXIS_0]MAX_OUTPUT
net x-index-enable <=> pid.x.index-enable
net x-enable => pid.x.enable
net x-output => pid.x.output
net x-pos-cmd => pid.x.command
net x-pos-fb => pid.x.feedback
# ---PWM Generator signals/setup---
setp hm2_5i23.0.pwmgen.01.output-type 2
setp hm2_5i23.0.pwmgen.01.scale [AXIS_0]OUTPUT_SCALE
net x-output => hm2_5i23.0.pwmgen.01.value
net x-pos-cmd axis.0.motor-pos-cmd
File: /home/srt/emc2/configs/cinlathe/cinlathe.hal Page 2 of 5
net x-enable axis.0.amp-enable-out => hm2_5i23.0.pwmgen.01.enable
# ---Reslover feedback signals/setup---
setp hm2_5i23.0.resolver.01.scale [AXIS_0]RESOLVER_SCALE
net motor.01.pos-fb <= hm2_5i23.0.resolver.01.position
net x-pos-fb => axis.0.motor-pos-fb
# ---setup home / limit switch signals---
net x-home-sw => axis.0.home-sw-in
net x-neg-limit => axis.0.neg-lim-sw-in
net x-pos-limit => axis.0.pos-lim-sw-in
#*******************
# AXIS Z
#*******************
setp pid.z.Pgain [AXIS_2]P
setp pid.z.Igain [AXIS_2]I
setp pid.z.Dgain [AXIS_2]D
setp pid.z.bias [AXIS_2]BIAS
setp pid.z.FF0 [AXIS_2]FF0
setp pid.z.FF1 [AXIS_2]FF1
setp pid.z.FF2 [AXIS_2]FF2
setp pid.z.deadband [AXIS_2]DEADBAND
setp pid.z.maxoutput [AXIS_2]MAX_OUTPUT
net z-index-enable <=> pid.z.index-enable
net z-enable => pid.z.enable
net z-output => pid.z.output
net z-pos-cmd => pid.z.command
net z-pos-fb => pid.z.feedback
# ---PWM Generator signals/setup---
setp hm2_5i23.0.pwmgen.02.output-type 1
setp hm2_5i23.0.pwmgen.02.scale [AXIS_2]OUTPUT_SCALE
net z-output => hm2_5i23.0.pwmgen.02.value
net z-pos-cmd axis.2.motor-pos-cmd
net z-enable axis.2.amp-enable-out => hm2_5i23.0.pwmgen.02.enable
# ---Resolver feedback signals/setup---
setp hm2_5i23.0.resolver.02.scale [AXIS_2]RESOLVER_SCALE
net motor.02.pos-fb <= hm2_5i23.0.resolver.02.position
net z-pos-fb => axis.2.motor-pos-fb
# ---setup home / limit switch signals---
net z-home-sw => axis.2.home-sw-in
net z-neg-limit => axis.2.neg-lim-sw-in
net z-pos-limit => axis.2.pos-lim-sw-in
#*******************
# SPINDLE S
#*******************
# ---PWM Generator signals/setup---
setp hm2_5i23.0.pwmgen.00.output-type 1
setp hm2_5i23.0.pwmgen.00.scale [SPINDLE_9]OUTPUT_SCALE
File: /home/srt/emc2/configs/cinlathe/cinlathe.hal Page 3 of 5
net spindle-vel-cmd => hm2_5i23.0.pwmgen.00.value
net spindle-enable => hm2_5i23.0.pwmgen.00.enable
# ---Resolver feedback signals/setup---
setp hm2_5i23.0.resolver.00.scale [SPINDLE_9]RESOLVER_SCALE
net spindle-revs <= hm2_5i23.0.resolver.00.position
net spindle-vel-fb <= hm2_5i23.0.resolver.00.velocity
net spindle-index-enable <=> hm2_5i23.0.resolver.00.index-enable
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd <= motion.spindle-speed-out
net spindle-enable <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable
# ---Setup spindle at speed signals---
sets spindle-at-speed true
#******************************
# connect miscellaneous signals
#******************************
# ---HALUI signals---
net joint-select-a halui.joint.0.select
net x-is-homed halui.joint.0.is-homed
net jog-x-pos halui.jog.0.plus
net jog-x-neg halui.jog.0.minus
net jog-x-analog halui.jog.0.analog
net joint-select-c halui.joint.2.select
net z-is-homed halui.joint.2.is-homed
net jog-z-pos halui.jog.2.plus
net jog-z-neg halui.jog.2.minus
net jog-z-analog halui.jog.2.analog
net jog-selected-pos halui.jog.selected.plus
net jog-selected-neg halui.jog.selected.minus
net spindle-manual-cw halui.spindle.forward
net spindle-manual-ccw halui.spindle.reverse
net spindle-manual-stop halui.spindle.stop
net machine-is-on halui.machine.is-on
net jog-speed halui.jog-speed
net MDI-mode halui.mode.is-mdi
# ---coolant signals---
net coolant-mist <= iocontrol.0.coolant-mist
net coolant-flood <= iocontrol.0.coolant-flood
# ---probe signal---
net probe-in => motion.probe-input
# ---jog button signals---
sets jog-speed 1.000000
File: /home/srt/emc2/configs/cinlathe/cinlathe.hal Page 4 of 5
# connect feed overide increments - switches
setp halui.feed-override.count-enable true
setp halui.feed-override.direct-value true
setp halui.feed-override.scale .01
net feedoverride-incr => halui.feed-override.counts
net fo-incr-a => foincr.sel0
net fo-incr-b => foincr.sel1
net fo-incr-c => foincr.sel2
net fo-incr-d => foincr.sel3
net feedoverride-incr <= foincr.out-s
setp foincr.debounce-time 0.200000
setp foincr.use-graycode False
setp foincr.suppress-no-input False
setp foincr.in00 0.000000
setp foincr.in01 5.000000
setp foincr.in02 10.000000
setp foincr.in03 25.000000
setp foincr.in04 50.000000
setp foincr.in05 75.000000
setp foincr.in06 90.000000
setp foincr.in07 100.000000
setp foincr.in08 110.000000
setp foincr.in09 125.000000
setp foincr.in10 140.000000
setp foincr.in11 150.000000
setp foincr.in12 165.000000
setp foincr.in13 180.000000
setp foincr.in14 190.000000
setp foincr.in15 200.000000
# connect spindle overide increments
setp halui.spindle-override.count-enable true
setp halui.spindle-override.direct-value true
setp halui.spindle-override.scale .01
net spindleoverride-incr => halui.spindle-override.counts
net so-incr-a => soincr.sel0
net so-incr-b => soincr.sel1
net so-incr-c => soincr.sel2
net so-incr-d => soincr.sel3
net spindleoverride-incr <= soincr.out-s
setp soincr.debounce-time 0.200000
setp soincr.use-graycode False
setp soincr.suppress-no-input False
setp soincr.in00 0.000000
setp soincr.in01 5.000000
setp soincr.in02 10.000000
setp soincr.in03 25.000000
setp soincr.in04 50.000000
setp soincr.in05 75.000000
setp soincr.in06 90.000000
setp soincr.in07 100.000000
setp soincr.in08 110.000000
setp soincr.in09 125.000000
setp soincr.in10 140.000000
setp soincr.in11 150.000000
setp soincr.in12 165.000000
setp soincr.in13 180.000000
setp soincr.in14 190.000000
setp soincr.in15 200.000000
# ---motion control signals---
net in-position <= motion.in-position
net machine-is-enabled <= motion.motion-enabled
File: /home/srt/emc2/configs/cinlathe/cinlathe.hal Page 5 of 5
# ---digital in / out signals---
# ---estop signals---
net estop-out <= iocontrol.0.user-enable-out
net estop-out => iocontrol.0.emc-enable-in
# ---toolchange signals for custom tool changer---
net tool-number <= iocontrol.0.tool-prep-number
net tool-change-request <= iocontrol.0.tool-change
net tool-change-confirmed => iocontrol.0.tool-changed
net tool-prepare-request <= iocontrol.0.tool-prepare
net tool-prepare-confirmed => iocontrol.0.tool-prepared
# Load Classicladder without GUI (can reload LADDER GUI in AXIS GUI
loadusr classicladder --nogui custom.clp

This is it......I probably new more about it when I was actually trying to get it just to boot.

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

More
29 Feb 2012 20:36 - 29 Feb 2012 20:40 #18221 by cncbasher
Replied by cncbasher on topic Re:Mesa 7I44-7I70/7I71
change this :
net z-pos-fb <= hm2_5i23.0.resolver.02.pos
net z-pos-fb => axis.2.motor-pos-fb

& change z approprate to the axis x y or z etc and the resolver number 00 , 01 or 02
Last edit: 29 Feb 2012 20:40 by cncbasher.

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

More
29 Feb 2012 21:05 #18222 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
Exactly what line connects it to the axis readout? I was wondering if the name of my axis screen has anything to do with this not working.

axis-lathe.ngc is my axis file. Could this be the problem?

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

More
29 Feb 2012 21:31 #18224 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
Thank you for the help I now have the Z reporting to the axis screen. Now Could you please give me some guidance on the spindle.

# ---Resolver feedback signals/setup---
setp hm2_5i23.0.resolver.00.scale [SPINDLE_9]RESOLVER_SCALE
net spindle-revs <= hm2_5i23.0.resolver.00.position
net spindle-vel-fb <= hm2_5i23.0.resolver.00.velocity
net spindle-index-enable <=> hm2_5i23.0.resolver.00.index-enable

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

More
29 Feb 2012 22:16 #18226 by cncbasher
Replied by cncbasher on topic Re:Mesa 7I44-7I70/7I71
#*******************
# SPINDLE S
#*******************
# ---PWM Generator signals/setup---
setp hm2_5i23.0.pwmgen.00.output-type 1
setp hm2_5i23.0.pwmgen.00.scale [SPINDLE_9]OUTPUT_SCALE
File: /home/srt/emc2/configs/cinlathe/cinlathe.hal Page 3 of 5
net spindle-vel-cmd => hm2_5i23.0.pwmgen.00.value
net spindle-enable => hm2_5i23.0.pwmgen.00.enable
# ---Resolver feedback signals/setup---

setp hm2_5i23.0.resolver.00.velocity-scale 1 # motor speed in RPS

setp hm2_5i23.0.resolver.00.scale [SPINDLE_9]RESOLVER_SCALE

net s-pos-rawcounts <= hm2_5i23.0.resolver.00.rawcounts

net spindle-revs <= hm2_5i23.0.resolver.00.position
net spindle-vel-fb <= hm2_5i23.0.resolver.00.velocity
net spindle-index-enable <=> hm2_5i23.0.resolver.00.index-enable
# ---setup spindle control signals---
net spindle-vel-cmd-rps <= motion.spindle-speed-out-rps
net spindle-vel-cmd <= motion.spindle-speed-out
net spindle-enable <= motion.spindle-on
net spindle-cw <= motion.spindle-forward
net spindle-ccw <= motion.spindle-reverse
net spindle-brake <= motion.spindle-brake
net spindle-revs => motion.spindle-revs
net spindle-at-speed => motion.spindle-at-speed
net spindle-vel-fb => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable
# ---Setup spindle at speed signals---
sets spindle-at-speed true

try the above mods

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

More
01 Mar 2012 00:54 #18227 by PCW
Replied by PCW on topic Re:Mesa 7I44-7I70/7I71
One minor nit, pwm output type must be 2 for 7I48 and 7I49

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

More
01 Mar 2012 20:21 #18240 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
This is the custom_postgui.hal that I am invoking

net spindle-rpm-filtered => pyvcp.spindle-speed
net spindle-at-speed => pyvcp.spindle-at-speed

I have made the suggested changes that you showed me and it still will not report to the axis Lathe screen. I think it may be in the above script that I have to make the changes. Am I getting close?

This is the current sinndle resolver section

# ---Resolver feedback signals/setup---
setp hm2_5i23.0.resolver.00.velocity-scale 1 # motor speed in RPS
setp hm2_5i23.0.resolver.00.scale [SPINDLE_9]RESOLVER_SCALE

net s-pos-rawcounts <= hm2_5i23.0.resolver.00.rawcounts

net spindle-revs <= hm2_5i23.0.resolver.00.position
net spindle-vel-fb <= hm2_5i23.0.resolver.00.velocity
net spindle-index-enable <=> hm2_5i23.0.resolver.00.index-enable

With your help I did get the x and z axis to report to axis....Thanks for looking and helping

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

Moderators: PCWjmelson
Time to create page: 0.099 seconds
Powered by Kunena Forum