Parameter connection guidelines
Follow these guidelines when defining parameter connections in the
FactoryTalk Design Studio
DSL.- Use theparameterConnectionkeyword to announce a connection.
- A parameter connection is a relationship between two parameters. Changing a tag’s connection does not modify the file the tag resides in.
- Connections to parameter bit, array, and structure members are allowed.InOut parameters allow only a single connection to the whole tag. Connections to InOut members are not allowed. You can connect the InOut to a member of an Input parameter or controller tag. InOut parameters that are arrays cannot connect to members of an Input or controller tag. InOut parameters can only connect to the whole tag.InOut connection validationUnconnected InOut parameters in aSystem Objectbase instance cause a validation error, and unconnected InOut parameters in aSystem Objectdefinition do not cause a verification error. Optionally, you can choose to connect the InOut parameter in theSystem Objectdefinition and it will be inherited in all instances.ASystem Objectinstance that contains an unconnected InOut parameter causes a validation error in both the Library view and the System View. However, anySystem Objects that inherit from thatSystem Objectwill not show a validation error for the unconnected InOut parameter, because there is already a validation error in the base instance.Keep these guidelines in mind concerning InOut connection validation:
- Unconnected InOut parameters in a
System Objectdefinition do not cause a validation error because each relatedSystem Objectinstance might require its own unique connections. - Unconnected InOut parameters in the first (base) instance of aSystem Objectcause a validation error. This can be a
stand-alone instance or an
inherited instance. However, any System ObjectInstances that inherit from this base instance do not cause a validation error because the error already exists and must be fixed in the base instance. - When there is an unconnected InOut parameter in aSystem Objectinstance in the Library view (nested below aSystem Objectdefinition), the view indicates the unconnected InOut parameter for thisSystem Objectinstance (if it is a base instance or not inherited). When the user creates an instance of thatSystem Objectin the System view, a validation error does not appear for the inherited instance in the area model because an error already appears for the base instance in the Library view, and that is where the user needs to fix it: in the base instance.TIP: When you click on aSystem Object, the Properties panel shows if it is a definition or an instance above theSystem Objectname.
- Overlapping connections to an Input parameter or parameter members are not allowed.You can connect Input parameters to a whole tag, or to individual members of that tag, but not both. Also, member connections are not allowed to overlap. For example, you cannot create connections to both MyInputTimer.PRE and MyInputTimer.PRE.0.
- Parameter connections to controller and device tags are created in the .logix controller file.
- Connected parameters must either be contained in the sameSystem Objectdefinition or must be assigned to the same controller. Connections to devices must have the device and parameter assigned to the same controller.
- Connections must be connected from inputs to outputs, but the order of the connections does not matter. You can connect inputs to outputs, or outputs to inputs.
- You can use the parameterConnection keyword to declare connections inline withinSystem Objects and controller applications.The controller application is the better place to create the connection becauseSystem Objects are self-contained elements and cannot reference a device directly. The parameterConnection keyword within aSystem Objectdoes not support device tags and can only connect the program parameters within theSystem Object.This example shows a parameter connection in a controller application that references a device tag. This connection would not work within aSystem Object.
parameterConnection myAO.program.input myDevice.tag
Provide Feedback