机柜报警功能(SCL)
(*
Collect Modules and Cabinet status and output Fault signal to other systems:
ERROR INPUT: Module Failure, Power Failure, Temperature High, Door Open; as part of the ranges do not have all types of modules,
utilize AlwaysTure=M1.2 & AlwaysFalse=M1.3;
OUTPUT: Cabinet Fault
*)
IF
#HV_Fault = 1
AND #Lv_Fault = 1
AND #Am_Fault = 1
AND #OA_Fault = 1
AND #CV_Fault = 1
AND #SM_Fault = 1
AND #FAN1_Fault = 0
AND #FAN2_Fault = 0
AND #FAN3_Fault = 0
AND #Power_Supply = 0
AND #High_Temp=0
THEN
#Channel_Fault := 0;
ELSE
#Channel_Fault := 1;
END_IF;

