package com.modbus.data;
|
public class Modbus_ComBase {
|
|
public static final int NULL_STATUS = 0x00;
|
public static final int READ_COIL_STATUS = 0x01; //读线圈状态 单/多
|
public static final int READ_INPUT_STATUS = 0x02; //读离散输入状态 单/多
|
public static final int READ_HOLDING_REGISTER = 0x03; //读保持寄存器 单/多
|
public static final int READ_INPUT_REGISTER = 0x04; //读输入寄存器 单/多
|
public static final int WRITE_SINGLE_COIL = 0x05; //写线圈状态 单
|
public static final int WRITE_SINGLE_REGISTER = 0x06; //写单个保持寄存器 单
|
public static final int WRITE_MULTIPLE_COIL = 0x0F; //写多个线圈 多
|
public static final int WRITE_MULTIPLE_REGISTER = 0x10; //写多个保持寄存器 多
|
|
|
|
}
|