. 例 PROGRAM PLC1 // SA0101 VAR iVar1 [...] 0101: 名前「PLC1」の長
plc1 VAR var1 [...] 規則の次の違反を報告します。 NC0102:無効な名前 'plc1 [...] ; PROGRAM plc1 VAR var
; PROGRAM PLC_PRG_1 [...] _GLOBAL g_iTemp1: INT; END_VAR PROGRAM PLC
_GLOBAL iGlob1 : INT; END_VAR PROGRAM PLC_PRG VAR [...] _VAR ivar := iGlob1
_TYPE PROGRAM PLC_PRG VAR iTemp1 [...] _TYPE PROGRAM PLC_PRG VAR iTemp1 [...] _Enum : ( red := 1, blue := 2
comment 1 *) *) PROGRAM PLC_PRG VAR (* That [...] comment 2 comment *) iVal1
PROGRAM PLC_PRG VAR byTemp1 [...] byTemp1 <= 255 DO byTemp1 := byTemp1
%QW1 : INT ; END_VAR PROGRAM PLC_PRG VAR_OUTPUT xVarOut1:BOOL; x
PROGRAM PLC_PRG VAR dwVal1 [...] _VAR // unnecessary assignment dwVal1 := 1; IF dw
PROGRAM PLC_PRG VAR xBool1 [...] Result := xBool1 > xBool2; // SA0051 xBool1