package com.mes.util; import com.github.xingshuangs.iot.protocol.s7.service.S7PLC; public class PLCUtil { // 允许启动 public static void yxstate(S7PLC s7PLC){ s7PLC.writeBoolean("DB4.272.0",true); } // 不允许启动 public static void byxstate(S7PLC s7PLC){ s7PLC.writeBoolean("BD4.272.0", false); } // 是否完成 public static Boolean getStatus(S7PLC s7PLC){ return s7PLC.readBoolean("BD4.272.1"); } }