. 例子 VAR_GLOBAL g_iVar AT %QW1 : INT; END_VAR PROGRAM PLC_PRG VAR i
_Afb VAR_INPUT iIn1: INT; iIn2: INT; END_VAR VAR_OUTPUT iOut1
_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
栈大小为 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
PROGRAM PLC_PRG VAR byTestVar: BYTE; END_VAR WHILE byTestVar >= 260
_PRG VAR iSubr1: INT [...] ); END_VAR iSubr1 := n [...] . 例子 VAR_GLOBAL iVar
PLC_PRG VAR byTemp1 : BYTE; END_VAR WHILE byTemp1 <= 255 DO