aggiunto echo section OPTPAR
This commit is contained in:
@@ -36,3 +36,8 @@ MAX_COUNTER_BLINK = 15
|
||||
;bit7 = 0
|
||||
BLINK_FILT=0
|
||||
;BLINK_FILT=28
|
||||
|
||||
[OPTPAR]
|
||||
;COUNTMODE=STD|BIT
|
||||
COUNTMODE=BIT
|
||||
COUNTMEMADDR=X7.1
|
||||
@@ -20,7 +20,6 @@ namespace IOB_WIN
|
||||
[Serializable]
|
||||
public class IobConfiguration
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Codice univoco IOB
|
||||
/// </summary>
|
||||
@@ -53,7 +52,10 @@ namespace IOB_WIN
|
||||
/// Valore intero corrispondente ai BIT da filtrare x blinking
|
||||
/// </summary>
|
||||
public int BLINK_FILT;
|
||||
|
||||
/// <summary>
|
||||
/// Dizionario dei parametri opzionali
|
||||
/// </summary>
|
||||
public Dictionary<string, string> optPar;
|
||||
/// <summary>
|
||||
/// Avvio configurazione DUMMY
|
||||
/// </summary>
|
||||
@@ -67,6 +69,7 @@ namespace IOB_WIN
|
||||
serverData = new serverMapo("127.0.0.1", "/", "/IOB/input/", "/IOB/flog/", "/IOB", "/IOB/enabled/", "/sendReboot.aspx?idxMacchina=");
|
||||
MAX_COUNTER_BLINK = 10;
|
||||
BLINK_FILT = 0;
|
||||
optPar = new Dictionary<string, string>();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+17
-17
@@ -278,21 +278,6 @@ namespace IOB_WIN
|
||||
public override string getPrgName()
|
||||
{
|
||||
string prgName = "";
|
||||
// vecchia versione con prg corrente...
|
||||
#if false
|
||||
CncLib.Focas1.ODBEXEPRG answ = FANUC_ref.getPrgName();
|
||||
try
|
||||
{
|
||||
// nome prg bonificato!
|
||||
string nome = utils.purgedChar2String(answ.name);
|
||||
//string nome = new string(answ.name.Where(c => char.IsLetter(c) || char.IsDigit(c)).ToArray());
|
||||
prgName = string.Format("{0}|{1}", answ.o_num, nome);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
lg.Error(exc, "Errore in getPrgName");
|
||||
}
|
||||
#endif
|
||||
// recupero NUOVO prgName...
|
||||
try
|
||||
{
|
||||
@@ -305,6 +290,20 @@ namespace IOB_WIN
|
||||
{
|
||||
lg.Error(string.Format("Eccezione in recupero PRG NAME MAIN:{0}{1}", Environment.NewLine, exc));
|
||||
}
|
||||
// vecchia versione con prg corrente...
|
||||
#if false
|
||||
CncLib.Focas1.ODBEXEPRG answ = FANUC_ref.getPrgName();
|
||||
try
|
||||
{
|
||||
// nome prg bonificato!
|
||||
string nome = utils.purgedChar2String(answ.name);
|
||||
prgName = string.Format("{0}|{1}", answ.o_num, nome);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
lg.Error(exc, "Errore in getPrgName");
|
||||
}
|
||||
#endif
|
||||
return prgName;
|
||||
}
|
||||
|
||||
@@ -346,10 +345,11 @@ namespace IOB_WIN
|
||||
/// </summary>
|
||||
public override void processContapezzi()
|
||||
{
|
||||
|
||||
//base.processContapezzi();
|
||||
if (utils.CRB("enableContapezzi"))
|
||||
{
|
||||
// verifico quale modalità sia richiesta: STD (6711) oppure BIT (CUstom, con indicazione area)
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
object output = new object();
|
||||
|
||||
@@ -540,7 +540,18 @@ namespace IOB_WIN
|
||||
displayTaskAndLog(string.Format("Loading iniConfFile: {0}", iniConfFile));
|
||||
|
||||
IniFile fIni = new IniFile(iniConfFile);
|
||||
// verifico tipo adapter
|
||||
tipoScelto = (tipoAdapter)Enum.Parse(typeof(tipoAdapter), fIni.ReadString("IOB", "CNCTYPE", "DEMO"));
|
||||
// carivo vettore parametri opzionai
|
||||
Dictionary<string, string> optPar = new Dictionary<string, string>();
|
||||
string[] optParRaw = fIni.ReadSection("OPTPAR");
|
||||
lg.Info("------------OPT PAR------------");
|
||||
foreach (var item in optParRaw)
|
||||
{
|
||||
lg.Info(item);
|
||||
}
|
||||
lg.Info("------------OPT PAR------------");
|
||||
// inizializzio conf IOB
|
||||
IOBConf = new IobConfiguration
|
||||
{
|
||||
tipoIob = tipoScelto,
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<li>FIX visualizzazione dati FluxLog e URL inviati</li>
|
||||
<li>FIX MAIN program da FANUC (non il current)</li>
|
||||
<li>Inserita modalità DUMP memoria (iniziale full + periodica)</li>
|
||||
<li>Inserimento gestione contapezzi standard/checkBit in IOB.cfg</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
|
||||
Reference in New Issue
Block a user