McBusa

MrPLC Member
  • Content count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

About McBusa

  • Rank
    Hi, I am New!

Profile Information

  • Country United States
  1. use the [any to Dint] and save that to a variable to use for holding the time in a dint then it should give you time in ms i believe, so divide by 1000 and you have seconds, divide by 60 and you got minutes and if it is in the hours then divide by another 60 to get hours. just make sure the time value is not larger then a DINT can hold I guess or it will be a roll over and error or wrap the value around either is bad. then for a display of seconds remainging take the seconds variable and subtract ((hours * 3600) + (minutes * 60) and the result is the left over seconds because your taking off the seconds worth of minutes and hours from the total seconds value giving you the remainder. hopefuly this is enough to get you going.