equal
deleted
inserted
replaced
924 ref_local_id = connections[0].getrefLocalId() |
924 ref_local_id = connections[0].getrefLocalId() |
925 blk = body.getcontentInstance(ref_local_id) |
925 blk = body.getcontentInstance(ref_local_id) |
926 if blk is None: |
926 if blk is None: |
927 return None |
927 return None |
928 |
928 |
929 for invar in blk.inputVariables.getvariable(): |
929 if not isinstance(blk, (InVariableClass, InOutVariableClass)): |
930 if invar.getformalParameter() == "EN": |
930 for invar in blk.inputVariables.getvariable(): |
931 if len(invar.getconnectionPointIn().getconnections()) > 0: |
931 if invar.getformalParameter() == "EN": |
932 if blk.getinstanceName() is None: |
932 if len(invar.getconnectionPointIn().getconnections()) > 0: |
933 var_name = "%s%d_ENO" % (blk.gettypeName(), blk.getlocalId()) |
933 if blk.getinstanceName() is None: |
934 else: |
934 var_name = "%s%d_ENO" % (blk.gettypeName(), blk.getlocalId()) |
935 var_name = "%s.ENO" % blk.getinstanceName() |
935 else: |
936 return var_name |
936 var_name = "%s.ENO" % blk.getinstanceName() |
|
937 return var_name |
937 return None |
938 return None |
938 |
939 |
939 def ComputeProgram(self, pou): |
940 def ComputeProgram(self, pou): |
940 body = pou.getbody() |
941 body = pou.getbody() |
941 if isinstance(body, ListType): |
942 if isinstance(body, ListType): |