package wei.yigulu.utils;

/**
 * 通讯协议用到的常量
 *
 * @author: xiuwei
 * @version:
 */
public class PCON {

	/**
	 * byte中bits
	 */
	public static final int BYTEBITS = 8;


	/**
	 * 1
	 */

	public static final int ONE = 1;

	/**
	 * 2
	 */
	public static final int TWO = 2;

	/**
	 * 3
	 */
	public static final int THREE = 3;


	/**
	 * 4
	 */
	public static final int FOUR = 4;


	public static final int FUNCTION_READ_COILS = 1;

	public static final int FUNCTION_READ_DISCRETE_INPUTS = 2;

	public static final int FUNCTION_READ_HOLDING_REGISTERS = 3;

	public static final int FUNCTION_READ_INPUT_REGISTERS = 4;


}
