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 30th, 2017, 08:41 AM   #1
Mark Goldman
Member
United States

Mark Goldman is offline
 
Join Date: Mar 2016
Location: Western Kentucky
Posts: 21
20 minute timer on GX developer

Hi all
I'm trying to program a 20 minute timer on an older Mitsubishi PLC with GX developer but the register does not allow it. For instances, T1 K1200000.
Will it allow 1.2e+6 or must I use some other means to obtain the 20 minutes I want?
Thanks in advance!
  Reply With Quote
Old October 30th, 2017, 09:18 AM   #2
jrwb4gbm
Lifetime Supporting Member + Moderator
United States

jrwb4gbm is offline
 
Join Date: Apr 2002
Location: NC
Posts: 2,211
I'm only guessing since I am not familiar with this software or plc. You may have already considered this. I would suggest just cascading some more timers using additional rungs in the logic unless the timing period is critical. If you need Retentive timing, use a 1 second self-resetting timer driving a couple of counters in cascading rungs.

Last edited by jrwb4gbm; October 30th, 2017 at 09:25 AM.
  Reply With Quote
Old October 30th, 2017, 09:22 AM   #3
Mark Goldman
Member
United States

Mark Goldman is offline
 
Join Date: Mar 2016
Location: Western Kentucky
Posts: 21
Yeah, I have considered this as an option. Timing is not that critical. However, I was hoping for an easier solution, like the 1.2e+6 or something.
If I cascade timers to make up a 20 minute timer, I believe I'll also have to use a counter, correct?
  Reply With Quote
Old October 30th, 2017, 09:31 AM   #4
jrwb4gbm
Lifetime Supporting Member + Moderator
United States

jrwb4gbm is offline
 
Join Date: Apr 2002
Location: NC
Posts: 2,211
Quote:
Originally Posted by Mark Goldman View Post
Yeah, I have considered this as an option. Timing is not that critical. However, I was hoping for an easier solution, like the 1.2e+6 or something.
If I cascade timers to make up a 20 minute timer, I believe I'll also have to use a counter, correct?
Unless you need it to be Retentive you won't need counters. Just use the Done or output of the 1st timer to start a 2nd timer, etc. Use the output of the last timer to reset all after using it to perform whatever action you needed the timer for in the 1st place.

Edit:
Also see my post numbered #2 for I made a couple of edits.
  Reply With Quote
Old October 30th, 2017, 11:09 AM   #5
Ronnie Sullivan
Member
United Kingdom

Ronnie Sullivan is offline
 
Join Date: May 2010
Location: London
Posts: 441
Use the 1 second heartbeat (M8013) to increment a data register (32 bit)
and do a compare (DCMP)

-!M8013!------[INCP D10]

.....------------[DCMP D10 K1200000 M10]
  Reply With Quote
Old October 30th, 2017, 11:15 AM   #6
Ronnie Sullivan
Member
United Kingdom

Ronnie Sullivan is offline
 
Join Date: May 2010
Location: London
Posts: 441
Hang on a minute - or 12

Your maths is wrong..............

1 minute is K600

10 minutes is k6000

20 minutes is k 12000 - not k1200000

1k is 1 10th of a second
  Reply With Quote
Old October 30th, 2017, 12:40 PM   #7
Mark Goldman
Member
United States

Mark Goldman is offline
 
Join Date: Mar 2016
Location: Western Kentucky
Posts: 21
Quote:
Originally Posted by Ronnie Sullivan View Post
Hang on a minute - or 12

Your maths is wrong..............

1 minute is K600

10 minutes is k6000

20 minutes is k 12000 - not k1200000

1k is 1 10th of a second
Nope.. 20 minutes = 1,200,000 milliseconds.
  Reply With Quote
Old October 30th, 2017, 12:54 PM   #8
moggie
Lifetime Supporting Member
England

moggie is offline
 
moggie's Avatar
 
Join Date: Apr 2002
Location: Devon, England.
Posts: 617
It will (of course) depend on the time base of the timer you are using.
From my old training manual -
T - Timers
T devices are timer devices by default timers are either 100msec time
increments, 10msec time increments, or 1msec time increments
depending on the timer address. Most timers, depending on their address,
are non-retentive, meaning they do not hold their current value if the input
conditions stop conducting. In the FX2N, FX, FX2NC, timers with
addresses T246 and above are retentive. This means the timer hold its
value until it is reset. Retentive timers have a time base of either 100msec
or 1msec, depending on the address.
When a timer reaches the associated preset value the T device coil is
energized, the corresponding T device contact becomes active also. All
timers are 16 bit, meaning the maximum preset is +32767. Valid presets
are K values and D data registers. For a 100msec timer the maximum
time is 3276.7 seconds.
In GX-Developer, it is possible to assign a range of timers to be batterybacked.
This means the timers will hold their accumulated value in the
event of a power loss – provided the logic that drives the rung is batterybacked
as well. Otherwise the timer will be reset.

20 mins = 1200 seconds so use a timer with 100mSec time base with a value of K 12000

