Results 1 to 10 of 10
  1. #1

    Distech EC-67 Chilled water reset.

    We have an EC-67 connected to a McQuay Chiller with a Microtech ll Controller on it. We tried to set up a reset program but the Variables would not change in the program no matter what I did. Can anyone help please? This is taking way too long for simple things. Nothing should be this difficult. The setpoint is the AO percentage. I have manually commanded this output and it does change the target setpoint in the Microtech ll. At 0 we get 45 degrees in the Microtech ll and at 100 we get 55. So I know it's do-able. I tried it in a second EC-67 and the same thing.

    REM Entering Leaving Set point

    REM 53----------------100

    REM 52-----------------75

    REM 51-----------------50

    REM 50-----------------25

    REM 49------------------0



    REM "RWT" IS A VARIABLE.



    RWT = RETURN_WATER_TEMP / 10



    IF ( RWT <= 49.5 )

    CHILLED_WATER_RESET = 100

    ENDIF



    IF ( RWT > 49.5 ) AND ( RWT <= 50.5 )

    CHILLED_WATER_RESET = 75

    ENDIF



    IF ( RWT > 50.5 ) AND ( RWT <= 51.5 )

    CHILLED_WATER_RESET = 50

    ENDIF



    IF ( RWT > 51.5 ) AND ( RWT <= 52.5 )

    CHILLED_WATER_RESET = 25

    ENDIF



    IF ( RWT > 52.5 )

    CHILLED_WATER_RESET = 0

    ENDIF



    END

  2. #2
    Join Date
    Aug 2006
    Location
    New England
    Posts
    520
    You can't use floating point math in Distech BASIC. Get rid of the decimals and the /10 and you'll be all set.

    I'd do it this way:

    CHILLED_WATER_RESET = 10 * RWT / 3 - 1650
    CHILLED_WATER_RESET = LIMIT (CHILLED_WATER_RESET 0 100)
    Last edited by ctrlguy; 12-07-2007 at 05:55 PM. Reason: added code

  3. #3
    Thank you very much for the code. Is that all I need? I 'll try it on Monday.

    I don't understand how everyone knows this stuff. How do I learn it? I try and try, but just don't get it.

  4. #4
    Join Date
    Aug 2006
    Location
    New England
    Posts
    520
    I don't understand how everyone knows this stuff. How do I learn it? I try and try, but just don't get it.
    First, not everyone knows this stuff. For starters, I spent 2 weeks in Montreal taking the courses. But you've got to pay attention. If the EC67 is wired, you might notice that the chilled water temperature reads something like 493 (if it's configured correctly). We know it's not really 493 degrees. It's 49.3. Everything in a Distech freeprog uses integers (integers use less memory and processing power) and to get the resolution you need, things are multiplied by a factor (10 or 100 or 200, depending). If you look at some of the sample programs you'll see some of this stuff. As far as the linear equation, there's a linear equation generator built in to the software. You put in the min and max input and output, it generates the equation.

    I'm mostly a trial and error programmer. If I had written your code and it didn't work, I'd try some different values. 52.5 doesn't work, try 5000 or -5000. If that works, you're on your way.

    There's only one way to learn this stuff and that's to stick with it. Read the sample programs, view the online training videos, read the manuals and tech tips, write programs and change them until they work.

    By the way, you don't need the variable RWT. In the code, substitute RETURN_WATER_TEMP for RWT.

  5. #5
    First and foremost, thank you very much for the help. It is greatly appreciated.

    I have JCI experience and a long background in the industry. My issue is that using code in this day in age is just too hard. It's like re-inventing the wheel. There should be block programming like in a JACE. I can program a UNT in 60 seconds plus side loops (add 2 minutes for each side loop). It just shouldn't be this hard for the simplest things. I don't know if I can "stick with it" any more as I have lost my a$$ on the last three Distech jobs.

    Gonna' try the Honeywell Spyder next. I need a LON line so that why I am doing this.

    I have had friend who went on the course with group of programmers and they said no way were they going to use Free Prog relative to AX in a JACE.

    Again, I do appreciate the help.

  6. #6
    The spyders have a learning curve too. Its "JACE like" but its not the same.

  7. #7
    I know,

    We talked about this in another discussion before. I just don't want to be dependent on a program where a spelling mistake, period , space or comma creates a problem.

    I also have a lot more tech support available to me on the Spyder.

  8. #8
    ctrlguy,

    I ran the reset today but it kept telling me there was an an illegal operation or expression in the first line. Any idea?

  9. #9
    Join Date
    Aug 2006
    Location
    New England
    Posts
    520
    Quote Originally Posted by outtacontrol View Post
    ctrlguy,

    I ran the reset today but it kept telling me there was an an illegal operation or expression in the first line. Any idea?
    If you deleted the variable RWT and didn't change the code to RETURN_WATER_TEMP, that would do it. If anything other than a number is black, something's wrong.

  10. #10
    Join Date
    Mar 2007
    Location
    Netherlands
    Posts
    33

    copy this to notepad and load import into the controller

    1
    %1|CHILLED_WATER_RESET:|Automatic:0|0:0|:|:
    2|:|Automatic:0|0:0|:|:
    3|:|Automatic:0|0:0|:|:
    4|:|Automatic:0|0:0|:|:
    5|:|Automatic:0|0:0|:|:
    6|:|Automatic:0|0:0|:|:
    7|:|Automatic:0|0:0|:|:
    8|:|Automatic:0|0:0|:|:
    9|:|Automatic:0|0:0|:|:
    10|:|Automatic:0|0:0|:|:
    11|:|Automatic:0|0:0|:|:
    12|:|Automatic:0|0:0|:|:
    13|:|Automatic:0|0:0|:|:
    14|:|Automatic:0|0:0|:|:
    15|:|Automatic:0|0:0|:|:
    16|:|Automatic:0|0:0|:|:
    17|:|Automatic:0|0:0|:|:
    18|:|Automatic:0|0:0|:|:
    19|:|Automatic:0|0:0|:|:
    20|:|Automatic:0|0:0|:|:
    21|:|Automatic:0|0:0|:|:
    22|:|Automatic:0|0:0|:|:
    23|:|Automatic:0|0:0|:|:
    24|:|Automatic:0|0:0|:|:
    25|:|Automatic:0|0:0|:|:
    26|:|Automatic:0|0:0|:|:
    27|:|Automatic:0|0:0|:|:
    28|:|Automatic:0|0:0|:|:
    29|:|Automatic:0|0:0|:|:
    30|:|Automatic:0|0:0|:|:
    31|:|Automatic:0|0:0|:|:
    32|:|Automatic:0|0:0|:|:
    33|:|Automatic:0|0:0|:|:
    34|:|Automatic:0|0:0|:|:
    35|:|Automatic:0|0:0|:|:
    36|:|Automatic:0|0:0|:|:
    37|:|Automatic:0|0:0|:|:
    38|:|Automatic:0|0:0|:|:
    39|:|Automatic:0|0:0|:|:
    40|:|Automatic:0|0:0|:|:
    41|:|Automatic:0|0:0|:|:
    42|:|Automatic:0|0:0|:|:
    43|:|Automatic:0|0:0|:|:
    44|:|Automatic:0|0:0|:|:
    45|:|Automatic:0|0:0|:|:
    46|:|Automatic:0|0:0|:|:
    47|:|Automatic:0|0:0|:|:
    48|:|Automatic:0|0:0|:|:
    49|:|Automatic:0|0:0|:|:
    50|:|Automatic:0|0:0|:|:
    *2
    %1|:|0:0|:|:
    2|:|0:0|:|:
    3|:|0:0|:|:
    4|:|0:0|:|:
    5|:|0:0|:|:
    6|:|0:0|:|:
    7|:|0:0|:|:
    8|:|0:0|:|:
    9|:|0:0|:|:
    10|:|0:0|:|:
    11|:|0:0|:|:
    12|:|0:0|:|:
    13|:|0:0|:|:
    14|:|0:0|:|:
    15|:|0:0|:|:
    16|:|0:0|:|:
    17|:|0:0|:|:
    18|:|0:0|:|:
    19|:|0:0|:|:
    20|:|0:0|:|:
    21|:|0:0|:|:
    22|:|0:0|:|:
    23|:|0:0|:|:
    24|:|0:0|:|:
    25|:|0:0|:|:
    26|:|0:0|:|:
    27|:|0:0|:|:
    28|:|0:0|:|:
    29|:|0:0|:|:
    30|:|0:0|:|:
    31|:|0:0|:|:
    32|:|0:0|:|:
    33|:|0:0|:|:
    34|:|0:0|:|:
    35|:|0:0|:|:
    36|:|0:0|:|:
    37|:|0:0|:|:
    38|:|0:0|:|:
    39|:|0:0|:|:
    40|:|0:0|:|:
    41|:|0:0|:|:
    42|:|0:0|:|:
    43|:|0:0|:|:
    44|:|0:0|:|:
    45|:|0:0|:|:
    46|:|0:0|:|:
    47|:|0:0|:|:
    48|:|0:0|:|:
    49|:|0:0|:|:
    50|:|0:0|:|:
    *3
    %1|RWT:|Automatic:0|0:0|:|:|No:
    2|:|Automatic:0|0:0|:|:|No:
    3|:|Automatic:0|0:0|:|:|No:
    4|:|Automatic:0|0:0|:|:|No:
    5|:|Automatic:0|0:0|:|:|No:
    6|:|Automatic:0|0:0|:|:|No:
    *4
    %1|:|Automatic:0|0:0|:|:|No:
    2|:|Automatic:0|0:0|:|:|No:
    3|:|Automatic:0|0:0|:|:|No:
    4|:|Automatic:0|0:0|:|:|No:
    5|:|Automatic:0|0:0|:|:|No:
    6|CHW_RESET_VALUE:|Automatic:0|0:0|:|:|No:
    7|:|Automatic:0|0:0|:|:|No:
    *11
    %1|THR 10K Type 2:2|0:0|0:0|0:0|0:0|0:0|0:0|0:0|C:0
    2|Unassigned:0|0:0|0:0|0:0|0:0|0:0|0:0|0:0|C:0
    3|Unassigned:0|0:0|0:0|0:0|0:0|0:0|0:0|0:0|C:0
    4|Unassigned:0|0:0|0:0|0:0|0:0|0:0|0:0|0:0|C:0
    5|Unassigned:0|0:0|0:0|0:0|0:0|0:0|0:0|0:0|C:0
    6|Unassigned:0|0:0|0:0|0:0|0:0|0:0|0:0|0:0|C:0
    *12
    %1|Unassigned:0|2:2
    2|Unassigned:0|2:2
    3|Unassigned:0|2:2
    4|Unassigned:0|2:2
    5|Unassigned:0|2:2
    6|0 - 10 V:8|2:2
    7|Unassigned:0|2:2
    *6
    %1|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    2|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    3|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    4|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    5|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    6|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    7|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    8|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    9|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    10|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    11|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    12|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    13|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    14|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    15|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    16|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    17|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    18|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    19|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    20|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    21|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    22|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    23|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    24|:255|0:0|0:0|:255|1 x Data + 0:|:|:
    *8
    %1|:|0:0|:255|:255|:255|:255|0:0|:
    2|:|0:0|:255|:255|:255|:255|0:0|:
    3|:|0:0|:255|:255|:255|:255|0:0|:
    4|:|0:0|:255|:255|:255|:255|0:0|:
    *7
    %1|:255|Second:1|0:0
    2|:255|Second:1|0:0
    3|:255|Second:1|0:0
    4|:255|Second:1|0:0
    5|:255|Second:1|0:0
    6|:255|Second:1|0:0
    7|:255|Second:1|0:0
    8|:255|Second:1|0:0
    9|:255|Second:1|0:0
    10|:255|Second:1|0:0
    11|:255|Second:1|0:0
    12|:255|Second:1|0:0
    13|:255|Second:1|0:0
    14|:255|Second:1|0:0
    15|:255|Second:1|0:0
    *5
    %1|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0 :0|0:0|0:0|1:1
    2|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    3|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    4|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    5|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    6|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    7|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    8|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    9|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0: 0|0:0|0:0|1:1
    10|Automatic:0|0:0|:255|:255|0:0|0:0|0:0|0:0|0:0|0 :0|0:0|0:0|1:1
    *9
    %1|nviFP_01:|0:0|SNVT_count_inc:|Disabled:255|:
    2|nviFP_02:|0:0|SNVT_count_inc:|Disabled:255|:
    3|nviFP_03:|0:0|SNVT_count_inc:|Disabled:255|:
    4|nviFP_04:|0:0|SNVT_count_inc:|Disabled:255|:
    5|nviFP_05:|0:0|SNVT_count_inc:|Disabled:255|:
    6|nviFP_06:|0:0|SNVT_count_inc:|Disabled:255|:
    7|nviFP_07:|0:0|SNVT_count_inc:|Disabled:255|:
    8|nviFP_08:|0:0|SNVT_count_inc:|Disabled:255|:
    9|nviFP_09:|0:0|SNVT_count_inc:|Disabled:255|:
    10|nviFP_10:|0:0|SNVT_count_inc:|Disabled:255|:
    11|nviFP_11:|0:0|SNVT_count_inc:|Disabled:255|:
    12|nviFP_12:|0:0|SNVT_count_inc:|Disabled:255|:
    13|nviFP_13:|0:0|SNVT_count_inc:|Disabled:255|:
    14|nviFP_14:|0:0|SNVT_count_inc:|Disabled:255|:
    15|nviFP_15:|0:0|SNVT_count_inc:|Disabled:255|:
    16|nviFP_16:|0:0|SNVT_count_inc:|Disabled:255|:
    17|nviFP_17:|0:0|SNVT_count_inc:|Disabled:255|High & Low Selection Fan-In:
    18|nviFP_18:|0:0|SNVT_count_inc:|Disabled:255|Aver aging Fan-In:
    *10
    %1|nvoFP_01:|:255|0:0|SNVT_count_inc:|:
    2|nvoFP_02:|:255|0:0|SNVT_count_inc:|:
    3|nvoFP_03:|:255|0:0|SNVT_count_inc:|:
    4|nvoFP_04:|:255|0:0|SNVT_count_inc:|:
    5|nvoFP_05:|:255|0:0|SNVT_count_inc:|:
    6|nvoFP_06:|:255|0:0|SNVT_count_inc:|:
    7|nvoFP_07:|:255|0:0|SNVT_count_inc:|:
    8|nvoFP_08:|:255|0:0|SNVT_count_inc:|:
    9|nvoFP_09:|:255|0:0|SNVT_count_inc:|:
    10|nvoFP_10:|:255|0:0|SNVT_count_inc:|:
    11|nvoFP_11:|:255|0:0|SNVT_count_inc:|:
    12|nvoFP_12:|:255|0:0|SNVT_count_inc:|:
    13|nvoFP_13:|:255|0:0|SNVT_count_inc:|:
    14|nvoFP_14:|:255|0:0|SNVT_count_inc:|:
    15|nvoFP_15:|:255|0:0|SNVT_count_inc:|:
    16|nvoFP_16:|:255|0:0|SNVT_count_inc:|:
    17|nvoFP_17:|:255|0:0|SNVT_count_inc:|:
    18|nvoFP_18:|:255|0:0|SNVT_count_inc:|:
    *0
    %REM Entering Leaving Set point
    REM 53----------------100
    REM 52-----------------75
    REM 51-----------------50
    REM 50-----------------25
    REM 49------------------0
    REM "RWT" IS A VARIABLE.

    CHILLED_WATER_RESET = 25 * RWT - 1225
    CHILLED_WATER_RESET = LIMIT ( CHILLED_WATER_RESET 0 100 )


    REM *****link hw out aways to a variable

    CHW_RESET_VALUE = CHILLED_WATER_RESET


    END
    *13
    %0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0 |0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
    0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0| 0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
    0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0| 0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
    0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0| 0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
    0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0| 0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0
    0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0| 0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Comfortech Show Promo Image

Related Forums

Plumbing Talks | Contractor Magazine
Forums | Electrical Construction & Maintenance (EC&M) Magazine
Comfortech365 Virtual Event