1
Support Questions / Not Enough Data
« on: October 11, 2016, 11:34:16 PM »
Hello,
I am attempting to read and write tags to a Control Logix PLC, using the EthernetIPforCLX driver.
We have various numeric and standard string tags, and it works fine for these.
However for SHORT STRING and LONG STRING data types, attempting to write results in an error message "Not Enough Data".
The following exception data is generated:
ClxDriver.Common.PLCDriverException
ErrorCode=19
HResult=-2146233088
Message=Not Enough Data
Source=ClxDriver
StackTrace:
at ClxDriver.EthernetIPforCLX.Write(String startAddress, Int32 numberOfElements, String[] dataToWrite)
at ClxDriver.EthernetIPforCLX.Write(String startAddress, String dataToWrite)
at VBDemo.Form1.SynchronousWriteButton_Click(Object sender, EventArgs e)
Attempting to read SHORT and LONG string tags executes without exceptions, however the data is not decoded into the actual strings. Instead they are some sort of raw format containing a length value and a string of hexadecimal values corresponding to the ASCII bytes. e.g. "06000000526f6c616e6400000000000000000000".
I have tried writing the same data back to the tag however even this still fails with the same "Not Enough Data" error.
The results are the same using either the Standalone Driver VBdemo or the AdvancedHMI free version.
Does anyone know how to solve this issue?
Thanks,
Roland
I am attempting to read and write tags to a Control Logix PLC, using the EthernetIPforCLX driver.
We have various numeric and standard string tags, and it works fine for these.
However for SHORT STRING and LONG STRING data types, attempting to write results in an error message "Not Enough Data".
The following exception data is generated:
ClxDriver.Common.PLCDriverException
ErrorCode=19
HResult=-2146233088
Message=Not Enough Data
Source=ClxDriver
StackTrace:
at ClxDriver.EthernetIPforCLX.Write(String startAddress, Int32 numberOfElements, String[] dataToWrite)
at ClxDriver.EthernetIPforCLX.Write(String startAddress, String dataToWrite)
at VBDemo.Form1.SynchronousWriteButton_Click(Object sender, EventArgs e)
Attempting to read SHORT and LONG string tags executes without exceptions, however the data is not decoded into the actual strings. Instead they are some sort of raw format containing a length value and a string of hexadecimal values corresponding to the ASCII bytes. e.g. "06000000526f6c616e6400000000000000000000".
I have tried writing the same data back to the tag however even this still fails with the same "Not Enough Data" error.
The results are the same using either the Standalone Driver VBdemo or the AdvancedHMI free version.
Does anyone know how to solve this issue?
Thanks,
Roland