You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

123 lines
3.2 KiB

PROGRAM LIGHT
VAR_EXTERNAL
END_VAR
VAR_GLOBAL
END_VAR
VAR
LCB01D01_SyncControl : IJ_LCB1030;
LCB01D01_LGI : array[0..10,0..30] of bool;
LCB01D01_LGO : array[0..10,0..30] of bool;
LCB01D02_SyncControl : IJ_LCB1030;
LCB01D02_LGI : array[0..10,0..30] of bool;
LCB01D02_LGO : array[0..10,0..30] of bool;
LCB01D03_SyncControl : IJ_LCB1030;
LCB01D03_LGI : array[0..10,0..30] of bool;
LCB01D03_LGO : array[0..10,0..30] of bool;
LCB01D04_SyncControl : IJ_LCB1030;
LCB01D04_LGI : array[0..10,0..30] of bool;
LCB01D04_LGO : array[0..10,0..30] of bool;
LCB02D01_SyncControl : IJ_LCB1030;
LCB02D01_LGI : array[0..10,0..30] of bool;
LCB02D01_LGO : array[0..10,0..30] of bool;
LCB02D02_SyncControl : IJ_LCB1030;
LCB02D02_LGI : array[0..10,0..30] of bool;
LCB02D02_LGO : array[0..10,0..30] of bool;
LCB02D03_SyncControl : IJ_LCB1030;
LCB02D03_LGI : array[0..10,0..30] of bool;
LCB02D03_LGO : array[0..10,0..30] of bool;
LCB02D04_SyncControl : IJ_LCB1030;
LCB02D04_LGI : array[0..10,0..30] of bool;
LCB02D04_LGO : array[0..10,0..30] of bool;
LCB02D05_SyncControl : IJ_LCB1030;
LCB02D05_LGI : array[0..10,0..30] of bool;
LCB02D05_LGO : array[0..10,0..30] of bool;
LCB02D06_SyncControl : IJ_LCB1030;
LCB02D06_LGI : array[0..10,0..30] of bool;
LCB02D06_LGO : array[0..10,0..30] of bool;
END_VAR
if SYS_Run=0 then
(**)
LCB02D01_LGI[1,0]:=RNILCB02X0A_C;
LCB02D01_LGI[2,0]:=RNILCB02X0B_C;
LCB02D01_LGI[3,0]:=RNILCB02X0C_C;
LCB02D01_LGI[4,0]:=RNILCB02X0D_C;
LCB02D01_LGI[5,0]:=RNILCB02X0E_C;
LCB02D01_LGI[6,0]:=RNILCB02X0F_C;
LCB02D01_LGI[7,0]:=RNILCB02X0G_C;
LCB02D01_LGI[8,0]:=RNILCB02X0H_C;
(**)
LCB02D01_LGI[1,1]:=LLCB02D01_C;
LCB02D01_LGI[2,1]:=LLCB02D02_C;
LCB02D01_LGI[3,1]:=LLCB02D03_C;
LCB02D01_LGI[4,1]:=LLCB02D04_C;
LCB02D01_LGI[5,1]:=LLCB02D04_C;
LCB02D01_LGI[6,1]:=LLCB02D04_C;
(*A筒灯AB筒灯B,C灯带D导视E广告F筒灯C夜间照明G卫生间照明H备用*)
LCB02D01_SyncControl(CM:=1 , Lock:=0, Delay:=t#10ms , LightGroup_Input:=LCB02D01_LGI | LCB02D01_LGO:=LightGroup_Output );
LLCB02D01_C:=LCB02D01_LGO[1,1];
LLCB02D02_C:=LCB02D01_LGO[2,1];
LLCB02D03_C:=LCB02D01_LGO[3,1];
LLCB02D04_C:=LCB02D01_LGO[4,1];
LLCB02D05_C:=LCB02D01_LGO[5,1];
LLCB02D06_C:=LCB02D01_LGO[6,1];
(**)
LCB01D01_LGI[1,0]:=RNILCB02X0A_C;
LCB01D01_LGI[2,0]:=RNILCB02X0B_C;
LCB01D01_LGI[3,0]:=RNILCB02X0C_C;
LCB01D01_LGI[4,0]:=RNILCB02X0D_C;
LCB01D01_LGI[5,0]:=RNILCB02X0E_C;
LCB01D01_LGI[6,0]:=RNILCB02X0F_C;
LCB01D01_LGI[7,0]:=RNILCB02X0G_C;
LCB01D01_LGI[8,0]:=RNILCB02X0H_C;
(**)
LCB01D01_LGI[1,1]:=LLCB01D01_C;
LCB01D01_LGI[2,1]:=LLCB01D02_C;
LCB01D01_LGI[3,1]:=LLCB01D03_C;
LCB01D01_LGI[4,1]:=LLCB01D04_C;
(*A筒灯AB筒灯B,C灯带D导视E广告F筒灯C夜间照明G卫生间照明H备用*)
LCB01D01_SyncControl(CM:=1 , Lock:=0, Delay:=t#10ms , LightGroup_Input:=LCB01D01_LGI | LCB01D01_LGO:=LightGroup_Output );
LLCB01D01_C:=LCB01D01_LGO[1,1];
LLCB01D02_C:=LCB01D01_LGO[2,1];
LLCB01D03_C:=LCB01D01_LGO[3,1];
LLCB01D04_C:=LCB01D01_LGO[4,1];
else
LLCB02D01_C:=0;
LLCB02D02_C:=0;
LLCB02D03_C:=0;
LLCB02D04_C:=0;
LLCB02D04_C:=0;
LLCB02D04_C:=0;
LLCB01D01_C:=0;
LLCB01D02_C:=0;
LLCB01D03_C:=0;
LLCB01D04_C:=0;
end_if;
END_PROGRAM