_Afb VAR_INPUT iIn1: INT; iIn2: INT; END_VAR [...] ; END_VAR iOut1 := i
; END_VAR diVar := diVar [...] ); END_TYPE PROGRAM PLC_PRG VAR diVar
PLC_PRG VAR xVar : BOOL; byVar : BYTE; END_VAR xVar := %IX
:= INT#15; END_VAR VAR [...] TO INT; END_VAR [...] 须确保此函数不会更改传输的值。尽可能使用 VAR
PROGRAM PLC_PRG VAR iVar : INT; END_VAR iVar := (iVar + 10) / 2
Temp : BOOL; END_VAR iVar [...] := 4 ); END_TYPE PROGRAM PLC_PRG VAR iVar
%QW0 : INT ; END_VAR [...] 12 提示 当输出变量 ( VAR [...] 16 . 例子 VAR
; END_VAR METHOD [...] InCopyCode : BOOL; END_VAR g [...] VAR_GLOBAL g
FUNCTION FUN : DINT VAR_INPUT bTest : BOOL; END_VAR [...] RETURN; END_IF FUN
1 : STRUCT bitVar : BIT; iVar : INT; bVar : BOOL; END_STRUCT END