Siemens NAN 67 Series Wartungshandbuch Seite 28

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 318
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 27
3-4
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
When you open a logic block, a window appears displaying the following:
S The variable declaration table of the block in the upper part
S The code section in the lower part, in which you edit the actual block
code
FB6-<Offline>
Network 1 : Red for road traffic
Network 2 : Green for road traffic
#starter
#condition
#condition
#condition #g car
#t_next_red_car #t_dur_r_car
Network 3 : Start permanent amber for cars
#condition #g car
SE
S5T#3S
Address Decl. Symbol Data Type Initial Value Comment
dur_g_p
del_r_p
starter
t_dur_g_ped
S5TIME
S5TIME
BOOL
TIMER
S5T#0MS
S5T#0MS
FALSE
in
in
in
in
in
0.0
2.0
4.0
6.0
8.0
t_dur_y_car TIMER
FB6-<Offline>-LAD/STL/FBD: Programming S7 Blocks
File Edit Insert Debug View Options Window HelpPLC
Figure 3-2 Variable Declaration Table and Code Section in LAD
The block properties are edited in their own dialog (see Chapter 5).
The editor allows you enables you to open and work on several blocks
simultaneously.
The variable declaration table and the code section are closely linked as the
names from the variable declaration table are used in the code section. This
means that changes in the variable declaration table also affect the code
section and therefore the entire block.
Main Window of
the LAD Editor
Relationship
between the
Variable
Declaration and
Code Section
Creating Logic Blocks
Seitenansicht 27
1 2 ... 23 24 25 26 27 28 29 30 31 32 33 ... 317 318

Kommentare zu diesen Handbüchern

Keine Kommentare