|
|
|
|
using HslCommunication;
|
|
|
|
|
using Mesnac.Action.ChemicalWeighing.Pl;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing
|
|
|
|
|
{
|
|
|
|
|
public static class LjHelp
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
//开门狗
|
|
|
|
|
public static int WatchDog
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
OperateResult<byte[]> read = PlcConnect.Instance.Read("DB2107.2.0", 2);
|
|
|
|
|
|
|
|
|
|
var content = read.Content;
|
|
|
|
|
|
|
|
|
|
return PlcConnect.Instance.ByteTransform.TransInt16(content, 0);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//BasePlcHelper.Instance.WatchDog.LastValue.ToInt();
|
|
|
|
|
}
|
|
|
|
|
}
|