update S7 test app

This commit is contained in:
Samuele Locatelli
2020-07-06 11:46:10 +02:00
parent fe9b9b7e72
commit e444d966a6
2 changed files with 147 additions and 49 deletions
+75 -49
View File
@@ -37,6 +37,7 @@
this.label3 = new System.Windows.Forms.Label();
this.txtMemSize = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.chkDoParallel = new System.Windows.Forms.CheckBox();
this.cmbOutType = new System.Windows.Forms.ComboBox();
this.txtNumRep = new System.Windows.Forms.TextBox();
this.label13 = new System.Windows.Forms.Label();
@@ -88,7 +89,8 @@
this.label15 = new System.Windows.Forms.Label();
this.label14 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.chkDoParallel = new System.Windows.Forms.CheckBox();
this.chkSample = new System.Windows.Forms.CheckBox();
this.txtSamplePeriod = new System.Windows.Forms.TextBox();
this.groupBox1.SuspendLayout();
this.groupBox3.SuspendLayout();
this.statusStrip1.SuspendLayout();
@@ -107,7 +109,7 @@
// txtIP
//
this.txtIP.Location = new System.Drawing.Point(64, 19);
this.txtIP.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtIP.Margin = new System.Windows.Forms.Padding(2);
this.txtIP.Name = "txtIP";
this.txtIP.Size = new System.Drawing.Size(83, 20);
this.txtIP.TabIndex = 0;
@@ -134,7 +136,7 @@
"S71200",
"S71500"});
this.cbCpuType.Location = new System.Drawing.Point(64, 50);
this.cbCpuType.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cbCpuType.Margin = new System.Windows.Forms.Padding(2);
this.cbCpuType.Name = "cbCpuType";
this.cbCpuType.Size = new System.Drawing.Size(83, 21);
this.cbCpuType.TabIndex = 2;
@@ -164,7 +166,7 @@
// txtMemArea
//
this.txtMemArea.Location = new System.Drawing.Point(111, 16);
this.txtMemArea.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtMemArea.Margin = new System.Windows.Forms.Padding(2);
this.txtMemArea.Name = "txtMemArea";
this.txtMemArea.Size = new System.Drawing.Size(77, 20);
this.txtMemArea.TabIndex = 4;
@@ -185,7 +187,7 @@
// txtMemSize
//
this.txtMemSize.Location = new System.Drawing.Point(111, 41);
this.txtMemSize.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtMemSize.Margin = new System.Windows.Forms.Padding(2);
this.txtMemSize.Name = "txtMemSize";
this.txtMemSize.Size = new System.Drawing.Size(77, 20);
this.txtMemSize.TabIndex = 6;
@@ -195,6 +197,8 @@
//
// groupBox1
//
this.groupBox1.Controls.Add(this.txtSamplePeriod);
this.groupBox1.Controls.Add(this.chkSample);
this.groupBox1.Controls.Add(this.chkDoParallel);
this.groupBox1.Controls.Add(this.cmbOutType);
this.groupBox1.Controls.Add(this.txtNumRep);
@@ -210,14 +214,24 @@
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label2);
this.groupBox1.Location = new System.Drawing.Point(4, 4);
this.groupBox1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox1.Margin = new System.Windows.Forms.Padding(2);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox1.Padding = new System.Windows.Forms.Padding(2);
this.groupBox1.Size = new System.Drawing.Size(504, 85);
this.groupBox1.TabIndex = 8;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Memoria: READ testing";
//
// chkDoParallel
//
this.chkDoParallel.AutoSize = true;
this.chkDoParallel.Location = new System.Drawing.Point(392, 46);
this.chkDoParallel.Name = "chkDoParallel";
this.chkDoParallel.Size = new System.Drawing.Size(74, 17);
this.chkDoParallel.TabIndex = 17;
this.chkDoParallel.Text = "do parallel";
this.chkDoParallel.UseVisualStyleBackColor = true;
//
// cmbOutType
//
this.cmbOutType.FormattingEnabled = true;
@@ -228,9 +242,9 @@
"real",
"struct"});
this.cmbOutType.Location = new System.Drawing.Point(392, 19);
this.cmbOutType.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.cmbOutType.Margin = new System.Windows.Forms.Padding(2);
this.cmbOutType.Name = "cmbOutType";
this.cmbOutType.Size = new System.Drawing.Size(92, 21);
this.cmbOutType.Size = new System.Drawing.Size(108, 21);
this.cmbOutType.TabIndex = 16;
this.cmbOutType.Text = "byte";
this.cmbOutType.SelectedIndexChanged += new System.EventHandler(this.cmbOutType_SelectedIndexChanged);
@@ -238,7 +252,7 @@
// txtNumRep
//
this.txtNumRep.Location = new System.Drawing.Point(111, 62);
this.txtNumRep.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtNumRep.Margin = new System.Windows.Forms.Padding(2);
this.txtNumRep.Name = "txtNumRep";
this.txtNumRep.Size = new System.Drawing.Size(77, 20);
this.txtNumRep.TabIndex = 14;
@@ -258,7 +272,7 @@
// btnReadStruct
//
this.btnReadStruct.Location = new System.Drawing.Point(304, 61);
this.btnReadStruct.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnReadStruct.Margin = new System.Windows.Forms.Padding(2);
this.btnReadStruct.Name = "btnReadStruct";
this.btnReadStruct.Size = new System.Drawing.Size(82, 20);
this.btnReadStruct.TabIndex = 12;
@@ -270,7 +284,7 @@
// btnReadString
//
this.btnReadString.Location = new System.Drawing.Point(304, 40);
this.btnReadString.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnReadString.Margin = new System.Windows.Forms.Padding(2);
this.btnReadString.Name = "btnReadString";
this.btnReadString.Size = new System.Drawing.Size(82, 20);
this.btnReadString.TabIndex = 11;
@@ -281,7 +295,7 @@
// btnReadDWord
//
this.btnReadDWord.Location = new System.Drawing.Point(217, 61);
this.btnReadDWord.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnReadDWord.Margin = new System.Windows.Forms.Padding(2);
this.btnReadDWord.Name = "btnReadDWord";
this.btnReadDWord.Size = new System.Drawing.Size(82, 20);
this.btnReadDWord.TabIndex = 10;
@@ -293,7 +307,7 @@
// btnReadWord
//
this.btnReadWord.Location = new System.Drawing.Point(217, 39);
this.btnReadWord.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnReadWord.Margin = new System.Windows.Forms.Padding(2);
this.btnReadWord.Name = "btnReadWord";
this.btnReadWord.Size = new System.Drawing.Size(82, 20);
this.btnReadWord.TabIndex = 10;
@@ -304,7 +318,7 @@
// btnReadReal
//
this.btnReadReal.Location = new System.Drawing.Point(304, 15);
this.btnReadReal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnReadReal.Margin = new System.Windows.Forms.Padding(2);
this.btnReadReal.Name = "btnReadReal";
this.btnReadReal.Size = new System.Drawing.Size(82, 20);
this.btnReadReal.TabIndex = 9;
@@ -315,7 +329,7 @@
// btnReadByte
//
this.btnReadByte.Location = new System.Drawing.Point(217, 15);
this.btnReadByte.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnReadByte.Margin = new System.Windows.Forms.Padding(2);
this.btnReadByte.Name = "btnReadByte";
this.btnReadByte.Size = new System.Drawing.Size(82, 20);
this.btnReadByte.TabIndex = 9;
@@ -336,9 +350,9 @@
this.groupBox3.Controls.Add(this.lblIP);
this.groupBox3.Controls.Add(this.label1);
this.groupBox3.Location = new System.Drawing.Point(4, 4);
this.groupBox3.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox3.Margin = new System.Windows.Forms.Padding(2);
this.groupBox3.Name = "groupBox3";
this.groupBox3.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox3.Padding = new System.Windows.Forms.Padding(2);
this.groupBox3.Size = new System.Drawing.Size(359, 85);
this.groupBox3.TabIndex = 10;
this.groupBox3.TabStop = false;
@@ -367,7 +381,7 @@
// txtSlot
//
this.txtSlot.Location = new System.Drawing.Point(190, 50);
this.txtSlot.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtSlot.Margin = new System.Windows.Forms.Padding(2);
this.txtSlot.Name = "txtSlot";
this.txtSlot.Size = new System.Drawing.Size(32, 20);
this.txtSlot.TabIndex = 5;
@@ -387,7 +401,7 @@
// txtRack
//
this.txtRack.Location = new System.Drawing.Point(190, 19);
this.txtRack.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtRack.Margin = new System.Windows.Forms.Padding(2);
this.txtRack.Name = "txtRack";
this.txtRack.Size = new System.Drawing.Size(32, 20);
this.txtRack.TabIndex = 5;
@@ -459,9 +473,9 @@
this.groupBox4.Controls.Add(this.txtWriteAddr1);
this.groupBox4.Controls.Add(this.label7);
this.groupBox4.Location = new System.Drawing.Point(5, 6);
this.groupBox4.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox4.Margin = new System.Windows.Forms.Padding(2);
this.groupBox4.Name = "groupBox4";
this.groupBox4.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox4.Padding = new System.Windows.Forms.Padding(2);
this.groupBox4.Size = new System.Drawing.Size(1357, 58);
this.groupBox4.TabIndex = 12;
this.groupBox4.TabStop = false;
@@ -470,7 +484,7 @@
// btnStrWrite
//
this.btnStrWrite.Location = new System.Drawing.Point(599, 20);
this.btnStrWrite.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnStrWrite.Margin = new System.Windows.Forms.Padding(2);
this.btnStrWrite.Name = "btnStrWrite";
this.btnStrWrite.Size = new System.Drawing.Size(31, 19);
this.btnStrWrite.TabIndex = 10;
@@ -481,7 +495,7 @@
// btnNumWriteB
//
this.btnNumWriteB.Location = new System.Drawing.Point(247, 4);
this.btnNumWriteB.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnNumWriteB.Margin = new System.Windows.Forms.Padding(2);
this.btnNumWriteB.Name = "btnNumWriteB";
this.btnNumWriteB.Size = new System.Drawing.Size(36, 19);
this.btnNumWriteB.TabIndex = 10;
@@ -492,7 +506,7 @@
// btnNumWriteDW
//
this.btnNumWriteDW.Location = new System.Drawing.Point(247, 36);
this.btnNumWriteDW.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnNumWriteDW.Margin = new System.Windows.Forms.Padding(2);
this.btnNumWriteDW.Name = "btnNumWriteDW";
this.btnNumWriteDW.Size = new System.Drawing.Size(36, 19);
this.btnNumWriteDW.TabIndex = 10;
@@ -503,7 +517,7 @@
// btnNumWriteW
//
this.btnNumWriteW.Location = new System.Drawing.Point(247, 19);
this.btnNumWriteW.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.btnNumWriteW.Margin = new System.Windows.Forms.Padding(2);
this.btnNumWriteW.Name = "btnNumWriteW";
this.btnNumWriteW.Size = new System.Drawing.Size(36, 19);
this.btnNumWriteW.TabIndex = 10;
@@ -514,7 +528,7 @@
// txtWriteVal2
//
this.txtWriteVal2.Location = new System.Drawing.Point(459, 20);
this.txtWriteVal2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtWriteVal2.Margin = new System.Windows.Forms.Padding(2);
this.txtWriteVal2.Name = "txtWriteVal2";
this.txtWriteVal2.Size = new System.Drawing.Size(141, 20);
this.txtWriteVal2.TabIndex = 8;
@@ -534,7 +548,7 @@
// txtWriteVal1
//
this.txtWriteVal1.Location = new System.Drawing.Point(178, 20);
this.txtWriteVal1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtWriteVal1.Margin = new System.Windows.Forms.Padding(2);
this.txtWriteVal1.Name = "txtWriteVal1";
this.txtWriteVal1.Size = new System.Drawing.Size(65, 20);
this.txtWriteVal1.TabIndex = 8;
@@ -554,7 +568,7 @@
// txtWriteAddr2
//
this.txtWriteAddr2.Location = new System.Drawing.Point(336, 20);
this.txtWriteAddr2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtWriteAddr2.Margin = new System.Windows.Forms.Padding(2);
this.txtWriteAddr2.Name = "txtWriteAddr2";
this.txtWriteAddr2.Size = new System.Drawing.Size(88, 20);
this.txtWriteAddr2.TabIndex = 6;
@@ -574,7 +588,7 @@
// txtWriteAddr1
//
this.txtWriteAddr1.Location = new System.Drawing.Point(53, 20);
this.txtWriteAddr1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtWriteAddr1.Margin = new System.Windows.Forms.Padding(2);
this.txtWriteAddr1.Name = "txtWriteAddr1";
this.txtWriteAddr1.Size = new System.Drawing.Size(93, 20);
this.txtWriteAddr1.TabIndex = 6;
@@ -598,7 +612,7 @@
this.txtOut.Font = new System.Drawing.Font("Microsoft Sans Serif", 7F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.txtOut.ForeColor = System.Drawing.Color.Yellow;
this.txtOut.Location = new System.Drawing.Point(3, 17);
this.txtOut.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.txtOut.Margin = new System.Windows.Forms.Padding(2);
this.txtOut.Multiline = true;
this.txtOut.Name = "txtOut";
this.txtOut.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
@@ -611,9 +625,9 @@
this.groupBox2.AutoSize = true;
this.groupBox2.Controls.Add(this.txtOut);
this.groupBox2.Location = new System.Drawing.Point(2, 9);
this.groupBox2.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox2.Margin = new System.Windows.Forms.Padding(2);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.groupBox2.Padding = new System.Windows.Forms.Padding(2);
this.groupBox2.Size = new System.Drawing.Size(434, 349);
this.groupBox2.TabIndex = 9;
this.groupBox2.TabStop = false;
@@ -627,7 +641,7 @@
this.tabCtrl.Controls.Add(this.tabWriteTest);
this.tabCtrl.Controls.Add(this.tabParam);
this.tabCtrl.Location = new System.Drawing.Point(11, 7);
this.tabCtrl.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tabCtrl.Margin = new System.Windows.Forms.Padding(2);
this.tabCtrl.Name = "tabCtrl";
this.tabCtrl.SelectedIndex = 0;
this.tabCtrl.Size = new System.Drawing.Size(659, 116);
@@ -637,9 +651,9 @@
//
this.tabReadTest.Controls.Add(this.groupBox1);
this.tabReadTest.Location = new System.Drawing.Point(4, 22);
this.tabReadTest.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tabReadTest.Margin = new System.Windows.Forms.Padding(2);
this.tabReadTest.Name = "tabReadTest";
this.tabReadTest.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tabReadTest.Padding = new System.Windows.Forms.Padding(2);
this.tabReadTest.Size = new System.Drawing.Size(651, 90);
this.tabReadTest.TabIndex = 0;
this.tabReadTest.Text = "Read Test";
@@ -649,7 +663,7 @@
//
this.tabWriteTest.Controls.Add(this.groupBox4);
this.tabWriteTest.Location = new System.Drawing.Point(4, 22);
this.tabWriteTest.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tabWriteTest.Margin = new System.Windows.Forms.Padding(2);
this.tabWriteTest.Name = "tabWriteTest";
this.tabWriteTest.Size = new System.Drawing.Size(651, 90);
this.tabWriteTest.TabIndex = 2;
@@ -660,9 +674,9 @@
//
this.tabParam.Controls.Add(this.groupBox3);
this.tabParam.Location = new System.Drawing.Point(4, 22);
this.tabParam.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tabParam.Margin = new System.Windows.Forms.Padding(2);
this.tabParam.Name = "tabParam";
this.tabParam.Padding = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.tabParam.Padding = new System.Windows.Forms.Padding(2);
this.tabParam.Size = new System.Drawing.Size(651, 90);
this.tabParam.TabIndex = 1;
this.tabParam.Text = "Parametri";
@@ -674,7 +688,7 @@
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.splitContainer1.Location = new System.Drawing.Point(11, 128);
this.splitContainer1.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.splitContainer1.Margin = new System.Windows.Forms.Padding(2);
this.splitContainer1.Name = "splitContainer1";
//
// splitContainer1.Panel1
@@ -807,15 +821,25 @@
this.label12.TabIndex = 0;
this.label12.Text = "Tot size";
//
// chkDoParallel
// chkSample
//
this.chkDoParallel.AutoSize = true;
this.chkDoParallel.Location = new System.Drawing.Point(392, 46);
this.chkDoParallel.Name = "chkDoParallel";
this.chkDoParallel.Size = new System.Drawing.Size(74, 17);
this.chkDoParallel.TabIndex = 17;
this.chkDoParallel.Text = "do parallel";
this.chkDoParallel.UseVisualStyleBackColor = true;
this.chkSample.AutoSize = true;
this.chkSample.Location = new System.Drawing.Point(392, 64);
this.chkSample.Name = "chkSample";
this.chkSample.Size = new System.Drawing.Size(59, 17);
this.chkSample.TabIndex = 18;
this.chkSample.Text = "sample";
this.chkSample.UseVisualStyleBackColor = true;
//
// txtSamplePeriod
//
this.txtSamplePeriod.Location = new System.Drawing.Point(455, 61);
this.txtSamplePeriod.Margin = new System.Windows.Forms.Padding(2);
this.txtSamplePeriod.Name = "txtSamplePeriod";
this.txtSamplePeriod.Size = new System.Drawing.Size(45, 20);
this.txtSamplePeriod.TabIndex = 19;
this.txtSamplePeriod.Text = "500";
this.txtSamplePeriod.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;
//
// TestMainForm
//
@@ -825,7 +849,7 @@
this.Controls.Add(this.splitContainer1);
this.Controls.Add(this.statusStrip1);
this.Controls.Add(this.tabCtrl);
this.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2);
this.Margin = new System.Windows.Forms.Padding(2);
this.Name = "TestMainForm";
this.Text = "SIEMENS S7 TEST";
this.groupBox1.ResumeLayout(false);
@@ -916,6 +940,8 @@
private System.Windows.Forms.Label label18;
private System.Windows.Forms.ComboBox cmbOutType;
private System.Windows.Forms.CheckBox chkDoParallel;
private System.Windows.Forms.TextBox txtSamplePeriod;
private System.Windows.Forms.CheckBox chkSample;
}
}
+72
View File
@@ -68,6 +68,25 @@ namespace Siemens_S7_Test
/// oggetto uiTimer
/// </summary>
protected System.Windows.Forms.Timer uiTimer = new System.Windows.Forms.Timer();
/// <summary>
/// oggetto ampleTimer
/// </summary>
protected System.Windows.Forms.Timer sampleTimer = new System.Windows.Forms.Timer();
public enum readType
{
ND = 0,
Byte,
Word,
DWord,
Real,
String,
Struct
}
/// <summary>
/// tipologia ultima lettura
/// </summary>
protected static readType lastReadType = readType.ND;
/// <summary>
/// Gestione statistiche
/// </summary>
@@ -88,6 +107,18 @@ namespace Siemens_S7_Test
myInit();
startUiTimer();
startSampleTimer();
}
private void startSampleTimer()
{
int sPeriod = 200;
int.TryParse(txtSamplePeriod.Text, out sPeriod);
sampleTimer.Interval = sPeriod;
sampleTimer.Tick += sampleTimer_Tick;
sampleTimer.Start();
}
private void startUiTimer()
@@ -101,6 +132,41 @@ namespace Siemens_S7_Test
advProgBar();
}
private void sampleTimer_Tick(object sender, EventArgs e)
{
if (chkSample.Checked)
{
setParamPlc();
switch (lastReadType)
{
case readType.Word:
eseguiLetturaWord();
break;
case readType.DWord:
eseguiLetturaDWord();
break;
case readType.Real:
eseguiLetturaReal();
break;
case readType.String:
eseguiLetturaString();
break;
case readType.Byte:
case readType.Struct:
case readType.ND:
default:
eseguiLetturaByte();
break;
}
}
// fix periodo...
int sPeriod = 200;
int.TryParse(txtSamplePeriod.Text, out sPeriod);
sPeriod = sPeriod < 1 ? 100 : sPeriod;
sampleTimer.Interval = sPeriod;
}
/// <summary>
/// inizializzo
/// </summary>
@@ -246,6 +312,7 @@ namespace Siemens_S7_Test
}
catch (Exception exc)
{
memByteRead = new byte[0];
lg.Error(exc);
}
sw.Stop();
@@ -918,24 +985,28 @@ namespace Siemens_S7_Test
private void btnReadByte_Click(object sender, EventArgs e)
{
lastReadType = readType.Byte;
setParamPlc();
eseguiLetturaByte();
}
private void btnReadWord_Click(object sender, EventArgs e)
{
lastReadType = readType.Word;
setParamPlc();
eseguiLetturaWord();
}
private void btnReadString_Click(object sender, EventArgs e)
{
lastReadType = readType.String;
setParamPlc();
eseguiLetturaString();
}
private void btnReadDWord_Click(object sender, EventArgs e)
{
lastReadType = readType.DWord;
setParamPlc();
eseguiLetturaDWord();
}
@@ -946,6 +1017,7 @@ namespace Siemens_S7_Test
/// <param name="e"></param>
private void btnReadReal_Click(object sender, EventArgs e)
{
lastReadType = readType.Real;
setParamPlc();
eseguiLetturaReal();
}