PlcConfig.java 602 B

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.ruoyi.system.config;
  2. import com.github.xingshuangs.iot.protocol.s7.enums.EPlcType;
  3. import lombok.Data;
  4. /**
  5. * Created with IntelliJ IDEA.
  6. *
  7. * @author: liuzhifei
  8. * Date: 2023/8/7
  9. * Description: pcl配置类
  10. **/
  11. @Data
  12. public class PlcConfig {
  13. private String ip;
  14. private Boolean enable;
  15. private String name;
  16. private byte slot;
  17. private byte rack;
  18. private EPlcType ePlcType;
  19. private String heartbeat;
  20. private String confirmTheStatus;
  21. public void setSiemensPLCS(String ePlcType) {
  22. this.ePlcType = EPlcType.valueOf(ePlcType);
  23. }
  24. }