Introduction.
Introduction.
Introduction.
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Workshop PG5 Exercise Chapter 4<br />
Solution:<br />
1. Open a new FUPLA file ( You don’t need to open a new project ) called<br />
Time.fup<br />
2. Add a comment to your file!!!<br />
3. If there are any other files in your project, then mark them as "notlinked". This way<br />
the file will not be taken into considerations and will not be downloaded to the PCD.<br />
4. Open the FUPLA editor and place the FBox "Time related: Time" and copy the<br />
time to a Register called HMS. You have now the time as an integer value in a register<br />
called HMS<br />
5. Now you have to compare the content of this register with the time where you<br />
want to turn the heating on ONTIME and the time you want to turn the heating off<br />
again OFFTime. ONTime and OFFTime are for the moment just constants. Turn the<br />
heating on at 1 o clock PM => (ONTime=10000) and turn it of at noon (OF-<br />
FTime=120000)<br />
There are several ways to solve the problem. I used the FBox ( "Integer: Is greater<br />
or equal to" and Binary: Xor 2-10 inputs )<br />
I first compare the actual time with the ONTime. If the actual time is bigger than then<br />
the ontime, then you know that its later than OnTime and can basically start the<br />
heating. Except if its already too late, and the OFF time has come. This is then tested<br />
in the next FBox (TurnOFF ) ON_OFF Turns the heatin only on, if TurnON command<br />
is there but the TurnOff command has not arrived yet.<br />
DAY_NIGHT then inverses the signal in the case were you turn on the heating in the<br />
evening but you turn off the heating in the morning.<br />
6. You can add nice names on every FBox if you like to. Just move the pointer on<br />
the FBox press the right mouse button and click on "FBox Properties" and add a<br />
name.<br />
OFF<br />
© Saia-Burgess Controls Ltd. Page 4E-15