|  |  |  | 
|---|
|  |  |  | jarProtocol.setRightDoorOpen(0);//open the right door  //出料门 | 
|---|
|  |  |  | jarProtocol.setRightDoorClose(0);//close the right door  //出料门 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | jarProtocol.setJarTemperature(0); | 
|---|
|  |  |  | jarProtocol.setJarTemperature(0.0F); | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | } | 
|---|
|  |  |  | OperateResultExOne<byte[]> result = siemensS7Net.Read("V300", (short) 28); | 
|---|
|  |  |  | OperateResultExOne<byte[]> result = siemensS7Net.Read("V300", (short) 30); | 
|---|
|  |  |  | if (result.IsSuccess) { | 
|---|
|  |  |  | if (null == jarProtocol) { | 
|---|
|  |  |  | jarProtocol = new JarProtocol(); | 
|---|
|  |  |  | 
|---|
|  |  |  | jarProtocol.setMode((int)siemensS7Net.getByteTransform().TransInt16(result.Content, 12));//模式 | 
|---|
|  |  |  | jarProtocol.setJarErr((int)siemensS7Net.getByteTransform().TransInt16(result.Content, 14));//异常码 | 
|---|
|  |  |  | jarProtocol.setStatus(siemensS7Net.getByteTransform().TransInt16(result.Content, 16));//状态 | 
|---|
|  |  |  | jarProtocol.setJarTemperature((int)siemensS7Net.getByteTransform().TransInt16(result.Content, 26));//温度 | 
|---|
|  |  |  | jarProtocol.setJarTemperature(siemensS7Net.getByteTransform().TransSingle(result.Content, 26));//温度 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | jarProtocol.setAutoing(siemensS7Net.getByteTransform().TransInt16(result.Content, 12) == 2);//自动 | 
|---|
|  |  |  |  | 
|---|