Welcome to the TRNSYS Users Forum.

The forum is a place where people can interact and have discussions about different topics involving the use of the TRNSYS software package. Here you can post topics for discussion or questions on using TRNSYS and get advice from other users or TRNSYS experts. This forum is not intended for detailed technical support. Users should contact their distributor’s hotline for such assistance.

Some tips for success on using the forum:

  • Follow the Forum Rules posted in Forum Administration.
  • There are categories for different types of topics and questions. Post your topic or question into the proper category.
  • Before posting a topic or question search the existing topics  (and the TRNSYS Users listserv archive or Post archive) to see if a similar topic or question has already been answered.
  • Use a descriptive topic name. Don’t use attention getting subjects, they don’t get attention and only annoy people.
  • State the version of TRNSYS and which add-ons your are using.
  • Include enough specific details for your topic of question to be answered. Just posting “Why am I getting an error?” without describing the specific error and what you are trying to do when you get the error will not receive a response that fixes your issue.
  • Remember when people help you, they are doing you a favor. Be patient, help people out by posting good descriptions of what you need help with, and be polite even if a response does not solve your issue.
  • Moderators may edit your post for clarity or move your topic to a more appropriate category.

Notifications
Clear all

On/Off Differential controller

1 Posts
1 Users
0 Reactions
243 Views
0
Topic starter

From user Saeid Bina, Dr. : 

"Hello everyone, 

I have a question about the ON/OFF Differential controller in the PVT example in TRNSYS. The tank level indicator is from 1 (full) to -1 (lower) and 0 (in between). In this example, in order to maintain the level in water in the tank, the first value is set to zero; the second value is connected to the level indicator. The upper and lower dead bands are 0.9 and -0.9, respectively. 
Can somebody please explain this to me? Since it is against what is explained about dead bands in the software. (copied below)
 
"The controller is ON if it was previously ON and Th (Input 1) minus T (Input 2) is greater than the lower dead band.  Otherwise the controller is OFF.
The controller is ON if it was previously OFF and Th (Input 1) minus Tl (Input 2) is greater than the upper dead band.  Otherwise the controller is OFF."
 
I have another question, why we should connect ON/OFF Differential controller to itself again?"
 
1 Answer
0
Topic starter

The first value, or upper value of the differential controller (Th), is indeed disconnected in this example, and therefore always equal to its initial value (0). The second value, or lower value of the differential controller (Tl), is connected to the tank level indicator, which as you stated may vary from -1 (tank is empty) to 1 (tank is full). This means the difference "Th (input 1) minus Tl (input 2)" may vary from (0 - (-1) = 1) when the tank is fully empty, to (0 - (1) = -1) when the tank is completely full. So, if the controller is OFF, the tank is running close to empty, and Tl <= -0.9, then the difference (Th-Tl) will be >=0.9, the control signal that was previously OFF will turn ON, and the fill pump will fill the tank. If the controller is ON, the tank is running close to full, and Tl >= 0.9, then the difference (Th-Tl) will be <=-0.9, the control signal that was previously ON will turn OFF, and the fill pump will stop running. 

The controller output is connected to the control function input (Input 4) to provide hysteresis - this is how the controller knows what its control state was on its prior iteration. I agree, it is a confusing convention 🙂 The Type can be replaced with Type 165, if you like, which has all the same functionality but handles storing its prior control state internally, and thus doesn't require the external control state connection. There are some applications where you may want to leave the prior control state (Input 4) disconnected, or cascade the control signal from another controller to Input 4, but I think those are less common, and I've never personally used the controller in that way.  

Share: