CODESYS Development System
_PRG VAR x: INT; bTest : BOOL; END_VAR IF bTest
CODESYS Development System
全局变量和常量不需要库前缀,因为命名空间替换了函数。 g_iTest [...] CAN.g_iTest
CODESYS Development System
: INT; bTest : BOOL; END_VAR IF bTest
CODESYS Development System
_VAR Test().2; FUNCTION Test : INT VAR
CODESYS Development System
_INPUT ptToTest : POINTER [...] Pointer := ptToTest; . 调用该函数时,它接收以下输入参数: ptToTest
CODESYS Development System
_GLOBAL inst1 : TestFB; aws [...] inst2 : Test [...] _assign'} FUNCTION_BLOCK Test
CODESYS Development System
PLC_PRG VAR bTest: BOOL; END_VAR IF bTest
CODESYS Development System
'} bvar : BOOL; arrTest [...] _VAR arrTest[i] := arrTest
CODESYS Development System
:= Test(iPar1:=2, 5); FUNCTION Test : INT VAR
CODESYS Development System
; g_iTest AT %QW [...] _xVar := TRUE; g_iTest := INT [...] _xVar := FALSE; INT#2: g_iTest