Step7 Micro/WIN dealing with Strings

AndriusS

Member
Join Date
Feb 2013
Location
Klaipeda
Posts
1
Problem 1:
I'm concatenating some information as I go to a symbol, let's say, VB50. After I send the info to the touch panel, I need to reset it so I just do:
SCPY   0, VB50


As in STR_CPY 0 to VB50 (I do Ladder, not STL, it's just for easier reading in forums).
Thing is, it only "resets" the first address not the whole string. If the string is not on the short side, it won't clean other addresses.
Or am I doing something wrong with this? Not sure how I could do a loop to STR_CPY 0 to all the close addresses.

Problem 2:
Is there a way I could force UTF-8 (specifically, Lithuanian) letters into strings? Or is it a problem in WinCC Flexible? It seems to render Lithuanian letters fine when I just write them directly there.

Thanks for the help ;)
 
For clearing some memory you could use a series of MOV_B or MOV_W or MOV_DW or a quicker way is to use the table function FILL_N. FILL_N lets you fill a number of Words with a value.

Don't know enough about UTF-8 to help on that, except that the PLC just holds ASCII values in memory it doesn't know or care what character set it is written in.

http://www.asciitable.com/
 

Similar Topics

Hi everybody! I need to add a network module CP243-1 to an existing S7-200. I'm using the Step7 Micro/Win to do the configuration. I try to...
Replies
8
Views
2,827
Just when you think your problem is solved..... new problem! My Siemens rep came through with with the Step7 Micro/WIN software I needed for a...
Replies
4
Views
6,914
I have an opportunity to quote an HMI project for one of my customers. It's a small project, and the customer is not the type with deep pockets...
Replies
3
Views
24,837
when i compare the program from the plc with the one in step 7 i receive several differencies.Cause?
Replies
0
Views
4,199
I couldn't find the Step7 micro/win manual at the Siemens site. Is it free for downlaod and where can i get it, or I've to pay for it. There is a...
Replies
10
Views
19,963
Back
Top Bottom