MikeBriggs
Member
As the title says, I'm using CCW with a PV800 (and Micro850). I've made a scheduler in which a user can choose a month, day (1-31), hour (0-23), and minute (0-59) when they want the system to start up. I'd like to then display that time in a normal AM/PM format, like 3:00 PM. I tried cobbling together a way of doing it with separate fields for hour (decreased by 12 if greater than 12), a colon, then the minutes, followed by a Multistate indicator for displaying AM if hours is less than 13 and PM otherwise. But, if the minutes is less than 10 it shows up as a single digit. So instead of 3:00 PM I get 3 : 0 PM. Yuck. Is there any way to have CCW convert a time to a string that can be displayed how I want it? I can display the current time that way, using the tag $SysTimeString. I can calculate the scheduled time to a number of ms so I can convert it to a TIME variable, but then it just shows as something like 15h00m, which is ugly, and implies that the system will start 15 hours from now instead of at 3:00 PM.
I also tried downloading a UDFB from AB's webpage that is supposed to let you determine the day of the week based on an input month/day/year, but whenever I try to import it, I get a message saying it caused CCW to crash (oddly it doesn't actually crash, the message goes away when I click "ok" but it never imports the UDFB).
I also tried downloading a UDFB from AB's webpage that is supposed to let you determine the day of the week based on an input month/day/year, but whenever I try to import it, I get a message saying it caused CCW to crash (oddly it doesn't actually crash, the message goes away when I click "ok" but it never imports the UDFB).