| | |
| | | x-enum-varnames: |
| | | - PlcMethodModbusTCP |
| | | - PlcMethodSerial |
| | | constvar.PlcStartAddressType: |
| | | enum: |
| | | - 1 |
| | | - 2 |
| | | type: integer |
| | | x-enum-varnames: |
| | | - PlcStartAddressTypeFinishNumber |
| | | - PlcStartAddressTypeTotalNumber |
| | | constvar.PlcStartAddressValueType: |
| | | enum: |
| | | - string |
| | | - int |
| | | type: string |
| | | x-enum-varnames: |
| | | - PlcStartAddressValueTypeString |
| | | - PlcStartAddressValueTypeInt |
| | | contextx.Response: |
| | | properties: |
| | | code: |
| | |
| | | model.DevicePlcAddress: |
| | | properties: |
| | | fieldName: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.PlcStartAddressType' |
| | | description: 对应系统字段 |
| | | type: integer |
| | | length: |
| | | description: 数据长度 |
| | | type: integer |
| | |
| | | description: 数据起始地址 |
| | | type: integer |
| | | type: |
| | | allOf: |
| | | - $ref: '#/definitions/constvar.PlcStartAddressValueType' |
| | | description: 数据类型 |
| | | type: string |
| | | type: object |
| | | model.NetConfig: |
| | | properties: |
| | |
| | | properties: |
| | | finishNumber: |
| | | type: integer |
| | | totalNumber: |
| | | type: integer |
| | | type: object |
| | | response.TaskData: |
| | | properties: |
| | |
| | | type: object |
| | | summary: 获取生产进度 |
| | | tags: |
| | | - 获取动态数据 |
| | | - 生产数量 |
| | | /v1/plc/setProductNumber: |
| | | post: |
| | | produces: |
| | | - application/json |
| | | responses: |
| | | "200": |
| | | description: 成功 |
| | | schema: |
| | | $ref: '#/definitions/contextx.Response' |
| | | summary: 设置生产总量 |
| | | tags: |
| | | - 生产数量 |
| | | /v1/plcBrand/add: |
| | | post: |
| | | parameters: |