Making progress.  Dedicated Ethernet at the moment.  
So far I've been able to see the charge-pump signal (stepper #04) show up on 
DB25-17.  Machine Enabled on DB-25-1.  And all DB-25 pins for the 4 motors show 
step pulses when they are jogged.  Limit switches appear to work.

Haven't been able to get the PWM for the spindle working but that doesn’t 
really matter at the moment because the Spindle AC Servo I bought takes 
step/dir but not PWM.

Instead I decided to add another step generator.  Using pncconf it shows up as 
StepGen #5 on pins 2,3 of the second parallel port named P1.  The problem is 
that the HAL file contains an axis.9 and as a result now LinuxCNC won't run.

./Stretch-MESA.hal:306: Pin 'axis.9.motor-pos-cmd' does not exist

Included with this posting is that error and the fragment of the HAL file that 
defines all the spindle stuff.

Everything for the stepgen.05 is fine until:

# ---closedloop stepper signals---

net s-pos-cmd    <= axis.9.motor-pos-cmd
net s-vel-cmd    <= axis.9.joint-vel-cmd
net s-output     => hm2_7i92.0.stepgen.05.velocity-cmd
net s-pos-fb     <= hm2_7i92.0.stepgen.05.position-fb
net s-pos-fb     => axis.9.motor-pos-fb
net s-enable     <= axis.9.amp-enable-out
net s-enable     => hm2_7i92.0.stepgen.05.enable

As the hal and ini files were generated by pncconf what could cause this?
The axis steppers in the ini file are all defined as [AXIS_n] and the spindle 
as [SPINDLE_9] so I can see how an axis.9 might show up but no other definition 
anywhere else.
Must be really simple but not obvious.

Any ideas?
Thanks
John

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/lib/linuxcnc/modules
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.7.14
Machine configuration directory is '/home/john/linuxcnc/configs/Stretch-MESA'
Machine configuration file is 'Stretch-MESA.ini'
INIFILE=/home/john/linuxcnc/configs/Stretch-MESA/Stretch-MESA.ini
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(REL): ./Stretch-MESA.hal
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 192.168.1.121: Hardware address: 00:60:1b:12:06:0f
hm2_eth: discovered 7I92
hm2/hm2_7i92.0: 34 I/O Pins used:
hm2/hm2_7i92.0:     IO Pin 000 (P2-01): IOPort
hm2/hm2_7i92.0:     IO Pin 001 (P2-14): IOPort
hm2/hm2_7i92.0:     IO Pin 002 (P2-02): StepGen #0, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 003 (P2-15): IOPort
hm2/hm2_7i92.0:     IO Pin 004 (P2-03): StepGen #0, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 005 (P2-16): IOPort
hm2/hm2_7i92.0:     IO Pin 006 (P2-04): StepGen #1, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 007 (P2-17): StepGen #4, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 008 (P2-05): StepGen #1, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 009 (P2-06): StepGen #2, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 010 (P2-07): StepGen #2, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 011 (P2-08): StepGen #3, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 012 (P2-09): StepGen #3, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 013 (P2-10): IOPort
hm2/hm2_7i92.0:     IO Pin 014 (P2-11): IOPort
hm2/hm2_7i92.0:     IO Pin 015 (P2-12): IOPort
hm2/hm2_7i92.0:     IO Pin 016 (P2-13): IOPort
hm2/hm2_7i92.0:     IO Pin 017 (P1-01): IOPort
hm2/hm2_7i92.0:     IO Pin 018 (P1-14): IOPort
hm2/hm2_7i92.0:     IO Pin 019 (P1-02): StepGen #5, pin Step (Output)
hm2/hm2_7i92.0:     IO Pin 020 (P1-15): IOPort
hm2/hm2_7i92.0:     IO Pin 021 (P1-03): StepGen #5, pin Direction (Output)
hm2/hm2_7i92.0:     IO Pin 022 (P1-16): IOPort
hm2/hm2_7i92.0:     IO Pin 023 (P1-04): IOPort
hm2/hm2_7i92.0:     IO Pin 024 (P1-17): IOPort
hm2/hm2_7i92.0:     IO Pin 025 (P1-05): IOPort
hm2/hm2_7i92.0:     IO Pin 026 (P1-06): IOPort
hm2/hm2_7i92.0:     IO Pin 027 (P1-07): IOPort
hm2/hm2_7i92.0:     IO Pin 028 (P1-08): IOPort
hm2/hm2_7i92.0:     IO Pin 029 (P1-09): IOPort
hm2/hm2_7i92.0:     IO Pin 030 (P1-10): IOPort
hm2/hm2_7i92.0:     IO Pin 031 (P1-11): IOPort
hm2/hm2_7i92.0:     IO Pin 032 (P1-12): IOPort
hm2/hm2_7i92.0:     IO Pin 033 (P1-13): IOPort
hm2/hm2_7i92.0: registered
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=3603
hm2_eth: HostMot2 ethernet driver unloaded
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
Note: Using POSIX realtime
./Stretch-MESA.hal:306: Pin 'axis.9.motor-pos-cmd' does not exist








#*******************
#  SPINDLE S
#*******************

setp   pid.s.Pgain     [SPINDLE_9]P
setp   pid.s.Igain     [SPINDLE_9]I
setp   pid.s.Dgain     [SPINDLE_9]D
setp   pid.s.bias      [SPINDLE_9]BIAS
setp   pid.s.FF0       [SPINDLE_9]FF0
setp   pid.s.FF1       [SPINDLE_9]FF1
setp   pid.s.FF2       [SPINDLE_9]FF2
setp   pid.s.deadband  [SPINDLE_9]DEADBAND
setp   pid.s.maxoutput [SPINDLE_9]MAX_OUTPUT
setp   pid.s.error-previous-target true
setp   pid.s.maxerror .0005

net spindle-index-enable  <=> pid.s.index-enable
net spindle-enable        =>  pid.s.enable
net spindle-vel-cmd-rpm     => pid.s.command
net spindle-vel-fb-rpm      => pid.s.feedback
net spindle-output        <=  pid.s.output

# Step Gen signals/setup

setp   hm2_7i92.0.stepgen.05.dirsetup        [SPINDLE_9]DIRSETUP
setp   hm2_7i92.0.stepgen.05.dirhold         [SPINDLE_9]DIRHOLD
setp   hm2_7i92.0.stepgen.05.steplen         [SPINDLE_9]STEPLEN
setp   hm2_7i92.0.stepgen.05.stepspace       [SPINDLE_9]STEPSPACE
setp   hm2_7i92.0.stepgen.05.position-scale  [SPINDLE_9]STEP_SCALE
setp   hm2_7i92.0.stepgen.05.step_type        0
setp   hm2_7i92.0.stepgen.05.control-type     1
setp   hm2_7i92.0.stepgen.05.maxaccel         [SPINDLE_9]MAX_ACCELERATION
setp   hm2_7i92.0.stepgen.05.maxvel           [SPINDLE_9]MAX_VELOCITY

net spindle-enable          =>  hm2_7i92.0.stepgen.05.enable
net spindle-vel-cmd-rps     =>  hm2_7i92.0.stepgen.05.velocity-cmd
net spindle-vel-fb-rps         <=  hm2_7i92.0.stepgen.05.velocity-fb

# ---closedloop stepper signals---

net s-pos-cmd    <= axis.9.motor-pos-cmd
net s-vel-cmd    <= axis.9.joint-vel-cmd
net s-output     => hm2_7i92.0.stepgen.05.velocity-cmd
net s-pos-fb     <= hm2_7i92.0.stepgen.05.position-fb
net s-pos-fb     => axis.9.motor-pos-fb
net s-enable     <= axis.9.amp-enable-out
net s-enable     => hm2_7i92.0.stepgen.05.enable

# ---setup spindle control signals---

net spindle-vel-cmd-rps        <=  motion.spindle-speed-out-rps
net spindle-vel-cmd-rps-abs    <=  motion.spindle-speed-out-rps-abs
net spindle-vel-cmd-rpm        <=  motion.spindle-speed-out
net spindle-vel-cmd-rpm-abs    <=  motion.spindle-speed-out-abs
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-rps         =>  motion.spindle-speed-in
net spindle-index-enable      <=>  motion.spindle-index-enable

# ---Setup spindle at speed signals---

sets spindle-at-speed true

_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to