package com.mes.s7.entity; import com.github.xingshuangs.iot.common.enums.EDataType; import com.github.xingshuangs.iot.protocol.s7.serializer.S7Variable; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; /** * @Author : zhoush * @Date: 2025/4/30 14:19 * @Description: */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class S7DataWL { @S7Variable(address = "DB49.0", type = EDataType.UINT16) private Integer taskRunning; @S7Variable(address = "DB49.46", type = EDataType.UINT16) private Integer currentCell; @S7Variable(address = "DB49.48", type = EDataType.UINT16) private Integer startCell; @S7Variable(address = "DB49.50", type = EDataType.UINT16) private Integer endCell; @S7Variable(address = "DB49.52", type = EDataType.UINT16) private Integer TaskState; @S7Variable(address = "DB49.116", type = EDataType.UINT16) private Integer inPlace; @S7Variable(address = "DB49.124", type = EDataType.UINT16) private Integer slotState; @S7Variable(address = "DB49.118", type = EDataType.FLOAT32) private Float speed; @S7Variable(address = "DB49.2", type = EDataType.STRING, count = 14) private String glassIdIn; @S7Variable(address = "DB49.24", type = EDataType.STRING, count = 14) private String glassIdOut; @S7Variable(address = "DB49.94", type = EDataType.STRING, count = 14) private String glassId; @S7Variable(address = "DB49.112.0", type = EDataType.BOOL) private Boolean deviceState; }