Page 1 of 1

Analog Numeric String

Posted: Tue Jul 30, 2013 9:59 am
by drdeason
I am reading a string from a CompactLogix PLC via an Analog Numeric object, and only the first character shows up. The "Limit Characters to" checkbox is unchecked, but tried it checked with a length of 10 and got the same results. However, I am able to see the entire value of an internal string.

Also, Is there any way to get wrap the string text?

Re: Analog Numeric String

Posted: Tue Jul 30, 2013 10:07 am
by mark.monroe
You need to increase the length of your string. by default it is set to size 1.
Snap 2013-07-30 at 10.05.24.jpg
Snap 2013-07-30 at 10.05.24.jpg (74.03 KiB) Viewed 10022 times

Re: Analog Numeric String

Posted: Tue Jul 30, 2013 10:21 am
by drdeason
Ah. No way to wrap the text?

Re: Analog Numeric String

Posted: Tue Jul 30, 2013 10:41 am
by drdeason
I changed the data type size but it didn't affect the runtime.

Re: Analog Numeric String

Posted: Tue Jul 30, 2013 10:58 am
by mark.monroe
No, there is no way to wrap the text in an Analog Numeric Box.

If you change the String length to 6, and type in the Analog Numeric Box, does your text change in the PLC for that memory register? What register are you trying to access in the PLC? For example, "A.B"?

Re: Analog Numeric String

Posted: Tue Jul 30, 2013 11:32 am
by drdeason
I unchecked "disable operator input", typed some text, and it worked. Even after I checked the box again. I had to do that for every instance. ?

Re: Analog Numeric String

Posted: Tue Jul 30, 2013 11:51 am
by mark.monroe
I am not sure why that fixed the issue. Have you tried pressing the "Rebuild" Button? That will recompile your entire project. Maybe something got out of sync between your project source code and the compiled project.