156 lines
3.3 KiB
C#
156 lines
3.3 KiB
C#
using System;
|
|
|
|
namespace GWMS.Data
|
|
{
|
|
/// <summary>
|
|
/// Elenco dei tipi di valore gestiti da PLC (inizialmente SIEMENS)
|
|
/// </summary>
|
|
public enum plcDataType
|
|
{
|
|
/// <summary>
|
|
/// Tipo boolean
|
|
/// </summary>
|
|
Boolean,
|
|
|
|
/// <summary>
|
|
/// Tipo Int16 intero 16bit
|
|
/// </summary>
|
|
Int,
|
|
|
|
/// <summary>
|
|
/// Tipo Int32 intero 32bit
|
|
/// </summary>
|
|
DInt,
|
|
|
|
/// <summary>
|
|
/// Tipo UInt16, intero 16bit
|
|
/// </summary>
|
|
Word,
|
|
|
|
/// <summary>
|
|
/// Tipo UInt32, intero Unsigned 32bit
|
|
/// </summary>
|
|
DWord,
|
|
|
|
/// <summary>
|
|
/// Tipo REAL 32 bit
|
|
/// </summary>
|
|
Real,
|
|
|
|
/// <summary>
|
|
/// Tipo stringa
|
|
/// </summary>
|
|
String
|
|
}
|
|
|
|
/// <summary>
|
|
/// Elenco task ammessi (x IOB-WIN da eseguire...)
|
|
/// </summary>
|
|
public enum taskType
|
|
{
|
|
/// <summary>
|
|
/// Task nullo / fake
|
|
/// </summary>
|
|
nihil,
|
|
|
|
/// <summary>
|
|
/// Rimanda a PLC eventuale segnale NON in setup (MA NON RESETTA)
|
|
/// </summary>
|
|
fixStopSetup,
|
|
|
|
/// <summary>
|
|
/// Indica al PLC di forzare il reset del contapezzi
|
|
/// </summary>
|
|
forceResetPzCount,
|
|
|
|
/// <summary>
|
|
/// Indica al PLC di forzare il NUOVO valore di contapezzi (impostato come value)
|
|
/// </summary>
|
|
forceSetPzCount,
|
|
|
|
/// <summary>
|
|
/// Imposta Articolo su PLC
|
|
/// </summary>
|
|
setArt,
|
|
|
|
/// <summary>
|
|
/// Imposta Commessa su PLC
|
|
/// </summary>
|
|
setComm,
|
|
|
|
/// <summary>
|
|
/// Set di un PARAMETRO su PLC (in value avremo un JSON object)
|
|
/// </summary>
|
|
setParameter,
|
|
|
|
/// <summary>
|
|
/// Set Programma CNC su PLC
|
|
/// </summary>
|
|
setProg,
|
|
|
|
/// <summary>
|
|
/// Indica al PLC di impostare il numero di pezzi da produrre per la commessa (impostato come value)
|
|
/// </summary>
|
|
setPzComm,
|
|
|
|
/// <summary>
|
|
/// Indica al PLC iniziato setup (e secondo casi ferma contapezzi /resetta)
|
|
/// </summary>
|
|
startSetup,
|
|
|
|
/// <summary>
|
|
/// Indica al PLC finito setup (e secondo casi ferma contapezzi /resetta)
|
|
/// </summary>
|
|
stopSetup,
|
|
|
|
/// <summary>
|
|
/// Richiesta invio watchdog a PLC
|
|
/// </summary>
|
|
sendWatchDogMes2Plc,
|
|
|
|
/// <summary>
|
|
/// Indica che è FINITA la produzione (e quindi cancello dati backup)
|
|
/// </summary>
|
|
endProd,
|
|
}
|
|
|
|
public enum UserLevel
|
|
{
|
|
ND = 0,
|
|
SuperAdmin = 1,
|
|
Admin = 2,
|
|
User = 3,
|
|
UserExt = 4
|
|
}
|
|
|
|
/// <summary>
|
|
/// Tipologia di elaborazione/funzione da applicare a VC
|
|
/// </summary>
|
|
public enum VC_func
|
|
{
|
|
/// <summary>
|
|
/// Valore puntuale
|
|
/// </summary>
|
|
POINT = 0,
|
|
|
|
/// <summary>
|
|
/// Valore medio del periodo
|
|
/// </summary>
|
|
AVG,
|
|
|
|
/// <summary>
|
|
/// Valore massimo del periodo
|
|
/// </summary>
|
|
MAX,
|
|
|
|
/// <summary>
|
|
/// Valore minimo del periodo
|
|
/// </summary>
|
|
MIN,
|
|
|
|
/// <summary>
|
|
/// Calcolo MEDIANA
|
|
/// </summary>
|
|
MEDIAN
|
|
}
|
|
} |