MHammer
Member
Hi. I hope you could give me some advise here.
I'm ongoing with a project which has many plates that are glued individual and put into a storage shelf. When a part is glued and put into storage, it has to stay for drying for at least 2 hours and max 48 hours.
There's been made an UDT with a TimeStamp, Position, Size etc. but I need to make a function that can*compare the PartTimeStamp with the actual time in the PLC(WallClockTime). I've made an GSV function that collects the current time when a scan is done.
I've come up with an solution that works if the part is made and dried up within a month. But if the part is made in the end of one month and dry in the next, my algorithm won't add up correctly (i.e. 12AM 02/31/2018 to 12AM 03/02/2018).
Is there a compare function that would handle the issue as I've written?
Thanks
//MHammer
I'm ongoing with a project which has many plates that are glued individual and put into a storage shelf. When a part is glued and put into storage, it has to stay for drying for at least 2 hours and max 48 hours.
There's been made an UDT with a TimeStamp, Position, Size etc. but I need to make a function that can*compare the PartTimeStamp with the actual time in the PLC(WallClockTime). I've made an GSV function that collects the current time when a scan is done.
I've come up with an solution that works if the part is made and dried up within a month. But if the part is made in the end of one month and dry in the next, my algorithm won't add up correctly (i.e. 12AM 02/31/2018 to 12AM 03/02/2018).
Is there a compare function that would handle the issue as I've written?
Thanks
//MHammer
Last edited: