9/8/2012 9:10 AM | |
Joined: 10/7/2005 Last visit: 6/24/2024 Posts: 3008 Rating: (1052)
|
Hello Yann_GPC the "B" instruction is used for indirect addresing ("B" is the German mnemonic, "DO" isthe English mnemonic). Put simple, the command following the "B" (or"DO") instruction is executed based on the variable value of the "B" instruction, for example: L KF +41 A DB 110 // open DB 110 T DW 220 // store 41 in DW 220 B DW 220 // next instruction will use the value that's in DW220 L DW 0 // = L DW 41 from DB 110 Your example logic does not show the end of what's presumably a loop, but seemsall up to do a simplecopying ofa bunch of variables from DB110 as of DW41 to DB120 as of DW102. One possible replacement for this is SFC20 "BLKMOV", but if you prefer to manually re-program it you'll find the FAQ What is the difference between STEP 7 and STEP 5 with regard to the operations for indirect addressing? helpful. I hope this helps |
Cheers |
|
This contribution was helpful to2 thankful Users |
9/11/2012 11:16 AM | |
Posts: 10 Rating: (0) |
Thank you, fritz, for your advice. It helped me a lot.
|
This contribution was helpful to1 thankful Users |
8/23/2017 7:39 AM | |
Joined: 6/19/2017 Last visit: 6/26/2024 Posts: 8190 Rating: (165) |
New question published by YeshaMae is split to a separate thread with the subject Indirect addressing in converting s5 to s7 - What if DB is not called in the program?. Best regards |
My Forum is the place to personalize your profile, |
|
Follow us on