Meas 7i92M with DIY stepper driver board - PnPConfig setup
- hwe
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
23 Dec 2024 20:11 - 23 Dec 2024 20:38 #317223
by hwe
Meas 7i92M with DIY stepper driver board - PnPConfig setup was created by hwe
Hi,
I had the setup running before I reinstalled my laptop with the latest LinuxCNC version - stupid me didn't backup the "ini" file for LinuxCNC and I need help to recreate it.
I do have a 7i92M (IP 10.10.10.10) and use a self-made stepper driver board at the P2 connector, with the following connections:
Parallelport-Pin / IO-7i92M / Function:
1 / IO-0 / X-DIR
14 / IO-1 / X-Step
2 / IO-2 / Y-DIR
13 / IO-3 / Y-Step
3 / IO-4 / Z-Dir
16 / IO-5 / Z-Step
I ran LinuxCNC-PnPConfig, but did not find any proper board/setup, that allows me to select this particular connection/config.
I remember previously it was straightforward to configure the individual pins for a 7i92M board - now I am struggling.
I am not sure which firmware is on the 7i92M board - but I assume it is the default, since I did not change it.
Any help is appreciated !
Thx
[Edit:] I found my previous discussion on the same topic in this forum from 3 years ago, but it does not help me much, since I cannot select and assign DIR/Step signals to 7i92M pins: forum.linuxcnc.org/39-pncconf/43847-7i92...and-pncconf?start=10
I had the setup running before I reinstalled my laptop with the latest LinuxCNC version - stupid me didn't backup the "ini" file for LinuxCNC and I need help to recreate it.
I do have a 7i92M (IP 10.10.10.10) and use a self-made stepper driver board at the P2 connector, with the following connections:
Parallelport-Pin / IO-7i92M / Function:
1 / IO-0 / X-DIR
14 / IO-1 / X-Step
2 / IO-2 / Y-DIR
13 / IO-3 / Y-Step
3 / IO-4 / Z-Dir
16 / IO-5 / Z-Step
I ran LinuxCNC-PnPConfig, but did not find any proper board/setup, that allows me to select this particular connection/config.
I remember previously it was straightforward to configure the individual pins for a 7i92M board - now I am struggling.
I am not sure which firmware is on the 7i92M board - but I assume it is the default, since I did not change it.
Any help is appreciated !
Thx
[Edit:] I found my previous discussion on the same topic in this forum from 3 years ago, but it does not help me much, since I cannot select and assign DIR/Step signals to 7i92M pins: forum.linuxcnc.org/39-pncconf/43847-7i92...and-pncconf?start=10
Last edit: 23 Dec 2024 20:38 by hwe.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17994
- Thank you received: 4838
23 Dec 2024 20:35 #317225
by PCW
Replied by PCW on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
The default 7I92 firmware is 7i92_7i76x2D.bit, and that matches your pinout
You should be able to to use pncconf with "7i92-Internal Data" and
"7i76x2 with one 7i76" Then disable the sserial ports and encoder
(If you don't use one) and unused stepgens to regain control of
their GPIO pins
You should be able to to use pncconf with "7i92-Internal Data" and
"7i76x2 with one 7i76" Then disable the sserial ports and encoder
(If you don't use one) and unused stepgens to regain control of
their GPIO pins
Please Log in or Create an account to join the conversation.
- hwe
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
23 Dec 2024 20:46 - 23 Dec 2024 21:03 #317226
by hwe
Replied by hwe on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
I did as you recommended, but in the PnPconfig under the "P2" configuration tab I can select for Pin0: "X-Achse StepGen" assuming this is creates the stepper pulses - but how can I select the "DIR" function for Pin14 ???
Do I need to set "Anzahl der Schrittmotoren" (number of stepper motors) to 0 as well ?
Since I am using L297 drivers.
[Edit:] OMG, no I understand the pinout display when selecting 3 stepper motors in the config. This is really not easy to read, when selecting the stepper: the "0" covers 2 pins (IO0 and IO1) with ( I assume since it is not explicitly given) the IO0-pin connected to X-Dir (when selecting X-axis) and IO1-pin connected to X-Step.
I took a while until I understood it.
Do I need to set "Anzahl der Schrittmotoren" (number of stepper motors) to 0 as well ?
Since I am using L297 drivers.
[Edit:] OMG, no I understand the pinout display when selecting 3 stepper motors in the config. This is really not easy to read, when selecting the stepper: the "0" covers 2 pins (IO0 and IO1) with ( I assume since it is not explicitly given) the IO0-pin connected to X-Dir (when selecting X-axis) and IO1-pin connected to X-Step.
I took a while until I understood it.
Last edit: 23 Dec 2024 21:03 by hwe.
Please Log in or Create an account to join the conversation.
- hwe
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
23 Dec 2024 21:06 - 23 Dec 2024 21:07 #317229
by hwe
Replied by hwe on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
I do have another question.
I found old parallel-port config files and want to extract the stepper scales and parameters for the 3 axis.
For which parameters do I have to search in this old config files ?
Is it in the *.ini or in the *.hal file ?
I find this:
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 20.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 228.571428571
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -500.0
MAX_LIMIT = 500.0
HOME_OFFSET = 0.0
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 20.0
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 228.571428571
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -500.0
MAX_LIMIT = 500.0
HOME_OFFSET = 0.0
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 20.0
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 355.555555556
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
I found old parallel-port config files and want to extract the stepper scales and parameters for the 3 axis.
For which parameters do I have to search in this old config files ?
Is it in the *.ini or in the *.hal file ?
I find this:
[AXIS_0]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 20.0
MAX_ACCELERATION = 30.0
STEPGEN_MAXACCEL = 37.5
SCALE = 228.571428571
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -500.0
MAX_LIMIT = 500.0
HOME_OFFSET = 0.0
[AXIS_1]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 20.0
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 228.571428571
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -500.0
MAX_LIMIT = 500.0
HOME_OFFSET = 0.0
[AXIS_2]
TYPE = LINEAR
HOME = 0.0
MAX_VELOCITY = 20.0
MAX_ACCELERATION = 10.0
STEPGEN_MAXACCEL = 12.5
SCALE = 355.555555556
FERROR = 1
MIN_FERROR = .25
MIN_LIMIT = -100.0
MAX_LIMIT = 100.0
HOME_OFFSET = 0.0
Last edit: 23 Dec 2024 21:07 by hwe.
Please Log in or Create an account to join the conversation.
- hwe
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
23 Dec 2024 21:17 #317230
by hwe
Replied by hwe on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
Now facing an error when starting this config in LinuxCNC - any idea ?
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/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.3
Machine configuration directory is '/home/hwe/linuxcnc/configs/by_interface.mesa.hm2-stepper'
Machine configuration file is '7i92M_hwe.ini'
INIFILE=/home/hwe/linuxcnc/configs/by_interface.mesa.hm2-stepper/7i92M_hwe.ini
VERSION=1.1
PARAMETER_FILE=hm2-stepper.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./hm2-stepper.hal
Shutting down and cleaning up LinuxCNC...
hm2: loading Mesa HostMot2 driver version 0.15
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
Linux parallel port 0 not found
hm2_7i90: rtapi_app_main: No such file or directory (-2)
./hm2-stepper.hal:38: waitpid failed /usr/bin/rtapi_app hm2_7i90
./hm2-stepper.hal:38: /usr/bin/rtapi_app exited without becoming ready
./hm2-stepper.hal:38: insmod for hm2_7i90 failed, returned -1
6020
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
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/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.3
Machine configuration directory is '/home/hwe/linuxcnc/configs/by_interface.mesa.hm2-stepper'
Machine configuration file is '7i92M_hwe.ini'
INIFILE=/home/hwe/linuxcnc/configs/by_interface.mesa.hm2-stepper/7i92M_hwe.ini
VERSION=1.1
PARAMETER_FILE=hm2-stepper.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
libnml/buffer/shmem.cc 320: Shared memory buffers toolCmd and toolCmd may conflict. (key=1004(0x3EC))
libnml/buffer/shmem.cc 320: Shared memory buffers toolSts and toolSts may conflict. (key=1005(0x3ED))
libnml/buffer/shmem.cc 320: Shared memory buffers emcError and emcError may conflict. (key=1003(0x3EB))
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./hm2-stepper.hal
Shutting down and cleaning up LinuxCNC...
hm2: loading Mesa HostMot2 driver version 0.15
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
Linux parallel port 0 not found
hm2_7i90: rtapi_app_main: No such file or directory (-2)
./hm2-stepper.hal:38: waitpid failed /usr/bin/rtapi_app hm2_7i90
./hm2-stepper.hal:38: /usr/bin/rtapi_app exited without becoming ready
./hm2-stepper.hal:38: insmod for hm2_7i90 failed, returned -1
6020
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: 17994
- Thank you received: 4838
23 Dec 2024 21:20 #317232
by PCW
Replied by PCW on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
You can use parallel port joint ini values, though you may be able to increase
the velocity and possible acceleration values due to the increased steprate
and step smoothness from the hardware step generator.
I do agree that pncconf should show the physical pin numbers in addition
to the stepgen/pwmgen/ etc numbers to avoid confusion.
the velocity and possible acceleration values due to the increased steprate
and step smoothness from the hardware step generator.
I do agree that pncconf should show the physical pin numbers in addition
to the stepgen/pwmgen/ etc numbers to avoid confusion.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17994
- Thank you received: 4838
23 Dec 2024 21:24 - 23 Dec 2024 21:26 #317233
by PCW
Replied by PCW on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
hm2_7i90: loading HostMot2 Mesa 7i90 driver version 0.3
Look's like you selected 7i90HD instead of 7I92 in pncconf
Look's like you selected 7i90HD instead of 7I92 in pncconf
Last edit: 23 Dec 2024 21:26 by PCW.
Please Log in or Create an account to join the conversation.
- hwe
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
23 Dec 2024 21:26 #317234
by hwe
Replied by hwe on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
A, crap - yes wrong file ...
Please Log in or Create an account to join the conversation.
- hwe
- Offline
- Junior Member
Less
More
- Posts: 37
- Thank you received: 0
23 Dec 2024 21:40 - 23 Dec 2024 21:41 #317235
by hwe
Replied by hwe on topic Meas 7i92M with DIY stepper driver board - PnPConfig setup
Still an issue during start of my config.
I assume my 7i92M has the IP "192.168.1.121" bacause I can ping it.
I configured the laptop ETH-port to "192.168.1.1" with netmask "255.255.255.0", but I receive this:
Found file(REL): ./HWE_LinuxCNC.hal
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Could not retrieve hardware address (MAC) of 192.168.121: Resource temporarily unavailable
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
./HWE_LinuxCNC.hal:10: waitpid failed /usr/bin/rtapi_app hm2_eth
./HWE_LinuxCNC.hal:10: /usr/bin/rtapi_app exited without becoming ready
./HWE_LinuxCNC.hal:10: insmod for hm2_eth failed, returned -1
7985
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Any idea ?
ERROR FOUND: Typo in IP !
I assume my 7i92M has the IP "192.168.1.121" bacause I can ping it.
I configured the laptop ETH-port to "192.168.1.1" with netmask "255.255.255.0", but I receive this:
Found file(REL): ./HWE_LinuxCNC.hal
Shutting down and cleaning up LinuxCNC...
Running HAL shutdown script
hm2: loading Mesa HostMot2 driver version 0.15
hm2_eth: loading Mesa AnyIO HostMot2 ethernet driver version 0.2
hm2_eth: ERROR: Could not retrieve hardware address (MAC) of 192.168.121: Resource temporarily unavailable
hm2: unloading
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Debug file information:
Note: Using POSIX realtime
hm2_eth: rtapi_app_main: Resource temporarily unavailable (-11)
./HWE_LinuxCNC.hal:10: waitpid failed /usr/bin/rtapi_app hm2_eth
./HWE_LinuxCNC.hal:10: /usr/bin/rtapi_app exited without becoming ready
./HWE_LinuxCNC.hal:10: insmod for hm2_eth failed, returned -1
7985
Stopping realtime threads
Unloading hal components
Note: Using POSIX realtime
Any idea ?
ERROR FOUND: Typo in IP !
Last edit: 23 Dec 2024 21:41 by hwe.
Please Log in or Create an account to join the conversation.
Time to create page: 0.074 seconds