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.
lj_plc/Actions/ChemicalWeighing/Mesnac.Action.ChemicalWeighing/MinAn/MinAnPlc.cs

81 lines
1.6 KiB
C#

using DataBlockHelper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Mesnac.Action.ChemicalWeighing.MinAn
{
public static class MinAnPlc
{
public static bool Heir1
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.4").Content;
}
}
public static bool Heir2
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.5").Content;
}
}
public static bool Heir3
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.6").Content;
}
}
public static bool Heir4
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.7").Content;
}
}
public static bool ReqD1
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.0").Content;
}
}
public static bool ReqD2
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.1").Content;
}
}
public static bool ReqD3
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.2").Content;
}
}
public static bool ReqD4
{
get
{
return PlcConnect.Instance.ReadBool("DB3000.1.3").Content;
}
}
}
}