LD Counter Reset

2015-04-09
2015-04-20
  • dellsuperman - 2015-04-09

    Hi all,
    Is there a method to reset a few counters in the program?
    I had no luck with the set/reset function that I found & had some problem understanding it.
    Thank you.

     
  • shooter - 2015-04-09

    what is the problem, and show the program.

     
  • dellsuperman - 2015-04-20

    Shooter, I have managed to solve the issue.
    Another problem that I faced is that I have 2 separate timers in a program but when 1 activates, the other will activate as well although the IN condition for the 2nd timer is not met.

    When AC_Route is running & the condition for the AC_ResetTimer is met (AC_MasterReset), both the AC_ResetTimer & AD_ResetTimer will be activated.

    I have checked for all the variables to be in the correct position & there are not overlapping local & global variables as well.

    IMG: Bild

    JonKang TrainTrack.pro [158.81 KiB]

     
  • shooter - 2015-04-20

    change the names of the timer now both have same name, do this in your program and in the varlist above.

     
  • dellsuperman - 2015-04-20

    They do not have the same name.
    1 is AC_ResetTimer & the other is AD_ResetTimer

     
  • shooter - 2015-04-20

    the timers are not in the var list declared at all.

     

Log in to post a comment.