|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using System.Data;
|
|
|
|
|
using System.Reflection;
|
|
|
|
|
using ICSharpCode.Core;
|
|
|
|
|
using Mesnac.Basic;
|
|
|
|
|
using Mesnac.Equips;
|
|
|
|
|
using Mesnac.Codd.Session;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.Entity;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Plc操作辅助类
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class BasePlcHelper
|
|
|
|
|
{
|
|
|
|
|
#region 单例模式
|
|
|
|
|
|
|
|
|
|
private static BasePlcHelper _this = null;
|
|
|
|
|
public static BasePlcHelper Instance
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
if (null == _this)
|
|
|
|
|
_this = new BasePlcHelper();
|
|
|
|
|
return _this;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private BasePlcHelper()
|
|
|
|
|
{
|
|
|
|
|
foreach (PropertyInfo pi in this.GetType().GetProperties())
|
|
|
|
|
{
|
|
|
|
|
if (pi.PropertyType == typeof(DataKeyValue))
|
|
|
|
|
{
|
|
|
|
|
DataKeyValue data = new DataKeyValue(pi.Name);
|
|
|
|
|
pi.SetValue(this, data, null);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 方法定义
|
|
|
|
|
|
|
|
|
|
#region GetDataKeyValue
|
|
|
|
|
|
|
|
|
|
public DataKeyValue GetDataKeyValue(string key)
|
|
|
|
|
{
|
|
|
|
|
foreach (PropertyInfo pi in this.GetType().GetProperties())
|
|
|
|
|
{
|
|
|
|
|
if (pi.PropertyType == typeof(DataKeyValue))
|
|
|
|
|
{
|
|
|
|
|
DataKeyValue data = (DataKeyValue)pi.GetValue(this, null);
|
|
|
|
|
if (data.FieldKey.ToLower() == key.ToLower())
|
|
|
|
|
{
|
|
|
|
|
return data;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 从PLC中读取原始数据的方法
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 从PLC中读取原始数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataName">要读取的设备变量名称</param>
|
|
|
|
|
/// <param name="dataValue">从PLC读取的值</param>
|
|
|
|
|
/// <returns>成功返回true,失败返回false</returns>
|
|
|
|
|
public bool PlcRead(string dataName, out int[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return Mesnac.Equips.Factory.Instance.Read(dataName, out dataValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 根据设备名称读取指定数据块,指定起始字,指定长度的数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="equipName">设备名称</param>
|
|
|
|
|
/// <param name="block">数据块</param>
|
|
|
|
|
/// <param name="start">起始字</param>
|
|
|
|
|
/// <param name="len">长度</param>
|
|
|
|
|
/// <param name="dataValue">输出数据</param>
|
|
|
|
|
/// <returns>成功返回true,失败返回false</returns>
|
|
|
|
|
public bool PlcRead(string equipName, string block, int start, int len, out Int16[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return Mesnac.Equips.Factory.Instance.Read(equipName, block, start, len, out dataValue);
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 从PLC中读取原始数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataKey"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool PlcRead(DataKeyValue dataKey, out int[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcRead(dataKey.EquipKey, out dataValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 按设备变量别名从PLC读取数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="runName">PLC设备变量别名</param>
|
|
|
|
|
/// <param name="dataValue">读取值</param>
|
|
|
|
|
/// <returns>读取成功返回true,失败返回false</returns>
|
|
|
|
|
public bool PlcReadByRunName(string runName, out int[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return Mesnac.Equips.Factory.Instance.ReadByRunName(runName, out dataValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public object PlcLastValueRead(string dataName)
|
|
|
|
|
{
|
|
|
|
|
return Mesnac.Equips.Factory.Instance.ReadLastValue(dataName);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 读取设备数据
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataName">设备变量名称</param>
|
|
|
|
|
/// <param name="dataValue">读取的设备值</param>
|
|
|
|
|
/// <returns>读取成功返回true,失败返回false</returns>
|
|
|
|
|
public bool PlcLastValueRead(string dataName, out int[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return Mesnac.Equips.Factory.Instance.ReadLastValue(dataName, out dataValue);
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 向PLC变量中写入值,并不真正下传至PLC
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 向PLC变量中写入值,并不真正下传至PLC
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="equipKey"></param>
|
|
|
|
|
/// <param name="runName"></param>
|
|
|
|
|
/// <param name="shifting"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool PlcVarWrite(string equipKey, string runName, int shifting, object dataValue)
|
|
|
|
|
{
|
|
|
|
|
StringBuilder log = new StringBuilder();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
//log.Append("equipKey=[").Append(equipKey).Append("]runName=[").Append(runName);
|
|
|
|
|
foreach (Mesnac.Equips.BaseEquip equip in Factory.Instance.AllEquips.Values)
|
|
|
|
|
{
|
|
|
|
|
foreach (Mesnac.Equips.BaseInfo.Group group in equip.Group.Values)
|
|
|
|
|
{
|
|
|
|
|
if (group.Access == System.IO.FileAccess.Write ||
|
|
|
|
|
group.Access == System.IO.FileAccess.ReadWrite)
|
|
|
|
|
{
|
|
|
|
|
foreach (Mesnac.Equips.BaseInfo.Data data in group.Data.Values)
|
|
|
|
|
{
|
|
|
|
|
if (data.KeyName == equipKey || (!String.IsNullOrEmpty(data.RunName) && data.RunName == runName))
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
data.Value = dataValue;
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ICSharpCode.Core.LoggingService.Error(ex.Message);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//log.Append("]No Find");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ICSharpCode.Core.LoggingService.Error("写入PLC变量值失败:" + ex.Message, ex);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
|
|
|
|
//if (log.Length > "equipKey=[]runName=[]No Find".Length)
|
|
|
|
|
//{
|
|
|
|
|
// action.LogDebug(log.AppendLine("...").ToString());
|
|
|
|
|
//}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 向PLC变量中写入值,并不真正下传至PLC
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="equipKey"></param>
|
|
|
|
|
/// <param name="shifting"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool PlcVarWriteByDataKey(string equipKey, int shifting, object dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcVarWrite(equipKey, string.Empty, shifting, dataValue);
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 向PLC变量中写入值,并不真正下传至PLC
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataKey"></param>
|
|
|
|
|
/// <param name="shifting"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool PlcVarWriteByDataKey(DataKeyValue dataKey, int shifting, object dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcVarWriteByDataKey(dataKey.EquipKey, shifting, dataValue);
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 向PLC变量中写入值,并不真正下传至PLC
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataKey"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool PlcVarWriteByDataKey(DataKeyValue dataKey, object dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcVarWriteByDataKey(dataKey, 0, dataValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region Plc写入方法,真正写入PLC
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PlcWrite
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="equipKey"></param>
|
|
|
|
|
/// <param name="runName"></param>
|
|
|
|
|
/// <param name="shifting"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <param name="isOutFlag"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
private bool PlcWrite(string equipKey, string runName, int shifting, object[] dataValue, params bool[] isOutFlag)
|
|
|
|
|
{
|
|
|
|
|
StringBuilder log = new StringBuilder();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
log.Append("equipKey=[").Append(equipKey).Append("]runName=[").Append(runName);
|
|
|
|
|
foreach (Mesnac.Equips.BaseEquip equip in Factory.Instance.AllEquips.Values)
|
|
|
|
|
{
|
|
|
|
|
foreach (Mesnac.Equips.BaseInfo.Group group in equip.Group.Values)
|
|
|
|
|
{
|
|
|
|
|
if (group.Access == System.IO.FileAccess.Write ||
|
|
|
|
|
group.Access == System.IO.FileAccess.ReadWrite)
|
|
|
|
|
{
|
|
|
|
|
foreach (Mesnac.Equips.BaseInfo.Data data in group.Data.Values)
|
|
|
|
|
{
|
|
|
|
|
//if (data.KeyName == equipKey || data.RunName == runName)
|
|
|
|
|
//if (data.KeyName == equipKey)
|
|
|
|
|
if (data.KeyName == equipKey || (!String.IsNullOrEmpty(data.RunName) && data.RunName == runName))
|
|
|
|
|
{
|
|
|
|
|
int block = 0;
|
|
|
|
|
if (int.TryParse(group.Block.ToString(), out block))
|
|
|
|
|
{
|
|
|
|
|
log.Append("]shifting=[").Append((group.Start + data.Start + shifting).ToString());
|
|
|
|
|
log.Append("]dataLen=[").Append(dataValue.Length);
|
|
|
|
|
log.Append("]Find Result=");
|
|
|
|
|
foreach (object v in dataValue)
|
|
|
|
|
{
|
|
|
|
|
log.Append(v + ",");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region 二进制位写入
|
|
|
|
|
|
|
|
|
|
if (data.Method.StartsWith("Default_Bit"))
|
|
|
|
|
{
|
|
|
|
|
string parameters = data.Method.Replace("Default_Bit(", String.Empty).Replace(")", String.Empty);
|
|
|
|
|
string[] ps = parameters.Split(new char[] { ',' });
|
|
|
|
|
int startIndex = 0;
|
|
|
|
|
int length = 1;
|
|
|
|
|
if (ps.Length == 1) //单参数判断
|
|
|
|
|
{
|
|
|
|
|
if (!int.TryParse(ps[0], out startIndex))
|
|
|
|
|
{
|
|
|
|
|
log.Append("[false](Convert The Bit method first parameter to int failure!)");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (ps.Length == 2) //多参数判断
|
|
|
|
|
{
|
|
|
|
|
if (!int.TryParse(ps[0], out startIndex))
|
|
|
|
|
{
|
|
|
|
|
log.Append("[false](Convert The Bit method first parameter to int failure!)");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
if (!int.TryParse(ps[1], out length))
|
|
|
|
|
{
|
|
|
|
|
log.Append("[false](Convert The Bit method second parameter to int failure!)");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
object originalValue = 0; //保存原始值
|
|
|
|
|
if (data.Len == 1) //如果len=1则为Int16类型
|
|
|
|
|
{
|
|
|
|
|
int[] buff = null;
|
|
|
|
|
if (PlcRead(data.KeyName, out buff))
|
|
|
|
|
{
|
|
|
|
|
originalValue = buff[0];
|
|
|
|
|
originalValue = Mesnac.Basic.DataProcessor.Swap(short.Parse(originalValue.ToString()));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ICSharpCode.Core.LoggingService<BasePlcHelper>.Warn(String.Format("在进行二进制写入时读取设备变量[{0}]失败!", data.KeyName));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (data.Len == 2) //如果len=2则为Int32类型
|
|
|
|
|
{
|
|
|
|
|
int[] buff = null;
|
|
|
|
|
if (PlcRead(data.KeyName, out buff))
|
|
|
|
|
{
|
|
|
|
|
if (equip.Main.Brand == Mesnac.Basic.PlcBrand.Siemens)
|
|
|
|
|
{
|
|
|
|
|
originalValue = Mesnac.Basic.DataProcessor.ToSiemensInt32(buff);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
originalValue = Mesnac.Basic.DataProcessor.ToInt32(buff);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
ICSharpCode.Core.LoggingService<BasePlcHelper>.Warn(String.Format("在进行二进制写入时读取设备变量[{0}]失败!", data.KeyName));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
object[] newValue = null;
|
|
|
|
|
if (data.Len == 1)
|
|
|
|
|
{
|
|
|
|
|
newValue = new object[] { Mesnac.Basic.DataProcessor.SetBitValue(originalValue, startIndex, length, dataValue[0]) };
|
|
|
|
|
//从PLC中读取到的值进行高低位转换
|
|
|
|
|
int int16 = Mesnac.Basic.DataProcessor.Swap(short.Parse(newValue[0].ToString()));
|
|
|
|
|
newValue = new object[] { int16 };
|
|
|
|
|
|
|
|
|
|
////解析为二进制数组
|
|
|
|
|
//int[] binaryAlarmData = Mesnac.Basic.DataProcessor.ParseBinaryValue(int16, int16*2);
|
|
|
|
|
//String str = "";
|
|
|
|
|
//for (int i = 0; i < (int16 * 2); i++)
|
|
|
|
|
//{
|
|
|
|
|
// //按照偏移量对数组进行赋值
|
|
|
|
|
// if (i == group.Start + data.Start + shifting)
|
|
|
|
|
// {
|
|
|
|
|
// if (int.Parse(dataValue[0].ToString()) == 0)
|
|
|
|
|
// {
|
|
|
|
|
// binaryAlarmData[i] = 0;
|
|
|
|
|
// }
|
|
|
|
|
// else
|
|
|
|
|
// {
|
|
|
|
|
// binaryAlarmData[i] = 1;
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// str += binaryAlarmData[i].ToString();
|
|
|
|
|
//}
|
|
|
|
|
//Int16 iwrite = Convert.ToInt16(str,2);
|
|
|
|
|
//int swpint16 = Mesnac.Basic.DataProcessor.Swap(iwrite);
|
|
|
|
|
////获取二进制数组字符串
|
|
|
|
|
//newValue = new object[] { swpint16 };
|
|
|
|
|
//if (equip.Write(block, group.Start + data.Start + shifting, newValue))
|
|
|
|
|
//{
|
|
|
|
|
// log.Append("[true]");
|
|
|
|
|
// return true;
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// log.Append("[false]");
|
|
|
|
|
// return false;
|
|
|
|
|
//}
|
|
|
|
|
//int writedata = Mesnac.Basic.DataProcessor.ToInt32(binaryAlarmData);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if (data.Len == 2)
|
|
|
|
|
{
|
|
|
|
|
object objNewValue = Mesnac.Basic.DataProcessor.SetBitValue32(originalValue, startIndex, length, dataValue[0]);
|
|
|
|
|
int intNewValue = Convert.ToInt32(objNewValue);
|
|
|
|
|
if (equip.Main.Brand == Mesnac.Basic.PlcBrand.Siemens)
|
|
|
|
|
{
|
|
|
|
|
newValue = Mesnac.Basic.DataProcessor.ToSiemensPLCDataArray(intNewValue);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
newValue = Mesnac.Basic.DataProcessor.ToPLCDataArray(intNewValue);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (equip.Write(block, group.Start + data.Start + shifting, newValue))
|
|
|
|
|
{
|
|
|
|
|
log.Append("[true]");
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
log.Append("[false]");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
if (equip.Write(block, group.Start + data.Start + shifting, dataValue))
|
|
|
|
|
{
|
|
|
|
|
log.Append("[true]");
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
log.Append("[false]");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
log.Append("]No Find");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ICSharpCode.Core.LoggingService<BasePlcHelper>.Error("下传PLC失败:" + ex.Message, ex);
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
finally
|
|
|
|
|
{
|
|
|
|
|
if (isOutFlag.Length == 0 || isOutFlag[0] == true)
|
|
|
|
|
{
|
|
|
|
|
if (log.Length > "equipKey=[]runName=[]No Find".Length)
|
|
|
|
|
{
|
|
|
|
|
ICSharpCode.Core.LoggingService<BasePlcHelper>.Debug(log.AppendLine("...").ToString());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
public bool PlcWriteByRunName(string runName, int shifting, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcWrite(string.Empty, runName, shifting, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool PlcWriteByRunName(string runName, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByRunName(runName, 0, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool PlcWriteByEquipKey(string equipKey, int shifting, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcWrite(equipKey, string.Empty, shifting, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool PlcWriteByEquipKey(string equipKey, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByEquipKey(equipKey, 0, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool PlcWriteByDataKey(DataKeyValue dataKey, int shifting, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByEquipKey(dataKey.EquipKey, shifting, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool PlcWriteByDataKey(DataKeyValue dataKey, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByDataKey(dataKey, 0, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool PlcWriteByDataKey(DataKeyValue dataKey, string dataValue)
|
|
|
|
|
{
|
|
|
|
|
object[] buff = null;
|
|
|
|
|
buff = new object[dataKey.EquipData.Len];
|
|
|
|
|
for (int i = 0; i < buff.Length; i++)
|
|
|
|
|
{
|
|
|
|
|
buff[i] = 0;
|
|
|
|
|
}
|
|
|
|
|
object[] planIDData = Mesnac.Basic.DataProcessor.ToPLCDataArray(dataValue);
|
|
|
|
|
if (planIDData.Length <= buff.Length)
|
|
|
|
|
{
|
|
|
|
|
Array.Copy(planIDData, buff, planIDData.Length);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
Array.Copy(planIDData, buff, buff.Length);
|
|
|
|
|
}
|
|
|
|
|
return PlcWriteByDataKey(dataKey, buff);
|
|
|
|
|
}
|
|
|
|
|
//增加是否输出日志
|
|
|
|
|
public bool PlcWriteByEquipKey(string equipKey, int shifting, object[] dataValue, bool isOutLog)
|
|
|
|
|
{
|
|
|
|
|
return PlcWrite(equipKey, string.Empty, shifting, dataValue, isOutLog);
|
|
|
|
|
}
|
|
|
|
|
//增加是否输出日志
|
|
|
|
|
public bool PlcWriteByDataKey(DataKeyValue dataKey, int shifting, object[] dataValue, bool isOutLog)
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByEquipKey(dataKey.EquipKey, shifting, dataValue, isOutLog);
|
|
|
|
|
}
|
|
|
|
|
//增加是否输出日志
|
|
|
|
|
public bool PlcWriteByDataKey(DataKeyValue dataKey, object[] dataValue, bool isOutLog)
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByDataKey(dataKey, 0, dataValue, isOutLog);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 向Plc变量写入float浮点数,下传Plc
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataKey"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool PlcWriteFloatByDataKey(DataKeyValue dataKey, float dataValue)
|
|
|
|
|
{
|
|
|
|
|
string equipName = dataKey.EquipKey;
|
|
|
|
|
if (dataKey.EquipKey.Contains("."))
|
|
|
|
|
{
|
|
|
|
|
equipName = dataKey.EquipKey.Split(new char[] { '.' })[0];
|
|
|
|
|
}
|
|
|
|
|
if (Factory.Instance.AllEquips[equipName].Main.Brand.Equals("Siemens", StringComparison.CurrentCultureIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByDataKey(dataKey, 0, Mesnac.Basic.DataProcessor.ToSiemensPLCDataArray(dataValue));
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByDataKey(dataKey, 0, Mesnac.Basic.DataProcessor.ToPLCDataArray(dataValue));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 向Plc变量写入float浮点数,下传Plc
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataKey"></param>
|
|
|
|
|
/// <param name="dataValue"></param>
|
|
|
|
|
/// <param name="isOutLog"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool PlcWriteFloatByDataKey(DataKeyValue dataKey, float dataValue, bool isOutLog)
|
|
|
|
|
{
|
|
|
|
|
string equipName = dataKey.EquipKey;
|
|
|
|
|
if (dataKey.EquipKey.Contains("."))
|
|
|
|
|
{
|
|
|
|
|
equipName = dataKey.EquipKey.Split(new char[] { '.' })[0];
|
|
|
|
|
}
|
|
|
|
|
if (Factory.Instance.AllEquips[equipName].Main.Brand.Equals("Siemens", StringComparison.CurrentCultureIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByDataKey(dataKey, 0, Mesnac.Basic.DataProcessor.ToSiemensPLCDataArray(dataValue), isOutLog);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
return PlcWriteByDataKey(dataKey, 0, Mesnac.Basic.DataProcessor.ToPLCDataArray(dataValue), isOutLog);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region PptPlcData表写入操作
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 把设备变量的值写入PptPlcData表
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="dataKey">设备变量</param>
|
|
|
|
|
/// <param name="equipKey">设备</param>
|
|
|
|
|
/// <param name="shifting">偏移</param>
|
|
|
|
|
/// <param name="dataValue">值数组</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public bool DataWrite(string dataKey, string equipKey, int shifting, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(dataKey))
|
|
|
|
|
{
|
|
|
|
|
dataKey = equipKey;
|
|
|
|
|
}
|
|
|
|
|
if (string.IsNullOrWhiteSpace(equipKey))
|
|
|
|
|
{
|
|
|
|
|
equipKey = dataKey;
|
|
|
|
|
}
|
|
|
|
|
DbHelper dbHelper = Mesnac.Basic.DataSourceFactory.Instance.GetDbHelper(Mesnac.Basic.DataSourceFactory.MCDbType.Local);
|
|
|
|
|
if (dbHelper == null)
|
|
|
|
|
{
|
|
|
|
|
throw new Exception(Mesnac.Basic.LanguageHelper.DataBaseConnectError);
|
|
|
|
|
}
|
|
|
|
|
dbHelper.CommandType = System.Data.CommandType.Text;
|
|
|
|
|
dbHelper.ClearParameter();
|
|
|
|
|
|
|
|
|
|
#region 支持SQL2000
|
|
|
|
|
|
|
|
|
|
StringBuilder sqlstr = new StringBuilder("INSERT INTO PptPlcData (PlcSchemaField, EquipRunName, PlcDataValue, PlcDataIndex, PlcDownState) ");
|
|
|
|
|
for (int i = 0; i < dataValue.Length; i++)
|
|
|
|
|
{
|
|
|
|
|
object obj = dataValue[i];
|
|
|
|
|
if (obj == null || obj == DBNull.Value)
|
|
|
|
|
{
|
|
|
|
|
obj = string.Empty;
|
|
|
|
|
}
|
|
|
|
|
string key1 = "@PlcSchemaField" + i.ToString();
|
|
|
|
|
string key2 = "@EquipRunName" + i.ToString();
|
|
|
|
|
string key3 = "@PlcDataValue" + i.ToString();
|
|
|
|
|
string key4 = "@PlcDataIndex" + i.ToString();
|
|
|
|
|
sqlstr.Append(" (select ").Append(key1).Append(" as PlcSchemaField").Append(",").Append(key2).Append(" as EquipRunName").Append(",").Append(key3).Append(" as PlcDataValue").Append(",").Append(key4).Append(" as PlcDataIndex").Append(",0 as PlcDownState)");
|
|
|
|
|
if (i < dataValue.Length - 1)
|
|
|
|
|
{
|
|
|
|
|
sqlstr.AppendLine("union all");
|
|
|
|
|
}
|
|
|
|
|
if (obj is PlcDataInfo)
|
|
|
|
|
{
|
|
|
|
|
PlcDataInfo data = obj as PlcDataInfo;
|
|
|
|
|
dbHelper.AddParameter(key1, string.IsNullOrWhiteSpace(data.PlcSchemaField) ? dataKey : data.PlcSchemaField);
|
|
|
|
|
dbHelper.AddParameter(key2, string.IsNullOrWhiteSpace(data.EquipRunName) ? equipKey : data.EquipRunName);
|
|
|
|
|
dbHelper.AddParameter(key3, data.PlcDataValue == null ? 0 : data.PlcDataValue);
|
|
|
|
|
dbHelper.AddParameter(key4, (shifting + i).ToString());
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
dbHelper.AddParameter(key1, dataKey);
|
|
|
|
|
dbHelper.AddParameter(key2, equipKey);
|
|
|
|
|
dbHelper.AddParameter(key3, obj);
|
|
|
|
|
dbHelper.AddParameter(key4, (shifting + i).ToString());
|
|
|
|
|
}
|
|
|
|
|
} //插入语句
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
dbHelper.CommandText = sqlstr.ToString();
|
|
|
|
|
dbHelper.ExecuteNonQuery();
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
public bool DataWrite(string dataKey, string equipKey, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return DataWrite(dataKey, equipKey, 0, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool DataWrite(string equipKey, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return DataWrite(equipKey, equipKey, 0, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool DataWrite(DataKeyValue dataKey, int shifting, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return DataWrite(dataKey.Name, dataKey.EquipRunName, shifting, dataValue);
|
|
|
|
|
}
|
|
|
|
|
public bool DataWrite(DataKeyValue dataKey, object[] dataValue)
|
|
|
|
|
{
|
|
|
|
|
return DataWrite(dataKey, 0, dataValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 属性定义
|
|
|
|
|
|
|
|
|
|
#region 自定义设备变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 最小计划数(由PLC实时读取)
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int MinPlanNum = 3;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region PC在线标志
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 开门料仓号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PC_Online = new DataKeyValue("PC_Online");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料PLC在线标志
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PLC_Online_Flag = new DataKeyValue("PLC_Online_Flag");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 等待计划数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Scheduled_Num = new DataKeyValue("Scheduled_Num");
|
|
|
|
|
|
|
|
|
|
#region 自动下传计划相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料PLC请求计划交互信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PLC_LoadingStatus = new DataKeyValue("PLC_LoadingStatus");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料PC计划反馈交互信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PC_LoadingStatus = new DataKeyValue("PC_LoadingStatus");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 速度1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue DwSpeed = new DataKeyValue("DwSpeed");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 自动更新计划状态相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料PLC计划状态变化交互PLC请求信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PLC_Plan_Status_ShakeHand = new DataKeyValue("PLC_Plan_Status_ShakeHand");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PC计划状态根据PLC状态更新交互信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PLC_Plan_Status_FeedBack = new DataKeyValue("PLC_Plan_Status_FeedBack");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料计划序号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Plan_Serial = new DataKeyValue("Plan_Serial");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料计划状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Plan_Status = new DataKeyValue("Plan_Status");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料计划完成数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Plan_Number = new DataKeyValue("Plan_Number");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料计划剩余数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Remain_Number = new DataKeyValue("Remain_Number");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region HMI配方列表请求相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料HMI配方查询请求信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Request_Recipe_Name_ShakeHand = new DataKeyValue("HMI_Request_Recipe_Name_ShakeHand");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PCHMI配方查询请求信息响应
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Request_Recipe_Name_FeedBack = new DataKeyValue("HMI_Request_Recipe_Name_FeedBack");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 读取到的机台号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Sys_Machine = new DataKeyValue("Sys_Machine");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 读取到的配方名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Plan_Code = new DataKeyValue("Plan_Code");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region HMI根据配方请求添加计划相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 小料HMI配方添加计划请求信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Confirm_Recipe_ShakeHand = new DataKeyValue("HMI_Confirm_Recipe_ShakeHand");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PCHMI配方添加计划请求信息响应
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Confirm_Recipe_FeedBack = new DataKeyValue("HMI_Confirm_Recipe_FeedBack");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 读取到的机台号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Sys_Machine1 = new DataKeyValue("Sys_Machine1");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 读取到的配方名称
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Plan_Code1 = new DataKeyValue("Plan_Code1");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设定数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Plan_Num = new DataKeyValue("HMI_Plan_Num");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region HMI请求修改计划相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLCHMI修改计划请求信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Request_Recipe_Change_ShakeHand = new DataKeyValue("HMI_Request_Recipe_Change_ShakeHand");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PCHMI修改计划请求信息响应
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Request_Recipe_Change_FeedBack = new DataKeyValue("HMI_Request_Recipe_Change_FeedBack");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 命令:0默认 1刷新 2上移 3下移 4修改车数 5删除计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMI_Request_Recipe_Change_Command = new DataKeyValue("HMI_Request_Recipe_Change_Command");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 读取到的机台号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Sys_Machine2 = new DataKeyValue("Sys_Machine2");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 读取到的计划号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMIChange_PlanId = new DataKeyValue("HMIChange_PlanId");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 设定数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_HMIChange_PlanNum = new DataKeyValue("HMIChange_PlanNum");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 自动存盘相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC存盘请求
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PLC_Request_Save_ShakeHand = new DataKeyValue("Plc_Request_Save_ShakeHand");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PC存盘反馈信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PC_Request_Save_FeedBack = new DataKeyValue("PC_Request_Save_FeedBack");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 报表基本信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Report_Update_Block_BaseInf = new DataKeyValue("Report_Update_Block_BaseInf");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 物料报表信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Report_Update_Block_Material_Report = new DataKeyValue("Report_Update_Block_Material_Report");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 上位机修改计划数、终止计划相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PC下传终止计划状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Plan_Status_Com_ShakeHand = new DataKeyValue("Plan_Status_Com_ShakeHand");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC终止计划状态反馈
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Plan_Status_Com_FeedBack = new DataKeyValue("Plan_Status_Com_FeedBack");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 条码扫描后,下传到PLC的命令相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 开门料仓号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Hopper_No_103 = new DataKeyValue("Hopper_No_103");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 条码开门命令
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_ScanCommand = new DataKeyValue("Command");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 条码开门握手信号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_Open_door_Command_ShakeHand = new DataKeyValue("Open_door_Command_ShakeHand");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 自动写入物料名称相关变量
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC物料名称下传请求
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PLC_LoadingConfig = new DataKeyValue("PLC_LoadingConfig");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PC物料名称下传反馈
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue ChemicalWeighing_PC_LoadingConfig = new DataKeyValue("PC_LoadingConfig");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 普力通上位机-小料
|
|
|
|
|
|
|
|
|
|
#region 配方 DB114
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 总重量—改为批次数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Batch = new DataKeyValue("DB114.DBW2");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight1 = new DataKeyValue("DB114.DBW6");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位1 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Error1 = new DataKeyValue("DB114.DBW8");//1工位1
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight2 = new DataKeyValue("DB114.DBW10");// 1工位2
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位2 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Error2 = new DataKeyValue("DB114.DBW12");//1工位2
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位3
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight3 = new DataKeyValue("DB114.DBW14");//2工位3
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位3 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Error3 = new DataKeyValue("DB114.DBW16");//2工位3
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位4
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight4 = new DataKeyValue("DB114.DBW18");//2工位4
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位4 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Error4 = new DataKeyValue("DB114.DBW20");//2工位4
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位5
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight5 = new DataKeyValue("DB114.DBW22");//3工位5
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位5 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Error5 = new DataKeyValue("DB114.DBW24");//3工位5
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight6 = new DataKeyValue("DB114.DBW26");//3工位6
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位6 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Error6 = new DataKeyValue("DB114.DBW28");//3工位6
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位7
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight7 = new DataKeyValue("DB114.DBW30");//4工位7
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位7 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Error7 = new DataKeyValue("DB114.DBW32");//4工位7
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位8
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight8 = new DataKeyValue("DB114.DBW34");//4工位8
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位8 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Error8 = new DataKeyValue("DB114.DBW36");//4工位8
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位9
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight9 = new DataKeyValue("DB114.DBW38");//5工位9
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位9 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Error9 = new DataKeyValue("DB114.DBW40");//5工位9
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位10
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight10 = new DataKeyValue("DB114.DBW42");//5工位10
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位2 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Error10 = new DataKeyValue("DB114.DBW44");//5工位10
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位11
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight11 = new DataKeyValue("DB114.DBW46");//6工位11
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位11 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Error11 = new DataKeyValue("DB114.DBW48");//6工位11
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位12
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight12 = new DataKeyValue("DB114.DBW50");//6工位12
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位12 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Error12 = new DataKeyValue("DB114.DBW52");//6工位12
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位13
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight13 = new DataKeyValue("DB114.DBW54");//7工位13
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位13 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Error13 = new DataKeyValue("DB114.DBW56");//7工位13
|
|
|
|
|
/// <summary>
|
|
|
|
|
///7工位14
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight14 = new DataKeyValue("DB114.DBW58");//7工位14
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位14 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Error14 = new DataKeyValue("DB114.DBW60");//7工位14
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位15
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight15 = new DataKeyValue("DB114.DBW62");//8工位15
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// /8工位15 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Error15 = new DataKeyValue("DB114.DBW64");//8工位15
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位16
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight16 = new DataKeyValue("DB114.DBW66");//8工位16
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位16 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Error16 = new DataKeyValue("DB114.DBW68");//8工位16
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位17
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight17 = new DataKeyValue("DB114.DBW70");//9工位17
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位17 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Error17 = new DataKeyValue("DB114.DBW72");//9工位17
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位18
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight18 = new DataKeyValue("DB114.DBW74");//9工位18
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位18 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Error18 = new DataKeyValue("DB114.DBW76");//9工位18
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位19
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight19 = new DataKeyValue("DB114.DBW78");//10工位19
|
|
|
|
|
/// <summary>
|
|
|
|
|
///10工位19 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Error19 = new DataKeyValue("DB114.DBW80");//10工位19
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位20
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight20 = new DataKeyValue("DB114.DBW82");//10工位20
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位20 设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Error20 = new DataKeyValue("DB114.DBW84");//10工位20
|
|
|
|
|
/// <summary>
|
|
|
|
|
///11工位21
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight21 = new DataKeyValue("DB114.DBW86");//11工位21
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位21设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Error21 = new DataKeyValue("DB114.DBW88");//11工位21
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位22
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight22 = new DataKeyValue("DB114.DBW90");//11工位21
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位21设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Error22 = new DataKeyValue("DB114.DBW92");//11工位21
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位23
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight23 = new DataKeyValue("DB114.DBW94");//12工位22
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位23设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Error23 = new DataKeyValue("DB114.DBW96");//12工位22
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位24
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight24 = new DataKeyValue("DB114.DBW98");//12工位22
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位24设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Error24 = new DataKeyValue("DB114.DBW100");//12工位22
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位25
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight25 = new DataKeyValue("DB114.DBW102");//13工位23
|
|
|
|
|
/// <summary>
|
|
|
|
|
///13工位25设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Error25 = new DataKeyValue("DB114.DBW104");//13工位23
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位26
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight26 = new DataKeyValue("DB114.DBW106");//13工位23
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位26设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Error26 = new DataKeyValue("DB114.DBW108");//13工位23
|
|
|
|
|
/// <summary>
|
|
|
|
|
///14工位27
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight27 = new DataKeyValue("DB114.DBW110");//14工位24
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// //14工位27设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Error27 = new DataKeyValue("DB114.DBW112");//14工位24
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位28
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight28 = new DataKeyValue("DB114.DBW114");//14工位25
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位28设定误差
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Error28 = new DataKeyValue("DB114.DBW116");//14工位25
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 配方号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_PlanNo = new DataKeyValue("DB114.DBW118");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 配方号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_RecipeNo = new DataKeyValue("DB114.DBW120");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 配方号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_RecipeName = new DataKeyValue("DB114.DBW124");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 计划排序
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Set_Plan_Serial = new DataKeyValue("DB114.DBW126");
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 配方 DB110
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read11_PlcState = new DataKeyValue("DB110.DBW0");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read12_PlcState = new DataKeyValue("DB110.DBW2");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read13_Spare = new DataKeyValue("DB110.DBW4");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read21_PlcState = new DataKeyValue("DB110.DBW6");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read22_PlcState = new DataKeyValue("DB110.DBW8");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read23_Spare = new DataKeyValue("DB110.DBW10");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read31_PlcState = new DataKeyValue("DB110.DBW12");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read32_PlcState = new DataKeyValue("DB110.DBW14");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read33_Spare = new DataKeyValue("DB110.DBW16");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read41_PlcState = new DataKeyValue("DB110.DBW18");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read42_PlcState = new DataKeyValue("DB110.DBW20");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read43_Spare = new DataKeyValue("DB110.DBW22");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read51_PlcState = new DataKeyValue("DB110.DBW24");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read52_PlcState = new DataKeyValue("DB110.DBW26");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read53_Spare = new DataKeyValue("DB110.DBW28");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read61_PlcState = new DataKeyValue("DB110.DBW30");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read62_PlcState = new DataKeyValue("DB110.DBW32");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read63_Spare = new DataKeyValue("DB110.DBW34");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read71_PlcState = new DataKeyValue("DB110.DBW36");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read72_PlcState = new DataKeyValue("DB110.DBW38");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read73_Spare = new DataKeyValue("DB110.DBW40");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read81_PlcState = new DataKeyValue("DB110.DBW42");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read82_PlcState = new DataKeyValue("DB110.DBW44");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read83_Spare = new DataKeyValue("DB110.DBW46");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read91_PlcState = new DataKeyValue("DB110.DBW48");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read92_PlcState = new DataKeyValue("DB110.DBW50");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read93_Spare = new DataKeyValue("DB110.DBW52");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read101_PlcState = new DataKeyValue("DB110.DBW54");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read102_PlcState = new DataKeyValue("DB110.DBW56");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read103_Spare = new DataKeyValue("DB110.DBW58");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read111_PlcState = new DataKeyValue("DB110.DBW60");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read112_PlcState = new DataKeyValue("DB110.DBW62");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read113_Spare = new DataKeyValue("DB110.DBW64");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read121_PlcState = new DataKeyValue("DB110.DBW66");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read122_PlcState = new DataKeyValue("DB110.DBW68");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read123_Spare = new DataKeyValue("DB110.DBW70");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read131_PlcState = new DataKeyValue("DB110.DBW72");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read132_PlcState = new DataKeyValue("DB110.DBW74");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read133_Spare = new DataKeyValue("DB110.DBW76");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read141_PlcState = new DataKeyValue("DB110.DBW78");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read142_PlcState = new DataKeyValue("DB110.DBW80");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位3——预留
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read143_Spare = new DataKeyValue("DB110.DBW82");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 15工位1
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read151_PlcState = new DataKeyValue("DB110.DBW84");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 15工位2
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read152_PlcState = new DataKeyValue("DB110.DBW86");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 15工位3——预留改为计划编码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read153_Spare = new DataKeyValue("DB110.DBW88");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 检量秤
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Read1Jc = new DataKeyValue("DB110.DBW90");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 工位工作状态 DB110 100,A称量中 200,B称量中
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station1_WorkState = new DataKeyValue("DB110.DBW100");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station2_WorkState = new DataKeyValue("DB110.DBW102");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station3_WorkState = new DataKeyValue("DB110.DBW104");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station4_WorkState = new DataKeyValue("DB110.DBW106");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station5_WorkState = new DataKeyValue("DB110.DBW108");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station6_WorkState = new DataKeyValue("DB110.DBW110");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station7_WorkState = new DataKeyValue("DB110.DBW112");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station8_WorkState = new DataKeyValue("DB110.DBW114");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station9_WorkState = new DataKeyValue("DB110.DBW116");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station10_WorkState = new DataKeyValue("DB110.DBW118");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station11_WorkState = new DataKeyValue("DB110.DBW120");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station12_WorkState = new DataKeyValue("DB110.DBW122");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station13_WorkState = new DataKeyValue("DB110.DBW124");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station14_WorkState = new DataKeyValue("DB110.DBW126");
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region DB110 工位称量重量
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station1_Weight = new DataKeyValue("DB110.DBW150");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 1工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station1_Batch = new DataKeyValue("DB110.DBW152");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station2_Weight = new DataKeyValue("DB110.DBW154");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 2工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station2_Batch = new DataKeyValue("DB110.DBW156");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station3_Weight = new DataKeyValue("DB110.DBW158");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 3工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station3_Batch = new DataKeyValue("DB110.DBW160");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station4_Weight = new DataKeyValue("DB110.DBW162");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 4工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station4_Batch = new DataKeyValue("DB110.DBW164");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station5_Weight = new DataKeyValue("DB110.DBW166");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 5工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station5_Batch = new DataKeyValue("DB110.DBW168");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station6_Weight = new DataKeyValue("DB110.DBW170");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 6工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station6_Batch = new DataKeyValue("DB110.DBW172");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station7_Weight = new DataKeyValue("DB110.DBW174");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 7工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station7_Batch = new DataKeyValue("DB110.DBW176");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station8_Weight = new DataKeyValue("DB110.DBW178");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 8工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station8_Batch = new DataKeyValue("DB110.DBW180");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station9_Weight = new DataKeyValue("DB110.DBW182");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 9工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station9_Batch = new DataKeyValue("DB110.DBW184");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station10_Weight = new DataKeyValue("DB110.DBW186");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 10工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station10_Batch = new DataKeyValue("DB110.DBW188");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station11_Weight = new DataKeyValue("DB110.DBW190");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 11工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station11_Batch = new DataKeyValue("DB110.DBW192");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station12_Weight = new DataKeyValue("DB110.DBW194");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 12工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station12_Batch = new DataKeyValue("DB110.DBW196");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station13_Weight = new DataKeyValue("DB110.DBW198");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 13工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station13_Batch = new DataKeyValue("DB110.DBW200");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station14_Weight = new DataKeyValue("DB110.DBW202");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 14工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station14_Batch = new DataKeyValue("DB110.DBW204");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 15工位称量数量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station15_Weight = new DataKeyValue("DB110.DBW206");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 15工位批次
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Station15_Batch = new DataKeyValue("DB110.DBW208");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// T-Check重量
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_TCheck_Weight = new DataKeyValue("DB110.DBW210");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 总批次号
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_Batch = new DataKeyValue("DB110.DBW212");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region DB1 净值
|
|
|
|
|
public DataKeyValue plt_NetWeight1 = new DataKeyValue("DB104.DBW130");
|
|
|
|
|
public DataKeyValue plt_NetWeight2 = new DataKeyValue("DB104.DBW132");
|
|
|
|
|
public DataKeyValue plt_NetWeight3 = new DataKeyValue("DB104.DBW134");
|
|
|
|
|
public DataKeyValue plt_NetWeight4 = new DataKeyValue("DB104.DBW136");
|
|
|
|
|
public DataKeyValue plt_NetWeight5 = new DataKeyValue("DB104.DBW138");
|
|
|
|
|
public DataKeyValue plt_NetWeight6 = new DataKeyValue("DB104.DBW140");
|
|
|
|
|
public DataKeyValue plt_NetWeight7 = new DataKeyValue("DB104.DBW142");
|
|
|
|
|
public DataKeyValue plt_NetWeight8 = new DataKeyValue("DB104.DBW144");
|
|
|
|
|
public DataKeyValue plt_NetWeight9 = new DataKeyValue("DB104.DBW146");
|
|
|
|
|
public DataKeyValue plt_NetWeight10 = new DataKeyValue("DB104.DBW148");
|
|
|
|
|
public DataKeyValue plt_NetWeight11 = new DataKeyValue("DB104.DBW150");
|
|
|
|
|
public DataKeyValue plt_NetWeight12 = new DataKeyValue("DB104.DBW152");
|
|
|
|
|
public DataKeyValue plt_NetWeight13 = new DataKeyValue("DB104.DBW154");
|
|
|
|
|
public DataKeyValue plt_NetWeight14 = new DataKeyValue("DB104.DBW156");
|
|
|
|
|
public DataKeyValue plt_NetWeight15 = new DataKeyValue("DB104.DBW158");
|
|
|
|
|
public DataKeyValue plt_NetWeight16 = new DataKeyValue("DB104.DBW160");
|
|
|
|
|
public DataKeyValue plt_NetWeightTChecking = new DataKeyValue("DB104.DBW162");
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 设备设置
|
|
|
|
|
|
|
|
|
|
#region 设定重量
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight_Medium1 = new DataKeyValue("DB115.DBW0");
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight_Medium2 = new DataKeyValue("DB115.DBW2");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight_Medium3 = new DataKeyValue("DB115.DBW4");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight_Medium4 = new DataKeyValue("DB115.DBW6");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight_Medium5 = new DataKeyValue("DB115.DBW8");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight_Medium6 = new DataKeyValue("DB115.DBW10");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight_Medium7 = new DataKeyValue("DB115.DBW12");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight_Medium8 = new DataKeyValue("DB115.DBW14");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight_Medium9 = new DataKeyValue("DB115.DBW16");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight_Medium10 = new DataKeyValue("DB115.DBW18");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight_Medium11 = new DataKeyValue("DB115.DBW20");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight_Medium12 = new DataKeyValue("DB115.DBW22");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight_Medium13 = new DataKeyValue("DB115.DBW24");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight_Medium14 = new DataKeyValue("DB115.DBW26");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight_Medium15 = new DataKeyValue("DB115.DBW28");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight_Medium16 = new DataKeyValue("DB115.DBW30");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight_Medium17 = new DataKeyValue("DB115.DBW32");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight_Medium18 = new DataKeyValue("DB115.DBW34");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight_Medium19 = new DataKeyValue("DB115.DBW36");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight_Medium20 = new DataKeyValue("DB115.DBW38");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight_Medium21 = new DataKeyValue("DB115.DBW40");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight_Medium22 = new DataKeyValue("DB115.DBW42");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight_Medium23 = new DataKeyValue("DB115.DBW44");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight_Medium24 = new DataKeyValue("DB115.DBW46");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight_Medium25 = new DataKeyValue("DB115.DBW48");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight_Medium26 = new DataKeyValue("DB115.DBW50");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight_Medium27 = new DataKeyValue("DB115.DBW52");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight_Medium28 = new DataKeyValue("DB115.DBW54");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Weight_Medium29 = new DataKeyValue("DB115.DBW56");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Weight_Medium30 = new DataKeyValue("DB115.DBW58");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Weight_Medium31 = new DataKeyValue("DB115.DBW60");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Weight_Medium32 = new DataKeyValue("DB115.DBW62");
|
|
|
|
|
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight_Low1 = new DataKeyValue("DB115.DBW64");
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight_Low2 = new DataKeyValue("DB115.DBW66");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight_Low3 = new DataKeyValue("DB115.DBW68");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight_Low4 = new DataKeyValue("DB115.DBW70");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight_Low5 = new DataKeyValue("DB115.DBW72");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight_Low6 = new DataKeyValue("DB115.DBW74");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight_Low7 = new DataKeyValue("DB115.DBW76");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight_Low8 = new DataKeyValue("DB115.DBW78");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight_Low9 = new DataKeyValue("DB115.DBW80");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight_Low10 = new DataKeyValue("DB115.DBW82");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight_Low11 = new DataKeyValue("DB115.DBW84");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight_Low12 = new DataKeyValue("DB115.DBW86");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight_Low13 = new DataKeyValue("DB115.DBW88");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight_Low14 = new DataKeyValue("DB115.DBW90");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight_Low15 = new DataKeyValue("DB115.DBW92");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight_Low16 = new DataKeyValue("DB115.DBW94");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight_Low17 = new DataKeyValue("DB115.DBW96");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight_Low18 = new DataKeyValue("DB115.DBW98");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight_Low19 = new DataKeyValue("DB115.DBW100");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight_Low20 = new DataKeyValue("DB115.DBW102");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight_Low21 = new DataKeyValue("DB115.DBW104");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight_Low22 = new DataKeyValue("DB115.DBW106");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight_Low23 = new DataKeyValue("DB115.DBW108");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight_Low24 = new DataKeyValue("DB115.DBW110");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight_Low25 = new DataKeyValue("DB115.DBW112");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight_Low26 = new DataKeyValue("DB115.DBW114");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight_Low27 = new DataKeyValue("DB115.DBW116");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight_Low28 = new DataKeyValue("DB115.DBW118");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Weight_Low29 = new DataKeyValue("DB115.DBW120");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Weight_Low30 = new DataKeyValue("DB115.DBW122");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Weight_Low31 = new DataKeyValue("DB115.DBW124");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Weight_Low32 = new DataKeyValue("DB115.DBW126");
|
|
|
|
|
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight_Advance1 = new DataKeyValue("DB115.DBW128");
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Weight_Advance2 = new DataKeyValue("DB115.DBW130");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight_Advance3 = new DataKeyValue("DB115.DBW132");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Weight_Advance4 = new DataKeyValue("DB115.DBW134");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight_Advance5 = new DataKeyValue("DB115.DBW136");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Weight_Advance6 = new DataKeyValue("DB115.DBW138");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight_Advance7 = new DataKeyValue("DB115.DBW140");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Weight_Advance8 = new DataKeyValue("DB115.DBW142");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight_Advance9 = new DataKeyValue("DB115.DBW144");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Weight_Advance10 = new DataKeyValue("DB115.DBW146");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight_Advance11 = new DataKeyValue("DB115.DBW148");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Weight_Advance12 = new DataKeyValue("DB115.DBW150");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight_Advance13 = new DataKeyValue("DB115.DBW152");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Weight_Advance14 = new DataKeyValue("DB115.DBW154");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight_Advance15 = new DataKeyValue("DB115.DBW156");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Weight_Advance16 = new DataKeyValue("DB115.DBW158");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight_Advance17 = new DataKeyValue("DB115.DBW160");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Weight_Advance18 = new DataKeyValue("DB115.DBW162");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight_Advance19 = new DataKeyValue("DB115.DBW164");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Weight_Advance20 = new DataKeyValue("DB115.DBW166");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight_Advance21 = new DataKeyValue("DB115.DBW168");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Weight_Advance22 = new DataKeyValue("DB115.DBW170");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight_Advance23 = new DataKeyValue("DB115.DBW172");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Weight_Advance24 = new DataKeyValue("DB115.DBW174");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight_Advance25 = new DataKeyValue("DB115.DBW176");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Weight_Advance26 = new DataKeyValue("DB115.DBW178");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight_Advance27 = new DataKeyValue("DB115.DBW180");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Weight_Advance28 = new DataKeyValue("DB115.DBW182");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Weight_Advance29 = new DataKeyValue("DB115.DBW184");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Weight_Advance30 = new DataKeyValue("DB115.DBW186");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Weight_Advance31 = new DataKeyValue("DB115.DBW188");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Weight_Advance32 = new DataKeyValue("DB115.DBW190");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 设定速度
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Speed_Hight1 = new DataKeyValue("DB115.DBW192");
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Speed_Hight2 = new DataKeyValue("DB115.DBW194");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Speed_Hight3 = new DataKeyValue("DB115.DBW196");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Speed_Hight4 = new DataKeyValue("DB115.DBW198");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Speed_Hight5 = new DataKeyValue("DB115.DBW200");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Speed_Hight6 = new DataKeyValue("DB115.DBW202");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Speed_Hight7 = new DataKeyValue("DB115.DBW204");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Speed_Hight8 = new DataKeyValue("DB115.DBW206");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Speed_Hight9 = new DataKeyValue("DB115.DBW208");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Speed_Hight10 = new DataKeyValue("DB115.DBW210");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Speed_Hight11 = new DataKeyValue("DB115.DBW212");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Speed_Hight12 = new DataKeyValue("DB115.DBW214");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Speed_Hight13 = new DataKeyValue("DB115.DBW216");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Speed_Hight14 = new DataKeyValue("DB115.DBW218");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Speed_Hight15 = new DataKeyValue("DB115.DBW220");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Speed_Hight16 = new DataKeyValue("DB115.DBW222");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Speed_Hight17 = new DataKeyValue("DB115.DBW224");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Speed_Hight18 = new DataKeyValue("DB115.DBW226");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Speed_Hight19 = new DataKeyValue("DB115.DBW228");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Speed_Hight20 = new DataKeyValue("DB115.DBW230");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Speed_Hight21 = new DataKeyValue("DB115.DBW232");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Speed_Hight22 = new DataKeyValue("DB115.DBW234");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Speed_Hight23 = new DataKeyValue("DB115.DBW236");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Speed_Hight24 = new DataKeyValue("DB115.DBW238");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Speed_Hight25 = new DataKeyValue("DB115.DBW240");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Speed_Hight26 = new DataKeyValue("DB115.DBW242");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Speed_Hight27 = new DataKeyValue("DB115.DBW244");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Speed_Hight28 = new DataKeyValue("DB115.DBW246");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Speed_Hight29 = new DataKeyValue("DB115.DBW248");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Speed_Hight30 = new DataKeyValue("DB115.DBW250");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Speed_Hight31 = new DataKeyValue("DB115.DBW252");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Speed_Hight32 = new DataKeyValue("DB115.DBW254");
|
|
|
|
|
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Speed_Medium1 = new DataKeyValue("DB115.DBW256");
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Speed_Medium2 = new DataKeyValue("DB115.DBW258");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Speed_Medium3 = new DataKeyValue("DB115.DBW260");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Speed_Medium4 = new DataKeyValue("DB115.DBW262");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Speed_Medium5 = new DataKeyValue("DB115.DBW264");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Speed_Medium6 = new DataKeyValue("DB115.DBW266");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Speed_Medium7 = new DataKeyValue("DB115.DBW268");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Speed_Medium8 = new DataKeyValue("DB115.DBW270");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Speed_Medium9 = new DataKeyValue("DB115.DBW272");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Speed_Medium10 = new DataKeyValue("DB115.DBW274");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Speed_Medium11 = new DataKeyValue("DB115.DBW276");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Speed_Medium12 = new DataKeyValue("DB115.DBW278");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Speed_Medium13 = new DataKeyValue("DB115.DBW280");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Speed_Medium14 = new DataKeyValue("DB115.DBW282");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Speed_Medium15 = new DataKeyValue("DB115.DBW284");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Speed_Medium16 = new DataKeyValue("DB115.DBW286");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Speed_Medium17 = new DataKeyValue("DB115.DBW288");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Speed_Medium18 = new DataKeyValue("DB115.DBW290");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Speed_Medium19 = new DataKeyValue("DB115.DBW292");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Speed_Medium20 = new DataKeyValue("DB115.DBW294");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Speed_Medium21 = new DataKeyValue("DB115.DBW296");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Speed_Medium22 = new DataKeyValue("DB115.DBW298");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Speed_Medium23 = new DataKeyValue("DB115.DBW300");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Speed_Medium24 = new DataKeyValue("DB115.DBW302");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Speed_Medium25 = new DataKeyValue("DB115.DBW304");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Speed_Medium26 = new DataKeyValue("DB115.DBW306");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Speed_Medium27 = new DataKeyValue("DB115.DBW308");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Speed_Medium28 = new DataKeyValue("DB115.DBW310");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Speed_Medium29 = new DataKeyValue("DB115.DBW312");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Speed_Medium30 = new DataKeyValue("DB115.DBW314");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Speed_Medium31 = new DataKeyValue("DB115.DBW316");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Speed_Medium32 = new DataKeyValue("DB115.DBW318");
|
|
|
|
|
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Speed_Low1 = new DataKeyValue("DB115.DBW320");
|
|
|
|
|
public DataKeyValue plt_Set_Station1_Speed_Low2 = new DataKeyValue("DB115.DBW322");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Speed_Low3 = new DataKeyValue("DB115.DBW324");
|
|
|
|
|
public DataKeyValue plt_Set_Station2_Speed_Low4 = new DataKeyValue("DB115.DBW326");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Speed_Low5 = new DataKeyValue("DB115.DBW328");
|
|
|
|
|
public DataKeyValue plt_Set_Station3_Speed_Low6 = new DataKeyValue("DB115.DBW330");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Speed_Low7 = new DataKeyValue("DB115.DBW332");
|
|
|
|
|
public DataKeyValue plt_Set_Station4_Speed_Low8 = new DataKeyValue("DB115.DBW334");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Speed_Low9 = new DataKeyValue("DB115.DBW336");
|
|
|
|
|
public DataKeyValue plt_Set_Station5_Speed_Low10 = new DataKeyValue("DB115.DBW338");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Speed_Low11 = new DataKeyValue("DB115.DBW340");
|
|
|
|
|
public DataKeyValue plt_Set_Station6_Speed_Low12 = new DataKeyValue("DB115.DBW342");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Speed_Low13 = new DataKeyValue("DB115.DBW344");
|
|
|
|
|
public DataKeyValue plt_Set_Station7_Speed_Low14 = new DataKeyValue("DB115.DBW346");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Speed_Low15 = new DataKeyValue("DB115.DBW348");
|
|
|
|
|
public DataKeyValue plt_Set_Station8_Speed_Low16 = new DataKeyValue("DB115.DBW350");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Speed_Low17 = new DataKeyValue("DB115.DBW352");
|
|
|
|
|
public DataKeyValue plt_Set_Station9_Speed_Low18 = new DataKeyValue("DB115.DBW354");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Speed_Low19 = new DataKeyValue("DB115.DBW356");
|
|
|
|
|
public DataKeyValue plt_Set_Station10_Speed_Low20 = new DataKeyValue("DB115.DBW358");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Speed_Low21 = new DataKeyValue("DB115.DBW360");
|
|
|
|
|
public DataKeyValue plt_Set_Station11_Speed_Low22 = new DataKeyValue("DB115.DBW362");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Speed_Low23 = new DataKeyValue("DB115.DBW364");
|
|
|
|
|
public DataKeyValue plt_Set_Station12_Speed_Low24 = new DataKeyValue("DB115.DBW366");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Speed_Low25 = new DataKeyValue("DB115.DBW368");
|
|
|
|
|
public DataKeyValue plt_Set_Station13_Speed_Low26 = new DataKeyValue("DB115.DBW370");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Speed_Low27 = new DataKeyValue("DB115.DBW372");
|
|
|
|
|
public DataKeyValue plt_Set_Station14_Speed_Low28 = new DataKeyValue("DB115.DBW374");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Speed_Low29 = new DataKeyValue("DB115.DBW376");
|
|
|
|
|
public DataKeyValue plt_Set_Station15_Speed_Low30 = new DataKeyValue("DB115.DBW378");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Speed_Low31 = new DataKeyValue("DB115.DBW380");
|
|
|
|
|
public DataKeyValue plt_Set_Station16_Speed_Low32 = new DataKeyValue("DB115.DBW382");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region DB127 条码防误数据表
|
|
|
|
|
public DataKeyValue plt_Station1_Barcode1 = new DataKeyValue("DB127.DBW2");
|
|
|
|
|
public DataKeyValue plt_Station1_Barcode2 = new DataKeyValue("DB127.DBW4");
|
|
|
|
|
public DataKeyValue plt_Station2_Barcode3 = new DataKeyValue("DB127.DBW6");
|
|
|
|
|
public DataKeyValue plt_Station2_Barcode4 = new DataKeyValue("DB127.DBW8");
|
|
|
|
|
public DataKeyValue plt_Station3_Barcode5 = new DataKeyValue("DB127.DBW10");
|
|
|
|
|
public DataKeyValue plt_Station3_Barcode6 = new DataKeyValue("DB127.DBW12");
|
|
|
|
|
public DataKeyValue plt_Station4_Barcode7 = new DataKeyValue("DB127.DBW14");
|
|
|
|
|
public DataKeyValue plt_Station4_Barcode8 = new DataKeyValue("DB127.DBW16");
|
|
|
|
|
public DataKeyValue plt_Station5_Barcode9 = new DataKeyValue("DB127.DBW18");
|
|
|
|
|
public DataKeyValue plt_Station5_Barcode10 = new DataKeyValue("DB127.DBW20");
|
|
|
|
|
public DataKeyValue plt_Station6_Barcode11 = new DataKeyValue("DB127.DBW22");
|
|
|
|
|
public DataKeyValue plt_Station6_Barcode12 = new DataKeyValue("DB127.DBW24");
|
|
|
|
|
public DataKeyValue plt_Station7_Barcode13 = new DataKeyValue("DB127.DBW26");
|
|
|
|
|
public DataKeyValue plt_Station7_Barcode14 = new DataKeyValue("DB127.DBW28");
|
|
|
|
|
public DataKeyValue plt_Station8_Barcode15 = new DataKeyValue("DB127.DBW30");
|
|
|
|
|
public DataKeyValue plt_Station8_Barcode16 = new DataKeyValue("DB127.DBW32");
|
|
|
|
|
public DataKeyValue plt_Station9_Barcode17 = new DataKeyValue("DB127.DBW34");
|
|
|
|
|
public DataKeyValue plt_Station9_Barcode18 = new DataKeyValue("DB127.DBW36");
|
|
|
|
|
public DataKeyValue plt_Station10_Barcode19 = new DataKeyValue("DB127.DBW38");
|
|
|
|
|
public DataKeyValue plt_Station10_Barcode20 = new DataKeyValue("DB127.DBW40");
|
|
|
|
|
public DataKeyValue plt_Station11_Barcode21 = new DataKeyValue("DB127.DBW42");
|
|
|
|
|
public DataKeyValue plt_Station11_Barcode22 = new DataKeyValue("DB127.DBW44");
|
|
|
|
|
public DataKeyValue plt_Station12_Barcode23 = new DataKeyValue("DB127.DBW46");
|
|
|
|
|
public DataKeyValue plt_Station12_Barcode24 = new DataKeyValue("DB127.DBW48");
|
|
|
|
|
public DataKeyValue plt_Station13_Barcode25 = new DataKeyValue("DB127.DBW50");
|
|
|
|
|
public DataKeyValue plt_Station13_Barcode26 = new DataKeyValue("DB127.DBW52");
|
|
|
|
|
public DataKeyValue plt_Station14_Barcode27 = new DataKeyValue("DB127.DBW54");
|
|
|
|
|
public DataKeyValue plt_Station14_Barcode28 = new DataKeyValue("DB127.DBW56");
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 溶剂扫码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_solvent_BarCode = new DataKeyValue("DB30.DBW4");
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC连接状态
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_plc_State = new DataKeyValue("DB104.DBW0");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC启动
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_plc_Start = new DataKeyValue("DB104.DBX4.0");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC停止
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_plc_Stop = new DataKeyValue("DB104.DBX4.1");
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC——小料
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_plc_SystemRunning = new DataKeyValue("DB104.DBX4.1");
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 普力通上位机-溶剂
|
|
|
|
|
|
|
|
|
|
#region DB109
|
|
|
|
|
public DataKeyValue solvent_Set_station_U1_code = new DataKeyValue("DB109.DBW0");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U1_set = new DataKeyValue("DB109.DBW2");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U1_barcode = new DataKeyValue("DB109.DBW4");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U2_code = new DataKeyValue("DB109.DBW6");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U2_set = new DataKeyValue("DB109.DBW8");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U2_barcode = new DataKeyValue("DB109.DBW10");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U3_code = new DataKeyValue("DB109.DBW12");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U3_set = new DataKeyValue("DB109.DBW14");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U3_barcode = new DataKeyValue("DB109.DBW16");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U4_code = new DataKeyValue("DB109.DBW18");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U4_set = new DataKeyValue("DB109.DBW20");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U4_barcode = new DataKeyValue("DB109.DBW22");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U5_code = new DataKeyValue("DB109.DBW24");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U5_set = new DataKeyValue("DB109.DBW26");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U5_barcode = new DataKeyValue("DB109.DBW28");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U6_code = new DataKeyValue("DB109.DBW30");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U6_set = new DataKeyValue("DB109.DBW32");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U6_barcode = new DataKeyValue("DB109.DBW34");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U7_code = new DataKeyValue("DB109.DBW36");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U7_set = new DataKeyValue("DB109.DBW38");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U7_barcode = new DataKeyValue("DB109.DBW40");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U8_code = new DataKeyValue("DB109.DBW42");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U8_set = new DataKeyValue("DB109.DBW44");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U8_barcode = new DataKeyValue("DB109.DBW46");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U9_code = new DataKeyValue("DB109.DBW48");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U9_set = new DataKeyValue("DB109.DBW50");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U9_barcode = new DataKeyValue("DB109.DBW52");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U10_code = new DataKeyValue("DB109.DBW54");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U10_set = new DataKeyValue("DB109.DBW56");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U10_barcode = new DataKeyValue("DB109.DBW58");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U11_code = new DataKeyValue("DB109.DBW60");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U11_set = new DataKeyValue("DB109.DBW62");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U11_barcode = new DataKeyValue("DB109.DBW64");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U12_code = new DataKeyValue("DB109.DBW66");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U12_set = new DataKeyValue("DB109.DBW68");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U12_barcode = new DataKeyValue("DB109.DBW70");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U13_code = new DataKeyValue("DB109.DBW72");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U13_set = new DataKeyValue("DB109.DBW74");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U13_barcode = new DataKeyValue("DB109.DBW76");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U14_code = new DataKeyValue("DB109.DBW78");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U14_set = new DataKeyValue("DB109.DBW80");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U14_barcode = new DataKeyValue("DB109.DBW82");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U15_code = new DataKeyValue("DB109.DBW84");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U15_set = new DataKeyValue("DB109.DBW86");
|
|
|
|
|
public DataKeyValue solvent_Set_station_U15_barcode = new DataKeyValue("DB109.DBW88");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U0_stationStatus = new DataKeyValue("DB109.DBW90");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U0_actWeight = new DataKeyValue("DB109.DBW92");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U0_doorStatus = new DataKeyValue("DB109.DBW94");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U0_vibraStatus = new DataKeyValue("DB109.DBW96");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U0_plusStatus = new DataKeyValue("DB109.DBW98");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U1_stationStatus = new DataKeyValue("DB109.DBW100");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U1_actWeight = new DataKeyValue("DB109.DBW102");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U1_doorStatus = new DataKeyValue("DB109.DBW104");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U1_vibraStatus = new DataKeyValue("DB109.DBW106");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U1_plusStatus = new DataKeyValue("DB109.DBW108");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U2_stationStatus = new DataKeyValue("DB109.DBW110");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U2_actWeight = new DataKeyValue("DB109.DBW112");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U2_doorStatus = new DataKeyValue("DB109.DBW114");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U2_vibraStatus = new DataKeyValue("DB109.DBW116");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U2_plusStatus = new DataKeyValue("DB109.DBW118");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U3_stationStatus = new DataKeyValue("DB109.DBW120");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U3_actWeight = new DataKeyValue("DB109.DBW122");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U3_doorStatus = new DataKeyValue("DB109.DBW124");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U3_vibraStatus = new DataKeyValue("DB109.DBW126");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U3_plusStatus = new DataKeyValue("DB109.DBW128");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U4_stationStatus = new DataKeyValue("DB109.DBW130");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U4_actWeight = new DataKeyValue("DB109.DBW132");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U4_doorStatus = new DataKeyValue("DB109.DBW134");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U4_vibraStatus = new DataKeyValue("DB109.DBW136");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U4_plusStatus = new DataKeyValue("DB109.DBW138");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U5_stationStatus = new DataKeyValue("DB109.DBW140");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U5_actWeight = new DataKeyValue("DB109.DBW142");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U5_doorStatus = new DataKeyValue("DB109.DBW144");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U5_vibraStatus = new DataKeyValue("DB109.DBW146");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U5_plusStatus = new DataKeyValue("DB109.DBW148");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U6_stationStatus = new DataKeyValue("DB109.DBW150");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U6_actWeight = new DataKeyValue("DB109.DBW152");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U6_doorStatus = new DataKeyValue("DB109.DBW154");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U6_vibraStatus = new DataKeyValue("DB109.DBW156");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U6_plusStatus = new DataKeyValue("DB109.DBW158");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U7_stationStatus = new DataKeyValue("DB109.DBW160");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U7_actWeight = new DataKeyValue("DB109.DBW162");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U7_doorStatus = new DataKeyValue("DB109.DBW164");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U7_vibraStatus = new DataKeyValue("DB109.DBW166");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U7_plusStatus = new DataKeyValue("DB109.DBW168");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U8_stationStatus = new DataKeyValue("DB109.DBW170");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U8_actWeight = new DataKeyValue("DB109.DBW172");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U8_doorStatus = new DataKeyValue("DB109.DBW174");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U8_vibraStatus = new DataKeyValue("DB109.DBW176");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U8_plusStatus = new DataKeyValue("DB109.DBW178");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U9_stationStatus = new DataKeyValue("DB109.DBW180");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U9_actWeight = new DataKeyValue("DB109.DBW182");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U9_doorStatus = new DataKeyValue("DB109.DBW184");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U9_vibraStatus = new DataKeyValue("DB109.DBW186");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U9_plusStatus = new DataKeyValue("DB109.DBW188");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U10_stationStatus = new DataKeyValue("DB109.DBW190");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U10_actWeight = new DataKeyValue("DB109.DBW192");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U10_doorStatus = new DataKeyValue("DB109.DBW194");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U10_vibraStatus = new DataKeyValue("DB109.DBW196");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U10_plusStatus = new DataKeyValue("DB109.DBW198");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U11_stationStatus = new DataKeyValue("DB109.DBW200");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U11_actWeight = new DataKeyValue("DB109.DBW202");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U11_doorStatus = new DataKeyValue("DB109.DBW204");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U11_vibraStatus = new DataKeyValue("DB109.DBW206");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U11_plusStatus = new DataKeyValue("DB109.DBW208");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U12_stationStatus = new DataKeyValue("DB109.DBW210");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U12_actWeight = new DataKeyValue("DB109.DBW212");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U12_doorStatus = new DataKeyValue("DB109.DBW214");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U12_vibraStatus = new DataKeyValue("DB109.DBW216");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U12_plusStatus = new DataKeyValue("DB109.DBW218");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U13_stationStatus = new DataKeyValue("DB109.DBW220");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U13_actWeight = new DataKeyValue("DB109.DBW222");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U13_doorStatus = new DataKeyValue("DB109.DBW224");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U13_vibraStatus = new DataKeyValue("DB109.DBW226");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U13_plusStatus = new DataKeyValue("DB109.DBW228");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U14_stationStatus = new DataKeyValue("DB109.DBW230");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U14_actWeight = new DataKeyValue("DB109.DBW232");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U14_doorStatus = new DataKeyValue("DB109.DBW234");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U14_vibraStatus = new DataKeyValue("DB109.DBW236");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U14_plusStatus = new DataKeyValue("DB109.DBW238");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U15_stationStatus = new DataKeyValue("DB109.DBW240");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U15_actWeight = new DataKeyValue("DB109.DBW242");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U15_doorStatus = new DataKeyValue("DB109.DBW244");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U15_vibraStatus = new DataKeyValue("DB109.DBW246");
|
|
|
|
|
public DataKeyValue solvent_Set_status_U15_plusStatus = new DataKeyValue("DB109.DBW248");
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region DB108
|
|
|
|
|
public DataKeyValue solvent_scaleWeight = new DataKeyValue("DB108.DBW0");
|
|
|
|
|
public DataKeyValue solvent_finishedNum = new DataKeyValue("DB108.DBW2");
|
|
|
|
|
public DataKeyValue solvent_needWeight = new DataKeyValue("DB108.DBW4");
|
|
|
|
|
public DataKeyValue solvent_status = new DataKeyValue("DB108.DBW6");
|
|
|
|
|
public DataKeyValue solvent_Set_R = new DataKeyValue("DB108.DBW8");
|
|
|
|
|
public DataKeyValue solvent_Tol_R = new DataKeyValue("DB108.DBW10");
|
|
|
|
|
public DataKeyValue solvent_Act_Weight = new DataKeyValue("DB108.DBW12");
|
|
|
|
|
public DataKeyValue solvent_Act_Tol = new DataKeyValue("DB108.DBW14");
|
|
|
|
|
public DataKeyValue solvent_RecipeNo = new DataKeyValue("DB108.DBW16");
|
|
|
|
|
public DataKeyValue solvent_reqSerial = new DataKeyValue("DB108.DBW18");//设定批次
|
|
|
|
|
public DataKeyValue solvent_Total = new DataKeyValue("DB108.DBW20");
|
|
|
|
|
public DataKeyValue solvent_startScale = new DataKeyValue("DB108.DBW22");
|
|
|
|
|
public DataKeyValue solvent_stopScale = new DataKeyValue("DB108.DBW24");
|
|
|
|
|
public DataKeyValue solvent_DosStep0_MatCode_1 = new DataKeyValue("DB108.DBW26");
|
|
|
|
|
public DataKeyValue solvent_DosStep0_Set_1 = new DataKeyValue("DB108.DBW28");
|
|
|
|
|
public DataKeyValue solvent_DosStep0_Tolance_1 = new DataKeyValue("DB108.DBW30");
|
|
|
|
|
public DataKeyValue solvent_DosStep1_MatCode_1 = new DataKeyValue("DB108.DBW32");
|
|
|
|
|
public DataKeyValue solvent_DosStep1_Set_1 = new DataKeyValue("DB108.DBW34");
|
|
|
|
|
public DataKeyValue solvent_DosStep1_Tolance_1 = new DataKeyValue("DB108.DBW36");
|
|
|
|
|
public DataKeyValue solvent_DosStep2_MatCode_1 = new DataKeyValue("DB108.DBW38");
|
|
|
|
|
public DataKeyValue solvent_DosStep2_Set_1 = new DataKeyValue("DB108.DBW40");
|
|
|
|
|
public DataKeyValue solvent_DosStep2_Tolance_1 = new DataKeyValue("DB108.DBW42");
|
|
|
|
|
public DataKeyValue solvent_DosStep3_MatCode_1 = new DataKeyValue("DB108.DBW44");
|
|
|
|
|
public DataKeyValue solvent_DosStep3_Set_1 = new DataKeyValue("DB108.DBW46");
|
|
|
|
|
public DataKeyValue solvent_DosStep3_Tolance_1 = new DataKeyValue("DB108.DBW48");
|
|
|
|
|
public DataKeyValue solvent_DosStep4_MatCode_1 = new DataKeyValue("DB108.DBW50");
|
|
|
|
|
public DataKeyValue solvent_DosStep4_Set_1 = new DataKeyValue("DB108.DBW52");
|
|
|
|
|
public DataKeyValue solvent_DosStep4_Tolance_1 = new DataKeyValue("DB108.DBW54");
|
|
|
|
|
public DataKeyValue solvent_DosStep5_MatCode_1 = new DataKeyValue("DB108.DBW56");
|
|
|
|
|
public DataKeyValue solvent_DosStep5_Set_1 = new DataKeyValue("DB108.DBW58");
|
|
|
|
|
public DataKeyValue solvent_DosStep5_Tolance_1 = new DataKeyValue("DB108.DBW60");
|
|
|
|
|
public DataKeyValue solvent_DosStep6_MatCode_1 = new DataKeyValue("DB108.DBW62");
|
|
|
|
|
public DataKeyValue solvent_DosStep6_Set_1 = new DataKeyValue("DB108.DBW64");
|
|
|
|
|
public DataKeyValue solvent_DosStep6_Tolance_1 = new DataKeyValue("DB108.DBW66");
|
|
|
|
|
public DataKeyValue solvent_DosStep7_MatCode_1 = new DataKeyValue("DB108.DBW68");
|
|
|
|
|
public DataKeyValue solvent_DosStep7_Set_1 = new DataKeyValue("DB108.DBW70");
|
|
|
|
|
public DataKeyValue solvent_DosStep7_Tolance_1 = new DataKeyValue("DB108.DBW72");
|
|
|
|
|
public DataKeyValue solvent_DosStep8_MatCode_1 = new DataKeyValue("DB108.DBW74");
|
|
|
|
|
public DataKeyValue solvent_DosStep8_Set_1 = new DataKeyValue("DB108.DBW76");
|
|
|
|
|
public DataKeyValue solvent_DosStep8_Tolance_1 = new DataKeyValue("DB108.DBW78");
|
|
|
|
|
public DataKeyValue solvent_DosStep9_MatCode_1 = new DataKeyValue("DB108.DBW80");
|
|
|
|
|
public DataKeyValue solvent_DosStep9_Set_1 = new DataKeyValue("DB108.DBW82");
|
|
|
|
|
public DataKeyValue solvent_DosStep9_Tolance_1 = new DataKeyValue("DB108.DBW84");
|
|
|
|
|
public DataKeyValue solvent_DosStep10_MatCode_1 = new DataKeyValue("DB108.DBW86");
|
|
|
|
|
public DataKeyValue solvent_DosStep10_Set_1 = new DataKeyValue("DB108.DBW88");
|
|
|
|
|
public DataKeyValue solvent_DosStep10_Tolance_1 = new DataKeyValue("DB108.DBW90");
|
|
|
|
|
public DataKeyValue solvent_DosStep11_MatCode_1 = new DataKeyValue("DB108.DBW92");
|
|
|
|
|
public DataKeyValue solvent_DosStep11_Set_1 = new DataKeyValue("DB108.DBW94");
|
|
|
|
|
public DataKeyValue solvent_DosStep11_Tolance_1 = new DataKeyValue("DB108.DBW96");
|
|
|
|
|
public DataKeyValue solvent_DosStep12_MatCode_1 = new DataKeyValue("DB108.DBW98");
|
|
|
|
|
public DataKeyValue solvent_DosStep12_Set_1 = new DataKeyValue("DB108.DBW100");
|
|
|
|
|
public DataKeyValue solvent_DosStep12_Tolance_1 = new DataKeyValue("DB108.DBW102");
|
|
|
|
|
public DataKeyValue solvent_DosStep13_MatCode_1 = new DataKeyValue("DB108.DBW104");
|
|
|
|
|
public DataKeyValue solvent_DosStep13_Set_1 = new DataKeyValue("DB108.DBW106");
|
|
|
|
|
public DataKeyValue solvent_DosStep13_Tolance_1 = new DataKeyValue("DB108.DBW108");
|
|
|
|
|
public DataKeyValue solvent_DosStep14_MatCode_1 = new DataKeyValue("DB108.DBW110");
|
|
|
|
|
public DataKeyValue solvent_DosStep14_Set_1 = new DataKeyValue("DB108.DBW112");
|
|
|
|
|
public DataKeyValue solvent_DosStep14_Tolance_1 = new DataKeyValue("DB108.DBW114");
|
|
|
|
|
public DataKeyValue solvent_DosStep15_MatCode_1 = new DataKeyValue("DB108.DBW116");
|
|
|
|
|
public DataKeyValue solvent_DosStep15_Set_1 = new DataKeyValue("DB108.DBW118");
|
|
|
|
|
public DataKeyValue solvent_DosStep15_Tolance_1 = new DataKeyValue("DB108.DBW120");
|
|
|
|
|
public DataKeyValue solvent_DosStep16_MatCode_1 = new DataKeyValue("DB108.DBW122");
|
|
|
|
|
public DataKeyValue solvent_DosStep16_Set_1 = new DataKeyValue("DB108.DBW124");
|
|
|
|
|
public DataKeyValue solvent_DosStep16_Tolance_1 = new DataKeyValue("DB108.DBW126");
|
|
|
|
|
public DataKeyValue solvent_DosStep17_MatCode_1 = new DataKeyValue("DB108.DBW128");
|
|
|
|
|
public DataKeyValue solvent_DosStep17_Set_1 = new DataKeyValue("DB108.DBW130");
|
|
|
|
|
public DataKeyValue solvent_DosStep17_Tolance_1 = new DataKeyValue("DB108.DBW132");
|
|
|
|
|
public DataKeyValue solvent_DosStep18_MatCode_1 = new DataKeyValue("DB108.DBW134");
|
|
|
|
|
public DataKeyValue solvent_DosStep18_Set_1 = new DataKeyValue("DB108.DBW136");
|
|
|
|
|
public DataKeyValue solvent_DosStep18_Tolance_1 = new DataKeyValue("DB108.DBW138");
|
|
|
|
|
public DataKeyValue solvent_DosStep19_MatCode_1 = new DataKeyValue("DB108.DBW140");
|
|
|
|
|
public DataKeyValue solvent_DosStep19_Set_1 = new DataKeyValue("DB108.DBW142");
|
|
|
|
|
public DataKeyValue solvent_DosStep19_Tolance_1 = new DataKeyValue("DB108.DBW144");
|
|
|
|
|
public DataKeyValue solvent_DosStep20_MatCode_1 = new DataKeyValue("DB108.DBW146");
|
|
|
|
|
public DataKeyValue solvent_DosStep20_Set_1 = new DataKeyValue("DB108.DBW148");
|
|
|
|
|
public DataKeyValue solvent_DosStep20_Tolance_1 = new DataKeyValue("DB108.DBW150");
|
|
|
|
|
public DataKeyValue solvent_SaveData0_RMatCode1 = new DataKeyValue("DB108.DBW152");
|
|
|
|
|
public DataKeyValue solvent_SaveData0_RActWeight_1 = new DataKeyValue("DB108.DBW154");
|
|
|
|
|
public DataKeyValue solvent_SaveData0_RActTol_1 = new DataKeyValue("DB108.DBW156");
|
|
|
|
|
public DataKeyValue solvent_SaveData1_RMatCode1 = new DataKeyValue("DB108.DBW158");
|
|
|
|
|
public DataKeyValue solvent_SaveData1_RActWeight_1 = new DataKeyValue("DB108.DBW160");
|
|
|
|
|
public DataKeyValue solvent_SaveData1_RActTol_1 = new DataKeyValue("DB108.DBW162");
|
|
|
|
|
public DataKeyValue solvent_SaveData2_RMatCode1 = new DataKeyValue("DB108.DBW164");
|
|
|
|
|
public DataKeyValue solvent_SaveData2_RActWeight_1 = new DataKeyValue("DB108.DBW166");
|
|
|
|
|
public DataKeyValue solvent_SaveData2_RActTol_1 = new DataKeyValue("DB108.DBW168");
|
|
|
|
|
public DataKeyValue solvent_SaveData3_RMatCode1 = new DataKeyValue("DB108.DBW170");
|
|
|
|
|
public DataKeyValue solvent_SaveData3_RActWeight_1 = new DataKeyValue("DB108.DBW172");
|
|
|
|
|
public DataKeyValue solvent_SaveData3_RActTol_1 = new DataKeyValue("DB108.DBW174");
|
|
|
|
|
public DataKeyValue solvent_SaveData4_RMatCode1 = new DataKeyValue("DB108.DBW176");
|
|
|
|
|
public DataKeyValue solvent_SaveData4_RActWeight_1 = new DataKeyValue("DB108.DBW178");
|
|
|
|
|
public DataKeyValue solvent_SaveData4_RActTol_1 = new DataKeyValue("DB108.DBW180");
|
|
|
|
|
public DataKeyValue solvent_SaveData5_RMatCode1 = new DataKeyValue("DB108.DBW182");
|
|
|
|
|
public DataKeyValue solvent_SaveData5_RActWeight_1 = new DataKeyValue("DB108.DBW184");
|
|
|
|
|
public DataKeyValue solvent_SaveData5_RActTol_1 = new DataKeyValue("DB108.DBW186");
|
|
|
|
|
public DataKeyValue solvent_SaveData6_RMatCode1 = new DataKeyValue("DB108.DBW188");
|
|
|
|
|
public DataKeyValue solvent_SaveData6_RActWeight_1 = new DataKeyValue("DB108.DBW190");
|
|
|
|
|
public DataKeyValue solvent_SaveData6_RActTol_1 = new DataKeyValue("DB108.DBW192");
|
|
|
|
|
public DataKeyValue solvent_SaveData7_RMatCode1 = new DataKeyValue("DB108.DBW194");
|
|
|
|
|
public DataKeyValue solvent_SaveData7_RActWeight_1 = new DataKeyValue("DB108.DBW196");
|
|
|
|
|
public DataKeyValue solvent_SaveData7_RActTol_1 = new DataKeyValue("DB108.DBW198");
|
|
|
|
|
public DataKeyValue solvent_SaveData8_RMatCode1 = new DataKeyValue("DB108.DBW200");
|
|
|
|
|
public DataKeyValue solvent_SaveData8_RActWeight_1 = new DataKeyValue("DB108.DBW202");
|
|
|
|
|
public DataKeyValue solvent_SaveData8_RActTol_1 = new DataKeyValue("DB108.DBW204");
|
|
|
|
|
public DataKeyValue solvent_SaveData9_RMatCode1 = new DataKeyValue("DB108.DBW206");
|
|
|
|
|
public DataKeyValue solvent_SaveData9_RActWeight_1 = new DataKeyValue("DB108.DBW208");
|
|
|
|
|
public DataKeyValue solvent_SaveData9_RActTol_1 = new DataKeyValue("DB108.DBW210");
|
|
|
|
|
public DataKeyValue solvent_SaveData10_RMatCode1 = new DataKeyValue("DB108.DBW212");
|
|
|
|
|
public DataKeyValue solvent_SaveData10_RActWeight_1 = new DataKeyValue("DB108.DBW214");
|
|
|
|
|
public DataKeyValue solvent_SaveData10_RActTol_1 = new DataKeyValue("DB108.DBW216");
|
|
|
|
|
public DataKeyValue solvent_SaveData11_RMatCode1 = new DataKeyValue("DB108.DBW218");
|
|
|
|
|
public DataKeyValue solvent_SaveData11_RActWeight_1 = new DataKeyValue("DB108.DBW220");
|
|
|
|
|
public DataKeyValue solvent_SaveData11_RActTol_1 = new DataKeyValue("DB108.DBW222");
|
|
|
|
|
public DataKeyValue solvent_SaveData12_RMatCode1 = new DataKeyValue("DB108.DBW224");
|
|
|
|
|
public DataKeyValue solvent_SaveData12_RActWeight_1 = new DataKeyValue("DB108.DBW226");
|
|
|
|
|
public DataKeyValue solvent_SaveData12_RActTol_1 = new DataKeyValue("DB108.DBW228");
|
|
|
|
|
public DataKeyValue solvent_SaveData13_RMatCode1 = new DataKeyValue("DB108.DBW230");
|
|
|
|
|
public DataKeyValue solvent_SaveData13_RActWeight_1 = new DataKeyValue("DB108.DBW232");
|
|
|
|
|
public DataKeyValue solvent_SaveData13_RActTol_1 = new DataKeyValue("DB108.DBW234");
|
|
|
|
|
public DataKeyValue solvent_SaveData14_RMatCode1 = new DataKeyValue("DB108.DBW236");
|
|
|
|
|
public DataKeyValue solvent_SaveData14_RActWeight_1 = new DataKeyValue("DB108.DBW238");
|
|
|
|
|
public DataKeyValue solvent_SaveData14_RActTol_1 = new DataKeyValue("DB108.DBW240");
|
|
|
|
|
public DataKeyValue solvent_SaveData15_RMatCode1 = new DataKeyValue("DB108.DBW242");
|
|
|
|
|
public DataKeyValue solvent_SaveData15_RActWeight_1 = new DataKeyValue("DB108.DBW244");
|
|
|
|
|
public DataKeyValue solvent_SaveData15_RActTol_1 = new DataKeyValue("DB108.DBW246");
|
|
|
|
|
public DataKeyValue solvent_SaveData16_RMatCode1 = new DataKeyValue("DB108.DBW248");
|
|
|
|
|
public DataKeyValue solvent_SaveData16_RActWeight_1 = new DataKeyValue("DB108.DBW250");
|
|
|
|
|
public DataKeyValue solvent_SaveData16_RActTol_1 = new DataKeyValue("DB108.DBW252");
|
|
|
|
|
public DataKeyValue solvent_SaveData17_RMatCode1 = new DataKeyValue("DB108.DBW254");
|
|
|
|
|
public DataKeyValue solvent_SaveData17_RActWeight_1 = new DataKeyValue("DB108.DBW256");
|
|
|
|
|
public DataKeyValue solvent_SaveData17_RActTol_1 = new DataKeyValue("DB108.DBW258");
|
|
|
|
|
public DataKeyValue solvent_SaveData18_RMatCode1 = new DataKeyValue("DB108.DBW260");
|
|
|
|
|
public DataKeyValue solvent_SaveData18_RActWeight_1 = new DataKeyValue("DB108.DBW262");
|
|
|
|
|
public DataKeyValue solvent_SaveData18_RActTol_1 = new DataKeyValue("DB108.DBW264");
|
|
|
|
|
public DataKeyValue solvent_SaveData19_RMatCode1 = new DataKeyValue("DB108.DBW266");
|
|
|
|
|
public DataKeyValue solvent_SaveData19_RActWeight_1 = new DataKeyValue("DB108.DBW268");
|
|
|
|
|
public DataKeyValue solvent_SaveData19_RActTol_1 = new DataKeyValue("DB108.DBW270");
|
|
|
|
|
public DataKeyValue solvent_SaveData20_RMatCode1 = new DataKeyValue("DB108.DBW272");
|
|
|
|
|
public DataKeyValue solvent_SaveData20_RActWeight_1 = new DataKeyValue("DB108.DBW274");
|
|
|
|
|
public DataKeyValue solvent_SaveData20_RActTol_1 = new DataKeyValue("DB108.DBW276");
|
|
|
|
|
public DataKeyValue solvent_Station0_code = new DataKeyValue("DB108.DBW278");
|
|
|
|
|
public DataKeyValue solvent_Station0_set = new DataKeyValue("DB108.DBW280");
|
|
|
|
|
public DataKeyValue solvent_Station0_barcode = new DataKeyValue("DB108.DBW282");
|
|
|
|
|
public DataKeyValue solvent_Station0_status = new DataKeyValue("DB108.DBW284");
|
|
|
|
|
public DataKeyValue solvent_Station0_act = new DataKeyValue("DB108.DBW286");
|
|
|
|
|
public DataKeyValue solvent_Station0_pump = new DataKeyValue("DB108.DBW288");
|
|
|
|
|
public DataKeyValue solvent_Station1_code = new DataKeyValue("DB108.DBW290");
|
|
|
|
|
public DataKeyValue solvent_Station1_set = new DataKeyValue("DB108.DBW292");
|
|
|
|
|
public DataKeyValue solvent_Station1_barcode = new DataKeyValue("DB108.DBW294");
|
|
|
|
|
public DataKeyValue solvent_Station1_status = new DataKeyValue("DB108.DBW296");
|
|
|
|
|
public DataKeyValue solvent_Station1_act = new DataKeyValue("DB108.DBW298");
|
|
|
|
|
public DataKeyValue solvent_Station1_pump = new DataKeyValue("DB108.DBW300");
|
|
|
|
|
public DataKeyValue solvent_Station2_code = new DataKeyValue("DB108.DBW302");
|
|
|
|
|
public DataKeyValue solvent_Station2_set = new DataKeyValue("DB108.DBW304");
|
|
|
|
|
public DataKeyValue solvent_Station2_barcode = new DataKeyValue("DB108.DBW306");
|
|
|
|
|
public DataKeyValue solvent_Station2_status = new DataKeyValue("DB108.DBW308");
|
|
|
|
|
public DataKeyValue solvent_Station2_act = new DataKeyValue("DB108.DBW310");
|
|
|
|
|
public DataKeyValue solvent_Station2_pump = new DataKeyValue("DB108.DBW312");
|
|
|
|
|
public DataKeyValue solvent_Station3_code = new DataKeyValue("DB108.DBW314");
|
|
|
|
|
public DataKeyValue solvent_Station3_set = new DataKeyValue("DB108.DBW316");
|
|
|
|
|
public DataKeyValue solvent_Station3_barcode = new DataKeyValue("DB108.DBW318");
|
|
|
|
|
public DataKeyValue solvent_Station3_status = new DataKeyValue("DB108.DBW320");
|
|
|
|
|
public DataKeyValue solvent_Station3_act = new DataKeyValue("DB108.DBW322");
|
|
|
|
|
public DataKeyValue solvent_Station3_pump = new DataKeyValue("DB108.DBW324");
|
|
|
|
|
public DataKeyValue solvent_Station4_code = new DataKeyValue("DB108.DBW326");
|
|
|
|
|
public DataKeyValue solvent_Station4_set = new DataKeyValue("DB108.DBW328");
|
|
|
|
|
public DataKeyValue solvent_Station4_barcode = new DataKeyValue("DB108.DBW330");
|
|
|
|
|
public DataKeyValue solvent_Station4_status = new DataKeyValue("DB108.DBW332");
|
|
|
|
|
public DataKeyValue solvent_Station4_act = new DataKeyValue("DB108.DBW334");
|
|
|
|
|
public DataKeyValue solvent_Station4_pump = new DataKeyValue("DB108.DBW336");
|
|
|
|
|
public DataKeyValue solvent_Station5_code = new DataKeyValue("DB108.DBW338");
|
|
|
|
|
public DataKeyValue solvent_Station5_set = new DataKeyValue("DB108.DBW340");
|
|
|
|
|
public DataKeyValue solvent_Station5_barcode = new DataKeyValue("DB108.DBW342");
|
|
|
|
|
public DataKeyValue solvent_Station5_status = new DataKeyValue("DB108.DBW344");
|
|
|
|
|
public DataKeyValue solvent_Station5_act = new DataKeyValue("DB108.DBW346");
|
|
|
|
|
public DataKeyValue solvent_Station5_pump = new DataKeyValue("DB108.DBW348");
|
|
|
|
|
public DataKeyValue solvent_Station6_code = new DataKeyValue("DB108.DBW350");
|
|
|
|
|
public DataKeyValue solvent_Station6_set = new DataKeyValue("DB108.DBW352");
|
|
|
|
|
public DataKeyValue solvent_Station6_barcode = new DataKeyValue("DB108.DBW354");
|
|
|
|
|
public DataKeyValue solvent_Station6_status = new DataKeyValue("DB108.DBW356");
|
|
|
|
|
public DataKeyValue solvent_Station6_act = new DataKeyValue("DB108.DBW358");
|
|
|
|
|
public DataKeyValue solvent_Station6_pump = new DataKeyValue("DB108.DBW360");
|
|
|
|
|
public DataKeyValue solvent_Station7_code = new DataKeyValue("DB108.DBW362");
|
|
|
|
|
public DataKeyValue solvent_Station7_set = new DataKeyValue("DB108.DBW364");
|
|
|
|
|
public DataKeyValue solvent_Station7_barcode = new DataKeyValue("DB108.DBW366");
|
|
|
|
|
public DataKeyValue solvent_Station7_status = new DataKeyValue("DB108.DBW368");
|
|
|
|
|
public DataKeyValue solvent_Station7_act = new DataKeyValue("DB108.DBW370");
|
|
|
|
|
public DataKeyValue solvent_Station7_pump = new DataKeyValue("DB108.DBW372");
|
|
|
|
|
public DataKeyValue solvent_Station8_code = new DataKeyValue("DB108.DBW374");
|
|
|
|
|
public DataKeyValue solvent_Station8_set = new DataKeyValue("DB108.DBW376");
|
|
|
|
|
public DataKeyValue solvent_Station8_barcode = new DataKeyValue("DB108.DBW378");
|
|
|
|
|
public DataKeyValue solvent_Station8_status = new DataKeyValue("DB108.DBW380");
|
|
|
|
|
public DataKeyValue solvent_Station8_act = new DataKeyValue("DB108.DBW382");
|
|
|
|
|
public DataKeyValue solvent_Station8_pump = new DataKeyValue("DB108.DBW384");
|
|
|
|
|
public DataKeyValue solvent_tareWeight = new DataKeyValue("DB108.DBW386");
|
|
|
|
|
public DataKeyValue solvent_MaterRowNum = new DataKeyValue("DB108.DBW388");//物料序列号
|
|
|
|
|
public DataKeyValue solvent_State = new DataKeyValue("DB108.DBW390");//存盘状态
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// PLC停止——溶剂
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DataKeyValue plt_plc_StopScale = new DataKeyValue("DB101.DBW24");
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|