logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

updown - Counts up or down, with optional limits and wraparound behavior

Author

       Stephen Wille Padnos

Functions

updown.N
              Process inputs and update count if necessary

License

       GPL

LinuxCNC Documentation                             2025-08-07                                          UPDOWN(9)

Name

       updown - Counts up or down, with optional limits and wraparound behavior

Parameters

updown.N.clamp bit rw
              If TRUE, then clamp the output to the min and max parameters.

       updown.N.wrap bit rw
              If  TRUE,  then  wrap  around when the count goes above or below the min and max parameters.  Note
              that wrap implies (and overrides) clamp.

       updown.N.max s32 rw (default: 0x7FFFFFFF)
              If clamp or wrap is set, count will never exceed this number

       updown.N.min s32 rw
              If clamp or wrap is set, count will never be less than this number

Pins

updown.N.countup bit in
              Increment count when this pin goes from 0 to 1

       updown.N.countdown bit in
              Decrement count when this pin goes from 0 to 1

       updown.N.reset bit in
              Reset count when this pin goes from 0 to 1

       updown.N.count s32 out
              The current count

Synopsis

loadrtupdown[count=N|names=name1[,name2...]]

See Also