Advanced Search

Search Results (Searched for: )

  • meister
  • meister
04 Jul 2025 19:47
  • PCW
  • PCW's Avatar
04 Jul 2025 19:44
Replied by PCW on topic [Solved] Mesa 7i96 Spindle PWM

[Solved] Mesa 7i96 Spindle PWM

Category: Driver Boards

 

File Attachment:

File Name: 7i96s_2pwm...7-04.zip
File Size:248 KB


7I96 bitfile with 2 PWMGens

Looks like the 74ACT04 (U17) was damaged
  • Aciera
  • Aciera's Avatar
04 Jul 2025 19:20
Replied by Aciera on topic Gmoccapy 3.5.1

Gmoccapy 3.5.1

Category: Gmoccapy

Probably. At least I could reproduce it this way.


The issue here is that using 'halui' in parallel to a gui is not really a very good idea at all. Many do it, myself included, to connect panel buttons. Gmoccapy is designed to use button rows aligned with the gui buttons but that is not always practical.

I wonder if it would make sense to have gmoccapy create its own dedicated pins like 'halui' so we would have more control over them.
  • whyme
  • whyme
04 Jul 2025 18:59 - 04 Jul 2025 20:19
Replied by whyme on topic Raspberry Pi 4 with Mesa 7c81

Raspberry Pi 4 with Mesa 7c81

Category: Driver Boards

so a stiff pulldown to fight the pullup of the mesa card for the inputs?

I am using 7c81_5abobx2d firmware with BOB boards on P1 and P2.

Edit:
I did a little bit of digging.
- The relay pin P17 is IO7 of the Mesa ports, which is on the edge of the pull resistor array. I could desolder the array and put it back on shifted by one to remove the resistor of the pin.
- On the BOB there is a 10k pullup array on the relay pin. but the signal comes through a via in the middle of the pullup resistor and the 74HC... I could cut the trace between the via and the resistor to remove the pull up on the BOB
- solder in a pulldown resistor on the BOB (if for whatever reason the flat cable between the Mesa and BOB gets bad).
  • ziggi
  • ziggi's Avatar
04 Jul 2025 18:46 - 04 Jul 2025 20:42

Troubles to get started with SD240 Retrofit

Category: Turning

Great, now the error is gone and LinuxCNC starts normally.
Unfortunately the Encoder handwheel does not move the selected axes. I can see it counting in Halshow, but the axis selected stays where it is.
I read in the documentation that the use of a MPG would reqire homing of the axis- my machine is not homed at the moment- but I thought the line
NO_FORCE_HOMING = 1
would let me use the MPG without homing- probably not, or is there any simple possibility to move the axes via MPG without homing them first?

The other thing I would like to get running is the spindle. I seached quite a bit, but did not really find out how to use the parameters. In diffeerent threads these are described differently.
The spindle is a Fanuc Servo which is capable to make 8000 rpm. Its connected to the correct Fanuc servo drive. The spindle itself only is allowed for 5000rpm. With the old control connected, I found that the max voltage the servo drive gets from the control is 7,6V+ at 5000rpm. So if I scale this to 10V it would give me 6570rpm.
As far as I know only pos voltage is used in the analog signal (0 to 7,6V) and the spindle is reversed by an additional signal to the drive unit. The 2500incr. encoder that I want to connect to the 7I33 is an additional encoder (TTL) driven by the spindle via toothed belt and is originally used with the old control for threadcutting (synch) only- the servo drive gets its info from an encoder inside the motor which I can not access.
So thats what I think currently the spindle params should be I wrote below. Is it correct- I guess not,but how is the calculation in this case done?
And how can I determine the output of min 0V to max 7V and no neg. voltage is used, if not this way.

MAX_OUTPUT = 5000
ENCODER_SCALE = 2500
OUTPUT_SCALE = 6570
OUTPUT_MIN_LIMIT = 0
OUTPUT_MAX_LIMIT = 7

Thanks
Sigi




 
  • dubstar_04
  • dubstar_04's Avatar
04 Jul 2025 18:23
Replied by dubstar_04 on topic [Solved] Mesa 7i96 Spindle PWM

[Solved] Mesa 7i96 Spindle PWM

Category: Driver Boards

There is no output at all on TB2-2.

Is it possible to move the PWM to one of the other stepgens? eg. TB1-20/21?

Thanks,

Dan
  • Johnnysacalu
  • Johnnysacalu
04 Jul 2025 18:23
Replied by Johnnysacalu on topic Lo ejes dejaron de moverse

