| | |
| | | $ref: '#/definitions/common.ProcedureWorker' |
| | | type: array |
| | | type: object |
| | | constvar.PlcMethod: |
| | | enum: |
| | | - modbusTCP |
| | | - serial |
| | | type: string |
| | | x-enum-varnames: |
| | | - PlcMethodModbusTCP |
| | | - PlcMethodSerial |
| | | contextx.Response: |
| | | properties: |
| | | code: |
| | |
| | | model.DevicePlc: |
| | | properties: |
| | | address: |
| | | description: |- |
| | | PortName string `gorm:"type:varchar(191);comment:端口名称" json:"portName"` |
| | | Frequency int `gorm:"type:int(11);comment:数据更新频率 0-实时更新 1-1次/秒" json:"frequency"` |
| | | type: string |
| | | baudRate: |
| | | description: 串口波特率, method = serial时 用 |
| | | type: integer |
| | | brand: |
| | | type: string |
| | | details: |
| | | items: |
| | | $ref: '#/definitions/model.DevicePlcAddress' |
| | | type: array |
| | | frequency: |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | isOpen: |
| | | type: boolean |
| | | method: |
| | | type: string |
| | | $ref: '#/definitions/constvar.PlcMethod' |
| | | port: |
| | | description: plc 端口号, method = modbusTCP用 |
| | | type: integer |
| | | portName: |
| | | serialName: |
| | | description: 串口名称,method = serial时 用 |
| | | type: string |
| | | type: object |
| | | model.DevicePlcAddress: |
| | |
| | | request.UpdatePlc: |
| | | properties: |
| | | address: |
| | | description: |- |
| | | PortName string `gorm:"type:varchar(191);comment:端口名称" json:"portName"` |
| | | Frequency int `gorm:"type:int(11);comment:数据更新频率 0-实时更新 1-1次/秒" json:"frequency"` |
| | | type: string |
| | | baudRate: |
| | | description: 串口波特率, method = serial时 用 |
| | | type: integer |
| | | brand: |
| | | type: string |
| | | details: |
| | | items: |
| | | $ref: '#/definitions/model.DevicePlcAddress' |
| | | type: array |
| | | frequency: |
| | | type: integer |
| | | id: |
| | | type: integer |
| | | isOpen: |
| | | type: boolean |
| | | method: |
| | | type: string |
| | | $ref: '#/definitions/constvar.PlcMethod' |
| | | port: |
| | | description: plc 端口号, method = modbusTCP用 |
| | | type: integer |
| | | portName: |
| | | serialName: |
| | | description: 串口名称,method = serial时 用 |
| | | type: string |
| | | type: object |
| | | request.UpdatePlcBrand: |