News:

  • October 13, 2025, 09:02:40 AM

Login with username, password and session length

Author Topic: DL05 timer value error  (Read 12482 times)

rangemaster

  • Jr. Member
  • **
  • Posts: 16
DL05 timer value error
« on: December 12, 2009, 04:03:38 PM »
Chilly in Pa but went to the range today to attempt to use the run100 and look at the contents of the program it holds!

1st connecting with the plc via usb worked!
2nd unable to load since program contains 163 instructions
3rd was able to go through contents and handwrite instructions

4th value of timer at V4014 should be set to 30, which would be 3 seconds! It now says 001E and using the DV1000 with plc in pgm mode I cannot change it!

Any programmers in central pa........."

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: DL05 timer value error
« Reply #1 on: December 12, 2009, 05:46:44 PM »
Just a note that 1E hex = 30. Is this one of the locations you can write from the DV1000? You probably won't be able to talk in PGM mode. If you normally can write to the location then try putting it to RUN (with power to the outputs cut off if that is critical) then write the correct value (30 BCD).

Sorry, can't help much from central Washington (state for those East of the Mississippi)
An output is a PLC's way of getting its inputs to change.

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Re: DL05 timer value error
« Reply #2 on: December 12, 2009, 06:29:02 PM »
Ah, then it is not really in error???
Yes I normally can write to that value with the dv1000, oops, I thought it had to be in pgm to change it!
Thank you sir for your quick reply.

I have a nephew out there in Seattle!  He likes it but I never go out of Pa any more it seems.

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3601
  • Darth Ladder
Re: DL05 timer value error
« Reply #3 on: December 12, 2009, 11:57:16 PM »
No, it's still a problem.  Koyo timer values are in "BCD" which stands for Binary Coded Decimal.  Four bits are dedicated to encode each decimal digit in binary (0-9 = 0000 - 1001).  If the contents of V4014 are 0x1E (0000 0000 0001 1110 binary), that's 30 in binary representation, so probably somebody tried to set it up assuming the timer wanted a binary number for a setpoint rather than BCD.  So the DV1000 display should still show 30 rather than 1E.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Re: DL05 timer value error
« Reply #4 on: December 13, 2009, 09:57:13 AM »
The dv1000 shows V4014 001E instead of 0030 which is what it should be!

Too darn cold in Pa. for next couple days to fool with the thing!

Thank you

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Straighten me out
« Reply #5 on: January 03, 2010, 11:08:53 AM »
When it is cold in Pa read books!

No I have not made it back to the range but reading the DV1000 manual chapter 6-9 has:
NOTE: Data is restricted to the range of 0000 to 9999 in Change PresetMode. If the data you are viewing already has one or more digits in the hexadecimal range (A through F), you may only view it. The DV-1000 classifies the entire number as hexadecimal, and will not allow keypad entries to edit its value.

Carlton, I have not tried the run mode change yet. 

Question???  Confused???  while hex 1E may =30   How did this get this way?  I thought AutomationDirect PLC's were Octal, if the value is in hex is this not going to produce an error?

Next question?  If I cannot change this value then do I need to purchase another plc or get another dv1000 to get my machine running correctly?   

Happy New Year to all

John

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3601
  • Darth Ladder
Re: DL05 timer value error
« Reply #6 on: January 03, 2010, 11:56:45 AM »
How did this get this way?

The PLC may have made a calculation whose result was 30 decimal or 0x1E and put the result into that register, or it may have been set that way by someone connected to the PLC with a computer and DirectSoft.  It's just the DV1000 that can't edit hex.

I thought AutomationDirect PLC's were Octal, if the value is in hex is this not going to produce an error?

No, it's the memory addresses that are in octal, not the data.  The data is BCD or in some cases decimal.  In reality, every digital device is binary anyway.  The internal locations are all only one or zero.  Hex, decimal, and octal are all just ways of looking at and interpreting those ones and zero's into a pattern humans can make sense of.

Next question?  If I cannot change this value then do I need to purchase another plc or get another dv1000 to get my machine running correctly?

Absolutely not.  It wouldn't help anyway.  The 0x1E value is stored in the PLC and another DV1000 is just going to see that and refuse to change it.  Another PLC will come without logic in it, and you'll have to load it, and even then, it would probably just be back to where you are now.  You need to get DirectSoft, hook up to the PLC, and figure out what's going wrong, or do the same thing with the handheld programmer (which is more difficult but you already have it).
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Re: DL05 timer value error
« Reply #7 on: January 03, 2010, 12:41:05 PM »
Thanks Controls Guy,

I agree with what you are saying, just read that the SP0 function reads the Vmem from the plc at startup 1 time.

