0.0 : BOOL ; g_iGlob AT [...] ; END_VAR VAR iCondition : INT; END_VAR i
_OUTPUT END_VAR VAR iA : INT; END_VAR iA := iA + 1
iStatus: INT [...] :REAL:=100; END_VAR CASE i [...] .Status THEN iStatus := i
CODESYS Development System
ーの例: PROGRAM PLC_PRG VAR i : INT; END_VAR i := Test(iPar1:=2, 5
_INPUT iAlfa : INT; i [...] _OUTPUT iResult : INT; s [...] _VAR iResult := i
' := 'off'} iVarA : INT; iVarB : INT [...] '} iVarC : INT; END
_GLOBAL g_iTemp1: INT [...] _PRG // Controlled by MainTask g_iTemp1 := g_iTemp1 + INT#2
_GLOBAL iTemp:INT; inst [...] Temp := ADR(iTemp); ptiTemp^ := INT#1; iTemp := INT
CODESYS Development System
iCounter := 1 TO 5 BY 1 DO iVar1 := iVar1*2; END
_GLOBAL xVar1 : BOOL; i [...] Var1 : BOOL; // SA0013 i [...] .xVar1; iVar3 := i