jimbo Posted May 22, 2013 Report Share Posted May 22, 2013 Am having an issue that I feel foolish asking about. Wrote a program on a V130 that requires a data table and had no issues with the table, and program runs fine. However, the times listed in the table are in 12 hours segments, i.e. AM and PM.(using RTC). Customer would like it to be in 24 hour clock, i.e. 00:00 to 23:59. I am completely unfamiliar with the direct and indirect clock functions and am wondering if that is where the answer lies. Would really appreciate someone's help Thanks in advance Quote Link to comment Share on other sites More sharing options...
Walkerok Posted May 25, 2013 Report Share Posted May 25, 2013 I believe that you would be able to tuse the string function "Real Time Clock to ASCII" to do what you want. You can define that your real time clock value is the time you want without Am/PM and then store that ASCII value in your data table. Keith Quote Link to comment Share on other sites More sharing options...
sgull Posted May 25, 2013 Report Share Posted May 25, 2013 Hi Jimbo You can use System Integers to display the time. Store the following in the data table. Hour (24 hour format)- SI35 Minute- SI36 Second- SI30 Regards Denis Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.