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;
|
}
|