CODESYS Development System
_PRG VAR END_VAR POU_1(); FUNCTION POU_1 VAR RETAIN END_VAR 信息: C
CODESYS Development System
PLC_PRG VAR test1 [...] ; END_VAR test1
CODESYS Development System
PLC_PRG VAR inst : FB; END_VAR inst(1); FUNCTION_BLOCK FB VAR
CODESYS Development System
_PRG VAR j : INT := g_i; END_VAR GVL1: VAR_GLOBAL g_i : INT; END_VAR
_TYPE PROGRAM PLC_PRG VAR iTemp1 [...] _Enum; END_VAR iTemp1 := iTemp1 [...] _TYPE PROGRAM PLC_PRG VAR iTemp1
Fun1 VAR_INPUT bIn : BOOL; VAR_END VAR [...] Value :BOOl; END_VAR Fun1(b
CODESYS Development System
示例: PROGRAM PLC_PRG VAR st1 : INT := (p1 := 1); END_VAR 信息: C
栈大小为 FUN1 是16字节。 VAR [...] _PRG VAR myFB : FB1; END_VAR [...] _BLOCK FB1 VAR_INPUT b
; END_VAR iVar := iVar + INT#1; CASE iVar OF [...] PLC_PRG VAR iVar
PROGRAM PLC_PRG VAR i [...] _Instance : BFB; END_VAR i [...] _PRG(); FUNCTION_BLOCK AFB VAR