Sfc20

automatt

Member
Join Date
Dec 2006
Location
Cornwall
Posts
12
Hi,
I'm trying to place SFC20 in my program but I get the error message:

"Cannot place block"


With the following help message:

"Help on Message 30:498 Description of Error:
The block cannot be inserted. Possible causes are:
· You are working online and the block you want to insert does not yet exist online.
· You want to insert a system function (SFC) or system function block (SFB) which come from a program library whose project version does not match the version of the current project.
· Organization blocks (OBs) cannot be interconnected using this application.
To Correct or Avoid Error:
· Download the missing block to the programmable controller.
· Use program libraries with the correct project version."


I'm using S7 5.4, and am working offline.
Any ideas?
Thanks
Matt
 
How are you trying to "place" SFC20 ?

Are you:
typing CALL SFC20 in STL,
ALT F9 in ladder then typing SFC20
Dragging the block from the library into your project ?
 
L D[AR2 said:
How are you trying to "place" SFC20 ?

Are you:
typing CALL SFC20 in STL,
ALT F9 in ladder then typing SFC20
Dragging the block from the library into your project ?

I was dragging it across from the library into a ladder rung.

I just tried the other method you mentioned (Alt F9 then typing SFC20) and that seems to work fine.
Thanks.
 
Which library were you using ?

stdlibs is for v2 of Step7
Standard Library is the one to use.

stdlib001.JPG
 
Yep. I was using the stdlibs:doh:
Just tried dragging form the Standard Library - works perfect.

By the way in your example of a SFC20 from a previous post where you had "P#DB1.DBX0.0 BYTE64" as the SRCBLK, what does the P# mean?

Thanks.
 

Similar Topics

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,930
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,650
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,976
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,270
Hi all, i have learned siemens sample code by using sfc 20 for data move. but i don't know how i can adapt this sample code if i would like to...
Replies
0
Views
2,005
Back
Top Bottom