7i92M, AXIS & no stepper movement

More
22 Apr 2018 15:16 #109427 by smplc
PC non-parallel port (25 pin D-SUB female connector)

PC Ethernet port

Debian 9 (Stretch)

Mesa 7i92M Ethernet Anything I/O card w/C11G firmware
mesaflash --device 7i92 --addr 10.10.10.10 --readhmid
Ports and pins read

Already existing CNC control box functional and operable with Mach4 interface. KL-4030 micro stepper drivers and dip switches at 16. CNC4PC C10 breakout board (BOB). Only swapped motion controllers for 7i92M and LinuxCNC interface. 1.8 degree stepper motors. 20 TPI feed screw. 64000 steps/inch.

BOB
Pin 2 Z Step
Pin 3 Z Dir
Pin 4 Y Step
Pin 5 Y Dir
Pin 6 X Step
Pin 7 X Dir

freeby.mesanet.com/7i92step.zip
7i92.ini and hm2-pidstepper.hal pasted at linuxcnc/configs folder.

LinuxCNC, My Configuration, 7i92 and Okay opens AXIS.

It appears velocitity (inch/s) and acceleration (inch/^s) would require some adjustment. Adusted at AXIS panel Machine and Calibration, changed Stepgen_Max Velocity and Acceleration. Shown comparable at 7i92.ini file but no change Max_Velocity and Acceleration. hm2-pidstepper.hal doesn't appear to have Step, Dir and Pin Outputs. Does AXIS panel display somewhere to show ports and pins and is adjustable if required? Does 7i92.ini and hm2-pidstepper.hal require any editing? Is other or additional .ini and .hal files or a Stepconf Wizard that'd make the files for an Ethernet connection and AXIS panel?

AXIS panel
Toggle manual control, .100 increment, X axis and no stepper motor movement.
A display box 'joint 0 following error'.

What are some ideas presently just to get X, Y and Z stepper motors moving with current hardware and AXIS panel?
Attachments:

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

More
22 Apr 2018 21:09 #109455 by PCW
if you get a following error that usually means that the per axis stepgen velocity or acceleration
settings do not have sufficient headroom above the machine velocity and acceleration settings
(the stepgen settings should normally be about 25% greater than the machine settings)

You can also get this error if you try to step faster than the step timings (steplength and step space) allow

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

More
22 Apr 2018 21:44 #109459 by smplc
Understood. Is somewhere at AXIS panel to edit Max_Velocity and Max_Acceleration. I can edit 7i92.ini to make a .swp file. When trying to open 7i92.ini file it list the a swap file already exist and options. Renaming the file to 7i92.ini.swp and opening goes back to original 7i92.ini. How can the 7i92.ini.swp file get saved, opened and recoverable when Opening AXIS? Edit VIM 7i92.ini, Copy and Paste is only content within viewable box and Select All won't scroll entire (100%) text for Copy. I guess carefully Copy each viewable section and Paste it on some text format (or another VIM) compatible with LinuxCNC/Configs to file.

How about Ports and Pins Output too? Does that require adjustment with the 7i92.ini and hm2-pidstepper.hal files or AXIS panel, if does, where?

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

More
22 Apr 2018 21:47 #109460 by PCW
Forget vim and .swp files

If you want a backup, copy 7i92.ini to my7i92.ini and edit my7i92.ini with a graphic editor like gedit or mousepad
then launch my7i92.ini instead of 7i92.ini

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

More
23 Apr 2018 00:36 #109469 by smplc
Okay. Open 7i92.ini with Mousepad, Edit, Select All and Copy. Open new Mousepad file and Paste. Edited Max_Velocity, Max_Acceleration, StepGen_Max_Vel, StepGen_Max_Acc and Save As My7i92.ini . Toggled X, Y, and Z axis .100 incrementally and no error message but no physical movement of stepper motors. Why aren't stepper motors moving?
Attachments:

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

More
23 Apr 2018 00:47 #109471 by PCW
Are the step timings in the ini file long enough for your drivers?

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

More
23 Apr 2018 02:03 #109472 by smplc
Yes, such timing is about same motor tuning used with my Mach4 Hobby and Industrial interface that ran a lot of programs. Motor tuning at 64000 step/inch, 30 IPM Velocity and 3 inch/^s Acceleration. 30 IPM/60 seconds = .5 inch/second. 32000 Hz=32KHhz. I might want to experiment with that motor tuning a little more later but a while at it the setting seemed about appropriate.

Immediately, I'm not sure about the Min_Limit and Max_Limit and other specifications following between motors 0, 1 and 2. I'd have to refer to some documentation. I only edited specifications among Velocity, Acceleration and Scale as indicated. Some of the notes (#) were edited too.

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

More
23 Apr 2018 02:12 - 23 Apr 2018 02:17 #109473 by PCW
I asked about step timing not step rate (these are different things)

Also a very basic thing I just noticed in your picture you have the breakout connected to P1
but stepgens 0..3 are on P2 so I would not expect any movement without using a hal file that
addresses stepgens 4,5,6,7
Last edit: 23 Apr 2018 02:17 by PCW.

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

More
23 Apr 2018 02:29 #109474 by smplc
Yes. Not DirSetUp and DirHold. Motors 0, 1 and 2.

Presently, My7i92.ini .
# these are in nanoseconds
DirSetUp = 10000
DirHold = 10000
StepLen = 5000
StepSpace = 5000

It appears Keling 4030 specifications for DirSetUp and DirHold both 20000.

wiki.linuxcnc.org/cgi-bin/wiki.pl?Stepper_Drive_Timing

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

More
23 Apr 2018 02:45 #109476 by smplc
I haven't tried a connection with the 7i92M P2 yet. A 25 pin D-SUB female connector isn't available with ribbon now. I only need motors 0, 1 and 2 now. Is somewhere in .ini or .hal file that specifies a Port to StepGen and could it get edited? I couldn't find it with Search.

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

Time to create page: 0.455 seconds
Powered by Kunena Forum