Advanced Search

Search Results (Searched for: )

  • kubes
  • kubes
31 May 2025 18:34 - 31 May 2025 18:36
Replied by kubes on topic Setting pin value based on other pins

Setting pin value based on other pins

Category: HAL

Thanks! mux4 worked.

In case others need it, here is my solution:

loadusr -Wn modbus mb2hal config=mb2hal-gt.ini
loadrt mux4 count=1

addf mux4.0 servo-thread

# esnure all is stopped! (int and float are add together and the result is sent to modbus)
setp modbus.vfd.command.int 0
setp modbus.vfd.command.float 5

# set the logic of that command to send the vdf
# 5 = stop, 1 = forward, 2 = reverse
setp mux4.0.in0 5
setp mux4.0.in1 1
setp mux4.0.in2 2
setp mux4.0.in3 5

net vfd-cmd1 mux4.0.sel0 <= spindle.0.forward
net vfd-cmd2 mux4.0.sel1 <= spindle.0.reverse
net vfd-command modbus.vfd.command.float <= mux4.0.out

net spindle-speed-fb <= modbus.vfd.status.rotation_speed.float

 
  • kubes
  • kubes
31 May 2025 18:31
Replied by kubes on topic New HAL Components - Best Practice

New HAL Components - Best Practice

Category: HAL

Thanks

If I build against 2.10, how is backwards compatibility handled? I am running 2.9.
Displaying 15616 - 15617 out of 15617 results.
Time to create page: 0.417 seconds
Powered by Kunena Forum