I have a question regarding Ignitions TCP/IP driver.
I am trying to connect IFM's 00D303 3D Sensor directly to Ignition via the TCP/IP drive, and I was finally able to get data. I noticed when I run the sensor in continuous mode the tag value will bounce from my good data to a long string 0000L0000000310000 what is this string and why does my tag value flip to this?
Also what would be the best way to parse out my data to be used? I was thinking about putting a change script on that tag and whenever it changes and sees star; and ;stop I just write what is in between to another tag.
star;0.711;0.921;stop
Thanks,
You probably have the message framing (delimiter) set up incorrectly. "Packet Based" for TCP is a meaningless option, and it ends up just dumping whatever happens to come back from a Socket read call into the tag.
The other possibility is the data is changing too fast for the TCP driver, or some combination of both.
Packet Based is the only one I was able to get data out of the device.
This driver is only suitable for simple TCP data sources that sends ASCII/text messages where a frame can be determined by a fixed length or a fixed delimiter.
Ok so I can get data if I use the character Delimiter Type and star as my Message Delimiter, but now that random string is at the end of my value. I should be able to use this though, and parse out what I need from the string.
;0.711;0.921;stop0000L0000000270000