.: %QW0 xTest AT %QW [...] Var := iVar + INT#1; xTest := NOT xTest; 输出在 留言
CODESYS Development System
_PRG VAR x: INT; bTest : BOOL; END_VAR IF bTest
CODESYS Development System
全局变量和常量不需要库前缀,因为命名空间替换了函数。 g_iTest [...] CAN.g_iTest
. 例子 N10 G36 O$strTest$ D'Name' 这 strTest [...] $strTest$ D'=Test
Var : INT := INT#17; iTest : INT; END_VAR iTest := iTest + i
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