Fix visualizzazione dati di input cona ccodamento + update readme x pwd standard user steamware
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@
|
||||
<add key="waitEndCycle" value="0" />
|
||||
<!--5 sec-->
|
||||
<!--Modalità DEMO: DemoOUT indica che NON invia davvero al server e DemoIN che simula e NON legge da PLC-->
|
||||
<add key="DemoIn" value="false" />
|
||||
<add key="DemoIn" value="true" />
|
||||
<add key="DemoInSample" value="true" />
|
||||
<add key="DemoOut" value="true" />
|
||||
<!--Definizione avvio Adapter-->
|
||||
|
||||
+6
-24
@@ -1186,8 +1186,7 @@ namespace IOB_WIN
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
#region gestione dataMonitor (accodamento valori)
|
||||
|
||||
|
||||
@@ -1196,18 +1195,7 @@ namespace IOB_WIN
|
||||
/// </summary>
|
||||
private void displayRawData()
|
||||
{
|
||||
#if false
|
||||
// mostro update......
|
||||
string newString = string.Format("{0:X}{1}{2}", (int)B_input, Environment.NewLine, parentForm.dataMonitor_0);
|
||||
// se num righe superiore a limite trimmo...
|
||||
if (newString.Split('\n').Length > parentForm.nLine2show)
|
||||
{
|
||||
int idx = newString.LastIndexOf(Environment.NewLine);
|
||||
newString = newString.Substring(0, idx);
|
||||
}
|
||||
parentForm.dataMonitor_0 = newString;
|
||||
#endif
|
||||
// mostro update......
|
||||
// mostro update...
|
||||
string newString = string.Format("{0:X}", (int)B_input);
|
||||
accodaRawData(newString);
|
||||
// salvo coda debug...
|
||||
@@ -1218,15 +1206,9 @@ namespace IOB_WIN
|
||||
/// </summary>
|
||||
public void displayInData()
|
||||
{
|
||||
// mostro update......
|
||||
string newString = string.Format("{0:0000}|{1}{2}{3}", counter, utils.IntToBinStr((int)B_output, 8), Environment.NewLine, parentForm.dataMonitor_1);
|
||||
// se num righe superiore a limite trimmo...
|
||||
if (newString.Split('\n').Length > parentForm.nLine2show)
|
||||
{
|
||||
int idx = newString.LastIndexOf(Environment.NewLine);
|
||||
newString = newString.Substring(0, idx);
|
||||
}
|
||||
parentForm.dataMonitor_1 = newString;
|
||||
// mostro update...
|
||||
string newString = string.Format("{0:0000}|{1}", counter, utils.IntToBinStr((int)B_output, 8));
|
||||
accodaSignaInlData(newString);
|
||||
}
|
||||
/// <summary>
|
||||
/// Mostra cosa ha/avrebbe inviato
|
||||
@@ -1256,7 +1238,7 @@ namespace IOB_WIN
|
||||
/// Accoda (visualizzando in cima allo stack) la nuova stringa di output per area OTHER DATA
|
||||
/// </summary>
|
||||
/// <param name="newLine"></param>
|
||||
public void accodaSignalData(string newLine)
|
||||
public void accodaSignaInlData(string newLine)
|
||||
{
|
||||
// inserisco in cima allo stack, trimmo e aggiorno display
|
||||
parentForm.dataMonitor_1 = limitLine2show(string.Format("{0}{1}{2}", newLine, Environment.NewLine, parentForm.dataMonitor_1));
|
||||
|
||||
@@ -140,8 +140,11 @@ namespace IOB_WIN
|
||||
/// </summary>
|
||||
public MainForm()
|
||||
{
|
||||
// se NON sono in DEBUG faccio check update...
|
||||
#if !(DEBUG)
|
||||
// avvio autoupdater...
|
||||
AutoUpdater.Start(updateUrl);
|
||||
#endif
|
||||
|
||||
// continuo avvio...
|
||||
InitializeComponent();
|
||||
|
||||
@@ -8,9 +8,9 @@ Qui sono raccolte le informazioni relative al sw **MAPO-IOB-WIN**, progetto per
|
||||
<!-- TOC -->
|
||||
|
||||
- [MAPO-IOB-WIN](#mapo-iob-win)
|
||||
- [Standard Tecnici](#standard-tecnici)
|
||||
- [Setup](#setup)
|
||||
- [Applicativo](#applicativo)
|
||||
- [Standard Tecnici](#standard-tecnici)
|
||||
- [Setup](#setup)
|
||||
- [Applicativo](#applicativo)
|
||||
|
||||
<!-- /TOC -->
|
||||
|
||||
@@ -26,7 +26,7 @@ Il computer deve avere
|
||||
|
||||
- un account admin
|
||||
- username: **steamware**
|
||||
- pwd: musicale numerica complicata
|
||||
- pwd: musicale numerica standard
|
||||
- un account utente base
|
||||
- username: **IOB**
|
||||
- pwd: viadante16
|
||||
|
||||
BIN
Binary file not shown.
Reference in New Issue
Block a user