Last edited by moggie; October 30th, 2017 at 01:28 PM.
  Reply With Quote
Old October 30th, 2017, 02:33 PM   #9
Ronnie Sullivan
Member
United Kingdom

Ronnie Sullivan is offline
 
Join Date: May 2010
Location: London
Posts: 441
You asked, and you were told.....
T1 is K12000 for 20 minutes.
  Reply With Quote
Old October 30th, 2017, 03:20 PM   #10
Mark Goldman
Member
United States

Mark Goldman is offline
 
Join Date: Mar 2016
Location: Western Kentucky
Posts: 21
Quote:
Originally Posted by Ronnie Sullivan View Post
You asked, and you were told.....
T1 is K12000 for 20 minutes.
Well, when I try K12000 it times out @ 2 minutes. So, evidently, my PLC uses the 100msec that Moggie is referring to.
  Reply With Quote
Old October 30th, 2017, 03:25 PM   #11
Mark Goldman
Member
United States

Mark Goldman is offline
 
Join Date: Mar 2016
Location: Western Kentucky
Posts: 21
Quote:
Originally Posted by moggie View Post
It will (of course) depend on the time base of the timer you are using.
From my old training manual -
T - Timers
T devices are timer devices by default timers are either 100msec time
increments, 10msec time increments, or 1msec time increments
depending on the timer address. Most timers, depending on their address,
are non-retentive, meaning they do not hold their current value if the input
conditions stop conducting. In the FX2N, FX, FX2NC, timers with
addresses T246 and above are retentive. This means the timer hold its
value until it is reset. Retentive timers have a time base of either 100msec
or 1msec, depending on the address.
When a timer reaches the associated preset value the T device coil is
energized, the corresponding T device contact becomes active also. All
timers are 16 bit, meaning the maximum preset is +32767. Valid presets
are K values and D data registers. For a 100msec timer the maximum
time is 3276.7 seconds.
In GX-Developer, it is possible to assign a range of timers to be batterybacked.
This means the timers will hold their accumulated value in the
event of a power loss provided the logic that drives the rung is batterybacked
as well. Otherwise the timer will be reset.

20 mins = 1200 seconds so use a timer with 100mSec time base with a value of K 12000
So, is it the "K" that determines whether the function is for 100 msec or is this something that is unique to the particular PLC that is unchangeable and, if the former, how do I address it to use 1 millisecond rather than 100 millisecond?
  Reply With Quote
Old October 30th, 2017, 03:34 PM   #12
Aabeck
Member
United States

Aabeck is online now
 
Aabeck's Avatar
 
Join Date: Feb 2013
Location: Detroit
Posts: 924
Actually a 0.01 time base timer would be K6000 for 1 minute and K120,000 for 20 minutes - which exceeds the 16 bit signed integer value.

The simplest way to do this would be set a timer at K6000 for 1 minute and have it count up a counter to 20, resetting the timer each count. When the count reaches 20 perform the needed task & reset the counter.

The 'K' simply tells the PLC it is a value to use and not an address to look at.
  Reply With Quote
Old October 30th, 2017, 03:36 PM   #13
moggie
Lifetime Supporting Member
England

moggie is offline
 
moggie's Avatar
 
Join Date: Apr 2002
Location: Devon, England.
Posts: 617
It is the Timer Number that determines the time base -
Attached Images
File Type: png GX_Timer.PNG (18.8 KB, 25 views)
  Reply With Quote
Old October 30th, 2017, 03:41 PM   #14
moggie
Lifetime Supporting Member
England

moggie is offline
 
moggie's Avatar
 
Join Date: Apr 2002
Location: Devon, England.
Posts: 617
So -
K12000 using a 100ms timer =12000 * 0.1 = 1200 seconds
1200 seconds / 60 = 20minutes

Make sure you are using the correct timer number - check the range of timers for the PLC model you are using

The fact that you have entered K12000 and it times out after 2 mins indicates that you have used a a 10msec time base timer
ie 12000 * 0.01 =120. 120/60 = 2 mins

Last edited by moggie; October 30th, 2017 at 03:48 PM.
  Reply With Quote
Old October 30th, 2017, 04:30 PM   #15
Ronnie Sullivan
Member
United Kingdom

Ronnie Sullivan is offline
 
Join Date: May 2010
Location: London
Posts: 441
T1 is always a 100's timer in every mitsi plc
And he said T1
  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
GX Developer / GX IEC Developer plcman LIVE PLC Questions And Answers 2 December 2nd, 2011 11:37 AM
GX Developer in Windows 7 - Help zai_jnr LIVE PLC Questions And Answers 3 April 21st, 2011 03:40 AM
Mitsubishi GX Developer V8.25B & Dell Latitude ATG D620 help. eniltrah LIVE PLC Questions And Answers 5 April 4th, 2011 02:07 AM
GX IEC Developer Potter LIVE PLC Questions And Answers 0 February 5th, 2007 07:33 AM
Gx Developer IEC Mylo LIVE PLC Questions And Answers 0 April 2nd, 2003 06:30 AM


All times are GMT -5. The time now is 09:32 AM.


.