set(True = false)

Reference Item names in Equipment editor?

Hey Guys,

Real quick, is there a way to reference the item name in the equipment editor?

Trying to build a bunch of equipment and data types. Being able to reference the equipment name would save me some time. 

Currently my tag name looks like this: {equipment.IODEVICE}_HGC_PRM_BOOL_19

Where I wish i could put {equipment.IODEVICE}_HGC_{equipment.ItemName}

Thoughts?
Thanks guys!

-Nick

Parents
  • Nick,

    BOOL_19 is actually the item name in your example. So your tag name should look like

    {equipment.IODEVICE}_HGC_BOOL_19. 

    Hope this would be helpful.

    ~jacky

  • Jacky,

    Bool_19, yes, is my item name. I'm trying to avoid having to re-type/paste it into the Tagname and Address field. 
    So i'd like to find a syntax to be {equipment.IODEVICE_HGC_PRM_{equipment.itemName} for the tagname

    And {equipment.IODEVICE}HGC.PRM.{equipment.ItemName} for the PLC address. 

    The idea is, if I make 1 item, then simply, duplicate the item and rename it to the item name i want, which matches with the PLC address, I can cut down alot of time adding items/tags. 

    This is a control logix PLC with ALOT of UDT's. 

  • This is a great idea,  .  I don't think it's possible at the moment, though I would love to be proven wrong.  It is in the spirit of DRY programming (as opposed to WET) which I wholeheartedly endorse, having created many templates with similar patterns and had quite a few hard to track down bugs because of this.  Perhaps you could suggest it at https://citectscada.ideas.aha.io.  I'll vote for it!

  • Nick,

    Item Name doesn't exist in the equipment dbf file so you cannot reference it in the template. In your screenshot, you are actually editing item Bool_19 that is a known value. So you have to duplicate it in both Address and Tag Name fields. Bool_19 will be added as an item name in Variable.dbf when the template is instantiated.

Reply
  • Nick,

    Item Name doesn't exist in the equipment dbf file so you cannot reference it in the template. In your screenshot, you are actually editing item Bool_19 that is a known value. So you have to duplicate it in both Address and Tag Name fields. Bool_19 will be added as an item name in Variable.dbf when the template is instantiated.

Children