Hi all,
Is there an efficient way to compare the UDT elements below in ladder logic, I need to know when they're not equal?
Compare PLC_DateTime_Set.Previous to PLC_DateTime_Set.Current
Cheers,
Chris.
Is there an efficient way to compare the UDT elements below in ladder logic, I need to know when they're not equal?
Compare PLC_DateTime_Set.Previous to PLC_DateTime_Set.Current
Code:
PLC_DateTime_Set DateTime_Set
PLC_DateTime_Set.Previous DateTime
PLC_DateTime_Set.Previous.Year DINT
PLC_DateTime_Set.Previous.Month DINT
PLC_DateTime_Set.Previous.Day DINT
PLC_DateTime_Set.Previous.Hour DINT
PLC_DateTime_Set.Previous.Minute DINT
PLC_DateTime_Set.Previous.Second DINT
PLC_DateTime_Set.Previous.uSec DINT
PLC_DateTime_Set.Current DateTime
PLC_DateTime_Set.Current.Year DINT
PLC_DateTime_Set.Current.Month DINT
PLC_DateTime_Set.Current.Day DINT
PLC_DateTime_Set.Current.Hour DINT
PLC_DateTime_Set.Current.Minute DINT
PLC_DateTime_Set.Current.Second DINT
PLC_DateTime_Set.Current.uSec DINT
Cheers,
Chris.