|
|
|
@ -0,0 +1,34 @@
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace DataBlockHelper.DBHelpers
|
|
|
|
|
{
|
|
|
|
|
public class MReadHelp
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static List<bool> Read()
|
|
|
|
|
{
|
|
|
|
|
var p= PlcConnect.Instance;
|
|
|
|
|
string m = "M1003.4";
|
|
|
|
|
List<bool> result = new List<bool>();
|
|
|
|
|
result.Add(p.ReadBool("M1003.4").Content);
|
|
|
|
|
result.Add(p.ReadBool("M1004.4").Content);
|
|
|
|
|
|
|
|
|
|
result.Add(p.ReadBool("M1006.4").Content);
|
|
|
|
|
result.Add(p.ReadBool("M1007.4").Content);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
result.Add(p.ReadBool("M1009.4").Content);
|
|
|
|
|
result.Add(p.ReadBool("M1010.4").Content);
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|