---
name: "conv_s32_bit"
section: "9"
platform: "linux"
package: "linuxcnc-uspace"
version: "1:2.9.4-2+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/conv_s32_bit"
---

# conv\_s32\_bit(9)

Convert a value from s32 to bit

## NAME

conv\_s32\_bit - Convert a value from s32 to bit

## SYNOPSIS

**loadrt conv\_s32\_bit \[count=*N*\|names=*name1*\[,*name2...*\]\]**

## FUNCTIONS

- **conv-s32-bit.***N*

  Update 'out' based on 'in'

## PINS

- **conv-s32-bit.*N*.in s32 in**

  - **conv-s32-bit.*N*.out bit out**

  - **conv-s32-bit.*N*.out-of-range bit out**

  TRUE when 'in' is not in the range of bit

## PARAMETERS

- **conv-s32-bit.*N*.clamp bit rw**

  If TRUE, then clamp to the range of bit.  If FALSE, then allow the value to "wrap around".

## AUTHOR

Jeff Epler

## LICENSE

GPL
