|
|
@ -15,7 +15,7 @@ namespace DataBlockHelper.DBHelpers
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int start = 0;
|
|
|
|
int start = 0;
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
var siemensS7Net = PlcConnect.Instance;
|
|
|
|
siemensS7Net.Write($"{DbName}.{start}.0", uhd.A);
|
|
|
|
var sss=siemensS7Net.Write($"{DbName}.{start}.0", uhd.A);
|
|
|
|
siemensS7Net.Write($"{DbName}.{start + 4}.0", uhd.B);
|
|
|
|
siemensS7Net.Write($"{DbName}.{start + 4}.0", uhd.B);
|
|
|
|
siemensS7Net.Write($"{DbName}.{start + 8}.0", uhd.C);
|
|
|
|
siemensS7Net.Write($"{DbName}.{start + 8}.0", uhd.C);
|
|
|
|
siemensS7Net.Write($"{DbName}.{start + 12}.0", uhd.D);
|
|
|
|
siemensS7Net.Write($"{DbName}.{start + 12}.0", uhd.D);
|
|
|
|