
adccommunitymod (AutomationDirect) asked a question.
Created Date: August 19,2009
Created By: jeremysji
**** 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.****
I'm trying to convert one of our existing products from using a DL06 with an analog input card to a CLICK with built-in analog IO. The main portion of the program is working fine thanks to those handy Math boxes. I'm trying to let the user name the input channel and I'm having trouble setting a default value and keeping it. I typed it into text view while initially programming in the click, thinking that it would be saved with the program and transferred whenever a new unit is programmed. The problem arises when the PLC is powered off. It looks like there's no way to make the TXT range retentive, so there's no way that I can see to hold either the default value or the users custom value through a power cycle. I'm not opposed to storing them as ascii in a retentive range of DS or DD memory and then copying them back to the TXT range on powerup, but the copy instruction won't let me enter the ascii characters to set the default value. Leaving them in the DS or DD range would work, but the C-More I'm using will only let me select the TXT range for displaying and modifying dynamic text. Anyone have any ingenious workarounds? -Jeremy
Created Date: August 19,2009
Created by: jeremysji
I'm trying to convert one of our existing products from using a DL06 with an analog input card to a CLICK with built-in analog IO. The main portion of the program is working fine thanks to those handy Math boxes.
I'm trying to let the user name the input channel and I'm having trouble setting a default value and keeping it. I typed it into text view while initially programming in the click, thinking that it would be saved with the program and transferred whenever a new unit is programmed. The problem arises when the PLC is powered off. It looks like there's no way to make the TXT range retentive, so there's no way that I can see to hold either the default value or the users custom value through a power cycle.
I'm not opposed to storing them as ascii in a retentive range of DS or DD memory and then copying them back to the TXT range on powerup, but the copy instruction won't let me enter the ascii characters to set the default value. Leaving them in the DS or DD range would work, but the C-More I'm using will only let me select the TXT range for displaying and modifying dynamic text.
Anyone have any ingenious workarounds?
-Jeremy