# DI – Run Until Digital Input

Tools
ES STR SL ST SR QST

This steps runs the tool, in the direction defined by parameter Direction, until the input specified by Digital Input goes high or low depending on the value of Stop Condition.

Parameter | Description
--- | ---
Direction | Forward, or Backward
Digital Input | One of the following local digital inputs on the controller can be selected: Local DI 1 Local DI 2 Local DI 3 Local DI 4
Brake (Valid only for Power Focus 6000 StepSync, Power Focus 8 StepSync, and Flex). | If On the tool will be stopped when the target is reached. If Off the program goes directly to the next step without stopping the tool.
Stop Condition | Falling edge: The steps runs until a falling edge is detected after step start. Rising edge: The steps runs until a rising edge is detected after step start. Any edge: The step runs until a falling or a rising edge is detected after step start. Low: The step runs until low value is detected. High: The step runs until high value is detected.
Speed (rpm) | Default: 60 rpm.
Speed ramp type | Hard, soft, or manual. Default: Hard. If you select Manual, the Speed ramp field opens.
Speed ramp | Available if Speed ramp type is Manual. Default: 500 rpm/s.

## Microvideo

DI - Run Until Digital Input