__sub__g Posted July 28, 2022 Report Share Posted July 28, 2022 The Variable: ACIII String is being used to display different length string from 2-15. I have to set the Number of Character to 15 for longest case but doing that 2 len string s getting duplicated. Is there a way to fix this? Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted July 28, 2022 MVP 2023 Report Share Posted July 28, 2022 There must be a Null character at the end of any string. If you're referring to what you see in VisiLogic ("Value Va"), just ignore that - it's just for visual reference while you're programming and has no effect on what shows up on the actual PLC. Link to comment Share on other sites More sharing options...
__sub__g Posted July 28, 2022 Author Report Share Posted July 28, 2022 @Flex727 Thank you for your quick response MI 299 is a string and has different length as mentioned before. When the is less than 15 it displays again.I am not taking abt Value Va. I want the user to see the output neatly. Link to comment Share on other sites More sharing options...
MVP 2023 Flex727 Posted July 28, 2022 MVP 2023 Report Share Posted July 28, 2022 1 hour ago, Flex727 said: There must be a Null character at the end of any string. Link to comment Share on other sites More sharing options...
__sub__g Posted July 28, 2022 Author Report Share Posted July 28, 2022 @Flex727 Thank you for your quick resonse. I am importing data using excel. Is there a way to add null at the end of string for all imported string. Link to comment Share on other sites More sharing options...
Gabriel Franco Posted July 28, 2022 Report Share Posted July 28, 2022 Each MI contains 2 ASCII characters, then you need 8 MIs for 15 characters including null mentioned by Flex Make sure to reset (or fill with space ASCII code) all remaining MIs when using less than 15 characters, otherwise PLC won´t show what you need. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now