etherlab/EthercatSlave.py
changeset 2405 af050469fc5c
parent 2397 25f16349644b
child 2643 b98d9e08231f
equal deleted inserted replaced
2404:87eb184414bd 2405:af050469fc5c
     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
       
    13 
    12 from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
    14 from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_INPUT, LOCATION_VAR_OUTPUT, LOCATION_VAR_MEMORY
    13 from ConfigTreeNode import ConfigTreeNode
    15 from ConfigTreeNode import ConfigTreeNode
    14 
    16 
    15 from ConfigEditor import NodeEditor
    17 from etherlab.ConfigEditor import NodeEditor
    16 
    18 
    17 # ------------------------------------------
    19 # ------------------------------------------
    18 from CommonEtherCATFunction import _CommonSlave
    20 from etherlab.CommonEtherCATFunction import _CommonSlave
    19 # ------------------------------------------
    21 # ------------------------------------------
    20 
    22 
    21 
    23 
    22 TYPECONVERSION = {"BOOL": "X", "SINT": "B", "INT": "W", "DINT": "D", "LINT": "L",
    24 TYPECONVERSION = {"BOOL": "X", "SINT": "B", "INT": "W", "DINT": "D", "LINT": "L",
    23                   "USINT": "B", "UINT": "W", "UDINT": "D", "ULINT": "L",
    25                   "USINT": "B", "UINT": "W", "UDINT": "D", "ULINT": "L",