How to copy the fixed local data in an OB?

tonus

Member
Join Date
Apr 2009
Location
Europe
Posts
10
This may sound academic, but just for the sake of my understanding, I would like to copy the fixed part of local variables in for instance OB80..OB100.
That fixed data field is commonly 20 bytes long but its types may vary depending on the OB-number.

What is wrong with an any-pointer constructed from this STL data B#16#10020014000086000000 say MyPointer and an integer MyResult followed by: CALL "BLKMOV", SRCBLK:=MyPointer, DSTBLK:=P#M100.0 BYTE 20, RET_VAL:=MyResult. MyResult will end up in B#16#8124.

The MyPointer is intended to point to twenty bytes of data starting at the beginning of the local stack in a S7 OB-block.

:eek:
 
Replace the 86 with 87

Thanks, giving it a look.
But then I consider what is the difference between #86 local data and #87 previous local data? đź“š
And, yes indeed #87 gives results. 🍻


By the way I have no idea what should be in the first accu after loading your acronym.🤷
 

Similar Topics

I have 2 7cp476 plcs. How can I copy one of them and install it somewhere else?
Replies
0
Views
75
Hello Inside a FB, I´m trying to transfer a string from a DB to a IN_OUT var that was define as a UDT. The problem is that i can´t determine the...
Replies
4
Views
142
Hi everyone I'm in a bit of a conundrum, I've been trying to get this HMI on our machine and I am unable to retrieve it. Device Delta Model...
Replies
10
Views
901
Hi I have a Melsec FX1S-20MR, which has been programmed. I would like to copy the program to a new FX1S-20MR? What are the possible ways to do...
Replies
4
Views
630
Project involves updating a ~23 year old controller (C200HX CPU64). The HMI is a windows NT machine with the gui done with Delphi 5 (Pascal)...
Replies
1
Views
1,104
Back
Top Bottom