Program parameter connections

Program parameter connections pass data between programs or devices and improve program reusability.

Overview

Program parameter connections pass data:
  • Into and out of a program.
  • To and from a parameter in a program and a controller tag, device tag, or a parameter in another program.
When control logic references a program parameter instead of direct tag references, the logic automatically reacts to parameter connections. This enables program reusability.

Example

For example, create two programs, add parameters to the programs, and then create the connections:
  • Program A may have a tank pressure sensor represented as an Output parameter.
  • Program B may have a light represented as an Input parameter.
When you connect the Output parameter of the tank pressure sensor to the Input parameter of the light,
FactoryTalk Design Studio
passes the value and data type of the tank pressure sensor to the light. With appropriate control logic, the light turns green when the tank pressure sensor is too high.
TIP: Parameter passing for routines is distinct from parameter passing for programs. Refer to Jump to Subroutine (JSR), Subroutine (SBR), and Return (RET).
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal