PLC_PRG VAR diVar [...] ; END_VAR diVar := diVar + DINT#1; CASE diVar
_Test VAR_INPUT p [...] ; END_VAR VAR x [...] Teststruct^.xA; //SA0124 END_VAR
以将此变量创建为临时变量 ( VAR_TEMP )。访问 [...] PROGRAM PLC_PRG VAR nIndex : INT; iVar : INT
FUNCTION FUNA : BOOL VAR [...] ; END_VAR VAR i [...] ; END_VAR IF b
_Afb VAR_INPUT iIn1: INT; iIn2: INT; END_VAR VAR_OUTPUT i
_Test VAR bParameter: BOOL; END_VAR METHOD Call : BOOL VAR
. 例子 VAR_GLOBAL iVarGlob:INT; END_VAR PROGRAM PLC_PRG VAR iSubr1: INT
Fun1 VAR_INPUT bIn : BOOL; VAR_END VAR [...] _VA ; PROGRAM PLC_PRG VAR b
PLC_PRG VAR iVar [...] ; END_VAR iVar := iVar + INT#1; CASE iVar OF
. 例子 VAR_GLOBAL g_iVar AT %QW1 : INT; END_VAR PROGRAM PLC_PRG VAR i