127 . 例子 功能块 FB1 有 [...] OutVal : INT; 另一个 POU 中的以下访问会生成错误 SA0170: //FB1
comment 1 *) *) PROGRAM [...] comment 2 comment *) iVal1: INT; iVal2: INT
PROGRAM PLC_PRG VAR iValue1: INT; iValue2: INT; END_VAR iValue1
Counter : INT; afb [...] Local: INT; END_VAR METHOD METH : INT VAR
_INPUT iVar_fb1in1 : INT; ivar_fb1in2 : INT; rVar_fb1 [...] _OUTPUT iVar_fb1out:INT
_GLOBAL xVar1 : BOOL; iVar3 : INT; END_VAR PROGRAM PLC_PRG VAR xVar1
_OUTPUT i : INT; // +1 [...] ] OF INT; // +1 [...] 所有静态变量的大小之和。 例子 FUNCTION FUN1
_iValue + 1] OF INT; END [...] CONSTANT c_iValue : INT := INT#15; END_VAR VAR
#1; pInt := dw [...] PROGRAM PLC_PRG VAR pInt : POINTER TO INT; dw
PLC_PRG VAR iCounter1 : INT; iCounter2 : INT; // SA0035 END