Programing S7 PLC Arrays

P

Thread Starter

Paul Pierce

Hi,

As part of a program I need to write a value of zero to a DB array of [0..15] Real. Can this be done at one time or do I have to go and MOVE zero into each DB address seperatly? Any help would be appreciated.

Thanks,
Paul.
 
Using SCL (structured text) you could define a second array with all initial values zero. Then simply assign the entire second array to the first array. This would write all values to zero in one assignment.

I'm not sure if this also works using IL or other languages.

-Maurus
 
R

Ronald Nijssen

Use SFC21, "Fill", to initialize the area of memory. This System Function can be used in any Step7 language (LAD, IL, FBD, SCL, CFC, ... )

Regards
Ronald
 
Top