| | |
| | | import com.zy.core.model.protocol.RgvProtocol; |
| | | import lombok.Data; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.poi.ss.formula.functions.T; |
| | | |
| | | import java.text.MessageFormat; |
| | | import java.util.Date; |
| | |
| | | rgvProtocol.setxSpeed((short) 0); |
| | | rgvProtocol.setxDistance((short) 0); |
| | | rgvProtocol.setxDuration((short) 0); |
| | | rgvProtocol.setSouSta((short)0); |
| | | rgvProtocol.setEndSta((short)0); |
| | | } |
| | | |
| | | @Override |
| | |
| | | result = siemensNet.Write("DB99.0.3", true); |
| | | } |
| | | else if (command.isReset()) { |
| | | siemensNet.Write("DB99.0.3", false); |
| | | Thread.sleep(100); |
| | | result = siemensNet.Write("DB99.0.4", true); |
| | | } |
| | | else if (command.isNoStop()) { |
| | | result = siemensNet.Write("DB99.0.3", false); |
| | | } |
| | | |
| | | // if (command.getAckFinish1() == 0 && command.getAckFinish2() == 0) { |
| | | // short commandFinish = 3; //工位1、2任务同时写入 |