REXYGEN Community Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Login

    CMP Block

    REXYGEN Studio
    2
    5
    1.5k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      MikeyH
      last edited by MikeyH

      Hi All,

      I'm having some trouble with the CMP block, more than likely user error!

      I'm trying to control a cold space using it, a set point of say 2°C (U2), and hys of 1.5. It seems the the hysteresis pulls it under by the same about (1.5). Should the block turn off once U1 and U2 are equal. Turning back on once the temp input has gone above the hys setting?

      So on at 3.5°C and off at 2°C. Or does the hys work on both sides of the set point?

      Or have I misunderstood something?

      Cheers

      Mike

      1 Reply Last reply Reply Quote 0
      • jaroslav_sobotaJ
        jaroslav_sobota
        last edited by

        Hi Mike,
        yes the CMP block is symmetrical, turning on when (u1-u2)>hys and turning off when (u1-u2)<(-hys).

        For your needs, you can:

        • Use CMP:hys=0.75 and add an offset of 0.75 (using ADD block) to the measured temperature.

        • Use SUB and RLY and RTOI blocks to implement the desired non-symmetrical on/off controller.

        Hope this helps, let me know.

        Best regards,
        Jaroslav

        M 1 Reply Last reply Reply Quote 0
        • M
          MikeyH @jaroslav_sobota
          last edited by

          Hi Jarolslav,

          That helps a lot, thank you.

          In regards to U1 and U2, it seems to make a difference as to which one the measured temperature and set point goes to. The difference being whether you are heating or cooling.

          Is it wise to swap U1 and U2 over from the examples? or can you use a not block to switch the output?

          0_1555963208451_Capture.JPG

          Cheers

          Mike

          1 Reply Last reply Reply Quote 0
          • jaroslav_sobotaJ
            jaroslav_sobota
            last edited by

            Hi Mike,
            for heating, the inputs are typically connected like this:
            0_1556029688984_CMP_heating_on_off_control_rexygen.png
            Because you typically want to switch the heating ON, when measured temperature is BELOW the setpoint (u1 is greater than u2).

            As I wrote, the CMP block is symmetrical, therefore swapping inputs has nearly the same effect as using the NOT block at the CMP output. The only difference is the behaviour at system startup in the case when the measured temperature is very close to the setpoint (within the hysteresis band).

            Best regards,
            Jaroslav

            M 1 Reply Last reply Reply Quote 0
            • M
              MikeyH @jaroslav_sobota
              last edited by

              Thanks Jaroslav,

              So using a not block would be the preferred way for making it work for cooling.

              Cheers

              Mike

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              This is a community forum for REXYGEN users and fans. Detailed information can be found at REXYGEN homepage.

              There is also an outdated REXYGEN community forum.

              Powered by NodeBB.