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

Hi folks, in the alarm manager of Rslogix 5000, the tag-based alarm has been created. But when I tried to change the condition, it was found the...
Replies
0
Views
13
I have a little bit of experience with Allen-Bradley. I have a Micrologix 1500 (RSLogix 500) and a PanelView Plus 7 (FactoryTalk View Studio ME)...
Replies
3
Views
104
I am completely stuck on building a ladder program that requires a start button to be pressed 3 times to turn on motor 1. Then motor 2 starts...
Replies
20
Views
526
buen dia. tengo una falla al pasar los tags de mi plc SLC 5 0/4 a mi panel me aparece un error Problem writing value " " to item <tag name>...
Replies
1
Views
73
Back
Top Bottom