|
|
|
PROGRAM LIGHT
|
|
|
|
VAR_EXTERNAL
|
|
|
|
|
|
|
|
END_VAR
|
|
|
|
|
|
|
|
VAR_GLOBAL
|
|
|
|
|
|
|
|
END_VAR
|
|
|
|
|
|
|
|
VAR
|
|
|
|
|
|
|
|
LCB03E01_SyncControl : IJ_LCB1030;
|
|
|
|
LCB03E01_LGI : array[0..10,0..30] of bool;
|
|
|
|
LCB03E01_LGO : array[0..10,0..30] of bool;
|
|
|
|
|
|
|
|
|
|
|
|
END_VAR
|
|
|
|
|
|
|
|
(*Automatically declared*)
|
|
|
|
VAR_EXTERNAL
|
|
|
|
LLCB03E06_C : BOOL;
|
|
|
|
RNILCB03X0D_C : BOOL;
|
|
|
|
RNILCB03X0A_C : BOOL;
|
|
|
|
RNILCB03X0E_C : BOOL;
|
|
|
|
LLCB03E08_C : BOOL;
|
|
|
|
RNILCB03X0B_C : BOOL;
|
|
|
|
SYS_RUN : BOOL;
|
|
|
|
LLCB03E10_C : BOOL;
|
|
|
|
LLCB03E05_C : BOOL;
|
|
|
|
RNILCB03X0G_C : BOOL;
|
|
|
|
LLCB03E02_C : BOOL;
|
|
|
|
LLCB03E07_C : BOOL;
|
|
|
|
LLCB03E03_C : BOOL;
|
|
|
|
LLCB03E09_C : BOOL;
|
|
|
|
LLCB03E04_C : BOOL;
|
|
|
|
RNILCB03X0F_C : BOOL;
|
|
|
|
RNILCB03X0C_C : BOOL;
|
|
|
|
RNILCB03X0H_C : BOOL;
|
|
|
|
LLCB03E01_C : BOOL;
|
|
|
|
END_VAR
|
|
|
|
(** if SYS_Run=0 then **)
|
|
|
|
(* if - Cond *)
|
|
|
|
LD SYS_Run
|
|
|
|
EQ 0
|
|
|
|
JMPCN ODK_SKIP_000000000000001_000000000000001
|
|
|
|
|
|
|
|
(* then - Stmts *)
|
|
|
|
|
|
|
|
(** **)
|
|
|
|
(** {*��������*} **)
|
|
|
|
(** LCB03E01_LGI[1,0]:=RNILCB03X0A_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0A_C
|
|
|
|
ST LCB03E01_LGI[1,0]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[2,0]:=RNILCB03X0B_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0B_C
|
|
|
|
ST LCB03E01_LGI[2,0]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[3,0]:=RNILCB03X0C_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0C_C
|
|
|
|
ST LCB03E01_LGI[3,0]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[4,0]:=RNILCB03X0D_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0D_C
|
|
|
|
ST LCB03E01_LGI[4,0]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[5,0]:=RNILCB03X0E_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0E_C
|
|
|
|
ST LCB03E01_LGI[5,0]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[6,0]:=RNILCB03X0F_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0F_C
|
|
|
|
ST LCB03E01_LGI[6,0]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[7,0]:=RNILCB03X0G_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0G_C
|
|
|
|
ST LCB03E01_LGI[7,0]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[8,0]:=RNILCB03X0H_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD RNILCB03X0H_C
|
|
|
|
ST LCB03E01_LGI[8,0]
|
|
|
|
|
|
|
|
(** **)
|
|
|
|
(** {*��·����*} **)
|
|
|
|
(** LCB03E01_LGI[1,1]:=LLCB03E01_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E01_C
|
|
|
|
ST LCB03E01_LGI[1,1]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[2,1]:=LLCB03E02_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E02_C
|
|
|
|
ST LCB03E01_LGI[2,1]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[3,1]:=LLCB03E03_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E03_C
|
|
|
|
ST LCB03E01_LGI[3,1]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[4,1]:=LLCB03E04_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E04_C
|
|
|
|
ST LCB03E01_LGI[4,1]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[5,1]:=LLCB03E05_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E05_C
|
|
|
|
ST LCB03E01_LGI[5,1]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[6,1]:=LLCB03E06_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E06_C
|
|
|
|
ST LCB03E01_LGI[6,1]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[7,1]:=LLCB03E07_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E07_C
|
|
|
|
ST LCB03E01_LGI[7,1]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[7,2]:=LLCB03E08_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E08_C
|
|
|
|
ST LCB03E01_LGI[7,2]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[7,3]:=LLCB03E09_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E09_C
|
|
|
|
ST LCB03E01_LGI[7,3]
|
|
|
|
|
|
|
|
(** LCB03E01_LGI[7,4]:=LLCB03E10_C; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LLCB03E10_C
|
|
|
|
ST LCB03E01_LGI[7,4]
|
|
|
|
|
|
|
|
(** {*AͲ��A��BͲ��B,C�ƴ���D���ӣ�E���棬FͲ��C��ҹ����������G������������H����*} **)
|
|
|
|
(** LCB03E01_SyncControl(CM:=1 , Lock:=0, Delay:=t#10ms , LightGroup_Input:=LCB03E01_LGI | LCB03E01_LGO:=LightGroup_Output ); **)
|
|
|
|
(* call - Stmt *)
|
|
|
|
CAL LCB03E01_SyncControl (
|
|
|
|
CM := 1,
|
|
|
|
Lock := 0,
|
|
|
|
Delay := t#10ms,
|
|
|
|
LightGroup_Input := LCB03E01_LGI
|
|
|
|
|
|
|
|
|
LCB03E01_LGO := LightGroup_Output
|
|
|
|
)
|
|
|
|
|
|
|
|
(** **)
|
|
|
|
(** **)
|
|
|
|
(** LLCB03E01_C:=LCB03E01_LGO[1,1]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGO[1,1]
|
|
|
|
ST LLCB03E01_C
|
|
|
|
|
|
|
|
(** LLCB03E02_C:=LCB03E01_LGO[2,1]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGO[2,1]
|
|
|
|
ST LLCB03E02_C
|
|
|
|
|
|
|
|
(** LLCB03E03_C:=LCB03E01_LGO[3,1]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGO[3,1]
|
|
|
|
ST LLCB03E03_C
|
|
|
|
|
|
|
|
(** LLCB03E04_C:=LCB03E01_LGO[4,1]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGO[4,1]
|
|
|
|
ST LLCB03E04_C
|
|
|
|
|
|
|
|
(** LLCB03E05_C:=LCB03E01_LGO[5,1]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGO[5,1]
|
|
|
|
ST LLCB03E05_C
|
|
|
|
|
|
|
|
(** LLCB03E06_C:=LCB03E01_LGO[6,1]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGO[6,1]
|
|
|
|
ST LLCB03E06_C
|
|
|
|
|
|
|
|
(** LLCB03E07_C:=LCB03E01_LGO[7,1]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGO[7,1]
|
|
|
|
ST LLCB03E07_C
|
|
|
|
|
|
|
|
(** LLCB03E08_C:=LCB03E01_LGI[7,2]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGI[7,2]
|
|
|
|
ST LLCB03E08_C
|
|
|
|
|
|
|
|
(** LLCB03E09_C:=LCB03E01_LGI[7,3]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGI[7,3]
|
|
|
|
ST LLCB03E09_C
|
|
|
|
|
|
|
|
(** LLCB03E10_C:=LCB03E01_LGI[7,4]; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD LCB03E01_LGI[7,4]
|
|
|
|
ST LLCB03E10_C
|
|
|
|
|
|
|
|
JMP ODK_END_IF_000000000000001
|
|
|
|
|
|
|
|
(** else **)
|
|
|
|
(* else *)
|
|
|
|
ODK_SKIP_000000000000001_000000000000001:
|
|
|
|
|
|
|
|
(* else - Stmts *)
|
|
|
|
|
|
|
|
(** LLCB03E01_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E01_C
|
|
|
|
|
|
|
|
(** LLCB03E02_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E02_C
|
|
|
|
|
|
|
|
(** LLCB03E03_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E03_C
|
|
|
|
|
|
|
|
(** LLCB03E04_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E04_C
|
|
|
|
|
|
|
|
(** LLCB03E05_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E05_C
|
|
|
|
|
|
|
|
(** LLCB03E06_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E06_C
|
|
|
|
|
|
|
|
(** LLCB03E07_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E07_C
|
|
|
|
|
|
|
|
(** LLCB03E08_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E08_C
|
|
|
|
|
|
|
|
(** LLCB03E09_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E09_C
|
|
|
|
|
|
|
|
(** LLCB03E10_C:=0; **)
|
|
|
|
(* assign - Stmt *)
|
|
|
|
LD 0
|
|
|
|
ST LLCB03E10_C
|
|
|
|
|
|
|
|
(** end_if; **)
|
|
|
|
(* if - End *)
|
|
|
|
ODK_END_IF_000000000000001:
|
|
|
|
|
|
|
|
|
|
|
|
END_PROGRAM
|