|
|
@@ -224,81 +224,81 @@ public static class Led
|
|
|
SiemensS7.Open("172.19.26.82", 102);
|
|
|
if (infoDt != null && infoDt.Rows.Count > 0 && infoDt.Rows[0] != null && infoDt.Rows[0]["总计"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("0.0", Convert.ToInt16(infoDt.Rows[0]["总计"]));//包装总量
|
|
|
+ SiemensS7.Write<short>("30.0", Convert.ToInt16(infoDt.Rows[0]["总计"]));//包装总量
|
|
|
}
|
|
|
if (infoDt != null && infoDt.Rows.Count > 0 && infoDt.Rows[0] != null && infoDt.Rows[0]["一线产量"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("2.0", Convert.ToInt16(infoDt.Rows[0]["一线产量"]));//一线包装产量
|
|
|
+ SiemensS7.Write<short>("30.2", Convert.ToInt16(infoDt.Rows[0]["一线产量"]));//一线包装产量
|
|
|
}
|
|
|
if (infoDt != null && infoDt.Rows.Count > 0 && infoDt.Rows[0] != null && infoDt.Rows[0]["二线产量"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("4.0", Convert.ToInt16(infoDt.Rows[0]["二线产量"]));//二线包装产量
|
|
|
+ SiemensS7.Write<short>("30.4", Convert.ToInt16(infoDt.Rows[0]["二线产量"]));//二线包装产量
|
|
|
}
|
|
|
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[0] != null && oneDt.Rows[0]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("6.0", Convert.ToInt16(oneDt.Rows[0]["CL"]));//一线7:00-9:00产量
|
|
|
+ SiemensS7.Write<short>("30.6", Convert.ToInt16(oneDt.Rows[0]["CL"]));//一线7:00-9:00产量
|
|
|
}
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[1] != null && oneDt.Rows[1]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("6.0", Convert.ToInt16(oneDt.Rows[1]["CL"]));//一线9:00-10:00产量
|
|
|
+ SiemensS7.Write<short>("30.8", Convert.ToInt16(oneDt.Rows[1]["CL"]));//一线9:00-10:00产量
|
|
|
}
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[2] != null && oneDt.Rows[2]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("10.0", Convert.ToInt16(oneDt.Rows[2]["CL"]));//一线10:00-11:00产量
|
|
|
+ SiemensS7.Write<short>("30.10", Convert.ToInt16(oneDt.Rows[2]["CL"]));//一线10:00-11:00产量
|
|
|
}
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[3] != null && oneDt.Rows[3]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("12.0", Convert.ToInt16(oneDt.Rows[3]["CL"]));//一线12:00-14:00产量
|
|
|
+ SiemensS7.Write<short>("30.12", Convert.ToInt16(oneDt.Rows[3]["CL"]));//一线12:00-14:00产量
|
|
|
}
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[4] != null && oneDt.Rows[4]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("14.0", Convert.ToInt16(oneDt.Rows[4]["CL"]));//一线14:00-15:00产量
|
|
|
+ SiemensS7.Write<short>("30.14", Convert.ToInt16(oneDt.Rows[4]["CL"]));//一线14:00-15:00产量
|
|
|
}
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[5] != null && oneDt.Rows[5]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("16.0", Convert.ToInt16(oneDt.Rows[5]["CL"]));//一线15:00-16:00产量
|
|
|
+ SiemensS7.Write<short>("30.16", Convert.ToInt16(oneDt.Rows[5]["CL"]));//一线15:00-16:00产量
|
|
|
}
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[6] != null && oneDt.Rows[6]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("18.0", Convert.ToInt16(oneDt.Rows[6]["CL"]));//一线16:00-17:00产量
|
|
|
+ SiemensS7.Write<short>("30.18", Convert.ToInt16(oneDt.Rows[6]["CL"]));//一线16:00-17:00产量
|
|
|
}
|
|
|
if (oneDt != null && oneDt.Rows.Count > 0 && oneDt.Rows[7] != null && oneDt.Rows[7]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("20.0", Convert.ToInt16(oneDt.Rows[7]["CL"]));//一线17:00-18:00产量
|
|
|
+ SiemensS7.Write<short>("30.20", Convert.ToInt16(oneDt.Rows[7]["CL"]));//一线17:00-18:00产量
|
|
|
}
|
|
|
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[0] != null && twoDt.Rows[0]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("6.0", Convert.ToInt16(twoDt.Rows[0]["CL"]));//一线7:00-9:00产量
|
|
|
+ SiemensS7.Write<short>("30.22", Convert.ToInt16(twoDt.Rows[0]["CL"]));//一线7:00-9:00产量
|
|
|
}
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[1] != null && twoDt.Rows[1]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("6.0", Convert.ToInt16(twoDt.Rows[1]["CL"]));//一线9:00-10:00产量
|
|
|
+ SiemensS7.Write<short>("30.24", Convert.ToInt16(twoDt.Rows[1]["CL"]));//一线9:00-10:00产量
|
|
|
}
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[2] != null && twoDt.Rows[2]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("10.0", Convert.ToInt16(twoDt.Rows[2]["CL"]));//一线10:00-11:00产量
|
|
|
+ SiemensS7.Write<short>("30.26", Convert.ToInt16(twoDt.Rows[2]["CL"]));//一线10:00-11:00产量
|
|
|
}
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[3] != null && twoDt.Rows[3]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("12.0", Convert.ToInt16(twoDt.Rows[3]["CL"]));//一线12:00-14:00产量
|
|
|
+ SiemensS7.Write<short>("30.28", Convert.ToInt16(twoDt.Rows[3]["CL"]));//一线12:00-14:00产量
|
|
|
}
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[4] != null && twoDt.Rows[4]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("14.0", Convert.ToInt16(twoDt.Rows[4]["CL"]));//一线14:00-15:00产量
|
|
|
+ SiemensS7.Write<short>("30.30", Convert.ToInt16(twoDt.Rows[4]["CL"]));//一线14:00-15:00产量
|
|
|
}
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[5] != null && twoDt.Rows[5]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("16.0", Convert.ToInt16(twoDt.Rows[5]["CL"]));//一线15:00-16:00产量
|
|
|
+ SiemensS7.Write<short>("30.32", Convert.ToInt16(twoDt.Rows[5]["CL"]));//一线15:00-16:00产量
|
|
|
}
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[6] != null && twoDt.Rows[6]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("18.0", Convert.ToInt16(twoDt.Rows[6]["CL"]));//一线16:00-17:00产量
|
|
|
+ SiemensS7.Write<short>("30.34", Convert.ToInt16(twoDt.Rows[6]["CL"]));//一线16:00-17:00产量
|
|
|
}
|
|
|
if (twoDt != null && twoDt.Rows.Count > 0 && twoDt.Rows[7] != null && twoDt.Rows[7]["CL"] != null)
|
|
|
{
|
|
|
- SiemensS7.Write<short>("20.0", Convert.ToInt16(twoDt.Rows[7]["CL"]));//一线17:00-18:00产量
|
|
|
+ SiemensS7.Write<short>("30.36", Convert.ToInt16(twoDt.Rows[7]["CL"]));//一线17:00-18:00产量
|
|
|
}
|
|
|
|
|
|
SiemensS7.Close();
|