Advanced Search

Search Results (Searched for: )

  • kubes
  • kubes
31 May 2025 05:47

Setting pin value based on other pins

Category: HAL

I am using mb2hal (modbus) and it exposes a pin `mb2hal.00.00.int` that is an input, the values can be 1, 2, or 5. I need to set the values based on other bit pin:

if spindle.0.forward = true then mb2hal.00.00.in = 1
if spindle.0.reverse = true then mb2hal.00.00.in = 2
if spindle.0.on = false then mb2hal.00.00.in = 5

How do I create this logic in the hal?
  • juliankoenig87
  • juliankoenig87
31 May 2025 04:23
Replied by juliankoenig87 on topic home build cnc cutting fabric machine

home build cnc cutting fabric machine

Category: Plasma & Laser

Cool idea. I also think this shoul be possible.

I am thinking of servos instead of steppers. Reason is build in encoders (ok cl steppers have it too) and the possibility to change to torque mode. So the two pulling servos in position mode doing the move and the two servos in torque mode can build up adjustable tension.

This setup than could be used as an initial meassure of the layer thickness and correct values for that.

I can imagine some kind of tape at the sides for all corrections. Like the tape on the shaper woodworking cnc handheld machine (dont know the exact name right now). This way you can use a camera like system an be on track all the time I guess.
Displaying 15631 - 15632 out of 15632 results.
Time to create page: 0.502 seconds
Powered by Kunena Forum