PLCopen 规则:N1 / CP1 例 [...] 0.0; %QX0.0 := xVar; %MX0.1 := xVar; %MB1 := by
_GLOBAL iGlob1 : INT; END [...] _VAR ivar := iGlob1 [...] : SA0121:变量“iGlob1
Master_ITF1 and [...] ITF : ITF; instMasterITF1 : Master_ITF1; inst
comment 1 *) *) PROGRAM [...] comment 2 comment *) iVal1 [...] comment 4 comment *) iVal1
_GLOBAL g_iTemp1: INT [...] _PRG // Controlled by MainTask g_iTemp1 := g_iTemp1 + INT#2
PROGRAM PLC_PRG VAR xTemp1 [...] ; END_VAR xTemp1 := xTemp1 [...] Temp2 := xTemp1 OR TRUE; x
:= 1, blue := 2 [...] _TYPE PROGRAM PLC_PRG VAR iTemp1 [...] _Enum; END_VAR iTemp1 := iTemp1
PLC_PRG VAR byTemp1 [...] byTemp1 <= 255 DO byTemp1 := byTemp1
_PRG VAR iSubr1: INT (INT#1..INT#10); iSubr2: INT (INT#1..INT
:= ROL(DWORD#1, i [...] PROGRAM PLC_PRG VAR iTemp1 [...] Temp5 : LREAL; END_VAR iTemp1