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.
50 lines
1.1 KiB
C#
50 lines
1.1 KiB
C#
using HslCommunication.Profinet.Melsec.Helper;
|
|
using HslCommunication.Profinet.Siemens;
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace DataBlockHelper.DBHelpers
|
|
{
|
|
public class Db2101HelperWriter
|
|
{
|
|
private static readonly string DbName = "DB2101";
|
|
private static SiemensS7Net siemensS7Net = PlcConnect.Instance;
|
|
public static void WriterLinAStart(bool b)
|
|
{
|
|
siemensS7Net.Write("DB2101.124.0", b);
|
|
}
|
|
|
|
public static void WriterLinAEnd(bool b)
|
|
{
|
|
siemensS7Net.Write("DB2101.124.1", b);
|
|
}
|
|
|
|
|
|
|
|
public static void WriterLinBStart(bool b)
|
|
{
|
|
siemensS7Net.Write("DB2101.134.0", b);
|
|
}
|
|
|
|
public static void WriterLinBEnd(bool b)
|
|
{
|
|
siemensS7Net.Write("DB2101.134.1", b);
|
|
}
|
|
|
|
|
|
public static void WriterLinCStart(bool b)
|
|
{
|
|
siemensS7Net.Write("DB2101.144.0", b);
|
|
}
|
|
|
|
public static void WriterLinCEnd(bool b)
|
|
{
|
|
siemensS7Net.Write("DB2101.144.1", b);
|
|
}
|
|
}
|
|
}
|