← All exercises

Reverse Speed Reference

easy

Passes a signed speed reference through, or flips its sign when the reverse command is on.

What it teaches

Negate flips the sign of a value (0 − source), turning +500 into −500. Distinct from absolute value, which only ever drops the sign. A Reverse command toggles the direction of a bidirectional speed reference.

Inputs and outputs

TagTypeDefaultDescription
In_RefREAL500Speed reference from the operator
In_ReverseBOOLReverse direction command
Out_RefREALSigned speed reference to the drive

Required behavior