fix fastcopy x FANUC...
This commit is contained in:
@@ -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...
|
||||
|
||||
@@ -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"));
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user