(0)| 8/12/2010 4:47 AM | |
|
Joined: 10/7/2005 Last visit: 1/12/2026 Posts: 3054 Rating:
|
Hello gbs here's my take on possible solutions: 1.) As per billwest's suggestion (use DB1 and DB2 register to have two DB's open at the same time): L 410 A #condition_1 JCtrx L 411 A #condition_2 JCtrx . .moreconditions here . trx: T #pntrDB OPN DI [#pntrDB] // Open DBvia "DB2" register(aka "DI" register) L DIB 0 // Load Byte 0 from DB that is open via"DB2" register T DB101.DBB 0 // store value in Byte 0 of DB101 L DIB 6 // Load Byte6 from DB that is open via"DB2" register T DB101.DBB 18 // store value in Byte18 of DB101. .copy more variables . . NOTE: A fully qualified DB access (e.g. "T DB101.DBB0") willopen the the DB (DB101 in this example) viathe DB 1 register(see also HERE for more) 2.) If you only have two variables to transfer: L DB410.DBB 0 L DB410.DBB6 A #condition_1 JC trx L DB411.DBB 0 3.) If you have a continous range of values to transfertake look at SFC20 (you''ll have to create your own Source ANY pointer though as your Source DB is variable). I hope this helps |
|
Cheers |
|
This contribution was helpful to
|
|
Follow us on