Advanced Search

Search Results (Searched for: 7i76e)

  • PCW
  • PCW's Avatar
18 Apr 2025 03:54 - 18 Apr 2025 03:55

Need help making rotary axis behave like second spindle

Category: Advanced Configuration

Simply replacing:

net spindle.1.on hm2_7i76e.0.stepgen.04.enable

with

net machine-is-on  hm2_7i76e.0.stepgen.04.enable

Should fix the issue.
  • spumco
  • spumco
17 Apr 2025 12:16

Need help making rotary axis behave like second spindle

Category: Advanced Configuration

  1. Should I expect M5 to stop all spindles, or do I have to get used to using M5 $-1?
    • Is it possible to get M4 to work? It doesn't do anything right now.


M5 - I recall some discussion on Github about what should be the default behavior for multi-spindle M5 commands.  I found a commit that appears to change M5 to 'stop all spindles', and any of the $ modifiers are for individual spindles.
github.com/LinuxCNC/linuxcnc/commit/01a0...d65486193ead51027c29

Probably want to do some testing yourself.

M4: I think what's going on is that step/dir spindles require an explicit reverse speed value in the INI file, despite what the manual indicates.
linuxcnc.org/docs/devel/html/config/ini-...:ini:sec:spindle-num

adding
[SPINDLE_1]
MAX_REVERSE_VELOCITY = 550

Might do the trick.

If this doesn't work, the next thing is for you to get used to using the 'halshow' feature in LCNC.  This is a simple but powerful tool for debugging since it lets you see what LCNC is doing behind the scenes.  In your case, you want to know why M4 isn't working so you should display all the HAL pins which affect the spindle - including the PID pins.

When you open halshow there's a folder tree on the left where you can click on all the pins (real physical pins, or logical pins) in LCNC.  Once you select those they will appear on the right in the 'watchlist'.  On/off (bit) pins will look sort of like red/yellow LED's, and other pin types will display the value.
What you want is to display all the pins which form the internal logic chain that starts with and M4 command and ends with the mesa stepgen outputting signals to the drive.  Figuring out all the pins and how they're logically interconnected is not always straightforward... but it also didn't cost you buckets of money.

This is where coming to terms with HAL is necessary:

All this stuff like this below still makes no sense to me as to what its purpose is.
net spindle1-vel-cmd-rps        <=  spindle.1.speed-out-rps


'spindle.1.speed-out-rps' is a logical (not physical) pin inside LCNC.  When LCNC starts up and reads the HAL file, there are a number of default functions that are automatically loaded. One of these functions is called 'motion.comp', and a description of what it does and all the related pins which are created is located here:
linuxcnc.org/docs/devel/html/man/man9/motion.9.html

If you read through that page, what you find is a list of logical pins which are created when LCNC starts.  Once those pins are created, you can do 'stuff' with them by connecting them together.  I won't go in to specifics right this minute, but any pin which is connected to spindle.1.speed-out-rps will receive a value that is equal to the commanded rotary-axis spindle speed in revolutions per second.

Hopefully this will click with you soon.

BUT

Assuming you didn't mess things up significantly during your editing, I think there may (still) be at least one bug in Mesact or PNCconf for step/dir spindles.

See where spindle.1.on is connected to hm2_7i76e.0.stepgen.04.enable through signal spindle1-enable?

This connection will result in the stepgen shutting off instantly when the spindle is turned off - no controlled deceleration.  This result in a massive BANG! when the motor drive stops dead, and can lead to over-voltage trips in the drive or broken things.

This should have been fixed in LCNC 2.9, but it appears to still be an issue:
github.com/LinuxCNC/linuxcnc/issues/2748

This bug shouldn't affect M4/reverse not working, but I bet your spindle stops HARD right now and doesn't decel gracefully.  
  • theslawek
  • theslawek
17 Apr 2025 04:17

Need help making rotary axis behave like second spindle

Category: Advanced Configuration

Hi Spumco, I appreciate your dedication to helping me accomplish this.

I ran into a hurdle immediately with MesaCT 2.1.7. When set to 7i76E, or any other card for that matter, the Spindle -> StepGen tab just has a message of "not functioning yet". I even cloned the lastest master from GitHub and the same message is present.

I was about to press Post on this reply, but then I thought, why don't I try PNCConf in case that's what you meant. PNCConf seems to have what you indicated. I did the changes in the INI, but I'm hung up on the HAL part.

Here are the substitutions I made from the PNCConf HAL into the clone of my good xyza config. (A parts were removed)
  1. pid.s is pid.s1 (including in the loadrt and do-pid-calcs parts)
  2. SPINDLE_0 to SPINDLE_1
  3. changed all ".s" entries to ".s1"
  4. entries such as "net spindle-vel-cmd-rps" changed to "net spindle1-vel-cmd-rps"
I've loaded the config many times and addressed my oversights.

I'm stuck with this error:

twopass: Error in file ./hallib/main.hal:
    Pin 'spindle.1.speed-ut-rps' does not exist


Which I think relates to this block. I'm not sure how to go from here. Are these related to the GUI?

net spindle1-vel-cmd-rps        <=  spindle.1.speed-out-rps
net spindle1-vel-cmd-rps-abs    <=  spindle.1.speed-out-rps-abs
net spindle1-vel-cmd-rpm        <=  spindle.1.speed-out
net spindle1-vel-cmd-rpm-abs    <=  spindle.1.speed-out-abs
net spindle1-enable             <=  spindle.1.on
net spindle1-cw                 <=  spindle.1.forward
net spindle1-ccw                <=  spindle.1.reverse
net spindle1-brake              <=  spindle.1.brake
net spindle1-revs               =>  spindle.1.revs
net spindle1-at-speed           =>  spindle.1.at-speed
net spindle1-vel-fb-rps         =>  spindle.1.speed-in
net spindle1-index-enable      <=>  spindle.1.index-enable

My latest INI and HALs attached.
  • JohnnyCNC
  • JohnnyCNC's Avatar
16 Apr 2025 23:21
Replied by JohnnyCNC on topic spindle with encoder

spindle with encoder

Category: Basic Configuration

I'm not really sure exactly what is does, but this is where it is used in my hal file.
It looks like it is set to -10800 because 5400 to -5400 is -10800.

# ---Analog output signals/setup---
setp hm2_7i76e.0.7i83.0.1.analogout5-scalemax [SPINDLE_0]OUTPUT_SCALE
setp hm2_7i76e.0.7i83.0.1.analogout5-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_7i76e.0.7i83.0.1.analogout5-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
net spindle-output => hm2_7i76e.0.7i83.0.1.analogout5
  • theslawek
  • theslawek
14 Apr 2025 14:41

Need help making rotary axis behave like second spindle

Category: Advanced Configuration

Hi Spumco,

I can't find any official documentation about caxis.comp, just many forum posts about it from you. Is this something new not in the documentation yet?

My goal is to make my CNC router use the rotary axis and simulate a lathe. I've actually already done this before moving to my Mesa 7i76e but using an external device with a dial ( amazon link ) to control the speed. I'd like to have that programatic control over the speed for obvious reasons. I actually have a YouTube video on what I did then. 


I don't need dynamic change between velocity and position controls. I'm more than happy to restart LinuxCNC with new config when changing operations.
  • unknown
  • unknown
11 Apr 2025 20:38
Replied by unknown on topic 7i92 firmware issue

7i92 firmware issue

Category: Driver Boards

I understand now, silly me.
Ok found I had to use setname & found the Linux version here
www.forum.linuxcnc.org/27-driver-boards/...board?start=10#65737

and I can communicate.

Thanks again
  • PCW
  • PCW's Avatar
11 Apr 2025 14:19 - 11 Apr 2025 14:19
Replied by PCW on topic VHD Header Help

VHD Header Help

Category: Driver Boards

Here's an example:

 

File Attachment:

File Name: 7i76e_7i76...9x1d.zip
File Size:160 KB


It's a bit tricky because you do need to use muxed encoders for all
encoders (because the 7I89 uses physically muxed encoders)

 
  • Fianna
  • Fianna's Avatar
11 Apr 2025 13:14 - 11 Apr 2025 15:58
VHD Header Help was created by Fianna

VHD Header Help

Category: Driver Boards

Hi All

My intent is to merge some vhd files to get a 7i76e + 7i78 + 7i89 

I saw a post here (from PCW I believe) sayign the count in the 4th column was the number of those modules, so for the stepgens I want (6x or more) I've been putting x06, and same for the encoders (1x spindle + 6x on the DB25 headers), just increasing the built in Qcount. I believe I don't need muxed ones (I have single ended A/B/Z glass scales), finally I then make sure the total number of entries in the whole array was the same as the standard hostmot2 7i76e examples. No ide if this logic is sound or not... 

(HM2DPLLTag,x"00",ClockLowTag, x"01",HM2DPLLBaseRateAddr&PadT,HM2DPLLNumRegs,x"00",HM2DPLLMPBitMask), (WatchDogTag,x"00",ClockLowTag, x"01",WatchDogTimeAddr&PadT, WatchDogNumRegs,x"00",WatchDogMPBitMask),
(IOPortTag,x"00",ClockLowTag, x"03",PortAddr&PadT,IOPortNumRegs,x"00",IOPortMPBitMask),
(QcountTa    x"02",   ClockLowTag,x"06",QcounterAddr&PadT,QCounterNumRegs,x"00",QCounterMPBitMask),  
(StepGenTag,x"02",ClockLowTag, x"06", StepGenRateAddr&PadT,StepGenNumRegs,x"00",StepGenMPBitMask)
(MuxedQcountTag, MQCRev,ClockLowTag, x"01",MuxedQcounterAddr&PadT,MuxedQCounterNumRegs,x"00", MuxedQCounterMPBitMask),
(MuxedQCountSelTag, x"00",ClockLowTag, x"01", NullAddr&PadT,x"00",x"00",x"00000000"),
(SSerialTag,x"00",ClockLowTag,x"01",SSerialCommandAddr&PadT,SSerialNumRegs,x"10",SSerialMPBitMask),  
(LEDTag,x"00",ClockLowTag,x"01",LEDAddr&PadT,LEDNumRegs,x"00",LEDMPBitMask),
(NullTag,x"00",NullTag,x"00",NullAddr&PadT,x"00",x"00",x"00000000"),
(NullTag, x"00", NullTag,x"00",NullAddr&PadT,x"00",    
more null
more null

until I get to the same line number as the examples so same number of modules. 

I think I've made a dud bit file and written it to my 7i76e at some stage, the first time I tried to write it, mesaflash did the erasing, got halfway through the writing "WWWW..." thing and the terminal just hung. Ctrl + C'd the terminal, and I think the 7i76e stopped responding. 
I power cycled the card itself, and now mesaflash can see it and write known good bit files to it, but after I write new bit files and --reload, the --readhmid just returned "None" for all of the channels. 
I've since power cycled a few times and it seems to be writing standard bitfiles again by some miracle.

Can someone explain the header logic or point me to an explanation? 
Can I just keep changing the module count freely and the Xilinx tool will flag if it runs out of space? 
If the Xilinx tool compiles it okay can I be confident it won't brick the board?
How do I know if it's in fallback or normal boot? 
What do the other columns in the header do, do I need to set memory addresses where the modules start or block sizes or anything? I'm wondering if I could be increasing module count and then overflowing the following module or something. 
Does the total number of modules in that array need to be correct / a specific number / does it matter? 

I've skimmed the hostmot2 dataflow vhd file but fallen at the first hurdle: 



-- decodes -- --    IDROM related signals
-- Extract the number of modules of each type from the ModuleID
constant StepGens: integer := NumberOfModules(TheModuleID,StepGenTag);


This line obviously reads that count but I can't see where NumberOfModules (function? attribute of the an object called "work"?) is defined so I'm lost. As you can tell I don't have a clue how this code works so I'm just a smidge lost :) 
I've had PCW post a few bitfiles here for me, for which I'm eternally grateful, but I feel bad so I'd prefer to acutally understand what's going on and be able to do it myself (and pass the favour on if it's not potentially harmful to someone elses setup!)

Thanks, 
Kealan
  • acourtjester
  • acourtjester
09 Apr 2025 17:44
rotary axis queston was created by acourtjester

rotary axis queston

Category: General LinuxCNC Questions

HI
I am wanting to add an optional rotary function to my table, to have a tubing cutter.  With another controller and software I just switched the Y axis control output cable to the rotary axis motor.  This is also the way it is done with my desktop laser to use its rotary optional drive assembly.
On my table I and using LinuxCNC software with a Mesa 7I76E card and QTPlasmaC GUI.  I have tried to leave out the Y home/limit entry in the pncconf setup, but it will not enable the Y axis.  I understand the need to do the homing operation so the software knows where it is for running a G-code.  After the homing I can position any axis to a location and then zero out the DRO and use that as a start position for the G-code. 
What I want is the Y axis not needing to home to be active.  This would allow me to home X and Z and position the Y to a zero position manually.
Thanks for your time
Tom V 
  • maxi177
  • maxi177
04 Apr 2025 16:44
Replied by maxi177 on topic dead Outputs on Mesa 7i76E and blown up 7i85S

dead Outputs on Mesa 7i76E and blown up 7i85S

Category: Driver Boards

Thanks, sent it again.
-
Max
  • PCW
  • PCW's Avatar
04 Apr 2025 14:11

dead Outputs on Mesa 7i76E and blown up 7i85S

Category: Driver Boards

I don't see that, If you try again, I'll check the spam bucket...
  • maxi177
  • maxi177
04 Apr 2025 09:47
Replied by maxi177 on topic dead Outputs on Mesa 7i76E and blown up 7i85S

dead Outputs on Mesa 7i76E and blown up 7i85S

Category: Driver Boards

I wrote an email on March 24th and haven't heard back, so I just wanted to follow up in case it got caught by your spam filter.
-
Max
  • tommylight
  • tommylight's Avatar
31 Mar 2025 14:09
Replied by tommylight on topic Activity Light

Activity Light

Category: General LinuxCNC Questions

Usable hal pins
amplifier-enable
machine-is-on
e-stop-out
x-enable
something like this
x-enable hm2_7i76e.0.7i76.0.0.output-00
Replace board and pins accordingly.
  • PCW
  • PCW's Avatar
24 Mar 2025 22:38
Replied by PCW on topic 7i76EU Requirements

7i76EU Requirements

Category: Driver Boards

Pretty sure 2.9.3 should be OK (7I76EU support was added 2 years ago)

Mesaflash >3.5.2
  • PCW
  • PCW's Avatar
24 Mar 2025 22:27

Connecting Mesa 7i76 to Sprint 1200 DC Controller

Category: General LinuxCNC Questions

So

7I76EU TB4     DRIVE

1 SPINDLE-      2 MIN
2 SPINOUT       3 IP
3 SPINDLE+     1 +10V
5 ENA-             4 COM
6 ENA+            5 RUN

Note that some or all of these connections may be at line potential
so make sure you do not touch them or allow them to connect to
any low voltage signal.



 
Displaying 121 - 135 out of 500 results.
Time to create page: 0.763 seconds
Powered by Kunena Forum