1
Support Questions / Re: Read ControlLogix Serial Number
« on: April 03, 2017, 03:34:18 PM »
Thank you for the answer. I didn't know that you have created documentation.
The sample from the article works correctly. However, the code snippet about the serial number doesn't work. _driver.BeginGetAttributeSingle(1, 1, 6); It returns an array - 142,0,0,0,23,235, 61, 0
By the way I found another public method - _driver.ListIdentity(500); It returns Serial Number: 4058050 while my actual serial number is 003DEB17.
What am I missing ?
-----
I just found the answer. In order to get the serial number I need the last four digits from e.RawData
After that I have to convert them to hexadecimal and to concatenate them starting from the last to the first one.
The sample from the article works correctly. However, the code snippet about the serial number doesn't work. _driver.BeginGetAttributeSingle(1, 1, 6); It returns an array - 142,0,0,0,23,235, 61, 0
By the way I found another public method - _driver.ListIdentity(500); It returns Serial Number: 4058050 while my actual serial number is 003DEB17.
What am I missing ?
-----
I just found the answer. In order to get the serial number I need the last four digits from e.RawData
After that I have to convert them to hexadecimal and to concatenate them starting from the last to the first one.