Runtime / Downtime using Indusoft

BeamMEUp123

Member
Join Date
Oct 2009
Location
NB
Posts
11
I am working on a project where I need to accumulate the amout of Runtime of a machine. I am presently able to display the length of the "Current Runtime" (in minutes) when the machine is running. Now when the machine stops I want to save THAT accumulated data and display it as "Total Runtime". Now I need to add all the "Current Runtime" together and display that as "Total Runtime". Ie: If there were 5 runs all 10 minutes long, the total runtime would be 50 minutes.

Here is a sample of the code I have so far:

Runtime....................0
RuntimeStartTime......if(DigitalInput1=1,GetTickCount))
RuntimeStopTime.......if(DigitalInput1=0,GetTickCount))
RuntimeCalculation....if(DigitalInput1=1,RuntimeStartTime - RuntimeStopTime) / 60000
Runtime...................if(DigitalInput1=1,RuntimeCalculation)


Thanks for you help in advance

Scott
 

Similar Topics

hello s7-400h and wincc are connected to each other via Ethernet. I need help on how to do time synchronization
Replies
0
Views
54
when i tried to go online, why its showing lie this
Replies
1
Views
88
I have been trying to add a button to an HMI Panelview version 5.1 for a couple days. Each time I download I get no data in my buttons, only...
Replies
0
Views
206
Hi there! I got a HMI terminal Panelview Plus 7 (PN-332439 / CAT 2711P-T12W21D8S) which work on a APP 8.00 i'm trying to modify with my FT View...
Replies
9
Views
682
Hello ladies and gents I’ve hit a road block on a project, it’s AB for preface this is a converting line including Winder tailsealer and...
Replies
4
Views
770
Back
Top Bottom