Simatic S7 SFC20(BLKMOV) Question

arocon

Member
Join Date
Oct 2006
Location
Dubai
Posts
171
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 P#DB500.DBX8.0 to P#DB1000.DBX8.0. But it does not accept. Though both are same data type.

Could anyone please as soon as possible tell me what is the problem ?

Thank you
 
There are 2 methodes

1 Use any parameters
Code:
      CALL  "BLKMOV"
       SRCBLK :=P#DB500.DBX8.0 BYTE 8
       RET_VAL:=MW20
       DSTBLK :=P#DB1000.DBX8.0 BYTE 8

2 use symbolik adressing and siemens knows the any parameter
the byte's to move must be in a structure
Code:
    CALL  "BLKMOV"
       SRCBLK :="datablock500".ByteStruct
       RET_VAL:=MW20
       DSTBLK :="datablock1000".ByteStruct
 
You don't say what CPU you are using. DB1000 may be outside the addressable range of the CPU but probably not as you are already using DB500. The other thing to check is that DB1000 is at least 16 bytes long or there will not be room for the data.

Nick
 
Last edited:

Similar Topics

I am new to this forum and would need your help. I am looking for the Modbus FBs for the S5 95U for communication with the CP521. These FBs...
Replies
1
Views
53
Hello Everyone Im Trying to Study a PLC programm of a Pet Blower machine, it is programmed in Simatic Manager Step 7 in STL/AWL Lenguage in a part...
Replies
4
Views
109
We are facing intermittent issue with emergency stop and line stop. Line stop triggering with alarm of line stop push button activated at one...
Replies
11
Views
320
HI i would like to know how to get a variable that will store the amount of times a program has been executed. The issue is I have 3 DBs for 1 FB...
Replies
2
Views
127
Dear sir, I am using SIMATIC 300, CPU 315-2DP , (6ES7 315-2AF03-0AB0) VIPA 603-1CC21 A1.0 RAM 32KB, Firmware=V4.0.8 The problem Im using MPI...
Replies
2
Views
211
Back
Top Bottom