# HG changeset patch
# User lbessard
# Date 1220808180 -7200
# Node ID 42dd57b23e36864bef8f373a889468699f41a201
# Parent  068935254b2826280c6d48dba31324849d068066
Bug with FBD_Variable with return value fixed

diff -r 068935254b28 -r 42dd57b23e36 PLCControler.py
--- a/PLCControler.py	Sun Sep 07 19:22:10 2008 +0200
+++ b/PLCControler.py	Sun Sep 07 19:23:00 2008 +0200
@@ -1791,6 +1791,10 @@
             if words[0] in ["P","T","A"]:
                 pou = self.Project.getpou(words[1])
                 if pou is not None:
+                    if words[0] == "T" and varname == words[2]:
+                        return "BOOL"
+                    if words[1] == varname:
+                        return self.GetPouInterfaceReturnType(pou)
                     for type, varlist in pou.getvars():
                         for var in varlist.getvariable():
                             if var.getname() == varname: