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?
Displaying 15631 - 15631 out of 15631 results.
Time to create page: 0.426 seconds
Powered by Kunena Forum