16.01.2013 Views

Handbook of air conditioning and refrigeration / Shan K

Handbook of air conditioning and refrigeration / Shan K

Handbook of air conditioning and refrigeration / Shan K

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5.54 CHAPTER FIVE<br />

Templates<br />

Zone<br />

temperature<br />

west<br />

10K<br />

Zone temperature<br />

east<br />

10K<br />

Outdoor<br />

temperature<br />

10K<br />

Zone schedule<br />

Cool SP<br />

74 T<br />

Time<br />

1<br />

clock<br />

0<br />

85 T<br />

�<br />

SP<br />

Cool<br />

Average<br />

�<br />

I<br />

temperature DB<br />

2<br />

SO<br />

Cooling control<br />

0.5<br />

Outdoor temperature<br />

lockout<br />

SP<br />

Cool<br />

I<br />

Templates DB Dead b<strong>and</strong><br />

SP Set point<br />

it is bulky to display on screen <strong>and</strong> that it is new to us <strong>and</strong> needs to develop required supports such<br />

as a portable interface that acts directly to the DDC units.<br />

In Davison’s (1992) paper, a template is a graphical symbol (icon) in graphical programming that<br />

describes a single or combined control scheme (specific functional control), as shown in Fig. 5.26.<br />

A template consists <strong>of</strong> input <strong>and</strong> output connections, a small section <strong>of</strong> computer code, <strong>and</strong> private<br />

data storage registers. A template is function- <strong>and</strong> object-oriented. Each template performs a small<br />

portion <strong>of</strong> a specific functional control. If several templates are connected by lines, they form a<br />

complete computer program for a specific functional control. The template symbol provides a<br />

visual reminder or memory <strong>of</strong> the function that the template accomplished.<br />

A template maintains its own set <strong>of</strong> private data <strong>and</strong> variables that cannot be altered by the action<br />

<strong>of</strong> any other template. The state <strong>of</strong> an instance <strong>of</strong> a template is contained in its private variables. They<br />

can be only modified by the program code contained in that instance. The private variables <strong>of</strong> an instance<br />

<strong>of</strong> a template are hidden from the action from other templates.<br />

In a template, inputs are used to receive data from other templates or constants. Outputs are used<br />

to send data to other templates. Inputs <strong>and</strong> outputs between two or more templates are connected by<br />

lines that direct the data flow between the templates. An input may receive a value from only one<br />

output in order to prevent overwriting <strong>of</strong> data at the input. On the other h<strong>and</strong>, an output data may be<br />

sent <strong>and</strong> used by any number <strong>of</strong> inputs.<br />

For a more complex control function that needs several templates, a combination <strong>of</strong> templates<br />

called a macrotemplate is <strong>of</strong>ten used to simplify a graphical programming diagram.<br />

Min<br />

Min<br />

180<br />

Economizer<br />

on Min <strong>of</strong>f<br />

on Min <strong>of</strong>f<br />

FIGURE 5.26 Graphical programming for mechanical cooling control in a small packaged unit.<br />

3<br />

DB<br />

T<br />

Compressor

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!