MATT116
Member
Hardware: Redlion G310 C3 and a AB Compactlogix 1769-L32E RSLogix 5000 V19.
I need to sync the time in the HMI with the PLC. I've got a tag DATE_TIME DINT[7] setup in the PLC using the wall time clock. I'm just not sure how to get the HMI to read the time. I tried using SetNow() function in C3 SetNow(date(Y,M,D)+time(hr,min,sec)) where Y=DATE_TIME[0] M=DATE_TIME[1]...etc. but I cant seem to make this work. Am I even on the right track? or should I be using the Time Manager in C3?
Thanks Matt
I need to sync the time in the HMI with the PLC. I've got a tag DATE_TIME DINT[7] setup in the PLC using the wall time clock. I'm just not sure how to get the HMI to read the time. I tried using SetNow() function in C3 SetNow(date(Y,M,D)+time(hr,min,sec)) where Y=DATE_TIME[0] M=DATE_TIME[1]...etc. but I cant seem to make this work. Am I even on the right track? or should I be using the Time Manager in C3?
Thanks Matt
Last edited: