SFC 21        Fill

Top  Previous  Next

 

With this system function you can fill any memory area with a pattern. The destination area as well as the pattern are specified as ANY. The pattern is copied into the destination area as often as this one is written completely. If the size of the destination area is not an integer multiple of the size of the pattern the last copy of the pattern will be cut off correspondingly. The return value RET_VAL is, not like in a S7, always ‘0’.

 

If you specify pattern- or destination area explicitly by a variable declared as ANY, and pattern- or destination area is in the local data, you will have to note that the identification $87 is specified in ANY, not $86 because this is interpreted by the SFC20 as their own local data, and these do not exist.

 

See also:

System Functions

 

S7-300 and S7-400 are registered trademarks of the Siemens AG.