|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Modbus
Interface defining all constants related to the Modbus protocol.
Field Summary | |
---|---|
static int |
COIL_OFF
Defines the byte representation of the coil state pos. |
static byte[] |
COIL_OFF_BYTES
Defines the word representation of the coil state pos. |
static int |
COIL_ON
Defines the byte representation of the coil state on. |
static byte[] |
COIL_ON_BYTES
Defines the word representation of the coil state on. |
static boolean |
debug
JVM flag for debug mode. |
static int |
DEFAULT_PORT
Defines the default port number of Modbus (=502). |
static int |
DEFAULT_PROTOCOL_ID
Defines the default protocol identifier (=0). |
static boolean |
DEFAULT_RECONNECTING
Defines the default reconnecting setting for transactions (=false). |
static int |
DEFAULT_RETRIES
Defines the default amount of retires for opening a connection (=3). |
static String |
DEFAULT_SERIAL_ENCODING
Defines the default serial encoding (ASCII). |
static int |
DEFAULT_TIMEOUT
Defines the default setting for I/O operation timeouts in milliseconds (=3000). |
static int |
DEFAULT_TRANSACTION_ID
Defines the default transaction identifier (=0). |
static int |
DEFAULT_TRANSMIT_DELAY
Defines the default number of msec to delay before transmission (=50). |
static int |
DEFAULT_UNIT_ID
Defines the default unit identifier (=0). |
static boolean |
DEFAULT_VALIDITYCHECK
Defines the default setting for validity checking in transactions (=true). |
static int |
EXCEPTION_OFFSET
Defines the Modbus slave exception offset that is added to the function code, to flag an exception. |
static int |
ILLEGAL_ADDRESS_EXCEPTION
Defines the Modbus slave exception type illegal data address. |
static int |
ILLEGAL_FUNCTION_EXCEPTION
Defines the Modbus slave exception type illegal function. |
static int |
ILLEGAL_VALUE_EXCEPTION
Defines the Modbus slave exception type illegal data value. |
static int |
MAX_BITS
Defines the maximum number of bits in multiple read/write of input discretes or coils (2000). |
static int |
MAX_MESSAGE_LENGTH
Defines the maximum message length in bytes (=256). |
static int |
MAX_TRANSACTION_ID
Defines the maximum value of the transaction identifier. |
static int |
READ_COILS
Defines the class 1 function code for read coils. |
static int |
READ_INPUT_DISCRETES
Defines a class 1 function code for read input discretes. |
static int |
READ_INPUT_REGISTERS
Defines a class 1 function code for read input registers. |
static int |
READ_MULTIPLE_REGISTERS
Defines the class 0 function code for read multiple registers. |
static String |
SERIAL_ENCODING_ASCII
Defines the serial encoding "ASCII". |
static String |
SERIAL_ENCODING_BIN
Defines the serial encoding "BIN". |
static String |
SERIAL_ENCODING_RTU
Defines the serial encoding "RTU". |
static int |
WRITE_COIL
Defines a class 1 function code for write coil. |
static int |
WRITE_MULTIPLE_COILS
Defines a standard function code for write multiple coils. |
static int |
WRITE_MULTIPLE_REGISTERS
Defines the class 0 function code for write multiple registers. |
static int |
WRITE_SINGLE_REGISTER
Defines a class 1 function code for write single register. |
Field Detail |
---|
static final boolean debug
static final int READ_MULTIPLE_REGISTERS
static final int WRITE_MULTIPLE_REGISTERS
static final int READ_COILS
static final int READ_INPUT_DISCRETES
static final int READ_INPUT_REGISTERS
static final int WRITE_COIL
static final int WRITE_MULTIPLE_COILS
static final int WRITE_SINGLE_REGISTER
static final int COIL_ON
static final int COIL_OFF
static final byte[] COIL_ON_BYTES
static final byte[] COIL_OFF_BYTES
static final int MAX_BITS
static final int EXCEPTION_OFFSET
static final int ILLEGAL_FUNCTION_EXCEPTION
static final int ILLEGAL_ADDRESS_EXCEPTION
static final int ILLEGAL_VALUE_EXCEPTION
static final int DEFAULT_PORT
static final int MAX_MESSAGE_LENGTH
static final int DEFAULT_TRANSACTION_ID
static final int DEFAULT_PROTOCOL_ID
static final int DEFAULT_UNIT_ID
static final boolean DEFAULT_VALIDITYCHECK
static final int DEFAULT_TIMEOUT
static final boolean DEFAULT_RECONNECTING
static final int DEFAULT_RETRIES
static final int DEFAULT_TRANSMIT_DELAY
static final int MAX_TRANSACTION_ID
static final String SERIAL_ENCODING_ASCII
static final String SERIAL_ENCODING_RTU
static final String SERIAL_ENCODING_BIN
static final String DEFAULT_SERIAL_ENCODING
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |