Advanced Search

Search Results (Searched for: )

  • LinuxCrashOut
  • LinuxCrashOut's Avatar
09 Sep 2025 21:07 - 09 Sep 2025 21:15

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

Hello guys, 

Trying to set up two things :

1) I want my machine to be enabled as soon as I disengage the estop, so halui.machine.is-on is true when the estop is not pressed.

I already have this 

# --- Physical E-stop on INPUT27 ---
# Normally open: 0 = OK, 1 = E-stop pressed

net estop-in    <=  hm2_7i76e.0.7i76.0.0.input-27
net estop-in    =>  iocontrol.0.emc-enable-in

I tried a lot of different ways but unsuccessfully. The most I could do was that the machine was on at start, when the estop was not pushed, but after cycling the estop, the machine would not get back to its on state.

# Load the required components
loadrt toggle2nist
loadrt timedelay
loadrt oneshot

# Add functions to threads
addf toggle2nist.0 servo-thread
addf timedelay.0 servo-thread
addf oneshot.0 servo-thread

# Configure components
setp timedelay.0.on-delay 2.0
setp timedelay.0.off-delay 0.0
setp oneshot.0.width 0.1  # Short pulse

# Create a not component for inversion (using existing not component)
loadrt not names=not.estop
addf not.estop servo-thread

# Connect iocontrol.0.user-enable-out to not component
net user-enable-status iocontrol.0.user-enable-out => not.estop.in

# Detect estop clearance edge (inverted signal)
net estop-cleared <= not.estop.out
net estop-cleared => oneshot.0.in
net estop-pulse oneshot.0.out => timedelay.0.in

# Use existing machine status signal
net machine-is-on => toggle2nist.0.is-on

# Connect delayed pulse to toggle
net delayed-pulse timedelay.0.out => toggle2nist.0.in

# Connect toggle output
net machine-on-toggle toggle2nist.0.on => halui.machine.on

Can you guys tell me why it does not work, what I am doing wrong or forgot?

2) I tried adding an MPG, but I am lost and the documentation is not very helpful for a beginner.

I am wiring my mpg as described in the attached picture but I was not able to make it work :

 

Here is the wiring for my pins on my mesa 7i76e :

5) **Jog MPG** (hm2_7i76e.0.7i76.0.0.enc0.count)

    | TB3 pin  |  Name   | MPG contact |
    |:---|:-----| :--- |
    | 9 | GND | VCC |
    | 12 | +5VP | GND |

    | TB5 pin  |  Name   | MPG contact |
    |:---|:-----| :--- |
    | 1 | INPUT16 | A+ |
    | / | / | A- |
    | 2 | INPUT17 | B+ |
    | / | / | B- |

6) **Jog enabling button**

    | TB5 pin  |  Name   | HAL name |
    |:---|:-----|:---|
    | 5 | INPUT20 | hm2_7i76e.0.7i76.0.0.input-20 |

7) **Speed selector button**

    | TB5 pin  |  Name   |  Position  |
    |:---|:-----|:---|
    | 6 | INPUT21 | X1 |
    | 7 | INPUT22 | X100 |

    If none is selected, the speed is X10

8) **Axis selector button**

    | TB5 pin  |  Name   |  Position  |
    |:---|:-----|:---|
    | 8 | INPUT23 | X |
    | 9 | INPUT24 | Z |

So, if someone has the code for an mpg wired like that, on a 7i76e, I would really appreciate it!

My ini and hal files are attached.
  • PCW
  • PCW's Avatar
09 Sep 2025 20:59

Troubles to get started with SD240 Retrofit

Category: Turning

Yes, sounds like its working now, sorry I missed that the index was single ended.

The 7I33 can just change the input mode of each encoder interface (A,B,IDX), not pin-by-pin
as most newer Mesa cards can do.
 
  • ziggi
  • ziggi's Avatar
09 Sep 2025 20:42 - 09 Sep 2025 20:49

Troubles to get started with SD240 Retrofit

Category: Turning

So I set the jumpers on the 7i33 for X- and Z-axis to TTL (DOWN) and entered the USE INDEX- YES in the INI. Both axes behave normal and I think they home with using the index now.
Sequence:
Homing movement
Home switch trips- "home sw. X" gets yellow, "enable index" lights up yellow and the axis moves forward a bit further.Then the "hm2_7i80.0.encoder.00.input-index" flashes yellow very short, the axis frees the home switch and moves on to home-pos, stops and "x-axis homed" lights up yellow and the DRO says 0/0.

Z homes the same way. 

