modbus/mb_utils.py
branchpython3
changeset 3752 9f6f46dbe3ae
parent 3750 f62625418bff
equal deleted inserted replaced
3751:a80a66ba52d6 3752:9f6f46dbe3ae
    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 
       
    26 
       
    27 from six.moves import xrange
       
    28 
    25 
    29 # dictionary implementing:
    26 # dictionary implementing:
    30 # key   - string with the description we want in the request plugin GUI
    27 # key   - string with the description we want in the request plugin GUI
    31 # tuple - (modbus function number, request type, max count value,
    28 # tuple - (modbus function number, request type, max count value,
    32 # data_type, bit_size)
    29 # data_type, bit_size)