250 lines
5.1 KiB
C#
250 lines
5.1 KiB
C#
namespace MapoSDK
|
|
{
|
|
|
|
/// <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>
|
|
/// 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>
|
|
/// Finestra temporale di aggregazione dati VC
|
|
/// </summary>
|
|
public enum timeWindow
|
|
{
|
|
free,
|
|
hour,
|
|
day,
|
|
week,
|
|
month
|
|
}
|
|
/// <summary>
|
|
/// Tipo di esito (generico)
|
|
/// </summary>
|
|
public enum esitoExec
|
|
{
|
|
undone,
|
|
ok,
|
|
error
|
|
}
|
|
|
|
/// <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>
|
|
/// Tipologia di selettore
|
|
/// </summary>
|
|
public enum tipoSelettore
|
|
{
|
|
articoli
|
|
}
|
|
/// <summary>
|
|
/// Tipo di IOB
|
|
/// </summary>
|
|
public enum IobType
|
|
{
|
|
/// <summary>
|
|
/// Non definito
|
|
/// </summary>
|
|
ND,
|
|
/// <summary>
|
|
/// IOB rPI
|
|
/// </summary>
|
|
rPi,
|
|
/// <summary>
|
|
/// IOB Windows
|
|
/// </summary>
|
|
WIN
|
|
}
|
|
|
|
/// <summary>
|
|
/// tipologia di evento (generico) segnalato
|
|
/// </summary>
|
|
public enum tipoEvento
|
|
{
|
|
/// <summary>
|
|
/// evento di reset
|
|
/// </summary>
|
|
reset,
|
|
/// <summary>
|
|
/// richiesta editing
|
|
/// </summary>
|
|
edit,
|
|
/// <summary>
|
|
/// nuova selezione
|
|
/// </summary>
|
|
selection,
|
|
/// <summary>
|
|
/// eliminazione record(s)
|
|
/// </summary>
|
|
delete
|
|
}
|
|
public enum DataItemCategory
|
|
{
|
|
CONDITION = 0,
|
|
EVENT = 1,
|
|
SAMPLE = 2
|
|
}
|
|
|
|
public enum tipoBarcode
|
|
{
|
|
/// <summary>
|
|
/// tipo non riconosciuto
|
|
/// </summary>
|
|
nd,
|
|
/// <summary>
|
|
/// identifica una matricola operatore nel formato OPxxxxx (xxxxx è un intero che rappresenta la matricola, std fino a 8 cifre)
|
|
/// </summary>
|
|
matrOperatore,
|
|
/// <summary>
|
|
/// identifica un cartellino di tipo CodArticolo
|
|
/// </summary>
|
|
codArticolo,
|
|
/// <summary>
|
|
/// identifica un codice per le attività di inizio/fine attrezzaggio e inizio/fine produzione
|
|
/// </summary>
|
|
attrezzaggio,
|
|
/// <summary>
|
|
/// identifica un codice per le attività di conferma produzione/fermi
|
|
/// </summary>
|
|
confermaProduzione,
|
|
/// <summary>
|
|
/// identifica un cartellino di dichiarazione fermata nel formato FExxxx dove xxxx è idxEvento dichiarato...
|
|
/// </summary>
|
|
dichiaraFermata,
|
|
/// <summary>
|
|
/// indentifica un codice di modifica turno
|
|
/// </summary>
|
|
modificaTurno
|
|
}
|
|
|
|
/// <summary>
|
|
/// Enumerazione tipi di semaforo
|
|
/// </summary>
|
|
public enum Semaforo
|
|
{
|
|
/// <summary>
|
|
/// Stato non definito
|
|
/// </summary>
|
|
ND,
|
|
/// <summary>
|
|
/// Verde
|
|
/// </summary>
|
|
SV,
|
|
/// <summary>
|
|
/// Giallo
|
|
/// </summary>
|
|
SG,
|
|
/// <summary>
|
|
/// Rosso
|
|
/// </summary>
|
|
SR,
|
|
/// <summary>
|
|
/// Grigio/Spento
|
|
/// </summary>
|
|
SS
|
|
}
|
|
|
|
}
|