plugger.py
changeset 579 554ba6df4ee0
parent 578 6f5795bdee49
child 592 c6408f92da0a
equal deleted inserted replaced
578:6f5795bdee49 579:554ba6df4ee0
  1339               {"EXT":"extern __IEC_%(type)s_p %(C_path)s;",
  1339               {"EXT":"extern __IEC_%(type)s_p %(C_path)s;",
  1340                "IN":"extern __IEC_%(type)s_p %(C_path)s;",
  1340                "IN":"extern __IEC_%(type)s_p %(C_path)s;",
  1341                "OUT":"extern __IEC_%(type)s_p %(C_path)s;",
  1341                "OUT":"extern __IEC_%(type)s_p %(C_path)s;",
  1342                "VAR":"extern __IEC_%(type)s_t %(C_path)s;"}[v["vartype"]]%v 
  1342                "VAR":"extern __IEC_%(type)s_t %(C_path)s;"}[v["vartype"]]%v 
  1343                for v in self._VariablesList if v["vartype"] != "FB" and v["C_path"].find('.')<0]),
  1343                for v in self._VariablesList if v["vartype"] != "FB" and v["C_path"].find('.')<0]),
  1344            "subscription_table_count":
       
  1345                len(self._VariablesList),
       
  1346            "variables_pointer_type_table_count":
       
  1347                len(self._VariablesList),
       
  1348            "for_each_variable_do_code":"\n".join([
  1344            "for_each_variable_do_code":"\n".join([
  1349                {"EXT":"    (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n",
  1345                {"EXT":"    (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n",
  1350                 "IN":"    (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n",
  1346                 "IN":"    (*fp)((void*)&%(C_path)s,%(type)s_P_ENUM);\n",
  1351                 "OUT":"    (*fp)((void*)&%(C_path)s,%(type)s_O_ENUM);\n",
  1347                 "OUT":"    (*fp)((void*)&%(C_path)s,%(type)s_O_ENUM);\n",
  1352                 "VAR":"    (*fp)((void*)&%(C_path)s,%(type)s_ENUM);\n"}[v["vartype"]]%v
  1348                 "VAR":"    (*fp)((void*)&%(C_path)s,%(type)s_ENUM);\n"}[v["vartype"]]%v