Do have the help/use of the teckie/equipment from my workplace to hook up to the plc....brr when the weather warms a bit.

will get back on here then, still have pm

John

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Mneumonic code
« Reply #8 on: January 04, 2010, 09:41:04 AM »
  Using the code from the plc at the range I can rebuild the ladder program at home on my puter, so far I have 38 out of 163 words and have hit a snag!

I understand up to this point having done a little homework!

Question on the next rung! 
39 STR X0
40 STR X1
41 OR C0
42 CNT CT1 CTR1   (42 and  43 This I do not
43 CNT CT1 CTR1    understand)
44 STR X2
45 STR X1
46 OR C0
47 CNT CT5 CTR5   
48 CNT CT5 CTR5
ETCC.....

me thought it should have been something like cnt ct1 v2002 ..... which I would have had no problem entering

John

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3601
  • Darth Ladder
Re: DL05 timer value error
« Reply #9 on: January 04, 2010, 11:29:15 AM »
The mnemonic for a counter, having both an input rung and a reset rung is:

STR [input condition] STR [reset condition] CNT CTn [preset]

where [preset] can be a constant in the form "K99" or a variable in a memory register such as "V2002", just like you were expecting.

Are you sure you copied the code correctly from the handheld?  Maybe it's a difference in the way the handheld renders the program vs. DirectSoft.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Re: DL05 timer value error
« Reply #10 on: January 04, 2010, 12:46:47 PM »
You said "Are you sure you copied the code correctly from the handheld?  Maybe it's a difference in the way the handheld renders the program vs. DirectSoft."

Hmmm, we did use directsoft but.... well I really am not sure about that, my cousin read the code off the laptop and I wrote it down while shivering cold ....... all 163 lines

And/or this example was not the only one I don't understand the Mneumonics of.  I have the same for cnt ct6 ctr6 then different for ct3 ctA3   ct7 ctA7   and others.

SO  I will make an honest attempt to freeze if necessary to get the whole thing sometime this week.

I did since my last message learn why the double code, ie input and  reset, did I understand it right

While I type, I hate to be wrong and often look up things I don't understand, called learning process ie.,
 ds manual chap 5 has this
Timer/Counter Current Values
The DL05, DL06, DL105, DL205, DL350 and
DL405 CPUs use designated V-memory
locations to hold timer and counter current
values. The current value for Timer T0 is
stored in V0. This is not always easy to
remember, so DirectSOFT 5 allows you to
refer to these as either V0 or TA0 (timer
accumulated value for Timer 0). For example,
the accumulator for Counter 3 is in CTA3
which is easier to remember than V1003.

This makes sense and me thinks like you said, copy problems, just checked it out....... skipped a few lines and went to one that looked like the rigt values and it will let me enter the code :::
on line 137 which is CNT CT3 CTA3  just like that and i am thinking this value will be stored in vmem at V1003   for cta4 at V1004

John

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3601
  • Darth Ladder
Re: DL05 timer value error
« Reply #11 on: January 04, 2010, 01:21:25 PM »
If you had DirectSoft hooked up it would be simpler to save a copy of the PLC program than to transcribe the mnemonics and  recreate the program at home.  Then at home just open and view the saved program in ladder format.  Shoot, even if I was going to transcribe I'd do it in ladder before I'd do it in mnemonics.

"on line 137 which is CNT CT3 CTA3  just like that and i am thinking this value will be stored in vmem at V1003   for cta4 at V1004"

That still won't work because "CTAn" stands for "Counter Actual for CTn".  So while it's legal to enter, the counter's preset would be set to it's ACC value.  The output would never turn off.
« Last Edit: January 04, 2010, 01:24:14 PM by Controls Guy »
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Re: DL05 timer value error
« Reply #12 on: January 04, 2010, 01:28:37 PM »
YEPPER, you are right, i guess i am just hard headed, last day off before i go back to work! 

wife havin a hard time puttin up with me too, cabin fever i guess, says she don't know what she is going to do with me when i retire!
Won't be too bad in summer but winter time I'll be like a bear and hibrinate like i have been doing the past 14 days of vacation.

Thanks for all the help, I will get back on again WHEN I HAVE THE COMPLETE INFORMATION!

John

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Re: DL05 timer value error
« Reply #13 on: January 10, 2010, 06:49:41 PM »
OK, it is still somewhat chilly in Pa, 21 degrees to be exact, but I have the program on my computer finally!

disappointed that there was no wiring info

don't know where it goes from here, time to call brother!

John

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3761
    • Host Engineering
Re: DL05 timer value error
« Reply #14 on: January 10, 2010, 07:12:43 PM »
Steelers or Eagles?