SIM_HOME_SWITCH(9)

πŸ“¦
version 2.9.4 Β· 4 versions
, in ubuntu resolute, ubuntu stonking

✨ SIM_HOME_SWITCH(9) ✨

okay bestie, gather round πŸ’– this is a HAL Component man page, and it's literally called sim_home_switch β€” the Home switch simulator. Yes queen, it fakes a home switch for you so you can play with your motion setup without, like, real hardware drama. πŸŽ€


🌸 NAME 🌸

sim_home_switch β€” Home switch simulator

No cap, that's the whole name. Short, sweet, iconic. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

loadrt sim_home_switch [count=N|names=name1[,name2...]]

That's your whole entrance. Load it with count=N if you want a bunch of them, or names=name1[,name2...] if you're that girl who names her instances. πŸ‘‘


πŸ’œ DESCRIPTION πŸ’œ

So here's the vibe: once the home switch gets tripped, you have to travel back the other way before it'll un-trip. How far back? That's set by the hysteresis pin β€” it's the backoff distance, and it's non-negotiable, fr fr. πŸšΆβ™€οΈ

There's also a pin called index-enable given to you for when [JOINT_n]HOME_USE_INDEX is specified β€” its whole job is to reset the I/O pin joint.N.index-enable. She's a little helper. She's doing her best. 🫢


πŸ”₯ FUNCTIONS πŸ”₯

  • sim-home-switch.N β€” requires a floating-point thread ⚠️ like, do not try to run her on an integer thread, she will simply not go.

πŸ’… PINS πŸ’…

  • sim-home-switch.N.cur-pos float in β€” the current position. Typically you feed her joint.n.motor-pos-fb. She wants the tea on where you actually are. πŸ“
  • sim-home-switch.N.home-pos float in (default: 1) β€” the home switch position. Where home lives. 🏠
  • sim-home-switch.N.hysteresis float in (default: 0.1) β€” travel required to backoff (hysteresis). How far you gotta scoot back before she's chill again. 😌
  • sim-home-switch.N.home-sw bit out β€” home switch activated. She's giving "yes, we're home." πŸ’–
  • sim-home-switch.N.index-enable bit io β€” typ: connect to joint.N.index-enable. Your little reset gremlin, as promised. ✨
  • sim-home-switch.N.index-delay-ms float in (default: 10) β€” delay in msec to reset index-enable. She waits 10 whole milliseconds before doing the thing. Patience is a virtue, bestie. ⏳

πŸ‘‘ AUTHOR πŸ‘‘

Dewey Garrett

(one person. one legend. that's the whole author page, and honestly? slay.)


🌈 LICENSE 🌈

GPL

that's GNU General Public License, and yes, you should read the actual license text if you're gonna go around redistributing her. not me being legally responsible for your copy-paste decisions 😭

okay so that's the whole page β€” congrats, you now understand sim_home_switch better than 90% of people who have it compiled into their machine πŸ’€βœ¨ this was documented by the LinuxCNC Documentation crew, and this particular version is dated 2026-03-17. go forth and home your axes, bestie, i'm obsessed with you πŸŽ€πŸ’–πŸ¦‹

πŸ“¦ where this page comes from