author | lbessard |
Tue, 10 Jul 2007 14:29:31 +0200 | |
changeset 31 | d833bf7567b1 |
parent 30 | 768cf2a6b0b1 |
child 32 | cf9efccff009 |
PLCGenerator.py | file | annotate | diff | comparison | revisions |
--- a/PLCGenerator.py Tue Jul 10 14:24:19 2007 +0200 +++ b/PLCGenerator.py Tue Jul 10 14:29:31 2007 +0200 @@ -455,7 +455,7 @@ for var_type, var_name, var_address, var_initial in variables: program += " %s "%var_name if var_address != None: - program += "AT %s "%address + program += "AT %s "%var_address program += ": %s"%var_type if var_initial != None: program += " := %s"%{"TRUE":"0","FALSE":"1"}.get(str(var_initial).upper(), str(var_initial))