7i92-7i77-7i76 only getting 3 encoders
- scubawarm
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 96
- Thank you received: 2
05 Sep 2018 21:46 #117131
by scubawarm
7i92-7i77-7i76 only getting 3 encoders was created by scubawarm
I had a running HAL and INI until I started to add the X2 to the mix.
Now I get this error...
Debug file information:
Note: Using POSIX realtime
./esab_mesa.hal:244: Pin 'joint.3.motor-pos-cmd' does not exist
26409
As you can see from the debug it appears I'm only getting three encoders which would explain the error.
I did verify I have the 7i92_7i77_7i76D firmware installed and this is what starts my HAL
loadrt hm2_eth board_ip="10.100.100.121" config="firmware=hm2/7i92/7i77_7I76D.BIT num_encoders=6 num_pwmgens=0 num_stepgens=5 sserial_port_0=030000"
setp hm2_7i92.0.watchdog.timeout_ns 5000000
loadrt pid names=pid.x,pid.x2,pid.y,pid.z,pid.s
Pulling my hair out any way the firmware is in error?
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.8.0~pre1
Machine configuration directory is '/home/superman/linuxcnc/configs/esab_mesa'
Machine configuration file is 'esab_mesa.ini'
INIFILE=/home/superman/linuxcnc/configs/esab_mesa/esab_mesa.ini
VERSION=1.0
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=XYZ
KINEMATICS=trivkins coordinates=XYZ
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): ./esab_mesa.hal
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=26409
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.100.100.121: Hardware address: 00:60:1b:13:00:9d
hm2_eth: discovered 7I92
hm2/hm2_7i92.0: Smart Serial Firmware Version 43
Board hm2_7i92.0.7i77.0.0 Hardware Mode 0 = standard
Board hm2_7i92.0.7i77.0.0 Software Mode 0 = input_output
Board hm2_7i92.0.7i77.0.0 Software Mode 1 = io_analog
Board hm2_7i92.0.7i77.0.0 Software Mode 2 = io_analog_fieldvoltage
Board hm2_7i92.0.7i77.0.0 Software Mode 3 = io_encoder_analog_fieldvoltage
Board hm2_7i92.0.7i77.0.1 Hardware Mode 0 = standard
Board hm2_7i92.0.7i77.0.1 Software Mode 0 = analogout_enables
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): IOPort
hm2/hm2_7i92.0: IO Pin 003 (P2-15): Smart Serial Interface #0, pin TxData1 (Output)
hm2/hm2_7i92.0: IO Pin 004 (P2-03): Smart Serial Interface #0, pin RxData1 (Input)
hm2/hm2_7i92.0: IO Pin 005 (P2-16): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_7i92.0: IO Pin 006 (P2-04): Smart Serial Interface #0, pin RxData0 (Input)
hm2/hm2_7i92.0: IO Pin 007 (P2-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i92.0: IO Pin 008 (P2-05): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i92.0: IO Pin 009 (P2-06): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i92.0: IO Pin 010 (P2-07): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i92.0: IO Pin 011 (P2-08): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i92.0: IO Pin 012 (P2-09): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i92.0: IO Pin 013 (P2-10): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i92.0: IO Pin 014 (P2-11): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i92.0: IO Pin 015 (P2-12): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i92.0: IO Pin 016 (P2-13): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i92.0: IO Pin 017 (P1-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 018 (P1-14): StepGen #0, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 019 (P1-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 020 (P1-15): StepGen #1, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 021 (P1-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 022 (P1-16): StepGen #2, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 023 (P1-04): StepGen #3, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 024 (P1-17): StepGen #3, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 025 (P1-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 026 (P1-06): StepGen #4, pin Step (Output)
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
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
./esab_mesa.hal:244: Pin 'joint.3.motor-pos-cmd' does not exist
26409
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Now I get this error...
Debug file information:
Note: Using POSIX realtime
./esab_mesa.hal:244: Pin 'joint.3.motor-pos-cmd' does not exist
26409
As you can see from the debug it appears I'm only getting three encoders which would explain the error.
I did verify I have the 7i92_7i77_7i76D firmware installed and this is what starts my HAL
loadrt hm2_eth board_ip="10.100.100.121" config="firmware=hm2/7i92/7i77_7I76D.BIT num_encoders=6 num_pwmgens=0 num_stepgens=5 sserial_port_0=030000"
setp hm2_7i92.0.watchdog.timeout_ns 5000000
loadrt pid names=pid.x,pid.x2,pid.y,pid.z,pid.s
Pulling my hair out any way the firmware is in error?
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.8.0~pre1
Machine configuration directory is '/home/superman/linuxcnc/configs/esab_mesa'
Machine configuration file is 'esab_mesa.ini'
INIFILE=/home/superman/linuxcnc/configs/esab_mesa/esab_mesa.ini
VERSION=1.0
PARAMETER_FILE=linuxcnc.var
TASK=milltask
HALUI=halui
DISPLAY=axis
COORDINATES=XYZ
KINEMATICS=trivkins coordinates=XYZ
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): ./esab_mesa.hal
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
Killing task linuxcncsvr, PID=26409
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: 10.100.100.121: Hardware address: 00:60:1b:13:00:9d
hm2_eth: discovered 7I92
hm2/hm2_7i92.0: Smart Serial Firmware Version 43
Board hm2_7i92.0.7i77.0.0 Hardware Mode 0 = standard
Board hm2_7i92.0.7i77.0.0 Software Mode 0 = input_output
Board hm2_7i92.0.7i77.0.0 Software Mode 1 = io_analog
Board hm2_7i92.0.7i77.0.0 Software Mode 2 = io_analog_fieldvoltage
Board hm2_7i92.0.7i77.0.0 Software Mode 3 = io_encoder_analog_fieldvoltage
Board hm2_7i92.0.7i77.0.1 Hardware Mode 0 = standard
Board hm2_7i92.0.7i77.0.1 Software Mode 0 = analogout_enables
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): IOPort
hm2/hm2_7i92.0: IO Pin 003 (P2-15): Smart Serial Interface #0, pin TxData1 (Output)
hm2/hm2_7i92.0: IO Pin 004 (P2-03): Smart Serial Interface #0, pin RxData1 (Input)
hm2/hm2_7i92.0: IO Pin 005 (P2-16): Smart Serial Interface #0, pin TxData0 (Output)
hm2/hm2_7i92.0: IO Pin 006 (P2-04): Smart Serial Interface #0, pin RxData0 (Input)
hm2/hm2_7i92.0: IO Pin 007 (P2-17): Muxed Encoder Select #0, pin Mux Select 0 (Output)
hm2/hm2_7i92.0: IO Pin 008 (P2-05): Muxed Encoder #0, pin Muxed A (Input)
hm2/hm2_7i92.0: IO Pin 009 (P2-06): Muxed Encoder #0, pin Muxed B (Input)
hm2/hm2_7i92.0: IO Pin 010 (P2-07): Muxed Encoder #0, pin Muxed Index (Input)
hm2/hm2_7i92.0: IO Pin 011 (P2-08): Muxed Encoder #1, pin Muxed A (Input)
hm2/hm2_7i92.0: IO Pin 012 (P2-09): Muxed Encoder #1, pin Muxed B (Input)
hm2/hm2_7i92.0: IO Pin 013 (P2-10): Muxed Encoder #1, pin Muxed Index (Input)
hm2/hm2_7i92.0: IO Pin 014 (P2-11): Muxed Encoder #2, pin Muxed A (Input)
hm2/hm2_7i92.0: IO Pin 015 (P2-12): Muxed Encoder #2, pin Muxed B (Input)
hm2/hm2_7i92.0: IO Pin 016 (P2-13): Muxed Encoder #2, pin Muxed Index (Input)
hm2/hm2_7i92.0: IO Pin 017 (P1-01): StepGen #0, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 018 (P1-14): StepGen #0, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 019 (P1-02): StepGen #1, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 020 (P1-15): StepGen #1, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 021 (P1-03): StepGen #2, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 022 (P1-16): StepGen #2, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 023 (P1-04): StepGen #3, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 024 (P1-17): StepGen #3, pin Step (Output)
hm2/hm2_7i92.0: IO Pin 025 (P1-05): StepGen #4, pin Direction (Output)
hm2/hm2_7i92.0: IO Pin 026 (P1-06): StepGen #4, pin Step (Output)
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
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
./esab_mesa.hal:244: Pin 'joint.3.motor-pos-cmd' does not exist
26409
PID TTY STAT TIME COMMAND
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17905
- Thank you received: 4774
05 Sep 2018 22:26 #117133
by PCW
Replied by PCW on topic 7i92-7i77-7i76 only getting 3 encoders
This is not an encoder issue but a kinematics issue:
COORDINATES=XYZ
KINEMATICS=trivkins coordinates=XYZ
COORDINATES=XYZ
KINEMATICS=trivkins coordinates=XYZ
The following user(s) said Thank You: scubawarm
Please Log in or Create an account to join the conversation.
- scubawarm
- Topic Author
- Offline
- Premium Member
Less
More
- Posts: 96
- Thank you received: 2
05 Sep 2018 23:18 #117135
by scubawarm
Replied by scubawarm on topic 7i92-7i77-7i76 only getting 3 encoders
Yes... This simple change got it running again...
#loadrt [KINS]KINEMATICS (commented out replaced with:)
loadrt trivkins
NOTE: Still confused a little as to why it wouldn't be XXYZ for the joints, but as long it works.
#loadrt [KINS]KINEMATICS (commented out replaced with:)
loadrt trivkins
NOTE: Still confused a little as to why it wouldn't be XXYZ for the joints, but as long it works.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17905
- Thank you received: 4774
05 Sep 2018 23:53 - 06 Sep 2018 00:12 #117136
by PCW
Replied by PCW on topic 7i92-7i77-7i76 only getting 3 encoders
XXYZ seems right for a dual joint on X axis gantry. Did you try XXYZ?
The error listed XYZ
forum.linuxcnc.org/49-basic-configuratio...-linuxcnc-2-8-master
may be helpful
The error listed XYZ
forum.linuxcnc.org/49-basic-configuratio...-linuxcnc-2-8-master
may be helpful
Last edit: 06 Sep 2018 00:12 by PCW.
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.060 seconds