PLCS.net - Interactive Q & A

PLCS.net - Interactive Q & A (http://www.plctalk.net/qanda/index.php)
-   LIVE PLC Questions And Answers (http://www.plctalk.net/qanda/forumdisplay.php?f=2)
-   -   String Indirect addressing from one DB to another DB (http://www.plctalk.net/qanda/showthread.php?t=128956)

Sreekanth April 8th, 2021 12:35 PM

String Indirect addressing from one DB to another DB
 
1 Attachment(s)
I have one common Buffer DB 10 with multiple String values, I am trying to move from DB10 to MainDB 20 using with SFC 20 Move block not sure how to do this.:smas:

beethoven_ii April 8th, 2021 01:21 PM

It's not strictly indirect addressing but...
Call your SFC20 block.
For your SRCBLK put P#DB10.DBX0.0
Create a temp Int variable called Temp_Ret_Val and use #Temp_Ret_Val for your RET_VAL
For your destination put P#DB20.DBX0.0 BYTE 608

That should copy all the strings from DB10 into DB20
Adjust the SRC address, destination address and number of bytes depending on how many strings you want to move and where you want to move them to.

L D[AR2,P#0.0] April 8th, 2021 06:17 PM

Which plc type and programming platform?

Sreekanth April 8th, 2021 11:07 PM

String Indirect addressing from one DB to another DB
 
Thanks for the reply, Beethoven!

Could you please send me a example how to change Source address.


All times are GMT -4. The time now is 09:50 PM.

.