huang
2025-11-20 366ba040d2447bacd3455299425e3166f1f992bb
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
70
71
package com.mes.device.entity.request;
 
import com.github.xingshuangs.iot.common.enums.EDataType;
import com.github.xingshuangs.iot.protocol.s7.serializer.S7Variable;
import lombok.Data;
 
/**
 * 上大车设备请求实体
 * 用于定义上大车设备向PLC写入的字段结构
 * 字段地址映射通过DeviceConfig.configJson中的addressMapping配置
 * 
 * @author mes
 * @since 2025-11-19
 */
@Data
public class LoadVehicleRequest {
 
    /**
     * 请求字 0无请求 1有请求(上大车清0)
     */
    @S7Variable(address = "plcRequest", type = EDataType.UINT16)
    private Integer plcRequest;
 
    /**
     * 进片位置
     */
    @S7Variable(address = "inPosition", type = EDataType.UINT16)
    private Integer inPosition;
 
    /**
     * 玻璃ID1
     */
    @S7Variable(address = "plcGlassId1", type = EDataType.STRING, count = 20)
    private String plcGlassId1;
 
    /**
     * 玻璃ID2
     */
    @S7Variable(address = "plcGlassId2", type = EDataType.STRING, count = 20)
    private String plcGlassId2;
 
    /**
     * 玻璃ID3
     */
    @S7Variable(address = "plcGlassId3", type = EDataType.STRING, count = 20)
    private String plcGlassId3;
 
    /**
     * 玻璃ID4
     */
    @S7Variable(address = "plcGlassId4", type = EDataType.STRING, count = 20)
    private String plcGlassId4;
 
    /**
     * 玻璃ID5
     */
    @S7Variable(address = "plcGlassId5", type = EDataType.STRING, count = 20)
    private String plcGlassId5;
 
    /**
     * 玻璃ID6
     */
    @S7Variable(address = "plcGlassId6", type = EDataType.STRING, count = 20)
    private String plcGlassId6;
 
    /**
     * 玻璃数量
     */
    @S7Variable(address = "plcGlassCount", type = EDataType.UINT16)
    private Integer plcGlassCount;
}