
adccommunitymod (AutomationDirect) asked a question.
Created Date: May 26,2017
Created By: Ibsft
**** This post has been imported from our legacy forum. Information in this post may be outdated and links contained in the post may no longer work.****
Confused over ASCII text in the click. I want to use the text memory TXT1 to save one letter. Then at the end of an event copy TXT100-TXT198 to TXT101-TXT199 (indexing the memory one address) and then copy TXT1 to TXT100. Then the program loads a space into TXT1 ( " ") to clear it for the next run. Unfortunately this causes multiple letters to display on the CMore, not just the one. Is every TXT memory 7 bits (ie TXT1 is really TXT1 - TXT7)? I tried searching the forum but am still not understanding how the click handles TXT. What would be a good source to find the information I'm looking for? The Help file in the click 2.10 is no help and the user manual isn't much better. Also, is there a way to access individual memory bits of the DS memory like you can with the V memory in DL06 plc? Thank you for any help.
Created Date: May 26,2017
Created by: Ibsft
Confused over ASCII text in the click. I want to use the text memory TXT1 to save one letter. Then at the end of an event copy TXT100-TXT198 to TXT101-TXT199 (indexing the memory one address) and then copy TXT1 to TXT100. Then the program loads a space into TXT1 ( " ") to clear it for the next run. Unfortunately this causes multiple letters to display on the CMore, not just the one. Is every TXT memory 7 bits (ie TXT1 is really TXT1 - TXT7)? I tried searching the forum but am still not understanding how the click handles TXT. What would be a good source to find the information I'm looking for? The Help file in the click 2.10 is no help and the user manual isn't much better.
Also, is there a way to access individual memory bits of the DS memory like you can with the V memory in DL06 plc?
Thank you for any help.
Created Date: May 26,2017
Created by: techme
Use a regular Copy instruction to copy TXT 1 to TXT 100. Then use a block copy instruction with an edge contact in front of it to shift the data from TXT 100- TXT 197 ( in my example) to TXT 101 - TXT 198 ( in my example). This will shift the text down each time the one shot edge contact is true.
No bit of word that I know of. I do not work with Click very often. But you can copy your DS word to DH and then do an Unpack Copy instruction to C bits.
{ "data-align ": "none ", "data-size ": "large ", "data-attachmentid ":106444}
Created Date: May 26,2017
Created by: Ibsft
Wow, I'm loosing it. I asked a similar question about the Micro a little over a year ago. The problem is (besides me being an idiot) the CMore needing the text string tag to be 2 data places.
From last year: Notice in the Add Tag window, when you create an ASCII String tag, the minimum number of characters is 2. That is because of what Do-More PE and TINKER said. Modbus (CLICK protocol) works on the word level(16 bit) not byte (8-bit) level. One character is one byte. Since the program with the Micro appears to work I'll assume I can do the same thing with the CMore EA9. It still feels wrong that I'm loading single letters into single txt memory locations, yet I have to look at two with the Cmore and then make the viewing field small so it only displays one letter.
Thanks techme, I'm just looking for ways to waste less memory for data capture.