28 lines
1.2 KiB
Java
28 lines
1.2 KiB
Java
package com.tridium.example.modbus.messages;
|
|
|
|
public interface ModbusMessageConst {
|
|
public static final int ACKNOWLEDGE = 5;
|
|
public static final int DEVICE_TIME_OUT = 9;
|
|
public static final int ERROR_FUNCTION = 128;
|
|
public static final int FORCE_MULTIPLE_COILS = 15;
|
|
public static final int FORCE_SINGLE_COIL = 5;
|
|
public static final int ILLEGAL_DATA_ADDRESS = 2;
|
|
public static final int ILLEGAL_DATA_VALUE = 3;
|
|
public static final int ILLEGAL_FUNCTION = 1;
|
|
public static final int INVALID_RESPONSE = -4;
|
|
public static final int LRC_ERROR = -5;
|
|
public static final int MEMORY_PARITY_ERROR = 8;
|
|
public static final int NEGATIVE_ACKNOWLEDGE = 7;
|
|
public static final int OK = 0;
|
|
public static final int OK_NOT_ACTIVE = -2;
|
|
public static final int PRESET_MULTIPLE_REGISTER = 16;
|
|
public static final int PRESET_SINGLE_REGISTER = 6;
|
|
public static final int READ_COIL_STATUS = 1;
|
|
public static final int READ_HOLDING_REGISTER = 3;
|
|
public static final int READ_INPUT_REGISTER = 4;
|
|
public static final int READ_INPUT_STATUS = 2;
|
|
public static final int SLAVE_DEVICE_BUSY = 6;
|
|
public static final int SLAVE_DEVICE_FAILURE = 4;
|
|
public static final int UNKNOWN = -3;
|
|
}
|