[Applause]
[Music]
today we are going to introduce you the
function of a building in function block
diagram little sub two or zero smart
release let's get a new project started
here stupid SR 3 P 1 0 1 BDS our
base Braley and this let F be T in the
function block diagram has a programming
language click on next to enter the
programming interface the boolean
function can be found on the second tab
on the / left corner as you can see here
on the certain row second column we find
this icon click and drag it to the
programming interface we can see there
are four different inputs and one output
for this block double click on it you
will be able to bring up the parameter
window and the truth table here let's
look at the definition for this block
here click on the question mark to bring
up the help file basically the pulling
function is giving the value of the
output or new combination of the inputs
it follows a specific truth table that
can be configured by you so your
specific combination of the input
appears specific output behavior will
happen soon it is kind of abstract
without a live demos let's build up a
simple program to demonstrate the
functionality here as we can see here
double click on it you can bring up the
configuration window there are two
options first one is output off if
result is true and second wise output
Alif result is true and this one is the
default selection in the function blocks
here it listed
truth table here all the possible
combinations about the four impose on
this issue right now this thing cannot
be configured it's all grayed out
only if we connect a the inputs to it
this sections will be configurable for
us so let's get started here I want to
use for t-squared impose connect the
discrete inputs to the input terminals
for my pudding contact block also I use
a relay output demonstrated behavior
here and now double click on it as we
can see the output column of this truth
table now is in white which is
configurable double click I need to
change the setting for you now it's your
turn to determine what kind of all who
behavior you want to see from this
pulley block for example I have 4t
squared equals right now I want to
realize one kind of function that only
if one input his present the puddin
block will give me a high output and
only one input is present the pudding
block will give an output for other
scenarios the boolean block will give me
off route how should I do that
so now I need to find out the scenario
that only one input is present I then
changed the output to hi cheated output
to what say so I should change this one
to one as well since this row it has to
impose I wanted to stay off this row it
has one input with a lighter on this
show it has to this road has to three
then this room it has one input
so I want to turn on and still that's
pretty much age only if one input is
present
I've only I wanted to put in block to
output on otherwise it stay off so let's
see if that is true start the simulation
so you can see we didn't add any analog
impulses it's giving us a warning says
there's no function added in the program
yes start the simulation for example
still remember only if one input is
present I wanted the output block to be
high let's try the first one
I turned the input number one now then I
can see the output is outputting a on to
my radio pool here fighter am i - so
cadency switch yourself if three inputs
is present it will stay off for impulses
present it will stay off so it works
properly for the first one also can
verify again so if I turn on I to output
turn to on position and if I turn off
any other inputs it will stay off same
thing should remain for the third one is
only one input is present this time is
IB the output will be high if I turn on
any others output stay off say I'm safe
or IC that's pretty much it about
cooling function is a truth table that
you can utilize to realize specific
functions one specific input is present
so it's fully customizable still
remember the output column will not be
available for you to use if the inputs
are not connected to this below here so
let's try another option here
I'll put off if the result is true run
the simulation here so right now we can
see that since the logic has been
changed to this block will output off if
only one input is present which means
that if only one please present the
output should be off and how the other
scenarios it should still it was a high
output on the output side see if that is
true let's close in put one is off if I
turn on any other of this inference or
all of them the contact hopefully should
stay out as we can see same thing for
the second one input number two is on
and the output should stay off any other
input is present the interested stay on
same thing for third one input B is on
I'll push to stay off any other input is
present it should output
[Applause]
[Music]
[Applause]