huang
2025-10-30 a99650cb00bf5b0650c33f39a4221b765201d228
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
package com.mes.entity;
 
import com.github.xingshuangs.iot.common.enums.EDataType;
import com.github.xingshuangs.iot.protocol.s7.serializer.S7Variable;
import lombok.Data;
import org.springframework.stereotype.Component;
 
/**
 * @author huang
 * @since 2025/10/30
 */
@Data
@Component
public class PlcBaseData {
    /**
     * plc
     * 工作模式:1mes模式 0单机模式
     */
    @S7Variable(address = "onlineState", type = EDataType.UINT16)
    private Integer onlineState;
 
    /**
     * 任务请求 0无情求 1有请求
     */
    @S7Variable(address = "plcRequest", type = EDataType.UINT16)
    private Integer plcRequest;
 
    /**
     * 任务汇报 0无汇报 1汇报 3未完成
     */
    @S7Variable(address = "plcReport", type = EDataType.UINT16)
    private Integer plcReport;
 
    /**
     * mes控制
     * 启动字  1启动 完成后 无情求时清0
     */
    @S7Variable(address = "mesSend", type = EDataType.UINT16)
    private Integer mesSend;
 
    /**
     * 确认字
     */
    @S7Variable(address = "mesConfirm", type = EDataType.UINT16)
    private Integer mesConfirm;
 
    /**
     * 玻璃数量
     */
    @S7Variable(address = "mesGlassCount", type = EDataType.UINT16)
    private Integer mesGlassCount;
 
    /**
     * 报警信号
     */
    @S7Variable(address = "alarmInfo", type = EDataType.UINT16)
    private Integer alarmInfo;
 
}