etherlab/EthercatCIA402Slave.py
branchpython3
changeset 3750 f62625418bff
parent 2643 b98d9e08231f
equal deleted inserted replaced
3749:fda6c1a37662 3750:f62625418bff
     7 #                          RTES Lab : CRKim, JBLee, youcu
     7 #                          RTES Lab : CRKim, JBLee, youcu
     8 #                          Higen Motor : Donggu Kang
     8 #                          Higen Motor : Donggu Kang
     9 #
     9 #
    10 # See COPYING file for copyrights details.
    10 # See COPYING file for copyrights details.
    11 
    11 
    12 from __future__ import absolute_import
    12 
    13 import os
    13 import os
    14 
    14 
    15 import wx
    15 import wx
    16 
    16 
    17 from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_INPUT
    17 from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_INPUT
   422         for variable in variables:
   422         for variable in variables:
   423             # add jblee
   423             # add jblee
   424             if variable in check_variable:
   424             if variable in check_variable:
   425                 continue
   425                 continue
   426 
   426 
   427             var_infos = dict(zip(["name", "index", "subindex", "var_type", "dir"], variable))
   427             var_infos = dict(list(zip(["name", "index", "subindex", "var_type", "dir"], variable)))
   428             var_infos["location"] = location_str
   428             var_infos["location"] = location_str
   429             var_infos["var_size"] = self.GetSizeOfType(var_infos["var_type"])
   429             var_infos["var_size"] = self.GetSizeOfType(var_infos["var_type"])
   430             var_infos["var_name"] = "__%(dir)s%(var_size)s%(location)s_%(index)d_%(subindex)d" % var_infos
   430             var_infos["var_name"] = "__%(dir)s%(var_size)s%(location)s_%(index)d_%(subindex)d" % var_infos
   431 
   431 
   432             # add jblee
   432             # add jblee