RSLogix Stopwatch - Help

mateus

Member
Join Date
Jan 2017
Location
RS
Posts
5
Hi there.

I'm trying to make a logic where a RTO function will count the time an equipment takes to complete a certain movement. This movement can vary, so the time can vary too. The timer will always start when the movement starts and at the end of it, it will store the time measured on DINT tag. I was able to develop this part.

The tricky part is that I want to store, on a separated tag, the best time measured. So, this other DINT tag will always store the best time, and have any faster time re-written on it.

Anyone could help me on this?

Thanks!
 
Use a LES instruction in front of a MOV so the new, lower time will be moved to the "best time" DINT if the new time is less than the old "best time".
 
I would parse from the real-time clock a couple of timestamps; mark the beginning and end, then solve for time elapsed per movement. You will have much greater accuracy than Timers permit (you are measuring performance, after all!) and you can leverage a UDT in the form of a DateTime object that corresponds to the RTC-provided fields. You could then create a UDT that encapsulates a pair of DateTime UDT (start/end) per movement and create an array of such, or just store the calculated elapsed time itself into an array of DateTime objects and discard the start/end timestamps. This will make movement comparisons a very easy problem to solve.
 
Last edited:

Similar Topics

Hello all, I have a question in regards to RSlogix 5000. I am having issues with the program force closing when I try to make online edits. We...
Replies
0
Views
95
I am having trouble with getting no control of my analog output signal. I am using the SCL function block to control my analog output. The logic...
Replies
11
Views
210
Hello, Haven't been on in a while. I need to generate a bit level pdf of the I/O for RSLogix 500. I can generate a report but it just shows the...
Replies
1
Views
113
Greetings ... someone sent me a request for some student handsouts that I developed ... turns out that I had this hosted on my business website...
Replies
0
Views
109
Thank you for any and all responses/help. I have an RSLogix 5000 v20 and a Cognex In-Sight v5.9 spreadsheet (8502P). I can not figure out how to...
Replies
0
Views
101
Back
Top Bottom