Program parameters
A program parameter is an argument that passes data into and out of programs, and shares
data between programs and devices. Unlike local tags, program parameters are accessible
publicly outside of the program.
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, connectionPrompt: Create a connection to send data fromnew[Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] tonew[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, connectionPrompt: Create a connection to send data fromexisting[Controller_Name.Program_Name.Tag_Name (Tag_Type.Parameter_Type)] toexisting[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 compatiblePrompt: 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 validPrompt: 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 validPrompt: 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 validPrompt: 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 controllersPrompt: 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 parameterPrompt: 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 connectingPrompt: Connect [Controller_Name.Program_Name.Tag_Name] and [Controller_Name.Program_Name.Tag_Name] as OUTPUT, INPUT parameters.FactoryTalk Design Studio Copilot responseController_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 conversionPrompt: Convert local tag [Program_Name.Tag_Name] to a parameter and connect it to [Program_Name.Tag_Name].FactoryTalk Design Studio Copilot responseUnable to create connection. Please use a different tag.
- Create parameter and connect to existingPrompt: Create a new parameter [Tag_Name (Tag_Type)] and connect it to [Tag_Name].FactoryTalk Design Studio Copilot responseThe parameter [Tag_Name (Tag_Type)] has been created and connected to [Tag_Name].
- Convert tag to parameter, create new parameter, and connectPrompt: 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 parametersPrompt: Create a parameter connection from [controller.program parameter_name (datatype, parameter_type)] to [controller.program parameter_name (datatype, parameter_type)].FactoryTalk Design Studio Copilot responseIf valid, parameter connection created.
- Connections and parametersPrompt: Create a parameter connection from [controller.program parameter_name (datatype, parameter_type)] to [controller.program parameter_name (datatype, parameter_type)].FactoryTalk Design Studio Copilot responseIf valid, program parameters and parameter connection between them created.Data types not compatibleIf the data types are not compatible between requested connections, connection are not made.
- ModifyPrompt: Change the connection on [controller.program parameter_name] to connect to [controller.program parameter_name].FactoryTalk Design Studio Copilot responseIf valid, program connection changes.
- PromotePrompt: Promote [controller.program tag_name] to connect to INPUT.FactoryTalk Design Studio Copilot responseIf valid, local tag promoted to program parameter.
- View
- View all parameter connectionsPrompt: Show all parameter connections.FactoryTalk Design Studio Copilot responseDisplaying all parameter connections in the project: [List of Connections].
- View FactoryTalk Smart Object connectionsPrompt: Show connections for [Smart_Object] {Note: Smart Object exists}.FactoryTalk Design Studio Copilot responseDisplaying all parameter connections for [Smart_Object]: [List of Connections].
- Invalid FactoryTalk Smart Object namePrompt: Show connections for [Smart_Object] {Note: Smart Object does not exist}.FactoryTalk Design Studio Copilot responseUnable to display connections. The smart object [Smart_Object] was not found in the project.
- View program connectionsPrompt: Show connections for Program [Program_Name].FactoryTalk Design Studio Copilot responseDisplaying all parameter connections for [Program_Name]: [List of Connections].
- View parameter connectionsPrompt: Show connections for [Program_Name.Tag_Name].FactoryTalk Design Studio Copilot responseDisplaying all parameter connections for [Program_Name.Tag_Name]: [List of Connections].
- List all parameter connectionsPrompt: List all parameter connections.FactoryTalk Design Studio Copilot responseAll parameters shown in the response.
- Delete
- Delete existing connectionPrompt: Delete the connection between [Program_Name.Tag_Name] and [Program_Name.Tag_Name]. {Note: valid and existing reference}.FactoryTalk Design Studio Copilot responseThe connection between [Program_Name.Tag_Name] and [Program_Name.Tag_Name] has been successfully deleted..
- Delete non-existing connectionPrompt: Delete the connection between [Program_Name.Tag_Name] and [Program_Name.Tag_Name]. {Note: valid but references do not exist}.FactoryTalk Design Studio Copilot responseUnable to delete connection. No connection found between [Program_Name.Tag_Name] and [Program_Name.Tag_Name].
- Program parameterPrompt: Delete [controller.program parameter_name].FactoryTalk Design Studio Copilot responseIf valid, program parameter deleted.
- Parameter connectionPrompt: Delete the connection between [controller.program parameter_name] and [controller.program parameter_name].FactoryTalk Design Studio Copilot responseIf valid, parameter program deleted.
Find more information about FactoryTalk Design Studio Copilot prompts for:
Provide Feedback