tolti commenti x scrittura...
This commit is contained in:
@@ -27,8 +27,7 @@ namespace MTC_Adapter
|
||||
/// Area di memoria base x dati TESTE (DB254)
|
||||
/// </summary>
|
||||
protected int baseMemUO = 254;
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// wrapper chiamata lettura/scrittura SINGOLO BYTE...
|
||||
/// </summary>
|
||||
@@ -159,7 +158,9 @@ namespace MTC_Adapter
|
||||
|
||||
lg.Info("Start init Adapter SIEMENS", utils.CRS("ipPLC"));
|
||||
|
||||
parentForm.commPlcActive = true;
|
||||
Runtime.CreateNC(CNC.NcType.SIEMENS, utils.CRS("ipPLC"));
|
||||
parentForm.commPlcActive = false;
|
||||
|
||||
// inizializzo posizioni assi...
|
||||
prevPosAxis = new double[adpConf.nAxis];
|
||||
@@ -332,9 +333,7 @@ namespace MTC_Adapter
|
||||
try
|
||||
{
|
||||
inizio = DateTime.Now;
|
||||
#if false
|
||||
SIEMENSMemRW_Byte(W, baseMemDb, memIndexAck, ref currACK_DW);
|
||||
#endif
|
||||
if (utils.CRB("recTime")) TimingData.addResult(string.Format("W{0}-ACK_DW0", currACK_DW.Length), DateTime.Now.Subtract(inizio).Ticks);
|
||||
fatto = true;
|
||||
}
|
||||
@@ -376,11 +375,8 @@ namespace MTC_Adapter
|
||||
/// <returns></returns>
|
||||
public override bool writeWatchDog(ref byte[] retACK_DW)
|
||||
{
|
||||
return false;
|
||||
#if false
|
||||
int memIndex = 38;
|
||||
int memIndex = 8;
|
||||
return SIEMENSMemRW_Byte(W, baseMemDb, memIndex, ref retACK_DW);
|
||||
#endif
|
||||
}
|
||||
/// <summary>
|
||||
/// Effettua lettura dati TESTING
|
||||
@@ -413,12 +409,9 @@ namespace MTC_Adapter
|
||||
/// <returns></returns>
|
||||
public override bool writeAlarmAck(ref byte[] retACK_DW0)
|
||||
{
|
||||
return false;
|
||||
#if false
|
||||
// DB1499.DBX0.0
|
||||
int memIndexAck = 0;
|
||||
return SIEMENSMemRW_Byte(W, baseMemDb, memIndexAck, ref retACK_DW0);
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user