In SCL sieht das schöner aus.. *duck wegrenn*
U E 0.0
SPB then
SPBN else
then: = A 0.0
SPA ifen
else: = A 1.0
ifen: NOP 0
Das SPBN sollte wohl besser durch ein SPA ersetzt werden, da ein bedingter Sprung das VKE auf 1 setzt. Wenn E0.0 false ist, wird so trotzdem nicht in den Else-Zweig gesprungen.
*
U E 0.0
SPB then
SPA else
then: = A 0.0
R A 0.1
SPA ifen
else: = A 0.1
R A 0.0
ifen: NOP 0
L #Eingabe
L #min_Wert
< R
SPB xChk
L #Eingabe
L #max_Wert
> R
SPB xChk
SPA OK
xChk: L #Default
T #Eingabe
OK: nop 0
U(
L #Eingabe
L #min_Wert
>=R
)
u(
L #Eingabe
L #max_Wert
<=R
)
SPB OK
L #Default
T #Eingabe
OK: nop 0
Code:* U E 0.0 SPB then SPBN else then: = A 0.0 SPA ifen else: = A 1.0 ifen: NOP 0
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?