Measuring elapsed time between two events

ersinist

Member
Join Date
Jun 2007
Location
Sofia
Posts
11
Hi everyone,

I want to know if in S7 300, there is a standard watch or something like that to measure the elapsed time between two events.

And if there is any, how can I determine the StartIndex value in the following function to read the elapsed time from the PLC memory?

STDMETHOD(CS7ProSim::ReadOutputImage)( long StartIndex,
long ElementsToRead,
ImageDataTypeConstants DataType,
VARIANT* pData)

Thanks in advance
 
I´m not familiar with S7 but with Controllogix v16 you use one of the new add on functions and you calculate elapse time.
Basically the way is done is like this: you save the start time in a register array that contains year, month,day, hour,minute,second and microsecond then you save in another register array the end time, then make a substraction and get elapsed time.
You can download the add on function from www.ab.com and try to adapt it to your S7.
Let me know if you can not download it or if you don´t have rslogix 5000 software and i can send you a pdf file with the add on function.

Good luck
 

Similar Topics

Hi everyone, I don't know much of PLCs but it happened that i need to connect Leuze AMS358i Ethernet laser measurement to Productivity 1000...
Replies
0
Views
1,058
Hello everyone! Firstly I'd like to say that I'm new to this forum and also new to PLC programming world altogether, that said I really would...
Replies
27
Views
4,819
I am looking for a way to determine level in a silo. The material is called Perilite which has a very light density. Bulk density could be...
Replies
10
Views
2,740
In our water cooling tank, I've installed and successfully wired up 4 float switches & updated the PLC (big thanks to @parky for that). As a...
Replies
46
Views
11,374
Hello, I have an application where I need to measure the salt level/volume in a salt saturator. This is a fairly large tank where we load bulk...
Replies
21
Views
6,493
Back
Top Bottom