All exercises

Constant Pass-Through

Pass an input integer to an output and provide a constant value at a second output.

beginner

Parameters

NameTypeUsageDescription
In_IDINTInputThe value to be passed through to Out_O.
Out_ODINTOutputThe value copied from In_I.
Out_CDINTOutputThe constant value 43.

Behavior

  1. When executed, copy the value of In_I to Out_O.
  2. Set Out_C to the static constant value 43.

Edge Cases

  • Input value exceeding the maximum or minimum bounds of a DINT should be handled by standard PLC data type overflow/underflow behavior.

Constraints

  • The operation must execute synchronously every scan while the AOI is called.

Ready to start?

Open this exercise in Rungs Studio, write your solution, then click Test in the toolbar to verify your work against the built-in test cases.