You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old October 10th, 2017, 07:15 AM   #1
mateus
Member
Brazil

mateus is offline
 
Join Date: Jan 2017
Location: Novo Hamburgo, RS
Posts: 4
RSLogix Stopwatch - Help

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!
  Reply With Quote
Old October 10th, 2017, 07:32 AM   #2
mscholz
Member
United States

mscholz is offline
 
Join Date: Jul 2010
Location: TX
Posts: 33
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".
  Reply With Quote
Old October 10th, 2017, 07:50 AM   #3
mateus
Member
Brazil

mateus is offline
 
Join Date: Jan 2017
Location: Novo Hamburgo, RS
Posts: 4
Quote:
Originally Posted by mscholz View Post
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".
Will try that out. Thank you, mscholz!
  Reply With Quote
Old October 12th, 2017, 01:16 PM   #4
gerberz
Member
United States

gerberz is offline
 
Join Date: Jan 2017
Location: no
Posts: 6
You can also use a array and the FIFO instruction to store each time. If you wanted to store the last 100 or so cycle times.
  Reply With Quote
Old October 12th, 2017, 02:17 PM   #5
JeremyM
Member
United States

JeremyM is offline
 
Join Date: May 2014
Location: Texas
Posts: 350
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 by JeremyM; October 12th, 2017 at 02:21 PM.
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
RS LOGIX 5000 emulate Skiroy LIVE PLC Questions And Answers 14 August 25th, 2015 04:31 AM
Logix 5000 install problem smiller LIVE PLC Questions And Answers 16 May 26th, 2015 09:47 PM
Software for MicroLogix1200 SirCharles1 LIVE PLC Questions And Answers 7 July 17th, 2013 01:36 AM
Rockwell Allen Bradley Programming Software, RSLogix 5, RSLogix 500, RS Linx, RSLogix vvcd LIVE PLC Questions And Answers 21 September 24th, 2009 10:04 PM
RSLogix 5000 V15 Features Samneggs LIVE PLC Questions And Answers 18 April 20th, 2006 05:45 PM


All times are GMT -5. The time now is 09:11 PM.


.