ZengTao
2025-05-20 ae07cd92f46b88bf034c7d9d0b96b3a5e83fdc98
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
package com.mes.s7.entity;
 
import com.github.xingshuangs.iot.protocol.common.enums.EDataType;
import com.github.xingshuangs.iot.protocol.s7.serializer.S7Variable;
import lombok.Data;
 
/**
 * @Author : zhoush
 * @Date: 2025/4/30 14:19
 * @Description:
 */
@Data
public class S7Data {
 
 
//    @S7Variable(address = "DB1.0", type = EDataType.INT16)
//    private Short request;
//
//    @S7Variable(address = "DB1.2", type = EDataType.INT16)
//    private Short requestId;
//
//    @S7Variable(address = "DB1.4", type = EDataType.INT16)
//    private Short reportWord;
//
//    @S7Variable(address = "DB1.6", type = EDataType.INT16)
//    private Short reportId;
//
//    @S7Variable(address = "DB1.8", type = EDataType.INT16)
//    private Short inCar;
//
//    @S7Variable(address = "DB1.10", type = EDataType.INT16)
//    private Short taskWord;
//
//    @S7Variable(address = "DB1.12", type = EDataType.INT16)
//    private Short taskId;
//
//    @S7Variable(address = "DB1.14", type = EDataType.INT16)
//    private Short startSlot;
//
//    @S7Variable(address = "DB1.16", type = EDataType.INT16)
//    private Short endSlot;
//
//    @S7Variable(address = "DB1.18", type = EDataType.INT16)
//    private Short taskSending;
//
//    @S7Variable(address = "DB1.20", type = EDataType.INT16)
//    private Short confirmation;
//
//    @S7Variable(address = "DB1.22", type = EDataType.INT16)
//    private Short confirmationId;
 
    @S7Variable(address = "DB38.0", type = EDataType.INT16)
    private Short request;
 
    @S7Variable(address = "DB38.2", type = EDataType.INT16)
    private Short requestId;
 
    @S7Variable(address = "DB38.10", type = EDataType.INT16)
    private Short reportWord;
 
    @S7Variable(address = "DB38.12", type = EDataType.INT16)
    private Short reportId;
 
    @S7Variable(address = "DB38.18", type = EDataType.INT16)
    private Short inCar;
 
    @S7Variable(address = "DB38.20", type = EDataType.INT16)
    private Short taskWord;
 
    @S7Variable(address = "DB38.22", type = EDataType.INT16)
    private Short taskId;
 
    @S7Variable(address = "DB38.24", type = EDataType.INT16)
    private Short startSlot;
 
    @S7Variable(address = "DB38.26", type = EDataType.INT16)
    private Short endSlot;
 
    @S7Variable(address = "DB38.28", type = EDataType.INT16)
    private Short taskSending;
 
    @S7Variable(address = "DB38.40", type = EDataType.INT16)
    private Short confirmation;
 
    @S7Variable(address = "DB38.42", type = EDataType.INT16)
    private Short confirmationId;
 
 
}