Mesa 7I44-7I70/7I71

More
02 Mar 2012 16:45 #18283 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
Did this one come through? I think its when I try and open it in windows that it does not look right. Because of the editor I believe

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

More
02 Mar 2012 16:53 #18284 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
# Generated by PNCconf at Tue Dec 27 13:45:21 2011
# If you make changes to this file, they will be
# overwritten when you run PNCconf again
[EMC]
MACHINE = cinlathe
DEBUG = 0
[DISPLAY]
DISPLAY = axis
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
MAX_FEED_OVERRIDE = 2.000000
MAX_SPINDLE_OVERRIDE = 1.500000
MIN_SPINDLE_OVERRIDE = 0.500000
INTRO_GRAPHIC = emc2.gif
INTRO_TIME = 5
PROGRAM_PREFIX = /home/srt/emc2/nc_files
PYVCP = pyvcp-panel.xml
INCREMENTS = .1in .05in .01in .005in .001in .0005in .0001in
LATHE = 1
POSITION_OFFSET = RELATIVE
POSITION_FEEDBACK = ACTUAL
DEFAULT_LINEAR_VELOCITY = 0.250000
MAX_LINEAR_VELOCITY = 1.000000
MIN_LINEAR_VELOCITY = 0.010000
DEFAULT_ANGULAR_VELOCITY = 0.250000
MAX_ANGULAR_VELOCITY = 1.000000
MIN_ANGULAR_VELOCITY = 0.010000
EDITOR = gedit
GEOMETRY = xyz
[FILTER]
PROGRAM_EXTENSION = .png,.gif,.jpg Greyscale Depth Image
PROGRAM_EXTENSION = .py Python Script
png = image-to-gcode
gif = image-to-gcode
jpg = image-to-gcode
py = python
txt = text
[TASK]
TASK = milltask
CYCLE_TIME = 0.010
[RS274NGC]
PARAMETER_FILE = emc.var
[EMCMOT]
EMCMOT = motmod
COMM_TIMEOUT = 1.0
COMM_WAIT = 0.010
SERVO_PERIOD = 1000000
[HOSTMOT2]
# **** This is for info only ****
# DRIVER0=hm2_pci
# BOARD0=5i23
[HAL]
HALUI = halui
HALFILE = cinlathe.hal
HALFILE = custom.hal
POSTGUI_HALFILE = postgui_call_list.hal
SHUTDOWN = shutdown.hal
[HALUI]
[TRAJ]
AXES = 3
COORDINATES = X Z
LINEAR_UNITS = inch
ANGULAR_UNITS = degree
CYCLE_TIME = 0.010
DEFAULT_VELOCITY = 0.17
MAX_LINEAR_VELOCITY = 1.67
[EMCIO]
EMCIO = io
CYCLE_TIME = 0.100
TOOL_TABLE = tool.tbl
TOOLCHANGE_WITH_SPINDLE_ON = 1
#********************
# Axis X
#********************
[AXIS_0]
TYPE = LINEAR
HOME = 5.25
FERROR = 0.005
MIN_FERROR = 0.0005
MAX_VELOCITY = 300
MAX_ACCELERATION = 5
P = 1.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
RESOLVER_SCALE = .2
OUTPUT_SCALE = 10.0
MAX_OUTPUT = 10.0
MIN_LIMIT = -8.5
MAX_LIMIT = 5.251
HOME_OFFSET = 5.25
#********************
# Axis Z
#********************
[AXIS_2]
TYPE = LINEAR
HOME = 22.0
FERROR = 0.005
MIN_FERROR = 0.0005
MAX_VELOCITY = 300
MAX_ACCELERATION = 5
P = 1.0
I = 0.0
D = 0.0
FF0 = 0.0
FF1 = 0.0
FF2 = 0.0
BIAS = 0.0
DEADBAND = 0.0
RESOLVER_SCALE = .2
OUTPUT_SCALE = 10.0
MAX_OUTPUT = 10.0
MIN_LIMIT = -6.5
MAX_LIMIT = 22.001
HOME_OFFSET = 22.0
#********************
# Spindle
#********************
[SPINDLE_9]
MAX_VELOCITY = 3000
MAX_ACCELERATION = 50
RESOLVER_SCALE = 1
OUTPUT_SCALE = 10.0
MAX_OUTPUT = 10.0

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

More
02 Mar 2012 16:58 #18285 by PCW
Replied by PCW on topic Re:Mesa 7I44-7I70/7I71
in the hal file you have a broken wire....

net s-vel-fb <= hm2_5i23.0.resolver.00.velocity
is there but s-vel-fb connects nowhere else
(that the only place its in the file)

the net statement make a wire labeled s-vel-fb in this case
but this wire needs to connect to some Axis or PYVCP display device

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

More
02 Mar 2012 16:58 #18286 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
# 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
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 x-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 2
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 z-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 2
setp hm2_5i23.0.pwmgen.00.scale [SPINDLE_9]OUTPUT_SCALE
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 <= hm2_5i23.0.resolver.00.rawcounts
net spindle-revs <= hm2_5i23.0.resolver.00.position
net s-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
#setp hm2_5i23.0.resolver.00.velocity-scale 60
#setp hm2_5i23.0.resolver.00.lowpass.spindle.velocity 0.100000
#net spindle-vel-fb lowpass.spindle.in
#net spindle-fb-filtered-rps lowpass.spindle.out abs.spindle.in
#net spindle-fb-filtered-abs-rps abs.spindle.out scale.spindle.in
#net spindle-fb-filtered-abs-rpm scale.spindle.out

#******************************
# 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
# 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
# ---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

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

More
02 Mar 2012 17:01 #18287 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
Ok.....I tried to connect that and the spindle RPM on the pyvcp side and it did error out. S32 float error, is that why I need the filter?

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

More
02 Mar 2012 17:02 #18288 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
Why won't it show up in the velocity window of Axis?

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

More
02 Mar 2012 17:03 - 02 Mar 2012 17:07 #18289 by PCW
Replied by PCW on topic Re:Mesa 7I44-7I70/7I71
because its not connected

I dont mean to be short, just dont know the Axis
pin that drives the RPM display off hand
Last edit: 02 Mar 2012 17:07 by PCW.

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

More
02 Mar 2012 17:13 #18290 by SRT
Replied by SRT on topic Re:Mesa 7I44-7I70/7I71
Sorry, I am a difficult student....I know.

Where do I look for it? The name of the Axis pin is exactly what I have been looking for. I started with PNCconf and started modifying so I probably just missed a whole bunch of steps that I now need. The Axis file is probably in root somewhere?

Sorry to try you guys so much I have really been worried about wearing out my welcome here.

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

More
02 Mar 2012 17:54 #18291 by BigJohnT
Replied by BigJohnT on topic Re:Mesa 7I44-7I70/7I71
When you start your config look at Machine > Show HAL Configuration in Pins > Motion for motion.spindle-speed-out that pin will put the rpm I believe of your spindle... you would have to connect this to your meter.

John

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

More
02 Mar 2012 18:23 #18292 by cncbasher
Replied by cncbasher on topic Re:Mesa 7I44-7I70/7I71
attached are the additional files needed to show the spindle screen
see the readme for the additional line needed to be added to the display section

File Attachment:

File Name: spindle_screen.gz
File Size:1 KB
Attachments:

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

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