|
|
|
@ -7,48 +7,173 @@ namespace DataBlockHelper.DBHelpers
|
|
|
|
|
private static readonly string DbName = "DB2105";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH1(SetValue setValue)
|
|
|
|
|
public static void WriteStartJob1()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(54, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.0",true);
|
|
|
|
|
}
|
|
|
|
|
public static void WriteStopJob1()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.0",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH2(SetValue setValue)
|
|
|
|
|
public static void WriteStartJob2()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(62, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.1",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH3(SetValue setValue)
|
|
|
|
|
public static void WriteStopJob2()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(70, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.1",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH4(SetValue setValue)
|
|
|
|
|
public static void WriteStartJob3()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(78, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.2",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void WriteStopJob3()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.2",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStartJob4()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.3",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStopJob4()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.3",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStartJob5()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.4",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStopJob5()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.4",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStartJob6()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.5",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStopJob6()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.5",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStartJob7()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.6",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStopJob7()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.6",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStartJob8()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.7",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteStopJob8()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:52.7",false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void WriteManScrewH1()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.0",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH5(SetValue setValue)
|
|
|
|
|
public static void WriteManScrewH2()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(86, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.1",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH6(SetValue setValue)
|
|
|
|
|
public static void WriteManScrewH3()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(86, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.2",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH7(SetValue setValue)
|
|
|
|
|
public static void WriteManScrewH4()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(94, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.3",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH8(SetValue setValue)
|
|
|
|
|
public static void WriteManScrewH5()
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(102, setValue);
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.4",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteManScrewH6()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.5",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteManScrewH7()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.6",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteManScrewH8()
|
|
|
|
|
{
|
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
|
siemensS7Net.Write($"{DbName}:53.7",true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH1(SetValue setValue)
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(54, setValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH2(SetValue setValue)
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(62, setValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH3(SetValue setValue)
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(70, setValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static void WriteSetValueH4(SetValue setValue)
|
|
|
|
|
{
|
|
|
|
|
WriteSetValue(78, setValue);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private static void WriteSetValue(int start,SetValue setValue)
|
|
|
|
|
{
|
|
|
|
|