```c++
//QString str = "03 00 00 00 02 f0 80 32 01 00 00 00 00 00 0e 00 00 04 01 12 0a 10 1d 00 01 00 01 84 00 00 00";
代码如上,转为如下格式,输出为0x03之类的即可
QByteArray S7comm;
S7comm.resize(25);
S7comm[0] = 0x03; S7comm[1] = 0x00; S7comm[2] = 0x00;
S7comm[3] = 0x19; S7comm[4] = 0x02; S7comm[5] = 0xf0;
```