Lost on Hal with 7i94 and 7i88
- MrMick
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
25 Sep 2023 07:32 #281581
by MrMick
Lost on Hal with 7i94 and 7i88 was created by MrMick
Hi, Recently changed from a Anlougue amp set up to step direction for my SEM DC Brushed servo drives. using Machdrives. I've tried to keep my HAL file for the IO already wired. I don't seem to be getting an output from the step direction drives, probably something simple. but had errors when running a new pconfig as a test as well. Tried very slow jog and watched the step pulse pins ect still nothing even when I tried with out the PID's and netted position command ec, aswell as step type trying both velocity and position, step pulse length ect. Attached Pinout, Hal and INI. PCW has kindly sent me firmware for the combo much appreciated, all flashed fine and show pins came up correct. Hoping this is the right section. Up to day 3 so starting to loose it with it
hoping it something simple that I'm missing but I'm no expert.
Please Log in or Create an account to join the conversation.
- rodw
-
- Offline
- Platinum Member
-
Less
More
- Posts: 11229
- Thank you received: 3753
25 Sep 2023 11:43 #281587
by rodw
Replied by rodw on topic Lost on Hal with 7i94 and 7i88
I would have thought stepgen.00.control-type = 0 # position control
I thought perhaps the velocity and accelleration was very slow.
how many steps/rev?
What gearing if any?
What ballscrew pitch?
What is the max velocity of the motor?
I would set the max velocity to be around 1000 rpm minimum so yo can see whay is going on
Also, could the driver need to be enabled?
I thought perhaps the velocity and accelleration was very slow.
how many steps/rev?
What gearing if any?
What ballscrew pitch?
What is the max velocity of the motor?
I would set the max velocity to be around 1000 rpm minimum so yo can see whay is going on
Also, could the driver need to be enabled?
Please Log in or Create an account to join the conversation.
- MrMick
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
25 Sep 2023 12:03 #281591
by MrMick
Replied by MrMick on topic Lost on Hal with 7i94 and 7i88
Hi Rod,
Tried both type 0 and 1.
Its no step signals at all out of mesa 7i88 looking at hal lights even during slow jog 2mm/min.
Machdrive does the interfacing on gearing accel ect.
But SEM motors 4000rpm,, 5mm pitch ballscrew through 2:1 reduction belt drive. Initialy had it doing 200 steps p[er mm now changed to 1000. Its like I've stuffed up the hal I think. Tired examples still no joy does, axis shows the movement and doesn't allarm on following error.
Tried both type 0 and 1.
Its no step signals at all out of mesa 7i88 looking at hal lights even during slow jog 2mm/min.
Machdrive does the interfacing on gearing accel ect.
But SEM motors 4000rpm,, 5mm pitch ballscrew through 2:1 reduction belt drive. Initialy had it doing 200 steps p[er mm now changed to 1000. Its like I've stuffed up the hal I think. Tired examples still no joy does, axis shows the movement and doesn't allarm on following error.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
25 Sep 2023 14:37 - 25 Sep 2023 14:53 #281598
by PCW
Replied by PCW on topic Lost on Hal with 7i94 and 7i88
It looks like you have P2 expansion I/O disabled in the hal file
( The setup for I/O 41 is commented out, in your hal file
see page 15 of the 7I94 manual )
Also I would not expect to see the step pulses in Halscope ( way to short )
but you should see the direction changing.
Also just to make sure you have the right firmware and 7I88 connections
I would run:
mesaflash --device 7i94 --addr 10.10.10.10 --dbname1 7i88 --readhmid > pins.txt
and post pins.txt here
( The setup for I/O 41 is commented out, in your hal file
see page 15 of the 7I94 manual )
Also I would not expect to see the step pulses in Halscope ( way to short )
but you should see the direction changing.
Also just to make sure you have the right firmware and 7I88 connections
I would run:
mesaflash --device 7i94 --addr 10.10.10.10 --dbname1 7i88 --readhmid > pins.txt
and post pins.txt here
Last edit: 25 Sep 2023 14:53 by PCW.
Please Log in or Create an account to join the conversation.
- MrMick
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
26 Sep 2023 00:41 #281619
by MrMick
Replied by MrMick on topic Lost on Hal with 7i94 and 7i88
Thanks for the reply PCW,
Did the pin I/O 41 didn't think on that as I did have the encoder board on it.
Mesaflash line comes up with unrecognized option --dbname1
I can get pin via halcmd attached
When I flashed the 7i94 I did the show pins. I haven't powered the 7i88 externally left it powered by cable, the 7i94 is jumpered to provide cable power.
Did the pin I/O 41 didn't think on that as I did have the encoder board on it.
Mesaflash line comes up with unrecognized option --dbname1
I can get pin via halcmd attached
When I flashed the 7i94 I did the show pins. I haven't powered the 7i88 externally left it powered by cable, the 7i94 is jumpered to provide cable power.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
26 Sep 2023 00:51 #281620
by PCW
Replied by PCW on topic Lost on Hal with 7i94 and 7i88
If the --dbname1 option doesn't work, it means you have a quite old copy of mesaflash
probably best to update it. Build and install instructions on the bottom of the page:
github.com/LinuxCNC/mesaflash
The pin 41 setup is needed for any daughterboard on the parallel
expansion connector.
probably best to update it. Build and install instructions on the bottom of the page:
github.com/LinuxCNC/mesaflash
The pin 41 setup is needed for any daughterboard on the parallel
expansion connector.
The following user(s) said Thank You: MrMick
Please Log in or Create an account to join the conversation.
- MrMick
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
26 Sep 2023 00:54 #281621
by MrMick
Replied by MrMick on topic Lost on Hal with 7i94 and 7i88
Although if I do it as the following this is what I get
Configuration pin-out:
IO Connections for Expansion+Serial 0..1
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
0 0 IOPort StepGen 0 Step/Table1 (Out)
0 1 IOPort StepGen 0 Dir/Table2 (Out)
ect, So I assume its seeing the expansion card and I've flashed it correctly. with the 7I94 &i88 bitfile
Configuration pin-out:
IO Connections for Expansion+Serial 0..1
Pin# I/O Pri. func Sec. func Chan Pin func Pin Dir
0 0 IOPort StepGen 0 Step/Table1 (Out)
0 1 IOPort StepGen 0 Dir/Table2 (Out)
ect, So I assume its seeing the expansion card and I've flashed it correctly. with the 7I94 &i88 bitfile
Please Log in or Create an account to join the conversation.
- MrMick
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
26 Sep 2023 08:07 #281640
by MrMick
Replied by MrMick on topic Lost on Hal with 7i94 and 7i88
Thanks updated mesaflash today and tried a few other bits still no win (like I'd missed position scale). Also hooked up a scope but no output that I could see.
After update I could get
mesaflash --device 7i94 --addr 10.10.10.10 --dbname1 7i88 --readhmid
To work attached
mesaflash --device 7i94 --addr 10.10.10.10 --dbname1 7i88 --print-pd
To work Attached,
But pins.txt just does nothing just jumps to next line hoping this is a clue? I am powering card through the cable, as set on 7i94 and 7i88 but have only had one step drive hooked up (MachDrive) so doubt its a load issue. Also when I probed with scope it was just to fly leads out of the plug. Lights still don't change in Hal for direction either.
Thanks again for your help
After update I could get
mesaflash --device 7i94 --addr 10.10.10.10 --dbname1 7i88 --readhmid
To work attached
mesaflash --device 7i94 --addr 10.10.10.10 --dbname1 7i88 --print-pd
To work Attached,
But pins.txt just does nothing just jumps to next line hoping this is a clue? I am powering card through the cable, as set on 7i94 and 7i88 but have only had one step drive hooked up (MachDrive) so doubt its a load issue. Also when I probed with scope it was just to fly leads out of the plug. Lights still don't change in Hal for direction either.
Thanks again for your help
Please Log in or Create an account to join the conversation.
- MrMick
- Offline
- Junior Member
-
Less
More
- Posts: 24
- Thank you received: 0
26 Sep 2023 08:09 #281641
by MrMick
Replied by MrMick on topic Lost on Hal with 7i94 and 7i88
Missed readhmid
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18531
- Thank you received: 5079
26 Sep 2023 14:01 #281651
by PCW
Replied by PCW on topic Lost on Hal with 7i94 and 7i88
Can you post you current hal and ini files?
Do the levels of the step/dir pins change
when LinuxCNC is started?
Do the levels of the step/dir pins change
when LinuxCNC is started?
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.101 seconds