Siemens programming the cpu 314c-2dp User Manual

Page of 25
 
 
 
 
 
 
 
   
Automation and Drives - SCE 
 
 
 
 
T I A  Training Document
 
Page 21 of 25 
  Module 
 
4. 
WRITING A STEP 7 PROGRAM 
 
We are writing the program to be tested in the statement list language (STL), and it only contains two 
lines.  
Here, the frequencies of the MB100 clock memory byte activated in the hardware are to be read out 
on an output byte. 
 
Assignment list: 
 
MB100 
Clock   
Clock memory byte 
AB0 
 AB 
 Display 
 
A cycle duration/frequency is assigned to each bit of the clock memory byte. Assignment is as 
follows: 
 
Bit: 
      7 6 5 4 3 2 1 0 
Clock duration (s):   
1.6 1  0.8 0.5 0.4 0.2 0.1 
Frequency 
(Hz):  
0.5 0.625 
1  1.25 
2  2.5 5  10 
 
 
14.   In the 'SIMATIC Manager', mark the 'Blocks' folder.( 
→ SIMATIC Manager → Blocks) 
 
 
 
 
 
Foreword                     Notes                      Hardware configuration                      STEP 7 program                     Testing 
A5 
Issue date: 02/2008                                                                                                                          Programming the CPU 314C-2DP