Ultimate99
Member
Hi !
I need a help to write a code and display remaining time on HMI.
Initial time in (0 to 24 hrs) is entered from HMI
Valve Open time (0-50 sec ) entered from HMI
Wait delay time (0-24 hrs ) entered from HMI
The application is , if operator enters initial time as 8am
valve open time as 20sec and wait time as 2hrs
then valve should open at 8am , keep open for 20 sec and then close, after a wait time of 2hrs i.e. at 10 am valve should open again. I want to display the remaining time to open the valve on HMI , the main problem is if operator changes initial time then it should immediately reflect on remaining time display. for example valve has opened at 8am and wait time is 2hrs then next due is at 10am , if current time is 9am then display will be 1hr remained , if operator changes initial time to 9.30am then remaining time to open the valve should show 30mins.
Please help me to write the code in siemens s7.
the plc is s7 400 and hmi is winncc flex mp277
Thanks..
I need a help to write a code and display remaining time on HMI.
Initial time in (0 to 24 hrs) is entered from HMI
Valve Open time (0-50 sec ) entered from HMI
Wait delay time (0-24 hrs ) entered from HMI
The application is , if operator enters initial time as 8am
valve open time as 20sec and wait time as 2hrs
then valve should open at 8am , keep open for 20 sec and then close, after a wait time of 2hrs i.e. at 10 am valve should open again. I want to display the remaining time to open the valve on HMI , the main problem is if operator changes initial time then it should immediately reflect on remaining time display. for example valve has opened at 8am and wait time is 2hrs then next due is at 10am , if current time is 9am then display will be 1hr remained , if operator changes initial time to 9.30am then remaining time to open the valve should show 30mins.
Please help me to write the code in siemens s7.
the plc is s7 400 and hmi is winncc flex mp277
Thanks..