modbus/mb_utils.py
changeset 2432 dbc065a2f7a5
parent 2019 92f02bb17c7e
child 2437 105c20fdeb19
equal deleted inserted replaced
2431:6923074540dd 2432:dbc065a2f7a5
    20 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    20 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
    21 #
    21 #
    22 # This code is made available on the understanding that it will not be
    22 # This code is made available on the understanding that it will not be
    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 from __future__ import absolute_import
       
    26 from six.moves import xrange
    25 
    27 
    26 # dictionary implementing:
    28 # dictionary implementing:
    27 # key   - string with the description we want in the request plugin GUI
    29 # key   - string with the description we want in the request plugin GUI
    28 # tuple - (modbus function number, request type, max count value,
    30 # tuple - (modbus function number, request type, max count value,
    29 # data_type, bit_size)
    31 # data_type, bit_size)