Program parameters

A program parameter is an argument that can pass data into and out of a program. Unlike local tags, access program parameters publicly outside of the program. Use program parameters to share data between programs.
Types of program parameters include:
  • Input
  • Output
  • InOut
FactoryTalk Design Studio Copilot and program parameters
Use these prompts with
FactoryTalk Design Studio®
Copilot and program parameters.
  • Create
    • Tags, connection
      Prompt
      : Create a connection to send data from
      new
      [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] to
      new
      [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)].
      FactoryTalk Design Studio Copilot response
      : If source and target names, location, and data types are valid,
      FactoryTalk Design Studio
      Copilot creates new parameters and creates parameter connection between them.
    • Existing tags, connection
      Prompt
      : Create a connection to send data from
      existing
      [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] to
      existing
      [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)].
      FactoryTalk Design Studio Copilot response
      : If source and target names, location, and data types are valid,
      FactoryTalk Design Studio
      Copilot creates a parameter connection between them.
    • Data types not compatible
      Prompt
      : Create a connection to send data from [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] to [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)].
      FactoryTalk Design Studio Copilot response
      :
      If data types are not compatible
      , response is
      Unable to create connection. The parameters have incompatible data types. Please ensure the parameters have matching data types.
      .
    • Parameter type not valid
      Prompt
      : Create a connection to send data from [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] to [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)].
      FactoryTalk Design Studio Copilot response
      :
      If data types are not valid
      , response is
      Unable to create connection. The parameter types are not valid. Please ensure the parameter types are valid.
      .
    • Parameter type not valid
      Prompt
      : Create a connection to send data from [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] to [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)].
      FactoryTalk Design Studio Copilot response
      :
      If data types are not valid
      , response is
      Unable to create connection. The parameter types are not valid. Please ensure the parameter types are valid.
      .
    • Parameter type not valid
      Prompt
      : Create a connection to send data from [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] to [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)]
      FactoryTalk Design Studio Copilot response
      :
      If data types are not valid
      , response is
      Unable to create connection. The parameter types are not valid. Please ensure the parameter types are valid.
      .
    • Attempting to connect across controllers
      Prompt
      : Create a connection to send data from [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] to [Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)].
      FactoryTalk Design Studio Copilot response
      :
      If trying to connect parameters in different controllers
      , response is
      Unable to create connection. Parameters cannot be connected across different controllers.
      .
    • Connecting already connected InOut parameter
      Prompt
      : Create a connection to send data from [Controller_Name.Program_Name.Tag_Name (Tag_Type.INOUT)] to [Controller_Name.Program_Name.Tag_Name (Tag_Type.INOUT)].
      FactoryTalk Design Studio Copilot response
      :
      If trying to connect InOut parameters that are already connected
      , response is
      Unable to create connection. InOut parameters can only have one program parameter connection.
      .
    • Converting tags to parameters and connecting
      Prompt
      : Connect [Controller_Name.Program_Name.Tag_Name] and [Controller_Name.Program_Name.Tag_Name] as OUTPUT, INPUT parameters.
      FactoryTalk Design Studio Copilot response
      Controller_Name.Program_Name.Tag_Name] and [Controller_Name.Program_Name.Tag_Name] have been converted to parameters and the connection has been successfully established.
    • Program-scope local tag conversion
      Prompt
      : Convert local tag [Program_Name.Tag_Name] to a parameter and connect it to [Program_Name.Tag_Name].
      FactoryTalk Design Studio Copilot response
      Unable to create connection. Please use a different tag.
    • Create parameter and connect to existing
      Prompt
      : Create a new parameter [Tag_Name (Tag_Type)] and connect it to [Tag_Name].
      FactoryTalk Design Studio Copilot response
      The parameter [Tag_Name (Tag_Type)] has been created and connected to [Tag_Name].
    • Convert tag to parameter, create new parameter, and connect
      Prompt
      : Convert [Controller_Name.Program_Name.Tag_Name] to a parameter and create a new parameter [Tag_Name (Tag_Type)], then connect them.
      FactoryTalk Design Studio Copilot response
      [Controller_Name.Program_Name.Tag_Name] has been converted to a parameter, [Tag_Name (Tag_Type)] has been created, and the connection has been successfully established.
    • Connections with existing parameters
      Prompt
      : Create a parameter connection from [controller.program parameter_name (datatype, parameter_type)] to [controller.program parameter_name (datatype, parameter_type)].
      FactoryTalk Design Studio Copilot response
      If valid, parameter connection created.
    • Connections and parameters
      Prompt
      : Create a parameter connection from [controller.program parameter_name (datatype, parameter_type)] to [controller.program parameter_name (datatype, parameter_type)].
      FactoryTalk Design Studio Copilot response
      If valid, program parameters and parameter connection between them created.
      Data types not compatible
      If the data types are not compatible between requested connections, connection are not made.
  • Modify
    Prompt
    : Change the connection on [controller.program parameter_name] to connect to [controller.program parameter_name].
    FactoryTalk Design Studio Copilot response
    If valid, program connection changes.
  • Promote
    Prompt
    : Promote [controller.program tag_name] to connect to INPUT.
    FactoryTalk Design Studio Copilot response
    If valid, local tag promoted to program parameter.
  • View
    • View all parameter connections
      Prompt
      : Show all parameter connections.
      FactoryTalk Design Studio Copilot response
      Displaying all parameter connections in the project: [List of Connections].
    • View FactoryTalk Smart Object connections
      Prompt
      : Show connections for [Smart_Object] {Note: Smart Object exists}.
      FactoryTalk Design Studio Copilot response
      Displaying all parameter connections for [Smart_Object]: [List of Connections].
    • Invalid FactoryTalk Smart Object name
      Prompt
      : Show connections for [Smart_Object] {Note: Smart Object does not exist}.
      FactoryTalk Design Studio Copilot response
      Unable to display connections. The smart object [Smart_Object] was not found in the project.
    • View program connections
      Prompt
      : Show connections for Program [Program_Name].
      FactoryTalk Design Studio Copilot response
      Displaying all parameter connections for [Program_Name]: [List of Connections].
    • View parameter connections
      Prompt
      : Show connections for [Program_Name.Tag_Name].
      FactoryTalk Design Studio Copilot response
      Displaying all parameter connections for [Program_Name.Tag_Name]: [List of Connections].
    • List all parameter connections
      Prompt
      : List all parameter connections.
      FactoryTalk Design Studio Copilot response
      All parameters shown in the response.
  • Delete
    • Delete existing connection
      Prompt
      : Delete the connection between [Program_Name.Tag_Name] and [Program_Name.Tag_Name]. {Note: valid and existing reference}.
      FactoryTalk Design Studio Copilot response
      The connection between [Program_Name.Tag_Name] and [Program_Name.Tag_Name] has been successfully deleted..
    • Delete non-existing connection
      Prompt
      : Delete the connection between [Program_Name.Tag_Name] and [Program_Name.Tag_Name]. {Note: valid but references do not exist}.
      FactoryTalk Design Studio Copilot response
      Unable to delete connection. No connection found between [Program_Name.Tag_Name] and [Program_Name.Tag_Name].
    • Program parameter
      Prompt
      : Delete [controller.program parameter_name].
      FactoryTalk Design Studio Copilot response
      If valid, program parameter deleted.
    • Parameter connection
      Prompt
      : Delete the connection between [controller.program parameter_name] and [controller.program parameter_name].
      FactoryTalk Design Studio Copilot response
      If valid, parameter program deleted.
Find more information about
FactoryTalk Design Studio
Copilot prompts for:
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal