12/24/2013 2:10 PM | |
Posts: 1 Rating:
|
Hi, ineed to replace a CPU928-3UB21 with a CPU948-3UA13. In the CPU 928 there is an FB that uses the command L BS34. BS34 means in the CPU 928 the starting address of the DB Blocks if i'm not mistaken. I have recplaced BS34 in the CPU 948 with the following L DH 000E EC00 because BS34 on a CPU948 doesn't exist. The FB in the CPU 928 also uses LIR1 and TIR3. Here i'm stuck Hopefully can anyone help me. This is the partAWL code in the CPU928. L KF +150 (DB-Nummer 150) L BS 34(Read the starting Address of DB's) +F LIR 1 L DW 0 +F L DR 5 ADDKF 1 TAK TIR 3 L DW 0 ADD KF 1 T DW 0 L KF 1009 <=F SPB =M001 L KF 10 T DW 0 M001 : *** TheLIR / TIRcommand uses in the CPU 928 16 bit and in the CPU 948 20 bit. Thanks in advance. Youri AttachmentFB231@LS.pdf (432 Downloads) |
12/27/2013 7:12 PM | |
Joined: 11/21/2007 Last visit: 7/25/2025 Posts: 2326 Rating:
|
Hello Maybe this will help you somewhat ( pl see the attachment ). Just a long shot : Since you know the DB No ( DB start address + 150 ). maybe you can use Open this DB and then do the indiect calculation part usinf RS 6 ( Start address of current DB ). Or maybe you can re-write the block using DO instead of LIR/TIR Ayyway, it is not going to be easy. Good Luck to you Cheers Navnag AttachmentS5_135U_System_Instructions.pdf (460 Downloads) |
There is no such thing as the last bug in a program |
|
Follow us on