Author Topic: Exception  (Read 1725 times)

nic_rf

  • Newbie
  • *
  • Posts: 1
    • View Profile
Exception
« on: July 23, 2015, 10:09:59 AM »
Hi,

I got an exception when I try to read an BOOL value from my PLC ( AB CompactLogix), the exception's from the EthernetIPforCLXcom.vb after I read 32 bool (overflow?) from a matrix of 128 boolean.. :

Code: [Select]
//My code :
for (int i = 0; i < 127; i++)
{
DataGridView1.Rows[i].Cells["Absolute or relative X axis?"].Value = Convert.ToBoolean(PLCDriver.Read("SEQ.Abs_X[" + i.ToString() + "]"));
}
//Line of the exception
(line 405)  d(i) = Convert.ToString(((Convert.ToInt32(Requests(TransactionByte)(0).Response.Values(ElementNumber)) And Convert.ToUInt32(2 ^ BitNumber))) > 0)

Watch status of request:
Code: [Select]
ErrorId 0 Integer
ErrorMessage Nothing String
OwnerObjectID 1 Long
PlcAddress SEQ.Abs_X[31] String
RawData {Length=10} Byte()
SubscriptionID 0 Integer
TransactionNumber 690 UShort
Values Count = 1 System.Collections.ObjectModel.Collection(Of String)
m_ErrorId 0 Integer
m_ErrorMessage Nothing String
m_OwnerObjectID 1 Long
m_PlcAddress SEQ.Abs_X[31] String
m_RawData {Length=10} Byte()
m_SubscriptionID 0 Integer
m_TransactionNumber 690 UShort
m_Values Count = 1 System.Collections.ObjectModel.Collection(Of String)
But if I use try and catch, my soft work and all value are good... But I got many exception.. isshhh :S

Can you help me?

Thank you,

Nicolas
(Version of DLL : 3.9.8.16)