good evening
I have a problem running a timer I want to start a "stopwatch" to evaluate the running time of a pump (how to initialize a timer to zero and not limit it?
thank you in advance
[?]: temporisation with step7
-
- Posts: 199
- Joined: Wed Dec 24, 2008 4:37 pm
- Location: Europe
Re: [?]: temporisation with step7
What do you want to measure?
The total time duration of the pump?
or time of a start / stop?
Here you have a simple example...
Call this code on OB10 every 1 minute.
The total time duration of the pump?
or time of a start / stop?
Here you have a simple example...
Call this code on OB10 every 1 minute.
Code: Select all
A PM06.RUN
JCN Y250
L PM06RTm //Minute data type Dint
L 1
+D
T PM06RTm //Minute data type Dint
L 60
/D
T PM06RTh //Hours data type Dint
Y250: Nop 0
-
- Posts: 10
- Joined: Wed Jan 11, 2012 7:00 pm
Re: [?]: temporisation with step7
i want to mesure the total time duration of the pump
-
- Posts: 186
- Joined: Sun Feb 12, 2006 5:47 pm
- Location: Europe
Re: [?]: temporisation with step7
Hi,
Maybe You should look for SFC101 (Handling Runtime Meters), alongside with SFC2 (SET_RTM), SFC3 (CTRL_RTM) and SFC4 (READ_RTM).
Description of this functions You will find in System Software for S7-300/400
System and Standard Functions.
regards
Maybe You should look for SFC101 (Handling Runtime Meters), alongside with SFC2 (SET_RTM), SFC3 (CTRL_RTM) and SFC4 (READ_RTM).
Description of this functions You will find in System Software for S7-300/400
System and Standard Functions.
regards
-
- Posts: 199
- Joined: Wed Dec 24, 2008 4:37 pm
- Location: Europe
Re: [?]: temporisation with step7
So, if you do not work for "NASA" that do not need a high precision,abdou999 wrote:i want to mesure the total time duration of the pump
the code I wrote above is just fine!
Just create a DB to save partial and totals data.
Good luck.
-
- Posts: 10
- Joined: Wed Jan 11, 2012 7:00 pm
Re: [?]: temporisation with step7
thank you for all