IEC 61131 - Fakultät Elektrotechnik und Informationstechnik
IEC 61131 - Fakultät Elektrotechnik und Informationstechnik
IEC 61131 - Fakultät Elektrotechnik und Informationstechnik
Sie wollen auch ein ePaper? Erhöhen Sie die Reichweite Ihrer Titel.
YUMPU macht aus Druck-PDFs automatisch weboptimierte ePaper, die Google liebt.
ST Beispiele<br />
(Viele Wege führen nach Rom)<br />
• Beispiel 1:<br />
Q1.1:=(I0.1 OR I0.2 OR Q1.1) AND I0.3 AND I0.4;<br />
• Beispiel 2:<br />
M = Q1.1; Q1.1:=0;<br />
IF (I0.1 OR I0.2 OR M) THEN<br />
IF (I0.3 AND I0.4) THEN<br />
Q1.1:=1;<br />
END_IF;<br />
END_IF;<br />
• Negativbeispiel 3:<br />
Q1.1:=((I0.1+I0.2+Q1.1)>0)*I0.3*I0.4<br />
17.04.2012 PLT-1 (c) 2008-2012, UR Folie 28