Piced - GetTriggerLevel command

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Dave Byron, Apr 1, 2008.

  1. Dave Byron

    Dave Byron

    Joined:
    Aug 3, 2004
    Messages:
    835
    Likes Received:
    0
    Location:
    Casurina
    I have a Group (XTrig Blind B1 East) that has a level = 0% with a Tag Name of "Stop".

    These following two lines compile ok;
    SetTriggerLevel("XTrig Blind B1 East", "Stop");
    SetStringIBSystemIO("Label Group Text", net, app, "XCtl_B1_East",0, 'Stop');

    But this line does not
    If GetTriggerLevel("XTrig Blind B1 East") = "Stop" then

    I have to use the 0%
    If GetTriggerLevel("XTrig Blind B1 East") = 0% then

    So how do I get to use the Level Tag Name in the "GetTriggerLevel' command ??


    dave
     
    Dave Byron, Apr 1, 2008
    #1
  2. Dave Byron

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    This is because tags are only understood in the context of a procedure/function call where their position defines which type of tag they are. There is no way for PICED to be able to resolve a tag by itself.

    We do have a cunning plan to make this work, but it won't be as simple as you have above, and it won't be done for a while...
     
    Darren, Apr 2, 2008
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.