Update MTC x test LVF
This commit is contained in:
+85
-57
@@ -7,65 +7,93 @@ using System.Text;
|
||||
|
||||
namespace IOB_UT
|
||||
{
|
||||
/// <summary>
|
||||
/// Classe gestione configurazione paraemtri MTC
|
||||
/// </summary>
|
||||
public class MtcParamConf
|
||||
{
|
||||
/// <summary>
|
||||
/// Nome variabile x pezzi FATTI
|
||||
/// Classe per rappresentare oggetti chaive/valore target x controlo condizioni multiple
|
||||
/// </summary>
|
||||
public string keyPartCount { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Nome variabile x pezzi RICHIESTI
|
||||
/// </summary>
|
||||
public string keyPartReq { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Nome variabile x Codice Articolo
|
||||
/// </summary>
|
||||
public string keyPartId { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Nome variabile x NOME PROGRAMMA
|
||||
/// </summary>
|
||||
public string keyProgName { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Nome variabile x RunMode
|
||||
/// </summary>
|
||||
public string keyRunMode { get; set; } = "";
|
||||
/// <summary>
|
||||
/// Indica se il ping sia un criterio valido x determinare powerON impianto
|
||||
/// </summary>
|
||||
public bool pingAsPowerOn { get; set; } = true;
|
||||
/// <summary>
|
||||
/// Struttura dati x check condizione PowerOn
|
||||
/// </summary>
|
||||
public diCheckCondition condPowerOn { get; set; } = new diCheckCondition();
|
||||
/// <summary>
|
||||
/// Struttura dati x check condizione LAVORA / Green
|
||||
/// </summary>
|
||||
public List<diCheckCondition> condWork { get; set; } = new List<diCheckCondition>();
|
||||
public class diCheckCondition
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// nome variabile
|
||||
/// </summary>
|
||||
public string keyName { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// valore target per esito richeisto
|
||||
/// </summary>
|
||||
public string targetValue { get; set; } = "";
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Dictionary dei nomi da cercare come "endsWith" a cui applicare la soglia indicata
|
||||
/// Classe gestione configurazione paraemtri MTC
|
||||
/// </summary>
|
||||
public Dictionary<string, int> paramsEndThresh { get; set; } = new Dictionary<string, int>();
|
||||
/// <summary>
|
||||
/// Array degli elementi di traduzione item
|
||||
/// </summary>
|
||||
public Dictionary<string, string> itemTranslation { get; set; } = new Dictionary<string, string>();
|
||||
}
|
||||
/// <summary>
|
||||
/// Classe per rappresentare oggetti chaive/valore target x controlo condizioni multiple
|
||||
/// </summary>
|
||||
public class diCheckCondition
|
||||
{
|
||||
/// <summary>
|
||||
/// nome variabile
|
||||
/// </summary>
|
||||
public string keyName { get; set; } = "";
|
||||
/// <summary>
|
||||
/// valore target per esito richeisto
|
||||
/// </summary>
|
||||
public string targetValue { get; set; } = "";
|
||||
}
|
||||
}
|
||||
public class MtcParamConf
|
||||
{
|
||||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Struttura dati x check condizione PowerOn
|
||||
/// </summary>
|
||||
public diCheckCondition condPowerOn { get; set; } = new diCheckCondition();
|
||||
|
||||
/// <summary>
|
||||
/// Struttura dati x check condizione LAVORA / Green
|
||||
/// </summary>
|
||||
public List<diCheckCondition> condWork { get; set; } = new List<diCheckCondition>();
|
||||
|
||||
/// <summary>
|
||||
/// Elenco items sottoposti a campionamento periodico e inviati come dynData
|
||||
/// </summary>
|
||||
public List<string> dynDataItems { get; set; } = new List<string>();
|
||||
|
||||
/// <summary>
|
||||
/// Array degli elementi di traduzione item
|
||||
/// </summary>
|
||||
public Dictionary<string, string> itemTranslation { get; set; } = new Dictionary<string, string>();
|
||||
|
||||
/// <summary>
|
||||
/// Nome variabile x EmergencyStop
|
||||
/// </summary>
|
||||
public string keyEStop { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Nome variabile x pezzi FATTI
|
||||
/// </summary>
|
||||
public string keyPartCount { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Nome variabile x Codice Articolo
|
||||
/// </summary>
|
||||
public string keyPartId { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Nome variabile x pezzi RICHIESTI
|
||||
/// </summary>
|
||||
public string keyPartReq { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Nome variabile x NOME PROGRAMMA
|
||||
/// </summary>
|
||||
public string keyProgName { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Nome variabile x RunMode
|
||||
/// </summary>
|
||||
public string keyRunMode { get; set; } = "";
|
||||
|
||||
/// <summary>
|
||||
/// Dictionary dei nomi da cercare come "endsWith" a cui applicare la soglia indicata
|
||||
/// </summary>
|
||||
public Dictionary<string, int> paramsEndThresh { get; set; } = new Dictionary<string, int>();
|
||||
|
||||
/// <summary>
|
||||
/// Indica se il ping sia un criterio valido x determinare powerON impianto
|
||||
/// </summary>
|
||||
public bool pingAsPowerOn { get; set; } = true;
|
||||
|
||||
#endregion Public Properties
|
||||
}
|
||||
}
|
||||
@@ -256,6 +256,12 @@
|
||||
<None Include="DATA\CONF\3015.ini">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="DATA\CONF\GT576.ini">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="DATA\CONF\GT576.json">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
<None Include="DATA\CONF\GT577.ini">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
|
||||
+655
-576
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user