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 March 18th, 2010, 10:28 AM   #1
italo2008
Member
Italy

italo2008 is offline
 
Join Date: Feb 2009
Location: Padova
Posts: 62
Rslogix 5000 - structured text- TONR instruction

Hi. could someone give me an example about TONR instruction in structured text?

I need to build a sort of "clock" wich set a bit at each second... Someone told me that I could do it with tonr instruction...


thanks
  Reply With Quote
Old March 18th, 2010, 11:01 AM   #2
rdrast
Lifetime Supporting Member
United States

rdrast is offline
 
rdrast's Avatar
 
Join Date: Apr 2003
Location: South Carolina Lowcountry
Posts: 3,867
Unless you know what you want, and describe it better, there is absolutely zero reason to use the TONR instruction for a one second timebase.

In fact, with a real time clock available, there is no reason to use a timer instruction at all. Create an array of 7 DINT's, and use a GSV instruction... GSV WALLCLOCKTIME LocalDateTime MyDINTArray.

MyDINTArray[5] is seconds. Do something every time it changes.
__________________
------------------------------------
How to ask questions the SMART Way!

Look First, Ask Second!

  Reply With Quote
Old March 18th, 2010, 11:05 AM   #3
italo2008
Member
Italy

italo2008 is offline
 
Join Date: Feb 2009
Location: Padova
Posts: 62
Talking

thanks...sorry but I start programming in rslogix 2 days ago...
  Reply With Quote
Old March 18th, 2010, 11:25 AM   #4
Ron Beaufort
Lifetime Supporting Member
United States

Ron Beaufort is offline
 
Ron Beaufort's Avatar
 
Join Date: Jul 2002
Location: Charleston, SC
Posts: 4,460
Quote:
Hi. could someone give me an example about TONR instruction in structured text?
see if this helps ...
Attached Images
File Type: jpg TONR.JPG (29.9 KB, 162 views)
__________________

2-B ?
Best regards, ----+----] [----+------------( )----
Ron | |
PLC Training Boot Camp | 2-B |
+----]/[----+

I once was lost, but now am found, was blind, but now I see.


Last edited by Ron Beaufort; March 18th, 2010 at 11:28 AM.
  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
Structured Text & RSLogix - good reference books & docs? ChrisOfMaryland LIVE PLC Questions And Answers 4 November 4th, 2009 12:10 PM
Structured Text on Controllogix 5000 OHUM LIVE PLC Questions And Answers 6 April 27th, 2007 11:25 PM
RSLogix 5000 V15 Features Samneggs LIVE PLC Questions And Answers 18 April 20th, 2006 05:45 PM
Structured Text for RSLOGIX 5000 okeeffef LIVE PLC Questions And Answers 1 April 20th, 2006 11:31 AM
RS 5000 Structured Text olias LIVE PLC Questions And Answers 10 October 14th, 2003 02:20 AM


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


.