Create a program parameter or tag
Use tags and program parameters to allocate and reference data stored in the controller. A tag or parameter can be a simple, single element, or an array, or a structure.
To create a program parameter or tag
- In theController Organizeror theLogical Organizer, right-clickParameters and Local Tags, and selectNew Local TagorNew Parameterto open theNew Parameter or Tagdialog.
- InName, type the name of the tag or program parameter.TIP: If you are creating a new program parameter from a language editor and the parameter is from another program, the current tag name shows in theNamebox.
- (Optional) InDescription, type a description.
- InUsage, select a Usage value for the tag or program parameter.
- From theTypelist, select one of these tag types:
- Base- refers to a normal tag that allows you to create your own internal data storage.
- Alias- allows you to assign a unique name to an existing tag, structure tag member, or bit, and refers to a tag that references another tag with the same definition. Parameters on theNew Program Parameter or Tagdialog allow you to identify which base tag the alias refers to. You can also use this field to alias a parameter of another program.
- Produced- makes this tag available to remote controllers through controller-to-controller messaging. If you choose this tag type, theConnectionbutton is enabled. Select this button to open theProduced Tag Connectiondialog, where you configure additional connection information for this tag.
- Consumed- a tag that is produced by another controller whose data you want to use in this controller. If you choose this tag type, theConnectionbutton is enabled. Select this button to open theConsumed Tag Connectiondialog, where you configure additional connection information for this tag.
- Enter the data type of the tag (for example,BOOL,Counter, orINT). To see a complete list of available data types, select the
button to open the Select Data Typedialog and make a selection from the list.TIP: If you choose data types ALARM_ANALOG, ALARM_DIGITAL, AXIS_CIP_DRIVE, AXIS_CONSUMED, AXIS_GENERIC, AXIS_GENERIC_DRIVE, AXIS_SERVO, AXIS_SERVO_DRIVE, AXIS_VIRTUAL, MOTION_GROUP, OUTPUT_CAM array, COORDINATE_SYSTEM, MESSAGE, CAM array, CAM PROFILE array, or PID, theOpen <data type> Configurationcheck box is enabled. Select this check box to access a wizard that leads you through the configuration of these data types. - (Optional) To make a connection to a parameter, in theParameter Connectionbox, select a single connection for the parameter.To make multiple connections, selectOpen Parameter Connections. SelectCreateto open theConfiguration Connectiondialog where you can view and configure connections for the program parameter.
- From theScopelist, select the scope for the tag. If you are creating a new program parameter from a language editor, and the parameter is from another program, the program name appears in theScopebox.
- From theExternal Accesslist, select the access rights that tag will have from external applications, such as HMIs.
- FromOPC UA Access, select the access rights that external OPC UA clients have to tags.
- (Optional) If you are creating a tag whose data type is BOOL, SINT, INT, DINT, or REAL, select a display style from theStylemenu. The display style defines how the tag value is displayed in the Data Monitor and Ladder Editor.
- (Optional) To prevent executing logic from writing values to the tag, selectConstant. The value fields in all other browsers and language editors are unavailable when the tag is a Constant tag.TIP: Use theData Monitorto write values to the tag. Changes made to the values of constant tags are recorded in the Controller Log for future reference.
- For Equipment Phases, selectSequencingif you want the parameter to be seen by theFactoryTalk BatchServer. Only Input and Output parameters can be used by a sequence. Therefore, when the usage value is set to Input or Output, then by default,Sequencingoption is available and not selected.
- To open the configuration wizard after you selectCreate, selectOpen Configuration.
- SelectOpen Parameter Connectionsto open theConfiguration Connectiondialog after you selectCreate. In theConfiguration Connectiondialog, you view and configure connections for the program parameter.
- SelectCreateto create the tag or program parameter, or select the down arrow and select one of the create options:
- Create and Closeto close the dialog box after you create the program parameter or tag (default).
- Create and Open Newto save the program parameter or tag you created and open another emptyNew Program Parameter or Tagdialog.
- Create and Keep Opento save the program parameter or tag you created and keep the dialog open with the values still showing.TIP: To add an alarm for a tag or parameter, open theTag Editor, right-click the row for the tag or parameter, and selectAdd alarm.
Provide Feedback