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.
35 lines
769 B
C#
35 lines
769 B
C#
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;
|
|
}
|
|
|
|
|
|
}
|
|
}
|