You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using Mesnac.Action.Base;
|
|
|
|
|
using Mesnac.Action.Feeding.Qingquan.BasicInfo;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.Feeding.Qingquan.Sys
|
|
|
|
|
{
|
|
|
|
|
public class TestFeedingAction : FeedingAction, IAction
|
|
|
|
|
{
|
|
|
|
|
public void Run(RuntimeParameter runtime)
|
|
|
|
|
{
|
|
|
|
|
base.RunIni(runtime);
|
|
|
|
|
//this.DownloadFinishNumer(12);
|
|
|
|
|
//MediaPlayerEx.Play("1.WAV");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 下传密炼完成次数到PLC
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>成功返回true,失败返回false</returns>
|
|
|
|
|
public bool DownloadFinishNumer(int nNumber)
|
|
|
|
|
{
|
|
|
|
|
bool result = PlcData.Instance.PlcWriteByDataKey(PlcData.Instance.MixingFinishedCount, new object[] { nNumber });
|
|
|
|
|
if (result == false)
|
|
|
|
|
{
|
|
|
|
|
base.LogError("PLC通讯故障:[下传密炼完成次数到PLC]");
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|