ZengTao
2025-05-22 b4ff04d7dd22f0e48bf386cd422e885aef08fed7
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
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;
 
import java.util.Arrays;
import java.util.List;
 
/**
 * @Author : zhoush
 * @Date: 2025/4/30 14:19
 * @Description:
 */
@Data
public class S7DataZKDLPOne {
 
 
    @S7Variable(address = "DB3.8", type = EDataType.BOOL)
    private Boolean mesControl;
 
    @S7Variable(address = "DB19.0", type = EDataType.INT16)
    private Short requestMes;
 
    @S7Variable(address = "DB19.2", type = EDataType.INT16)
    private Short mesReply;
 
    @S7Variable(address = "DB19.140", type = EDataType.INT16)
    private Short from1;
 
    @S7Variable(address = "DB19.142", type = EDataType.INT16)
    private Short from2;
 
    @S7Variable(address = "DB19.144", type = EDataType.INT16)
    private Short from3;
 
    @S7Variable(address = "DB19.146", type = EDataType.INT16)
    private Short from4;
 
    @S7Variable(address = "DB19.148", type = EDataType.INT16)
    private Short from5;
 
    @S7Variable(address = "DB19.150", type = EDataType.INT16)
    private Short from6;
 
    @S7Variable(address = "DB19.152", type = EDataType.INT16)
    private Short to1;
 
    @S7Variable(address = "DB19.154", type = EDataType.INT16)
    private Short to2;
 
    @S7Variable(address = "DB19.156", type = EDataType.INT16)
    private Short to3;
 
    @S7Variable(address = "DB19.158", type = EDataType.INT16)
    private Short to4;
 
    @S7Variable(address = "DB19.160", type = EDataType.INT16)
    private Short to5;
 
    @S7Variable(address = "DB19.162", type = EDataType.INT16)
    private Short to6;
 
    @S7Variable(address = "DB19.164", type = EDataType.INT16)
    private Short state1;
 
    @S7Variable(address = "DB19.166", type = EDataType.INT16)
    private Short state2;
 
    @S7Variable(address = "DB19.168", type = EDataType.INT16)
    private Short state3;
 
    @S7Variable(address = "DB19.170", type = EDataType.INT16)
    private Short state4;
 
    @S7Variable(address = "DB19.172", type = EDataType.INT16)
    private Short state5;
 
    @S7Variable(address = "DB19.174", type = EDataType.INT16)
    private Short state6;
 
    @S7Variable(address = "DB19.1246", type = EDataType.INT16)
    private Short glassCount;
 
    @S7Variable(address = "DB19.8", type = EDataType.STRING, count = 22)
    private String id1;
 
    @S7Variable(address = "DB19.30", type = EDataType.STRING, count = 22)
    private String id2;
 
    @S7Variable(address = "DB19.52", type = EDataType.STRING, count = 22)
    private String id3;
 
    @S7Variable(address = "DB19.74", type = EDataType.STRING, count = 22)
    private String id4;
 
    @S7Variable(address = "DB19.96", type = EDataType.STRING, count = 22)
    private String id5;
 
    @S7Variable(address = "DB19.118", type = EDataType.STRING, count = 22)
    private String id6;
 
    @S7Variable(address = "MW1002", type = EDataType.INT16)
    private Short alramSignal;
 
    public List<Short> getStates() {
        return Arrays.asList(state1, state2, state3, state4, state5, state6);
    }
 
    public List<String> getIds() {
        return Arrays.asList(id1, id2, id3, id4, id5, id6);
    }
 
    public List<Short> getTos() {
        return Arrays.asList(to1, to2, to3, to4, to5, to6);
    }
 
}