_INPUT xVarIn1 : BOOL; xVarIn [...] _xGlob := xVarIn1; INT#2: g_xGlob := xVarIn2; ELSE g
变量 ( VAR_OUTPUT ) 或者 VAR_IN [...] ,您定义了最大数量的 1 为了 VAR_IN [...] _BLOCK FB1 VAR_INPUT xIn
:CP26 例 51 . 例子 VAR_GLOBAL g_xVar AT %QX [...] ; END_VAR PROGRAM
_Afb VAR_INPUT iIn1: INT; iIn2: INT; END_VAR VAR_OUTPUT i
_INPUT iVar_fb1in1 : INT; ivar_fb1in2 : INT; rVar_fb1in [...] iVar_fb1out:=iVar_fb1in
FUNCTION TempVarIn [...] Temp : UINT; END_VAR TempVarIn [...] Test := TempVarInFUNC(); 输出
_Afb VAR_INPUT iIn1: INT; iIn2: INT; END_VAR [...] ; END_VAR iOut1 := iIn
接口和声明 VAR_IN [...] _itf3 : ITF; END_VAR VAR_IN [...] 项目中定义的接口。 FUNCTION_BLOCK POU VAR
PROGRAM PLC_PRG VAR uiTemp : UINT; TempVarInFUNC : DWORD; END_VAR TempVarIn
Fun1 VAR_INPUT bIn : BOOL; VAR_END VAR [...] Value :BOOl; END_VAR Fun1(bIn