--- a/examples/example.xml Wed Jan 31 16:31:39 2007 +0100
+++ b/examples/example.xml Thu Feb 01 18:09:34 2007 +0100
@@ -135,7 +135,7 @@
</connectionPointOut>
<expression>IN3</expression>
</inVariable>
- <block localId="8" height="87" width="99" instanceName="" typeName="OR">
+ <block localId="8" height="87" width="99" typeName="OR">
<position y="246" x="235"/>
<inputVariables>
<variable formalParameter="IN1" negated="true">
@@ -349,6 +349,13 @@
<returnType>
<REAL/>
</returnType>
+ <inputVars>
+ <variable name="X1">
+ <type>
+ <REAL/>
+ </type>
+ </variable>
+ </inputVars>
<localVars>
<variable name="Temp">
<type>
@@ -357,11 +364,6 @@
</variable>
</localVars>
<inputVars>
- <variable name="X1">
- <type>
- <REAL/>
- </type>
- </variable>
<variable name="X2">
<type>
<REAL/>
@@ -393,24 +395,24 @@
</interface>
<body>
<IL>
- LD Y1
- SUB Y2 (* Substract Y2 from Y1 *)
- ST Temp (* Store Y1-Y2 in Temp *)
- MUL Temp (* Multiply by Temp to square *)
- ADD( X1 (* Defer ADD *)
- SUB X2 (* Substract X1 from X2 *)
- ST Temp (* Store X1-X2 in Temp *)
- MUL Temp (* Multiply by Temp to square *)
- )
- CAL SQRT (* Call Square root fun *)
- ST ILTest (* Setup function result *)
- GT TMax (* Greater than TMax ? *)
- JMPC ERR (* Yes, Jump to Error *)
- S ENO (* Set ENO *)
- RET (* Normal return *)
+LD Y1
+SUB Y2 (* Substract Y2 from Y1 *)
+ST Temp (* Store Y1-Y2 in Temp *)
+MUL Temp (* Multiply by Temp to square *)
+ADD( X1 (* Defer ADD *)
+SUB X2 (* Substract X1 from X2 *)
+ST Temp (* Store X1-X2 in Temp *)
+MUL Temp (* Multiply by Temp to square *)
+)
+CAL SQRT (* Call Square root fun *)
+ST ILTest (* Setup function result *)
+GT TMax (* Greater than TMax ? *)
+JMPC ERR (* Yes, Jump to Error *)
+S ENO (* Set ENO *)
+RET (* Normal return *)
- ERR:
- RET (* Error return, ENO not set *)
+ERR:
+RET (* Error return, ENO not set *)
</IL>
</body>
</pou>
@@ -448,11 +450,11 @@
<action name="ACT1">
<body>
<ST>
- IF IN1 THEN
- IN2 := 1;
- ELSE
- IN3 := 1;
- END_IF;
+IF IN1 THEN
+ IN2 := 1;
+ELSE
+ IN3 := 1;
+END_IF;
</ST>
</body>
</action>
@@ -726,7 +728,7 @@
</connection>
</connectionPointIn>
</jumpStep>
- <actionBlock localId="20" height="60" width="100">
+ <actionBlock localId="20" height="60" width="181">
<position y="232" x="441"/>
<connectionPointIn>
<relPosition y="15" x="0"/>
@@ -735,10 +737,10 @@
<position y="247" x="416"/>
</connection>
</connectionPointIn>
- <action qualifier="N">
+ <action indicator="IN5" qualifier="N">
<reference name="ACT1"/>
</action>
- <action qualifier="S">
+ <action qualifier="D" duration="10s">
<reference name="IN1"/>
</action>
</actionBlock>
@@ -794,18 +796,18 @@
</interface>
<body>
<ST>
- IF Collision THEN
- Speed := 0;
- Brakes := ON;
- END_IF;
+IF Collision THEN
+ Speed := 0;
+ Brakes := ON;
+END_IF;
- IF (Gate = CLOSED) AND
- (Pump = ON) AND (Temp > 200.0) THEN
- Control_State := Active;
- ELSE
- Control_State := Hold;
- PumpSpeed := 10.0;
- END_IF;
+IF (Gate = CLOSED) AND
+ (Pump = ON) AND (Temp > 200.0) THEN
+ Control_State := Active;
+ELSE
+ Control_State := Hold;
+ PumpSpeed := 10.0;
+END_IF;
</ST>
</body>
</pou>