BLKMOV and indirect addressing in Step7

Join Date
May 2012
Location
UK
Posts
1
Hi,

I am trying to copy a set of strings from an array in to a different DB

CALL "BLKMOV"
SRCBLK :=SMP#DB50.DBX ["SMS_ALM_2_POINTER"] Byte160
RET_VAL:=MW60
DSTBLK :="SMS_PARAM".SMS_TEXT
_003: NOP 0


Sorry I forgot to mention that DB50 contain 500 strings with the length of 160 characters

however as you can sse that don't work.

if I don't use indirect addressing it works fine, any suggestion on how to do this.

Thank you for you time:)
 
Last edited:
Search in S7 help for "Using the parameter type ANY"

There's an STL example there that shows you how to dynamically construct an ANY pointer at runtime.
 

Similar Topics

Hello, I have created the following code in step7 OPN "L1_Stage" L P#810.0 T #Temp1 L 405 Stag: T #Count1 L #Temp1 L P#2.0 -D T #Temp2 L DBW...
Replies
3
Views
2,937
Hello experts. Anyone has any idea how to make BLKMOV execute only once? I have tried with R_TRIG and (P) but it wont write to my location.
Replies
3
Views
195
Hi everyone, I have a short question about BLKMOV instruction, illustrated in the image below. I have the same piece of code in STEP 7 (ET200S)...
Replies
2
Views
2,683
Hi All, It has been a long, long time. But in times of crisis this is somewhere I hold in the highest regard for accurate and swift responses...
Replies
3
Views
4,382
Hello Folks! I have an application where I need to copy a string into various locations within a DB. So, I've set up a Function Block to accept...
Replies
3
Views
4,928
Back
Top Bottom