com.eurotech.framework.protocol.modbus
Class ModbusDataOrder

java.lang.Object
  extended by com.eurotech.framework.protocol.modbus.ModbusDataOrder

public class ModbusDataOrder
extends Object

This static class defines the possible byte organization in the data stream sent and received. The Modbus protocol only defines one analog data type (16 bit) and only one format for that data in the stream (big endian). Manufactures of various "Modbus compatible" field devices have extend and modified the size and arrangementof the data in the stream. Data units may now be 16 or 32 bit sized and may be in a variety of byte arrangements.

In the definitions below, the character arrangement making up the definition field value actually represent the ordering of the bytes in the stream. For a hexadecimal number 0x01020304, the '1' is the 0x01 byte, '2' is the 0x02 byte, '3' is the 0x03 byte and '4' is the 0x04.

The Field values, not the field names should be used in configuration files.

Author:
matt.demaree

Field Summary
static String MODBUS_BOOLEAN_ORDER
          booleans do not have a specified data order
static String MODBUS_LONG_ORDER_BIG_BIG_ENDIAN
          this is the most common 32 bit arrangement used by many devices
static String MODBUS_LONG_ORDER_BIG_LITTLE_ENDIAN
           
static String MODBUS_LONG_ORDER_LITTLE_BIG_ENDIAN
           
static String MODBUS_LONG_ORDER_LITTLE_LITTLE_ENDIAN
           
static String MODBUS_WORD_ORDER_BIG_ENDIAN
          this is the Modbus default (note only 16 bit or 2 byte data)
static String MODBUS_WORD_ORDER_LITTLE_ENDIAN
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODBUS_BOOLEAN_ORDER

public static final String MODBUS_BOOLEAN_ORDER
booleans do not have a specified data order

See Also:
Constant Field Values

MODBUS_WORD_ORDER_BIG_ENDIAN

public static final String MODBUS_WORD_ORDER_BIG_ENDIAN
this is the Modbus default (note only 16 bit or 2 byte data)

See Also:
Constant Field Values

MODBUS_WORD_ORDER_LITTLE_ENDIAN

public static final String MODBUS_WORD_ORDER_LITTLE_ENDIAN
See Also:
Constant Field Values

MODBUS_LONG_ORDER_BIG_BIG_ENDIAN

public static final String MODBUS_LONG_ORDER_BIG_BIG_ENDIAN
this is the most common 32 bit arrangement used by many devices

See Also:
Constant Field Values

MODBUS_LONG_ORDER_BIG_LITTLE_ENDIAN

public static final String MODBUS_LONG_ORDER_BIG_LITTLE_ENDIAN
See Also:
Constant Field Values

MODBUS_LONG_ORDER_LITTLE_BIG_ENDIAN

public static final String MODBUS_LONG_ORDER_LITTLE_BIG_ENDIAN
See Also:
Constant Field Values

MODBUS_LONG_ORDER_LITTLE_LITTLE_ENDIAN

public static final String MODBUS_LONG_ORDER_LITTLE_LITTLE_ENDIAN
See Also:
Constant Field Values


Copyright © 2013. All Rights Reserved.