Siemens tia storing a string

stu

Member
Join Date
Aug 2005
Location
England
Posts
783
Hi
I have a vision camera that I’m getting the string data P908765 from the vision on an advance trigger .which im using a S -move. Then I put that into a <> to compare 3 codes.
But I’ve noticed that when the advanced trigger is not active I get drop the value.
I’m thinking I need a storage of the string so very time the code updates it stores it in the compare function and on the display,
How would you store a string, would you move the vision string to another string and then S-move that to the display
Stu
 
Yes, make a string tag in a relevant DB (or as a static of your FB, whichever), and move it in whenever a new value is available. Then have the compares and the display point to the new tag.
 

Similar Topics

I am currently am in a PLC class and need urgent help on how the ladder logic would be laid out. I understand how to get the traffic lights to...
Replies
19
Views
446
Hello, If the date on the license manager of tia Portal has expired, can I still work with it? or is this just to keep the program up to date...
Replies
7
Views
210
Does anyone know why my one string is displaying this way? It is causing issues with my HMI displaying it.
Replies
4
Views
266
Context: PLC= S7-1212C, HMI=KTP1200 Basic. Hi again, When the "REPORT" button is pressed (on a different screen), it takes the operator to the...
Replies
7
Views
665
Context: PLC= S7-1212C, HMI=KTP1200 Basic. Hi, The operator has reported that, from time-to-time, when he presses the "Generate Report" button...
Replies
5
Views
463
Back
Top Bottom