|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.protocol.modbus.ModbusDataOrder
public class ModbusDataOrder
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.
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 |
---|
public static final String MODBUS_BOOLEAN_ORDER
public static final String MODBUS_WORD_ORDER_BIG_ENDIAN
public static final String MODBUS_WORD_ORDER_LITTLE_ENDIAN
public static final String MODBUS_LONG_ORDER_BIG_BIG_ENDIAN
public static final String MODBUS_LONG_ORDER_BIG_LITTLE_ENDIAN
public static final String MODBUS_LONG_ORDER_LITTLE_BIG_ENDIAN
public static final String MODBUS_LONG_ORDER_LITTLE_LITTLE_ENDIAN
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |