
Cnero11 (Customer) asked a question.
Data Logging TXT bits
I am working on a data logging project which saves certain data points throughout a product run. One of the data points that I would like to save is a part number that includes "-" and possible other letters. In order to do this i need to use a TXT bit but it seems that the data logger does not allow txt bits to be used. Any suggestions?
Can you share an example of the exact data you’re wanting to log (even one sample “record”/line)?
Also, I’m not sure what you mean by “TXT bit.” Are you referring to a text/string value, or an actual Boolean bit (on/off)?
In Productivity Suite, if your goal is to capture multiple values together as one logged entry, one approach is to build a single STRING tag that concatenates those values (with separators/labels), then log that STRING tag.
I am referring to a text/string value in the Click Plus PLC software.
I am looking to log a workorder number that has letters associated with it. Ex. INV331256 would be the value given to the text
The easiest option is to use numbers and have a lookup for number to part number. But here are a couple alternate suggestions
Option 1:
Convert the text to ASCii characters and log that. If the strings are short, you can calculate a long int (DD) to combine several characters (INV = 737886)
The Copy instruction lets you copy a TXT register to a DS register and convert the letter to its CHAR code. Then a math statement to combine DD1=DS1*10000+DS2*100+DS3
Option 2:
If the string is a constant (Always INV-) you can embed a discrete like C1, then in the Format option set the On value to INV-. Then just leave C1 on