CONV_U32_S32(9)

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

πŸ’… CONV_U32_S32 πŸ’…

okay bestie, gather round, because today we're talking about conv_u32_s32 β€” it's a HAL Component and it does exactly one (1) thing: it takes a value that's a u32 and turns it into an s32. that's it. that's the whole vibe. no cap. πŸ¦‹


✨ SYNOPSIS ✨

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

load it into your HAL setup with count=N if you want a bunch of them, or names=name1[,name2...] if you're the type who names their pets. either way, slay. πŸ’–


πŸ”₯ FUNCTIONS πŸ”₯

  • conv-u32-s32.N β€” this is the function, and what it does is so beautifully simple it's giving main character energy: it updates out based on in. that's the job. that's the entire job. 🫢

πŸŽ€ PINS πŸŽ€

  • conv-u32-s32.N.in u32 in β€” the input pin, type u32. this is what you're feeding in. the raw material. the before picture. ✨
  • conv-u32-s32.N.out s32 out β€” the output pin, type s32. this is the after. the glow-up. πŸ’…
  • conv-u32-s32.N.out-of-range bit out β€” a bit output that goes TRUE when in is not in the range of s32. so it's basically the lil alarm bell that says "bestie… that number does NOT fit". 🚨 lowkey iconic.

πŸ’œ PARAMETERS πŸ’œ

  • conv-u32-s32.N.clamp bit rw β€” read-write bit, and it decides what happens when things get spicy:
    • if it's TRUE, the value gets clamped to the range of s32. cozy. contained. safe. 🧚
    • if it's FALSE, the value is allowed to "wrap around". chaotic. unhinged. exactly what the original says, no notes. 😭
fr fr, clamp defaults to nothing in this page β€” but the wrap-around behaviour is quoted straight from the source, and it is not a vibe you want by accident. check your range. πŸ”₯

πŸ‘‘ AUTHOR πŸ‘‘

Jeff Epler. the icon. the legend. we stan. ⭐


🌸 LICENSE 🌸

GPL β€” that's it, that's the license. go forth and be free (within the terms of the GPL, obviously). 🌈


πŸ’€ reminder bestie: u32 has no room for negativity, and s32 does. that's literally the whole plot of this manpage.

doc'd by the LinuxCNC Documentation crew, dated 2026-03-17 β€” mwah, love u, go convert some integers πŸ’–βœ¨

πŸ“¦ where this page comes from