I think thats exactly what I wanted to achieve- correct? 
The spindle I guess can be indexed also, otherwise threading would be impossible...but the spindle likely just needs the index, A/B will not be necessary on a lathe- or am I wrong?
Well lets see how the next step can be solved.

The important hint was that the 7i33 just can process ALL inputs as TTL or ALL inputs as differential!
Thank you all so much
Sigi
  • scotta
  • scotta's Avatar
09 Sep 2025 20:40

Remora - Rpi Software Stepping Using External Microcontroller via SPI

Category: Computers and Hardware

Hi, please share your config files. If signals can be seen in Hal Meter there must be another config issue.
  • PCW
  • PCW's Avatar
09 Sep 2025 20:26
Replied by PCW on topic Homing is not working

Homing is not working

Category: HAL

Does individual joint homing work?

(comment out the HOME_SEQUENCE settings in the .ini file)
 
  • PCW
  • PCW's Avatar
09 Sep 2025 19:58

Driving my SyilX3 and Plasma cutter machine with 5i25t which provided driver?

Category: Driver Boards

Here's a basic try at this using the stepgen mapping:

0 = X
1 = Y
2 = Z
3 = A

 

File Attachment:

File Name: 5i25t_syil3a.zip
File Size:134 KB


The zip file includes the firmware and the modified pinout  source file
  • Nicotron
  • Nicotron
09 Sep 2025 19:13
Replied by Nicotron on topic need help! mesa 7i95 connection problem

need help! mesa 7i95 connection problem

Category: Driver Boards

I use a bad power supply. I tested it with a laboratory power supply and it works fine with 5V now.
  • Robert312
  • Robert312
09 Sep 2025 19:11
Replied by Robert312 on topic Homing is not working

Homing is not working

Category: HAL

The behaviour does not change if I change the home_sequence values to: 0, 1, 2
  • jpg
  • jpg
09 Sep 2025 19:02
Replied by jpg on topic G33.1 synchronized tapping problem

G33.1 synchronized tapping problem

Category: General LinuxCNC Questions

Thanks, Aciera. I'll check with Cofhal. He had a setup that seemed to work well. Spumco hasn't said anything since... I plan to give it a try before Christmas (purchase of a 7i96). I'll keep you posted. Thanks again for the feedback and your efforts to make this C-axis fully functional.
  • alangibson
  • alangibson
09 Sep 2025 18:13
Replied by alangibson on topic My CAD / CAM research

My CAD / CAM research

Category: CAD CAM

I've just released my plasma CAM solution for early preview. I'd appreciate it if those of you with time and a plasma cutter would take a look and drop me some feedback in the launch thread linked below.

App: metalheadcam.alan-gibson.workers.dev/
Discussion: forum.linuxcnc.org/plasmac/57161-metalhe...e-plugin-replacement
  • joego
  • joego
09 Sep 2025 18:06

Driving my SyilX3 and Plasma cutter machine with 5i25t which provided driver?

Category: Driver Boards

HI, I have attached the hal file directory.
Thank you for the help! 

File Attachment:

File Name: SyilAmericaX3.tar
File Size:50 KB
  • amanker
  • amanker
09 Sep 2025 18:04
  • hitchhiker
  • hitchhiker
09 Sep 2025 17:31 - 12 Sep 2025 15:27
Replied by hitchhiker on topic ECMO VMC100 Retrofit with Carousel/Toolchanger

ECMO VMC100 Retrofit with Carousel/Toolchanger

Category: Milling Machines

Wrong infos! Dont want people to go on the wrong path!
  • jschulze
  • jschulze
09 Sep 2025 16:11

Kinematic model for a 5axis mill with universal (nutating) head

Category: Show Your Stuff

I've replaced the standard kinematic file with your modified version, added extra joints and changed the config to inches to test in the simulation but I cannot reproduce your jogging issue in TWP mode.
I'm afraid I'm a bit at a loss as to how to troubleshoot this further.

Thanks so much for checking it out.  I'll play around a bit more and see if there's anything I can find.  I'm just working on a vismach sim of my actual machine, so I'll try it out on there and see if I can replicate it.  
  • hitchhiker
  • hitchhiker
09 Sep 2025 15:45
Replied by hitchhiker on topic ECMO VMC100 Retrofit with Carousel/Toolchanger

ECMO VMC100 Retrofit with Carousel/Toolchanger

Category: Milling Machines

you mean that i need a rising instead falling edge? or a falling instead a rising?

this i must check... when exact the state change....
Displaying 10501 - 10515 out of 16370 results.
Time to create page: 1.150 seconds
Powered by Kunena Forum