Equipment Help in SA Templates

I'm currently configuring a new system and need a little advice. I am using the SA templates and have run into a cross roads. Let's start with the simple Meter, this make complete sense when you have a single element analog value with a single PV. But what if you have a dual element RTD, how would you configure this. A Meter type instance for each RTD element (A and B)? How would the selected or averaged value be handled as it's own PV? What if the averaged value is the only one that has the LL L H HH alarms, and even a high difference and other custom alarms?

It seems like with the example above, I would need 3 Meter type instances, two for each element and one for the averaged value and it's custom alarms. How would you tie them together in the project so the the trend window in the info pane shows all three PVs?

TIA.

Chris

Parents
  • Hi Chris, maybe you can use something like this:

    1. Define an item (INT) for selecting the type (0=average, 1=RTD1, 2=RTD2). You can add this item to your faceplate with the appropriate privilege to change.
    2. Add RTD1, RTD2 as your input items
    3. Add AvgRTD, the avgRTD (calculated variable) should have something like : (RTD1 + RTD2) / 2 in the address field
    4. For the PV item define a calculated variable item and call the following function:

    PUBLIC
    REAL
    FUNCTION
    GetPV(INT iChoice, REAL RTD1, REAL RTD2, REAL rAvgRTD)

    REAL rReturn;

    SELECT CASE iChoice
    CASE 0
    rReturn = rAvgRTD;
    CASE 1
    rReturn = RTD1;
    CASE 2
    rReturn = RTD2;
    END SELECT
    RETURN rReturn;
    END

    5. You can modify the [Workspace]InfoZoneTrends.TargetMeter parameter to add RTD1, RTD2 and the AvgRTD to th trend window

    Not sure if this could fulfill all you needs.
Reply
  • Hi Chris, maybe you can use something like this:

    1. Define an item (INT) for selecting the type (0=average, 1=RTD1, 2=RTD2). You can add this item to your faceplate with the appropriate privilege to change.
    2. Add RTD1, RTD2 as your input items
    3. Add AvgRTD, the avgRTD (calculated variable) should have something like : (RTD1 + RTD2) / 2 in the address field
    4. For the PV item define a calculated variable item and call the following function:

    PUBLIC
    REAL
    FUNCTION
    GetPV(INT iChoice, REAL RTD1, REAL RTD2, REAL rAvgRTD)

    REAL rReturn;

    SELECT CASE iChoice
    CASE 0
    rReturn = rAvgRTD;
    CASE 1
    rReturn = RTD1;
    CASE 2
    rReturn = RTD2;
    END SELECT
    RETURN rReturn;
    END

    5. You can modify the [Workspace]InfoZoneTrends.TargetMeter parameter to add RTD1, RTD2 and the AvgRTD to th trend window

    Not sure if this could fulfill all you needs.
Children
No Data