huang
5 天以前 9571229a2013472dc701ecf5767f2873b36d8f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.mes.device.vo;
 
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
 
import java.io.Serializable;
import java.util.List;
import java.util.Map;
 
/**
 * 设备控制参数配置
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "DeviceControlProfile", description = "设备控制参数配置")
public class DeviceControlProfile implements Serializable {
 
    @ApiModelProperty(value = "节拍/线速度(mm/s)")
    private Integer lineSpeed;
 
    @ApiModelProperty(value = "玻璃长度(mm)")
    private Integer glassLength;
 
    @ApiModelProperty(value = "缓存数量/槽位数量")
    private Integer bufferCount;
 
    @ApiModelProperty(value = "是否自动触发PLC请求")
    private Boolean autoRequest;
 
    @ApiModelProperty(value = "PLC请求字段名")
    private String requestField = "plcRequest";
 
    @ApiModelProperty(value = "进片位置字段名")
    private String positionField = "inPosition";
 
    @ApiModelProperty(value = "玻璃数量字段名")
    private String glassCountField = "plcGlassCount";
 
    @ApiModelProperty(value = "玻璃ID槽位字段定义")
    private List<GlassSlot> glassSlots;
 
    @ApiModelProperty(value = "位置映射,如:{ \"station1\":1 }")
    private Map<String, Integer> positionMappings;
 
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    @ApiModel(value = "GlassSlot", description = "玻璃ID槽位")
    public static class GlassSlot implements Serializable {
        @ApiModelProperty(value = "槽位序号,从1开始")
        private Integer order;
 
        @ApiModelProperty(value = "PLC字段名,例如 plcGlassId1")
        private String field;
 
        @ApiModelProperty(value = "字段长度,字符串长度等")
        private Integer length;
 
        @ApiModelProperty(value = "槽位描述")
        private String description;
    }
}