diff -r c4ba411f8c89 -r 46d9955e1101 PLCGenerator.py --- a/PLCGenerator.py Tue Oct 10 14:01:46 2017 +0300 +++ b/PLCGenerator.py Tue Oct 10 16:38:57 2017 +0300 @@ -1064,7 +1064,7 @@ if parameter in inout_variables: expression = self.ComputeExpression(body, connections, executionOrderId > 0, True) if expression is not None: - inout_variables[parameter] = value + inout_variables[parameter] = expression else: expression = self.ComputeExpression(body, connections, executionOrderId > 0) if expression is not None: