diff --git a/LCLSGeneral/LCLSGeneral/DUTs/DUT_EPS.TcDUT b/LCLSGeneral/LCLSGeneral/DUTs/DUT_EPS.TcDUT new file mode 100644 index 0000000..99f7a7d --- /dev/null +++ b/LCLSGeneral/LCLSGeneral/DUTs/DUT_EPS.TcDUT @@ -0,0 +1,40 @@ + + + + + + \ No newline at end of file diff --git a/LCLSGeneral/LCLSGeneral/POUs/EPS/FB_EPS.TcPOU b/LCLSGeneral/LCLSGeneral/POUs/EPS/FB_EPS.TcPOU new file mode 100644 index 0000000..dab7fad --- /dev/null +++ b/LCLSGeneral/LCLSGeneral/POUs/EPS/FB_EPS.TcPOU @@ -0,0 +1,65 @@ + + + + + + + + + + + bValue THEN + eps.nFlags := eps.nFlags XOR nMask; +END_IF + +// Check if all values are true +IF eps.nFlags = 16#FFFFFFFF THEN + eps.bEPS_OK := TRUE; +ELSE + eps.bEPS_OK := FALSE; +END_IF +]]> + + + + + + + + + + + + + + + + \ No newline at end of file