Hello Everyone,
I need to design an application to control the temperature of a classroom, using a
CL air conditioning device and
SA temperature logger, connected to a
L1 computer.
The expressed need for the application is:
1. Start and/or stop the air conditioning
CL
2. Display the temperature captured by
SA
3. Display the instruction given to
CL
4. Regulate the temperature so that it is between 2 thresholds
TEMPMIN and
TEMPMAX
The method
ON(nom_clim, inst, ordre) allows, by reading, to obtain the information on the current state of the air conditioning device:
- Inst = 0: device stopped - inst = 1: device running
- order = 0: cooling - order =1: heating
Two methods are available for controlling the system, knowing that the air conditioning is initially stopped in the classroom.
1. The method
ON(nom_clim, inst, ordre) controls the air conditioning device
CL :
- The first parameter nom_clim gives the name of the air conditioning.
- The second one, the
inst instruction on 1 numeric character. The control box allows the air conditioning to be started or stopped. When the instruction is given, ON() compares it with that of the box and performs the update.
✓ inst = 0 : stop air conditioning
✓ inst = 1 : turn on the air conditioning
- The third, the instruction
order on 1 numeric character allows to activate the reversibility of the air conditioning device
✓ order = 0 : cooling
✓ order = 1: reheat
2. The method T=read(
SA) retrieves the temperature read in the class by the operator.
SA is read every five minutes and stored in the variable T
I would like to have your opinion on my flowchart if I meet the requirements of my application.
Thank you in advance.