fix fastcopy x FANUC...

This commit is contained in:
Samuele E. Locatelli
2017-06-30 12:31:11 +02:00
parent ea324b6f81
commit 517526d454
4 changed files with 5 additions and 6 deletions
+3 -3
View File
@@ -80,8 +80,8 @@ namespace MTC_Adapter
/// <param name="caller"></param>
/// <param name="adpConf"></param>
public AdapterFanuc(MainForm caller, AdapterConf adpConf) : base(caller, adpConf)
{
// è littel endian (NON serve conversione)
{
// è little endian (NON serve conversione)
hasBigEndian = false;
lg.Info("Start init Adapter FANUC all'IP {0}", utils.CRS("ipPLC"));
@@ -513,7 +513,7 @@ namespace MTC_Adapter
}
else
{
Buffer.BlockCopy(MemBlock, 0, AlarmFlags, i, MemBlock.Length);
Buffer.BlockCopy(MemBlock, 0, AlarmFlags, i * 4, MemBlock.Length);
}
// segnalo allarme letto! memorizzo allarme nel vettore ack....
@@ -3189,7 +3189,6 @@ namespace MTC_Adapter
{
// leggo 32bit alla volta...
AlarmBlock = (StFlag32)BitConverter.ToUInt32(AlarmFlags, i * 4);
for (int j = 0; j < 32; j++)
{
// converto! e aggiungo allarmi sollevati al corretto controller allarmi...
+1 -1
View File
@@ -199,7 +199,7 @@ namespace MTC_Adapter
vettGCodes_02 = new ushort[14];
contChkGCod = utils.CRI("contChkGCod");
// è littel endian (NON serve conversione)
// è little endian (NON serve conversione)
hasBigEndian = false;
lg.Info("Start init Adapter OSAI all'IP {0}", utils.CRS("ipPLC"));
+1 -1
View File
@@ -203,7 +203,7 @@ namespace MTC_Adapter
MemBlock_MST = new byte[46];
// salto NON necessario!
saltoMST = 0;
// è littel endian (SERVE conversione)
// è little endian (SERVE conversione)
hasBigEndian = true;
lg.Info("Start init Adapter SIEMENS");