S7: SFC20 "BLKMOV" Problem

pethoek

Member
Join Date
Apr 2009
Location
Järbo
Posts
105
I Can't see why the first block move returns 8325 but second works. (well i can see why the second works)..

What is wrong with my pointers, please help me out.
Error 8325: as far as i understand something is wrong with the destination pointer (parameter 3, passed to the "BLKMOV" and 25 states it is a Range error when writing a parameter. What am i missing here..

Code:
_200: L     #TxDB                       // Open TxDB
      T     #L_TX_DBB
      OPN   DB [#L_TX_DBB]
 
      LAR1  P##SrcPtr                   // Source Ptr
      L     W#16#1002                   // S7 + Byte
      T     W [AR1,P#0.0]
      L     DBB  130                    // Bytes to be copied
      T     W [AR1,P#2.0]
      L     #TxDB                       // DB to copy from
      T     W [AR1,P#4.0]
      L     P#DBX 131.0                 // DBB to copy from
      T     W [AR1,P#6.0]
 
      LAR1  P##DstPtr                   // Destination Ptr
      L     W#16#1002                   // S7 + Byte
      T     W [AR1,P#0.0]
      L     DBB  130                    // Bytes to be copied
      T     W [AR1,P#2.0]
      L     #TxDB                       // DB to copy to
      T     W [AR1,P#4.0]
      L     P#DBX 192.0                 // DBB to copy to
      T     W [AR1,P#6.0]
 
 
// This first "BLKMOV" fails, returning 8325
      CALL  "BLKMOV"
       SRCBLK :=#SrcPtr
       RET_VAL:=#RetVal
       DSTBLK :=#DstPtr
 
// This "BLKMOV" works fine
      CALL  "BLKMOV"
       SRCBLK :=P#DB1.DBX131.0 BYTE 16
       RET_VAL:=#RetVal
       DSTBLK :=P#DB1.DBX192.0 BYTE 16
 

Similar Topics

In one network SFC20(BLkMOV) is used to transfer 8 byte data from P#DB500.DBX8.0(SRC BLK) to P#DB20.DBX4.0(DST BLK). I would like to change...
Replies
2
Views
4,262
I have a program that has product dependant values held within a datablock. All the values that are currently being used are held within DB100 and...
Replies
6
Views
3,539
I have a very strange issue and I cannot figure out why it is not working. I read input of type pointer and store it to local temp type any. I...
Replies
4
Views
1,925
Hello everyone! I'm moving string value from DB to Q area for displaying it at WinCC. I see some value is presented in DB in Variable Table...
Replies
16
Views
5,634
Hello all, IN S7-300 Does anyone know if its possible to address sfc20 source and destination with variable addresses? ie Indirect addresses...
Replies
10
Views
2,972
Back
Top Bottom