Advanced Search

Search Results (Searched for: )

  • PCW
  • PCW's Avatar
25 Mar 2025 02:18
Replied by PCW on topic Spindle keep accelerating

Spindle keep accelerating

Category: Basic Configuration

How is it possible to monitor pwm sign in order to answer your question?
 

Watch the pwm value: hm2_7i96s.0.pwmgen.00.value

Did you try open loop operation to see if that's OK?
(open loop means P,I,D = 0, FF0=1)
 You should definitely get that working first.
  • Getlitcnc
  • Getlitcnc
25 Mar 2025 01:16
Replied by Getlitcnc on topic EtherCAT Closed-Loop Drive Options for Lathe

EtherCAT Closed-Loop Drive Options for Lathe

Category: EtherCAT

I'm undergoing a similar lathe project using a pi5 and beckhoff modules however I'll be using the drive itself for the fully closed loop. I'd suggest looking at leadshine's EL8 drives. They allow a dual encoder input so you'll have your typical rotary encoder mounted on your servo, as well as a linear scale (in my case magnetic) connected to the second input. I'm also splitting the linear scale input to a beckhoff module. I hope this might help.
  • snowgoer540
  • snowgoer540's Avatar
25 Mar 2025 01:13 - 25 Mar 2025 01:14

Config will not open after Buildbot2 upgade from 2.9.4 to 2.10

Category: Plasmac

Just accept that I ran a Sim in Step 2 and it copied it to the configs folder
You tests prove nothing becasue you have not taken a sim installed under 2.94 then run it under to 2.10 (steps 5,6,7)
You are clearly not listening to the issue or following my instructions to replicate the issue. Tommy just goes off on a tangent on Item 2.



It seems neither Tommy nor I fully understood what you were doing in step 2. I follow now.

While waiting for clarification, I was attempting to replicate your issue and validate the process.

What I wanted to do is simply confirm using a SIM, things would work once I asked a customer to upgrade a live install on a production table over 1000 miles from me. Doing it on the sim found some issues. They may not apply to a live install.



Honestly, it seems like you’d benefit from learning how to simulate your customer’s actual machine. This guide explains how to convert a “live” config into a simulation config, which you may find more useful than the bog standard simulation config: forum.linuxcnc.org/plasmac/43425-simulator-for-qtplasmac

I am done with this issue as I received enough information to solve the problem manually from Snowgoer's initial post.



It’s good you were able to gather enough information to solve the problem manually.

The core issue stems from the interaction between the .ini file and the .inc file, resulting in ini.combined. The changes were correctly applied to that file, but the problem is that it’s overwritten every time LinuxCNC launches, so it applies the changes repeatedly.

I still maintain that this is an issue related to your setup/installation and/or an unintended use case. That said, I’m considering adding a check for “expanded” in the filename and display a warning if it looks like an older simulation config is being used. I’m also considering tweaking some of the messaging to clarify this process moving forward.

Thanks for being patient with me while I worked through this.
  • PCW
  • PCW's Avatar
25 Mar 2025 00:22 - 25 Mar 2025 00:47

neeed help with additional pwm 6i25 and 7i76

Category: Basic Configuration

try this:

setp   hm2_5i25.0.pwmgen.pwm_frequency 1000
setp   hm2_5i25.0.pwmgen.00.scale 100
net pwm-enable <= motion.motion-enabled  => hm2_5i25.0.pwmgen.00.enable
net pwm-output hm2_5i25.0.pwmgen.00.value

This assumes pwm-output is a signal that has the current desired PWM value


And delete this line:

loadrt pwmgen output_type=0

Note: if you have a issue with names, you can list all pwm related pin/parameter names with

halcmd show all | grep pwm

(when LinuxCNC is running)
  • PCW
  • PCW's Avatar
24 Mar 2025 23:28 - 25 Mar 2025 19:26

correspondence of unused i/o pins to physical connector location?

Category: PnCConf Wizard

On bare FPGA pins (like on P1) any pin can be an input or output
_IF_ if it's  secondary function is disabled (or it has no secondary function)
Secondary functions can be disabled in the hal file with the num_xxxx=N stanzas

For example, the default 7I96S firmware has just GPIO (no secondary function)
on P1 so all P1 pins can be input or output. On a more complex configuration
say 7i96s_5abobd, the P1 pins used for the second encoder inputs can only be
inputs unless you disable the second encoder in the hal file (num_encoders=1)
(this leaves the encoder on the 7I96S card itself enabled)


The hostmot2  manual page has more details


 
  • tommylight
  • tommylight's Avatar
24 Mar 2025 23:06
Replied by tommylight on topic Linux_Mint_22.1_LinuxCNC_2.10.iso

Linux_Mint_22.1_LinuxCNC_2.10.iso

Category: Installing LinuxCNC

The only problem I'm having is the Software Manager hangs up and says "Loading please wait".

In a terminal
sudo apt install flatpak
That is the reason software manager does not start and i mentioned that i removed it as i never use it, i use terminal exclusively.
  • Vector
  • Vector's Avatar
24 Mar 2025 22:41 - 24 Mar 2025 22:43

Is there a "no go zone" feature of any kind?

Category: General LinuxCNC Questions

Thanks again!

That last suggesting, to use hal to monitor it...

I'm familiar with setting up the game-pad pendant, and so my recollection is that you add some mux-es and ands and ors to the servo thread, and check for buttons and do the bit-math until you come up with a speed to feed into the jogging speed.

So my first thought is kinda redux that thinking: use the ands and ors and current position pins and create a section in the .ini file for limits which the ands and ors are comparing, and have the logic come up with a on/off value which gets net-ed into the Estop pin.

I think it would either have to
A: anticipate the movement somehow, (because if it used the current position, once you tripped it, you'd have no way to un-trip it. {evil grin}) and I'm clueless on how that would work,
or,
B: it would need some 'override' button, say on the jogging device, to ignore the limits and allow moving it anyway. (That's easy to imagine how it works with a final or statement.)

So the second option seems easier.

With second option, I'm thinking the e-stop button on the GUI would just trip on, everything would stop (you are spanked). Then you'd have use your pendant with override pressed to move somewhere where the e-stop button on the GUI trips back off. Then figure out how to avoid that spanking.

Is there another/better approach that comes to mind?

(I'm probably not counting the risk high enough to actually make it to the proactive action of doing this now... when I crash something badly, then I'll probably do it. Sigh. Sometimes it sucks knowing one's own psychology.)
  • 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
  • scotth
  • scotth
24 Mar 2025 22:33
Replied by scotth on topic Linux_Mint_22.1_LinuxCNC_2.10.iso

Linux_Mint_22.1_LinuxCNC_2.10.iso

Category: Installing LinuxCNC

You are right, Rufus is the way to go on building the USB drive.
The only problem I'm having is the Software Manager hangs up and says "Loading please wait".

Linuxcnc loaded my old config files and started with no problems.
  • mmt
  • mmt
24 Mar 2025 22:31 - 24 Mar 2025 22:34

neeed help with additional pwm 6i25 and 7i76

Category: Basic Configuration

sorry spoke too soon

there are 4 pwm in the terminal command but hal stop on the pwm freq line. i tried it with a hyphen and an underscore

here is my relevant info
Configuration Name: HOSTMOT2

General configuration information:

  BoardName : MESA5I25
  FPGA Size: 9 KGates
  FPGA Pins: 144
  Number of IO Ports: 2
  Width of one I/O port: 17
  Clock Low frequency: 33.3333 MHz
  Clock High frequency: 200.0000 MHz
  IDROM Type: 3
  Instance Stride 0: 4
  Instance Stride 1: 64
  Register Stride 0: 256
  Register Stride 1: 256

Modules in configuration:

  Module: DPLL
  There are 1 of DPLL in configuration
  Version: 0
  Registers: 7
  BaseAddress: 7000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: WatchDog
  There are 1 of WatchDog in configuration
  Version: 0
  Registers: 3
  BaseAddress: 0C00
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: IOPort
  There are 2 of IOPort in configuration
  Version: 0
  Registers: 5
  BaseAddress: 1000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: PWM
  There are 4 of PWM in configuration
  Version: 0
  Registers: 5
  BaseAddress: 4100
  ClockFrequency: 200.000 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: QCount
  There are 2 of QCount in configuration
  Version: 2
  Registers: 5
  BaseAddress: 3000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: SSerial
  There are 1 of SSerial in configuration
  Version: 0
  Registers: 6
  BaseAddress: 5B00
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 64 bytes

  Module: StepGen
  There are 6 of StepGen in configuration
  Version: 2
  Registers: 10
  BaseAddress: 2000
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

  Module: LED
  There are 1 of LED in configuration
  Version: 0
  Registers: 1
  BaseAddress: 0200
  ClockFrequency: 33.333 MHz
  Register Stride: 256 bytes
  Instance Stride: 4 bytes

Configuration pin-out:

IO Connections for P3
DB25 pin#             I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

 1                      0   IOPort       StepGen          0        Dir/Table2      (Out)
14                      1   IOPort       StepGen          0        Step/Table1     (Out)
 2                      2   IOPort       StepGen          1        Dir/Table2      (Out)
15                      3   IOPort       StepGen          1        Step/Table1     (Out)
 3                      4   IOPort       StepGen          2        Dir/Table2      (Out)
16                      5   IOPort       StepGen          2        Step/Table1     (Out)
 4                      6   IOPort       PWM              0        Dir             (Out)
17                      7   IOPort       PWM              0        PWM             (Out)
 5                      8   IOPort       PWM              1        Dir             (Out)
 6                      9   IOPort       PWM              1        PWM             (Out)
 7                     10   IOPort       SSerial          0        TXData0         (Out)
 8                     11   IOPort       SSerial          0        RXData0         (In)
 9                     12   IOPort       SSerial          0        TXData1         (Out)
10                     13   IOPort       SSerial          0        RXData1         (In)
11                     14   IOPort       QCount           0        Quad-IDX        (In)
12                     15   IOPort       QCount           0        Quad-B          (In)
13                     16   IOPort       QCount           0        Quad-A          (In)

IO Connections for P2
DB25 pin#             I/O   Pri. func    Sec. func        Chan     Sec. Pin func   Sec. Pin Dir

 1                     17   IOPort       StepGen          3        Dir/Table2      (Out)
14                     18   IOPort       StepGen          3        Step/Table1     (Out)
 2                     19   IOPort       StepGen          4        Dir/Table2      (Out)
15                     20   IOPort       StepGen          4        Step/Table1     (Out)
 3                     21   IOPort       StepGen          5        Dir/Table2      (Out)
16                     22   IOPort       StepGen          5        Step/Table1     (Out)
 4                     23   IOPort       PWM              2        Dir             (Out)
17                     24   IOPort       PWM              2        PWM             (Out)
 5                     25   IOPort       PWM              3        Dir             (Out)
 6                     26   IOPort       PWM              3        PWM             (Out)
 7                     27   IOPort       SSerial          0        TXData2         (Out)
 8                     28   IOPort       SSerial          0        RXData2         (In)
 9                     29   IOPort       SSerial          0        TXData3         (Out)
10                     30   IOPort       SSerial          0        RXData3         (In)
11                     31   IOPort       QCount           1        Quad-IDX        (In)
12                     32   IOPort       QCount           1        Quad-B          (In)
13                     33   IOPort       QCount           1        Quad-A          (In)

loadrt [KINS]KINEMATICS
loadrt [EMCMOT]EMCMOT servo_period_nsec=[EMCMOT]SERVO_PERIOD num_joints=[KINS]JOINTS
loadrt hostmot2
loadrt hm2_pci config="num_encoders=1 num_pwmgens=1 num_stepgens=4 sserial_port_0=00xxxxxx"
setp    hm2_5i25.0.watchdog.timeout_ns 5000000
loadrt pid names=pid.x,pid.y,pid.z,pid.a,pid.s
loadrt pwmgen output_type=0

addf hm2_5i25.0.read          servo-thread
addf motion-command-handler   servo-thread
addf motion-controller        servo-thread
addf pid.x.do-pid-calcs       servo-thread
addf pid.y.do-pid-calcs       servo-thread
addf pid.z.do-pid-calcs       servo-thread
addf pid.a.do-pid-calcs       servo-thread
addf pid.s.do-pid-calcs       servo-thread
addf hm2_5i25.0.write         servo-thread

# external output signals

net shutter-output      => hm2_5i25.0.7i76.0.0.output-00
net laser-output        => hm2_5i25.0.7i76.0.0.output-01

# --- LASER POWER ---
setp   hm2_5i25.0.pwmgen.0.pwm_freq 1000
setp   hm2_5i25.0.pwmgen.0.scale 100
net pwm-output hm2_5i25.0.pwmgen.0
net pwm-enable <= motion.motion-enabled  => hm2_5i25.0.pwmgen.0.enable
  • aharner
  • aharner
24 Mar 2025 22:31

Connecting Mesa 7i76 to Sprint 1200 DC Controller

Category: General LinuxCNC Questions

Sir, thank you for your immediate response, I had the first two pins figured out but the last ones I needed clarification. Time to get her spinning. Can't thank you enough.
  • D Jensen
  • D Jensen
24 Mar 2025 22:29
Replied by D Jensen on topic Retrofitting a 1986 Maho 400E

Retrofitting a 1986 Maho 400E

Category: Milling Machines

I'm wrong again. It occurred to me that if your one has the hand wheel on the top slide then you will have to pull that whole assembly out before pulling out the quill as the rack teeth don't go the full length of the quill. I don't know how you do that on your version and my manual for the vertical quill didn't have an explanation that there was a scotch key retaining it.
Cheers,
David
  • 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.



 
  • mmt
  • mmt
24 Mar 2025 22:24

neeed help with additional pwm 6i25 and 7i76

Category: Basic Configuration

that worked sorry for the mix up

thank you
  • PCW
  • PCW's Avatar
24 Mar 2025 22:16
Replied by PCW on topic 7I97T joint following error

7I97T joint following error

Category: General LinuxCNC Questions

Yes, at motor 2400 RPM the ballscrew would turn at 1200 RPM (20 TPS)
and 20 TPS * 0.2 IPT = 4 IPS
Displaying 7576 - 7590 out of 24496 results.
Time to create page: 0.281 seconds
Powered by Kunena Forum