How do I pass different string size to AOI?

BachPhi

Member
Join Date
Dec 2007
Location
Los Alamos
Posts
640
I have a AOI, inside I have a 'Str_Source' declared as INOUT with STRING data type.
It works fine using the same string data type, but I want the AOI to be more generic, ie. can use different string sizes [ larger than 82].

Thanks in advance for any help.
 
You can create a custom string size with any number of characters.
Just set the largest size you may need.
Actual strings passed via parameters can have less than that as long as data type is the same.
 
A custom string is defined as being different from 82 char. I am asking to be able to use any custom string size. so your response does not really answer my question.
 
Just an out loud thought here but if you made a custom string that was large enough to contain the maximum amount of characters you would want, make it a parameter of your AOI but maybe a "not visible" and "not required", then maybe you could map values to is using COP external to the AOI.
 

Similar Topics

Hello, I am still new to PLC programming and I just got this job two year out of school so I don’t remember much. I was given a task were I have...
Replies
1
Views
165
So I'm having issues with a certain rung and one of my coworkers mentioned it may not allow the signal past the latch coil. For example in the...
Replies
27
Views
3,732
I’m a bit stuck on HMI (KTP-1200) programming… See the picture attached. The PASS or FAIL box should only appear when the toggle switch is...
Replies
7
Views
1,049
I've been given a line that has several sysmac c200Hx PLCs. The First station Im trying to wrap my head around has a NS8 HMI. I'm using Cx-one...
Replies
2
Views
742
See image below. Look at line 95. I tested all data type, but none of them works. https://ibb.co/H2Csr15 See this. TEMPDATA2 is used only...
Replies
3
Views
2,701
Back
Top Bottom