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?
Analog Numeric String
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Analog Numeric String
You need to increase the length of your string. by default it is set to size 1.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Analog Numeric String
Ah. No way to wrap the text?
Re: Analog Numeric String
I changed the data type size but it didn't affect the runtime.
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Analog Numeric String
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"?
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"?
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Re: Analog Numeric String
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. ?
-
- Posts: 824
- Joined: Tue Mar 13, 2012 9:53 am
Re: Analog Numeric String
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.
Best Regards,
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer
Mark Monroe
Beijer Electronics, Inc. | Applications Engineer