SIM_HOME_SWITCH(9)
β¨ 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-posfloat in β the current position. Typically you feed herjoint.n.motor-pos-fb. She wants the tea on where you actually are. πsim-home-switch.N.home-posfloat in (default:1) β the home switch position. Where home lives. πsim-home-switch.N.hysteresisfloat 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-swbit out β home switch activated. She's giving "yes, we're home." πsim-home-switch.N.index-enablebit io β typ: connect tojoint.N.index-enable. Your little reset gremlin, as promised. β¨sim-home-switch.N.index-delay-msfloat 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
- ubuntu resolute: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- ubuntu stonking: linuxcnc-uspace 1:2.9.4-2ubuntu4 Β· GFDL-1.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms