--- a/dialogs/ForceVariableDialog.py Sun Feb 24 00:28:49 2013 +0100
+++ b/dialogs/ForceVariableDialog.py Tue Feb 26 01:14:20 2013 +0100
@@ -109,7 +109,7 @@
year, month, day, hours, minutes, seconds = result.groups()
- date = datetime.datetime(int(year), int(month), int(day), int(hours), int(minutes), int(float(seconds)), int((float(second) * SECOND) % SECOND))
+ date = datetime.datetime(int(year), int(month), int(day), int(hours), int(minutes), int(float(seconds)), int((float(seconds) * SECOND) % SECOND)) base_date = datetime.datetime(1970, 1, 1)
--- a/tests/python/plc.xml Sun Feb 24 00:28:49 2013 +0100
+++ b/tests/python/plc.xml Tue Feb 26 01:14:20 2013 +0100
@@ -8,7 +8,7 @@
creationDateTime="2008-12-14T16:21:19"/>
<contentHeader name="Beremiz Python Support Tests"
- modificationDateTime="2013-01-11T14:08:25">
+ modificationDateTime="2013-02-23T23:37:47"> <pageSize x="1024" y="1024"/>
@@ -125,7 +125,7 @@
- <simpleValue value="342"/>
+ <simpleValue value="300"/> <variable name="Test_BCD_RESULT">
@@ -133,12 +133,17 @@
+ <variable name="Test_BCD_ENO"> <variable name="Test_DT">
- <simpleValue value="DT#2012-11-08-12:17:00"/>
+ <simpleValue value="DT#2013-02-23-22:35:46"/> <variable name="Test_TOD">
@@ -146,6 +151,11 @@
+ <variable name="Test_TOD_STRING"> <variable name="Test_Date">
@@ -690,12 +700,17 @@
<expression>Test_BCD</expression>
- <block localId="35" width="105" height="45" typeName="BCD_TO_UINT">
- <position x="900" y="725"/>
+ <block localId="35" width="105" height="60" typeName="BCD_TO_UINT"> + <position x="900" y="705"/> + <variable formalParameter="EN"> + <relPosition x="0" y="30"/> <variable formalParameter="IN">
- <relPosition x="0" y="30"/>
+ <relPosition x="0" y="50"/> <connection refLocalId="34">
<position x="900" y="755"/>
<position x="860" y="755"/>
@@ -705,9 +720,14 @@
+ <variable formalParameter="ENO"> + <relPosition x="105" y="30"/> <variable formalParameter="OUT">
- <relPosition x="105" y="30"/>
+ <relPosition x="105" y="50"/> @@ -765,17 +785,6 @@
- <outVariable localId="39" height="30" width="75">
- <position x="1215" y="815"/>
- <relPosition x="0" y="15"/>
- <connection refLocalId="37" formalParameter="OUT">
- <position x="1215" y="830"/>
- <position x="1155" y="830"/>
- <expression>Test_TOD</expression>
<outVariable localId="40" height="30" width="80">
<position x="1215" y="890"/>
@@ -979,6 +988,66 @@
<expression>BOOL#FALSE</expression>
+ <outVariable localId="53" height="30" width="115"> + <position x="1060" y="700"/> + <relPosition x="0" y="15"/> + <connection refLocalId="35" formalParameter="ENO"> + <position x="1060" y="715"/> + <position x="1032" y="715"/> + <position x="1032" y="735"/> + <position x="1005" y="735"/> + <expression>Test_BCD_ENO</expression> + <outVariable localId="54" height="30" width="135"> + <position x="1565" y="815"/> + <relPosition x="0" y="15"/> + <connection refLocalId="55" formalParameter="OUT"> + <position x="1565" y="830"/> + <position x="1490" y="830"/> + <expression>Test_TOD_STRING</expression> + <block localId="55" width="125" height="45" typeName="TOD_TO_STRING"> + <position x="1365" y="800"/> + <variable formalParameter="IN"> + <relPosition x="0" y="30"/> + <connection refLocalId="39"> + <position x="1365" y="830"/> + <position x="1290" y="830"/> + <variable formalParameter="OUT"> + <relPosition x="125" y="30"/> + <inOutVariable localId="39" height="30" width="75"> + <position x="1215" y="815"/> + <relPosition x="0" y="15"/> + <connection refLocalId="37" formalParameter="OUT"> + <position x="1215" y="830"/> + <position x="1155" y="830"/> + <relPosition x="75" y="15"/> + <expression>Test_TOD</expression>