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 21st, 2007, 09:46 AM   #1
jayesh_vardhman
Member
India

jayesh_vardhman is offline
 
jayesh_vardhman's Avatar
 
Join Date: Jul 2005
Location: Surat
Posts: 8
IDEC - Will you pl help me?

Today I am programming IDEC make PLC type FC4A-C24R2.

I want to program a timer. But I feel no retentive timer is in the program. In case power goes, PLC has to remember the time consumed for the process and the remaining time. Once power comes back, PLC may have to work for remaining time.

Pl help.

Jayesh Shah
  Reply With Quote
Old October 21st, 2007, 10:24 AM   #2
Crossbow
Member
United States

Crossbow is offline
 
Crossbow's Avatar
 
Join Date: May 2004
Location: Illinois
Posts: 244
I would actually use a register and increment a number in that case. Simply use a clock pulse (there should be several in the PLC) to increment a value. When you want to reset it, move a 0 into the register. This should work for any PLC. I am not familiar with the addressing in the FC4A to know where you might find a 1-sec pulse bit, but I would expect one exists. And most data register should be able to be backed up through power loss.
  Reply With Quote
Old October 21st, 2007, 10:31 AM   #3
Jon R
Member
United Kingdom

Jon R is offline
 
Jon R's Avatar
 
Join Date: Jan 2007
Location: Tadley
Posts: 206
There is no retentive timer, however you can use counters and data registers as retentive.

If you used a counter with a 100ms pulse this would give you a total time elapsed, and this would be kept if you made the counter retentive. When the PLC restarts it can then start the counter increasing again upto the preset value.

You can also make the preset value variable by using a data register if needed.

You can also make internal relays retentive.

As you are using the C24R2 why not put a UPS on it and have an input triggered off a monitoring relay to pause the program whilst the power is down and the process isn't running? This would be a better solution rather than having the PLC powering down and restarting if outages are a regular occurence.

Jon.
  Reply With Quote
Old October 21st, 2007, 10:56 AM   #4
Stationmaster
Member
United States

Stationmaster is offline
 
Stationmaster's Avatar
 
Join Date: Aug 2007
Location: Florida
Posts: 577
In your manual index see: "Keep designation".

This will allow you to designate a register as "keep" or "clear" when the cpu stops. Select a register, and designate it as "keep". Timers don't seem to be listed as candidates for "keep" designation.

Use a "move instruction" to insert a preset as needed.

Use the "add" instruction for an up timer, or "subtract" instruction for a down timer.

Precede the Add or Subtract function with a SOTU so the function only happens once per time pulse.

Select a time pulse from: M8121 = 1-sec, M8122 = 100msec, M8123 = 10msec, When the conditions to "time" are all true, AND the selected "pulse" goes true, the register will increment (or decrement) and therefore "time" the operation.

You then will use a "compare" instruction to determine when you have arrived at your "time".

Edit: As JonR mentioned the same can be accomplished with a counter, which can ALSO be given a "KEEP" designation.

Stationmaster

Last edited by Stationmaster; October 21st, 2007 at 11:20 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
Changing from a Hitachi to IDEC PLC bigvicfella LIVE PLC Questions And Answers 8 September 16th, 2007 06:25 PM
Can IDEC Micro-1 program used in new IDEC PLC? ckchew666 LIVE PLC Questions And Answers 9 October 5th, 2005 01:10 AM
Idec Micro3 plc o_h LIVE PLC Questions And Answers 0 January 7th, 2005 10:56 AM
Idec Plc Hsc RBergmann LIVE PLC Questions And Answers 0 June 24th, 2003 02:55 PM
Idec jmwaller LIVE PLC Questions And Answers 2 March 11th, 2003 07:30 AM


All times are GMT -5. The time now is 04:43 AM.


.