News:

  • October 13, 2025, 06:52:13 PM

Login with username, password and session length

Author Topic: Success at last -- timer value error  (Read 3347 times)

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Success at last -- timer value error
« on: January 23, 2010, 04:51:12 PM »
I am happy to report my golf ball machine is now working!

Although I am not totally sure of why things are the way they are it works.

I was able to change the value of V4014 from 01exx to 30 as it should be with the DS5 software. 

Things were a little scary today, a lot learned while changing values with software, thinking I needed to save program to plc when all I had to do was click the right button in that mode!  first time save left me with all values reset to 0000,...   uh oh, I found my mistake and corrected things!

Problem with ball machine was values for pulses from card reader were set to 2, 3, &5, they should have been set to 1,2,3.

There is still a problem, too much code as i see it!  I have a counter X0 that counts tokens Ct1 CTA1 and a counter that counts pulses from the card reader depending on whether small, medium or large button is pressed, this is accumulated in CT5 CTA5!

There is another counter CT6 CTA6 that I think is not needed ...........   See your posts on this forum have made me see logic while watching in debug mode, status on, values in CT6 never change but in ladder or rung has comparisons to values that have no reason that I can see!!!!

If I post the whole thing with what little I think I know I think many of you will will be able to tell me if I am right, what is the best way to get this info posted. ?

John in Pa

b_carlton

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 606
    • thePLCguy
Re: Success at last -- timer value error
« Reply #1 on: January 23, 2010, 05:14:29 PM »
There are at least three ways:

1. Use File - Export - Program to create a text file which will contain the logic plus the documentation (not the data values). This can be imported by those with Directsoft.

2. Make a PDF printout (I use CutePDF) and post that for those without Directsoft.

3. Zip together all the files which make up the application (they have the same basename but different extensions) then post the ZIP file.
An output is a PLC's way of getting its inputs to change.

rangemaster

  • Jr. Member
  • **
  • Posts: 16
Re: Success at last -- timer value error
« Reply #2 on: February 01, 2010, 05:03:15 PM »
Finally I get around to do this after I tried to document it better, hope this works with the zip!

John

Controls Guy

  • Internal Dev
  • Hero Member
  • ****
  • Posts: 3601
  • Darth Ladder
Re: Success at last -- timer value error
« Reply #3 on: February 01, 2010, 05:50:14 PM »
That's great, John!  I'm glad you got it working.  Minor tweaks and cleanup will be a cinch compared to that, especially since you now have more familiarity with both the machine logic and DirectSoft.  You can use View -> Cross Reference to get a feel for how information flows from point to point within the app.  You can find a lot of wasteful programming and unravel spaghetti code that way.
I retract my earlier statement that half of all politicians are crooks.  Half of all politicians are NOT crooks.  There.