|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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 java.lang.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 java.lang.String |
SERIAL_ENCODING_ASCII
Defines the serial encoding "ASCII". |
static java.lang.String |
SERIAL_ENCODING_BIN
Defines the serial encoding "BIN". |
static java.lang.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 |
public static final boolean debug
public static final int READ_MULTIPLE_REGISTERS
public static final int WRITE_MULTIPLE_REGISTERS
public static final int READ_COILS
public static final int READ_INPUT_DISCRETES
public static final int READ_INPUT_REGISTERS
public static final int WRITE_COIL
public static final int WRITE_MULTIPLE_COILS
public static final int WRITE_SINGLE_REGISTER
public static final int COIL_ON
public static final int COIL_OFF
public static final byte[] COIL_ON_BYTES
public static final byte[] COIL_OFF_BYTES
public static final int MAX_BITS
public static final int EXCEPTION_OFFSET
public static final int ILLEGAL_FUNCTION_EXCEPTION
public static final int ILLEGAL_ADDRESS_EXCEPTION
public static final int ILLEGAL_VALUE_EXCEPTION
public static final int DEFAULT_PORT
public static final int MAX_MESSAGE_LENGTH
public static final int DEFAULT_TRANSACTION_ID
public static final int DEFAULT_PROTOCOL_ID
public static final int DEFAULT_UNIT_ID
public static final boolean DEFAULT_VALIDITYCHECK
public static final int DEFAULT_TIMEOUT
public static final boolean DEFAULT_RECONNECTING
public static final int DEFAULT_RETRIES
public static final int DEFAULT_TRANSMIT_DELAY
public static final int MAX_TRANSACTION_ID
public static final java.lang.String SERIAL_ENCODING_ASCII
public static final java.lang.String SERIAL_ENCODING_RTU
public static final java.lang.String SERIAL_ENCODING_BIN
public static final java.lang.String DEFAULT_SERIAL_ENCODING
|
jamod at SF | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |