Instrumentation Monitoring and Control INST81000 DESIGN AND DEVELOPMENT OF A CONTROL PROGRAM FOR A HEAT SEALING STATION

Dependencies:   mbed C12832 LCD_fonts

Revision:
1:fac1f476e7d4
Parent:
0:aab1b8cb4c13
--- a/Heat_Sealer.cpp	Thu Jul 30 20:18:36 2020 +0000
+++ b/Heat_Sealer.cpp	Thu Jul 30 20:58:19 2020 +0000
@@ -18,6 +18,9 @@
 InterruptIn joystickcenter(p14);
 InterruptIn button(p9);
 float force, temperature;
+float Process_Force=4700.0;      // Process parameters can be modified depending on the product. Force of sealing
+float Process_Temperature=230.0; // Process parameters can be modified depending on the product. Temperature of sealing
+float Cycle_time=5.0;            // Process parameters can be modified depending on the product. Time of sealing.
 int k,v;
 
 // HMI function. Interface to control and initiate the system
@@ -96,7 +99,7 @@
         lcd.set_font((unsigned char*)Small_7);
         lcd.printf("Temp=%.1fC\n",temperature);
         
-        if(force>=4700.0 && temperature>=230.0 && timer1.read()>=5.0){
+        if(force>=Process_Force && temperature>=Process_Temperature && timer1.read()>=Cycle_time){
             good();
             lcd.locate(15,24);
             lcd.set_font((unsigned char*)Small_6);