Hello, I am trying to use an existing logic for entering start and end of shift to a tag but keep getting the error message Cac Failed. Parameter name:s1. Any help would be appreciated. Thank you.
Hello, I am trying to use an existing logic for entering start and end of shift to a tag but keep getting the error message Cac Failed. Parameter name:s1. Any help would be appreciated. Thank you.
That's because the usage of "ParseTime('Shift Start Time')" is invalid. Instead, compare the PI point directly. You need to fix it in both NewShiftStartTime and WriteIt.
ex.
IF NewShiftStartTime = 'Shift Start Time' ....
That worked. Thank you very much for the help.