Advanced Search

Search Results (Searched for: )

  • scsmith1451
  • scsmith1451's Avatar
10 Sep 2025 00:35
Replied by scsmith1451 on topic Mapping key codes to specific jog rates

Mapping key codes to specific jog rates

Category: Advanced Configuration

You are correct, not much there.
  • PCW
  • PCW's Avatar
10 Sep 2025 00:00

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

OK so if you are supplying the same 24V to TB3 and TB1
the 5V and 24V grounds are already common so that's OK.

Does hm2_7i76e.0.7i76.0.0.enc0.count change when you turn the MPG?

 
  • LinuxCrashOut
  • LinuxCrashOut's Avatar
09 Sep 2025 23:12

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

I already have
0) **Power**

    | TB1 pin  |  Name   | Terminal block |
    |:---|:-----|:---|
    | 5 | VIN |  24V+  |     
    | 8 | GROUND |  0V  |     

    | TB3 pin  |  Name   | Terminal block |
    |:---|:-----|:---|
    | 22 | UNREG LOGIC PWR+ IN |  24V+  |     
    | 23 | GND |  0V  |    

And from my post above, I wrote :
| TB3 pin  |  Name   | MPG contact |
    |:---|:-----| :--- |
    | 9 | GND | VCC |
    | 12 | +5VP | GND |

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

is the GND on pin 9 floating and I need to wire it to the GND from my power supply?

bit lost here...
  • PCW
  • PCW's Avatar
09 Sep 2025 21:49

HAL help needed for MPG wheel jogging and machine enabling logic

Category: HAL

For the MPG wiring you would also need the field power common
to connect to the MPG GND
  • 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)
 
Displaying 13531 - 13539 out of 13539 results.
Time to create page: 0.398 seconds
Powered by Kunena Forum