Lo ejes dejaron de moverse

Category: General LinuxCNC Questions

 

Los drivers están a unos 25/30cm de la placa 
Creo que esta en modo diferencial pull+/pull- dir+/dir- si esto es a lo que te refieres
 
lo tengo todo conectado egual que esto solo tengo diferente un rele de estado solido para arc start y la maquina de plasma


 
  • steers
  • steers
04 Jul 2025 18:16

looking for advice on retrofitting hydrolic mill

Category: Driver Boards

hey all!im in the market for a decent mill that i want to retrofit with Mesa/linuxCnC. its a Knüth WF 5 NC, a hydrolic controlled mill with currently a Ljumo-PNC 63 controller. currently the mill isnt operational, but even with the full schematics we cant seem to figure out the current issue.i have done a retrofit before using mesa on a Vermano r170 which used some big servos, but i cant seem to find much info regarding retrofitting mesa hardware on a hydrolic controlled mill.is this even possible, and where can i find some more info on how to tackle this?best regards,steers 
  • HansU
  • HansU's Avatar
04 Jul 2025 18:12
Replied by HansU on topic Gmoccapy 3.5.1

Gmoccapy 3.5.1

Category: Gmoccapy

I start the program with an external button.


Well, yes but what hal pin do you use to start the program?
I presume 'halui.program.run'


Probably. At least I could reproduce it this way.
  • PCW
  • PCW's Avatar
04 Jul 2025 18:07 - 04 Jul 2025 18:14
Replied by PCW on topic [Solved] Mesa 7i96 Spindle PWM

[Solved] Mesa 7i96 Spindle PWM

Category: Driver Boards

Sounds like the output has been damaged...

You might check the step- output (TB2 pin 2)

(as a sanity check, STEP- should be at ~5V when STEP+ is 0)

 
  • dubstar_04
  • dubstar_04's Avatar
04 Jul 2025 17:15
Replied by dubstar_04 on topic [Solved] Mesa 7i96 Spindle PWM

[Solved] Mesa 7i96 Spindle PWM

Category: Driver Boards

With the output inverted the pwm output is 2.2v without the spindle running.
  • PCW
  • PCW's Avatar
04 Jul 2025 17:06
Replied by PCW on topic [Solved] Mesa 7i96 Spindle PWM

[Solved] Mesa 7i96 Spindle PWM

Category: Driver Boards

If you set the PWM to 0 and invert the PWM output
do you get ~5V?

to invert:

halcmd setp hm2_7i96.0.pwmgen.00.out0.invert_output true



 
  • dubstar_04
  • dubstar_04's Avatar
04 Jul 2025 16:53
Replied by dubstar_04 on topic [Solved] Mesa 7i96 Spindle PWM

[Solved] Mesa 7i96 Spindle PWM

Category: Driver Boards

Hi PCW,

Thank you for the quick response.

halcmd show all spin*
Loaded HAL Components:
ID      Type  Name                                            PID   State

Component Pins:
Owner   Type  Dir         Value  Name
    29  bit   IN          FALSE  spindle.0.amp-fault-in
    29  bit   IN           TRUE  spindle.0.at-speed <== spindle-at-speed
    29  bit   OUT         FALSE  spindle.0.brake ==> spindle-brake
    29  bit   OUT          TRUE  spindle.0.forward ==> spindle-cw
    29  bit   I/O         FALSE  spindle.0.index-enable <=> spindle-index-enable
    29  bit   IN          FALSE  spindle.0.inhibit
    29  bit   IN          FALSE  spindle.0.is-oriented
    29  bit   OUT         FALSE  spindle.0.locked
    29  bit   OUT          TRUE  spindle.0.on ==> spindle-enable
    29  bit   OUT         FALSE  spindle.0.orient
    29  float OUT             0  spindle.0.orient-angle
    29  s32   IN              0  spindle.0.orient-fault
    29  s32   OUT             0  spindle.0.orient-mode
    29  bit   OUT         FALSE  spindle.0.reverse ==> spindle-ccw
    29  float IN             -0  spindle.0.revs <== spindle-revs
    29  float OUT      29.16667  spindle.0.speed-cmd-rps
    29  float IN              0  spindle.0.speed-in <== spindle-vel-fb-rps
    29  float OUT          1750  spindle.0.speed-out ==> spindle-vel-cmd-rpm
    29  float OUT          1750  spindle.0.speed-out-abs ==> spindle-vel-cmd-rpm-abs
    29  float OUT      29.16667  spindle.0.speed-out-rps ==> spindle-vel-cmd-rps
    29  float OUT      29.16667  spindle.0.speed-out-rps-abs ==> spindle-vel-cmd-rps-abs

