
adccommunitymod (AutomationDirect) asked a question.
Created Date: February 04,2009
Created By: amcbrearty
**** 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 have been working on the a C-more project and one of my co-workers noticed a problem with the touch screen. I am specifying data type “unsigned int 16” and “signed int 16” for V-memory data. But I was told the correct data type should be “BCD INT 16” and that using the other data type can produce unpredictable results. So my question is actually two-fold. 1. Is there an easy way to convert my "un/signed int 16 " data in Cmore to "BCD INT 16 "? I tried using 'export/convert in excel/import ', but that did not work. I also cannot simply delete/recreate my data because they are already used in Cmore. 2. What are the issues with Cmore data and PLC v-registers? Thanks, -a
Created Date: February 04,2009
Created by: bcarlton
The 'V ' memory data in the AutomationDirect PLCs can be used as BCD or as INT (CMore nomenclature). The only was to know how to specify in the C-More display is to inspect the usage in the PLC program and/or its documentation. A mismatch will cause incorrect information to be displayed and/or entered if a 'numeric entry ' type operator is used. Without inspecting the program or documentation there is no sure way to tell which setup (BCD or INT) should be used.
If a tag in the C-More is only used once you should be able to change its type in the tag editor. Otherwise, the way I have done this is to create a new tag of the correct type with the name just 1 character different (e.g. TAG -> TAG1). The go to each object (use the Tag cross reference as needed) and change to the new tag. Once you are done the old tag (TAG) can be deleted and then the new tag (TAG1) changed to TAG.
Created Date: February 04,2009
Created by: amcbrearty
So, in order to avoid problems, the data types in Cmore MUST match the data type of the V-register in the PLC. Thanks - I did not know that.
How about converting my 'signed int 16 ' to "BCD INT 16 "?
Created Date: February 04,2009
Created by: bcarlton
Refresh and read my second paragraph
I should have added that the V registers can store Real/Floating Point numbers also. This is with the same warnings about matching the display dtag type to the program type.
Created Date: February 04,2009
Created by: amcbrearty
I have been working on the a C-more project and one of my co-workers noticed a problem with the touch screen. I am specifying data type “unsigned int 16” and “signed int 16” for V-memory data.
But I was told the correct data type should be “BCD INT 16” and that using the other data type can produce unpredictable results.
So my question is actually two-fold.
1. Is there an easy way to convert my "un/signed int 16 " data in Cmore to "BCD INT 16 "? I tried using 'export/convert in excel/import ', but that did not work. I also cannot simply delete/recreate my data because they are already used in Cmore.
2. What are the issues with Cmore data and PLC v-registers?
Thanks,
-a