package com.unis.detectionnum.server.utils;

/**
 * @Package: com.unis.detectionnum.server.utils
 * @Author: LiuFeng
 * @Description:寄存器地址
 * @Date: Created in 2019/8/14
 */
public class Register {

    public static final int LSTJ_FIRST = 0X0000;//粮食体积1
    public static final int LSTJ_SECOND = 0X0001;//粮食体积2
    public static final int LSZL_FIRST = 0X0002;//粮食重量1
    public static final int LSZL_SECOND = 0X0003;//粮食重量2
    public static final int LSDXGU = 0X0004;//粮食等效高度
    public static final int BFZZ = 0X0004;//布防状态 0:撤防,1:
    public static final int HWBFZZ = 0X0006;//红外布防状态 0:撤防,1:布防
    public static final int BJZZ = 0X0007;//报警状态 0:正常,1:报警
    public static final int HWBJZZ = 0X0008;//红外报警状态 0:正常,1:报警
    public static final int HJBJZZ = 0X0009;//呼救报警状态 0:正常,1:报警
    public static final int SCAN_STATUS = 0x000A;//探头扫描状态 0:空闲,1:扫描中
    public static final int SCAN_TIMES = 0x000B;//扫描次数
    public static final int SCAN_SET = 0x4060;//启动扫描地址
    public static final int SCAN_SET_VALUE = 0x00FF;//启动扫描设置值
    public static final int READ_POINTS = 0x0094;//获取总点数地址
    public static final int POINTS_VALUES_START = 0x0098;//获取点数数据起始位置
    public static final int POINTS_VALUES_READ_LENGTH = 120;//获取点数长度 120*2 个寄存器地址
    
    //设备参数寄存器地址
    public static final int FC_LENGTH_X = 0X406D;//方仓长-X轴长
    public static final int FC_WIDTH_Y = 0X406E;//方仓宽-Y轴长
    public static final int GRAIN_DENSITY = 0X406F;//	粮食密度
    public static final int PROBE_X = 0X4070;	//探头位置坐标X
    public static final int PROBE_Y = 0X4071;	//探头位置坐标Y	
    public static final int PROBE_Z = 0X4072;	//探头位置坐标Z	
    public static final int MOTOR_X = 0X4073;	//X电机初始位置	
    public static final int MOTOR_Y = 0X4074;	//Y电机初始位置
    public static final int VOLUME_COMPENSATION = 0X4075;	//体积补偿
    public static final int AREA_COMPENSATION = 0X4076;	//面积补偿
    public static final int PROBE_VERSION = 0X4079;	//探头型号
    public static final int PROBE_PARAM_SAVE = 0X40A4;	//保存探头参数修改
    
    public static final int SLAVE_ID = 1;
    public static final int SLAVE_PORT = 20001;
    public static final String SLAVE_IP = "1.30.17.46";
  
}