Pin Aliases:
 Alias                                            Original Name

Signals:
Type          Value  Name     (linked to)
bit            TRUE  spindle-at-speed
                         ==> gmoccapy.spindle_at_speed_led
                         ==> spindle.0.at-speed
bit           FALSE  spindle-brake
                         <== spindle.0.brake
bit           FALSE  spindle-ccw
                         <== spindle.0.reverse
bit            TRUE  spindle-cw
                         <== spindle.0.forward
bit            TRUE  spindle-enable
                         ==> hm2_7i96.0.pwmgen.00.enable
                         ==> hm2_7i96.0.ssr.00.out-05
                         ==> pid.s.enable
                         <== spindle.0.on
bit           FALSE  spindle-index-enable
                         <=> hm2_7i96.0.encoder.00.index-enable
                         ==> pid.s.index-enable
                         <=> spindle.0.index-enable
bit           FALSE  spindle-manual-ccw
                         ==> halui.spindle.0.reverse
bit           FALSE  spindle-manual-cw
                         ==> halui.spindle.0.forward
bit           FALSE  spindle-manual-stop
                         ==> halui.spindle.0.stop
float          1750  spindle-output
                         ==> hm2_7i96.0.pwmgen.00.value
                         <== pid.s.output
float            -0  spindle-revs
                         <== hm2_7i96.0.encoder.00.position
                         ==> spindle.0.revs
float          1750  spindle-vel-cmd-rpm
                         <== spindle.0.speed-out
float          1750  spindle-vel-cmd-rpm-abs
                         ==> pid.s.command
                         <== spindle.0.speed-out-abs
float      29.16667  spindle-vel-cmd-rps
                         <== spindle.0.speed-out-rps
float      29.16667  spindle-vel-cmd-rps-abs
                         <== spindle.0.speed-out-rps-abs
float             0  spindle-vel-fb-rpm
                         <== hm2_7i96.0.encoder.00.velocity-rpm
float             0  spindle-vel-fb-rpm-abs
                         ==> pid.s.feedback
float             0  spindle-vel-fb-rps
                         <== hm2_7i96.0.encoder.00.velocity
                         ==> spindle.0.speed-in

Parameters:
Owner   Type  Dir         Value  Name

Parameter Aliases:
 Alias                                            Original Name

Exported Functions:
Owner   CodeAddr  Arg       FP   Users  Name

Realtime Threads:
     Period  FP     Name               (     Time, Max-Time )

Measuring the pwm pin output shows 1.1v at 50% speed and 2.2v at 100%, 0 volt when the spindle is off.

Thank you,

Dan
 
  • Sternfox
  • Sternfox
04 Jul 2025 16:38
poor surface quality was created by Sternfox

poor surface quality

Category: General LinuxCNC Questions

Hi Peeps,

Im pulling my hair out trying to debug a poor surface problem. I have a LinuxCNC retrofit Haas mini mill. Dimensional accuracy is within 5 microns, perfect. Backlash is around 3 microns.

The problem is the even faceting im getting, this is only on round or any move that needs the x and y axis working together. Straight lines in x and y are a nice and smooth surface finish. I have attached a few pics for reference. 

the cutting strategy was adapive clearing with 0.5mm stock to leave cleaned up with a profile toolpath

The square was oriented with the points facing north, south, east and west, forcing them to be cut using both servo motors.
I'm using AC servo motors with 10.000 steps per rev. So 1 micron per pulse.
I'm running a 2 ms servo thread, probe basic on linuxcnc 2.9
for this cut I used 0.001 tolerance and tried smoothing on and off with no difference. I also used G64 p0.01 makes no difference

if you look at the images you can see the faceting lines, they all measure around 1.5mm between each line.

any thoughts?


 
  • PCW
  • PCW's Avatar
04 Jul 2025 16:16
Replied by PCW on topic [Solved] Mesa 7i96 Spindle PWM

[Solved] Mesa 7i96 Spindle PWM

Category: Driver Boards

When LinuxCNC is running and you have the spindle on and set to say 1/2 speed.
what does:

halcmd show all spin*

report?

Also, you can get an idea of PWM operation independent of any add-on cards
with just a voltmeter, as the voltmeter will read the average voltage which will
be proportional to the PWM duty cycle.

 
Displaying 226 - 240 out of 25544 results.
Time to create page: 0.646 seconds
Powered by Kunena Forum