MikeBriggs
Member
I'm using a Micro850 with a Panelview 800, programming in CCW. We'd like the customer to be able to schedule the system to startup at a certain day/time. I know the Micro850 doesn't have a built-in RTC and I could add the RTC plug-in module. But, the PV800 already has an RTC - Can I use that to get a date/time to the PLC?
I can't find much of anything online about using date and time in CCW. I know there are the RTC_Read and RTC_Set commands, but the RTC_Read spits out a data type of RTC, and I don't know what to do with that. I can't convert it to a date and time (Any_to_date can't have RTC data as an input), and if I have a user input anything I don't know how to convert it to RTC, since there is no Any_to_RTC. So what can you DO with the RTC Data that you get from the RTC_Read command? It doesn't seem to be compatible as an input to anything else.
I'd like the user to be able to select a date (month and day) and time through the HMI, and then use that to trigger an event when the date/time from the RTC matches it. But I don't see any possible way to compare anything the user might put in to the data output of the RTC_Read command. Surely I must be missing something?
I can't find much of anything online about using date and time in CCW. I know there are the RTC_Read and RTC_Set commands, but the RTC_Read spits out a data type of RTC, and I don't know what to do with that. I can't convert it to a date and time (Any_to_date can't have RTC data as an input), and if I have a user input anything I don't know how to convert it to RTC, since there is no Any_to_RTC. So what can you DO with the RTC Data that you get from the RTC_Read command? It doesn't seem to be compatible as an input to anything else.
I'd like the user to be able to select a date (month and day) and time through the HMI, and then use that to trigger an event when the date/time from the RTC matches it. But I don't see any possible way to compare anything the user might put in to the data output of the RTC_Read command. Surely I must be missing something?