12345678910111213141516171819202122232425262728293031323334353637 |
- package com.ruoyi.system.config;
- import com.github.xingshuangs.iot.protocol.s7.enums.EPlcType;
- import lombok.Data;
- @Data
- public class PlcConfig {
- private String ip;
- private Boolean enable;
- private String name;
- private byte slot;
- private byte rack;
- private EPlcType ePlcType;
- private String heartbeat;
- private String confirmTheStatus;
- public void setSiemensPLCS(String ePlcType) {
- this.ePlcType = EPlcType.valueOf(ePlcType);
- }
- }
|