adccommunitymod (AutomationDirect) asked a question.

PrintV or Print

Created Date: January 29,2007

Created By: bbseay1

**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****

How can I ascii out a timer value. I want to make a count-down timer. Thanks


  • adccommunitymod (AutomationDirect)

    Created Date: January 30,2007

    Created by: bcarlton

    Roughly ... PRINT is equal to VPRINT + PRINTV though I have found more control using the two seperate instructions. Each allows embedding of variable values which, for a count-down timer, would be 'some constant - current timer value '.

  • adccommunitymod (AutomationDirect)

    Created Date: January 30,2007

    Created by: bbseay1

    Bernie,

    Could you explain maybe how to do a count down timer.

  • adccommunitymod (AutomationDirect)

    Created Date: January 30,2007

    Created by: bcarlton

    Let's say you want a count down for 10 seconds. in 1/10th second increments. Using a standard timer (let's say timer 1 - TMR1) you set the preset for ten seconds (100). Next you set up a memory location, let's say V2000.

    Once the timer is started you also begin the following:

    LD K100

    SUB TMRA1

    OUT V2000

    You will see V2000 count down from 100 toward zero. You can use the standard contact of the timer to start the next process. You should stop the subtract at time out otherwise you start getting negative numbers. This doesn't actually hurt anything but it could be confusing to the viewer. The person viewing the contents of V2000 doesn't have to worry about the fact that the timer's accumulated time is actually counting UP.

    Expand Post
  • adccommunitymod (AutomationDirect)

    Created Date: January 30,2007

    Created by: bbseay1

    thank you

  • adccommunitymod (AutomationDirect)

    Created Date: January 29,2007

    Created by: bbseay1

    How can I ascii out a timer value. I want to make a count-down timer.

    Thanks