modbus/modbus.py
changeset 2432 dbc065a2f7a5
parent 2291 d1359cbfa28a
child 2459 21164625b393
equal deleted inserted replaced
2431:6923074540dd 2432:dbc065a2f7a5
    23 # used in safety-critical situations without a full and competent review.
    23 # used in safety-critical situations without a full and competent review.
    24 
    24 
    25 
    25 
    26 from __future__ import absolute_import
    26 from __future__ import absolute_import
    27 import os
    27 import os
       
    28 from six.moves import xrange
       
    29 
    28 from modbus.mb_utils import *
    30 from modbus.mb_utils import *
    29 
       
    30 from ConfigTreeNode import ConfigTreeNode
    31 from ConfigTreeNode import ConfigTreeNode
    31 from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_MEMORY
    32 from PLCControler import LOCATION_CONFNODE, LOCATION_VAR_MEMORY
    32 
    33 
    33 base_folder = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]
    34 base_folder = os.path.split(os.path.dirname(os.path.realpath(__file__)))[0]
    34 base_folder = os.path.join(base_folder, "..")
    35 base_folder = os.path.join(base_folder, "..")