| | |
| | | enum enModbusRTUCmd
|
| | | {
|
| | | None =0,
|
| | | ReadCoils =1, //读线圈
|
| | | ReadInputs =2, //读离散量输入
|
| | | ReadKeepRegs =3, //读保持寄存器
|
| | | ReadInputRegs =4, //读输入寄存器
|
| | | WriteCoil = 5, //写单个线圈
|
| | | WriteReg =6, //写单个寄存器
|
| | | ReadExptStat = 7, //读取异常状态
|
| | | ReadCoils =1, //读线圈
|
| | | ReadInputs =2, //读离散量输入
|
| | | ReadKeepRegs =3, //读保持寄存器
|
| | | ReadInputRegs =4, //读输入寄存器
|
| | | WriteCoil = 5, //写单个线圈
|
| | | WriteReg =6, //写单个寄存器
|
| | | ReadExptStat = 7, //读取异常状态
|
| | | FetchCommEventCtr =11, //Fetch Comm Event Ctr
|
| | | // 12 Fetch Comm Event Log
|
| | |
|
| | | WriteCoils =15, //写多个线圈
|
| | | WriteRegs = 16, //写多个寄存器
|
| | | WriteCoils =15, //写多个线圈
|
| | | WriteRegs = 16, //写多个寄存器
|
| | | //17 Report Slave ID
|
| | | //20 Read General Reference
|
| | | //21 Write General Reference
|