whyclxw
2020-11-02 f8b7ca9bc6b51c137053f16c1c7150a11aba13c4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;            //写多个保持寄存器        多
    
    
    
}