constvar/const.go
@@ -34,6 +34,7 @@ const ( PlcMethodModbusTCP PlcMethod = "modbusTCP" PlcMethodModbusRTU PlcMethod = "modbusRTU" PlcMethodSerial PlcMethod = "serial" PlcMethodModbusTCPChinese PlcMethod = "网络" PlcMethodSerialChinese PlcMethod = "串口" @@ -70,3 +71,11 @@ TaskModeCurrent TaskMode = 2 //未开始的和进行中的 TaskModeLastFinished TaskMode = 3 //上一个结束的 ) type Parity int const ( ParityEven Parity = 1 //奇校验 ParityOdd Parity = 2 //偶校验 ParityNull Parity = 3 //无校验 )