Skip to content

Digital Inputs

Digital inputs are on/off signals such as buttons, switches, magnetic reed switches, beam breaks, and sensor contacts.

Add a digital input

  1. Open Configuration.
  2. Go to Connections.
  3. Expand Inputs, Outputs, and Modules.
  4. Add an input.
  5. Choose a digital input type.
  6. Set the input ID (friendly name).
  7. Select the physical pin, expander pin, or module channel.
  8. Set active behavior if the sensor is high or low trigger and enable/disable the input pullup.
  9. Apply I/O Changes and let the controller reboot if required.
  10. Confirm the input changes in Live Monitor or on the Operator page.

Digital input controls

ControlWhat it does
IDFriendly name used by behavior rules and operator status
TypeDefines the kind of digital source, such as button, switch, latch, knock, or custom input
Pin/channelPhysical controller pin or module channel
PullupFor dry contacts the simplest configuration is pullup enabled with a low active
Active stateDetermines whether high or low means active

Use in behavior

  1. Go to Configuration > Behavior.
  2. Add an Action Trigger or Logic Rule.
  3. Choose the digital input as the source.
  4. Select the state or value, such as active, inactive, pressed, or released.
  5. Choose the action to run.

Gestures and Debounce

On the Definitions page there are 2 sections that can apply to Digital Inputs, the Default Debounce and Input Gestures. A debounce determines how long an input needs to be in a state before it registers as a trigger and can also determine how fast subsequent triggers can happen. Switches a default of 40ms can usually help ensure clean signals but in noisy environments it’s not uncommon to have debounce of up to 500ms. Too much can make a prop feel sluggish but the longer the debounce the more reliable the reading.

For buttons, setting up an Input Gesture can allow you to have things long short press, long press, double press and press/hold. You can configure the timings individually but the defaults are usually a good starting point.

Troubleshooting

SymptomWhat to check
Input never changesPin/channel, ground, active state, module power
Input reads backwardActive state or wiring type
Input fires repeatedlyDebounce, loose wiring, floating input
Behavior does not runSource ID, required state guard, and action target