You are on page 1of 10

Siemens S7-300 and STEP 7

Entering Symbols used in the project

• Use Symbols to Identify Inputs/ Outputs/ Timers/ Counters/ Memory.


• Always use symbols with meaning. (e.g. PB_Start, Sen_Cylinder_Forward, etc)
• Always use first 2,3 letters to identify the type of the memory (e.g. PB for Push buttons,
Sen for Sensors, Sol for Solenolid Valves, Tim for Timers, etc)

In Simatic Manager

=> Navigate to S7 Program


=> Double Click Symbols

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

=> Enter Symbols, corresponding Addresses and Comments in the Symbol Editor
=> Save settings by clicking Save or Symbol Table => Save

=> Close application and return to Simatic manager after entering symbols

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Programming in OB1 (Organization Block 1)

In the Simatic Manager

=> Navigate to Blocks


=> Double Click OB1
If for the first time you’ll get a window to configure settings of OB1.
=> Select Programmining language (Ladder-LAD, Statement List-STL or Function Block Diagram-
FBD)
=> Enter Symbolic name and Symbol comment if required
=> Click OK

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Using the LAD/FBD/STL Editor, you can program/ edit and monitor user programs.

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Bit logic Instructions

Placing an Open/ Closed Contact, Coils on a network.

Click on the line of the network


Click on Open contact ( ) or Closed Contact ( ) and Coil ( )
Please note that coils can be placed to terminate a network.
Coils cannot be placed in series with another coils.
Parallel coils are allowed in a network.
Contacts can be placed in series/ parallel to each other as you wish.

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Enter addresses for contacts, coils (e.g. I0.0 for contact, Q0.0 for coil, etc)
Presses Enter button on keyboard after entering each address.
Names for contacts can be used more than once in a program.
Do not use same name for a coil (e.g. Q0.0, M2.4) more than once in a program. If used
your program might not work as you wish.

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

If there are symbols defined earlier they shall appear along with the address. If you want to display
with symbols, comments:
View => Display with => Select desired combination of display

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

To use the symbols defined earlier as the addresses of contacts/ coils:

Right click on the un-named contact/ coil =>Insert symbols.


Select name from the list displayed.
Double Click or Press Enter.

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

Saving and downloading programs

Save the project


File => Save or Click Save

Download the project

Make sure PLC mode selector switch is in Stop or Run-P position.


PLC => Download or Click Download
Please note if downloaded in Run-P mode, Program is executed immediately after downloading. If
there were errors in the program or errors occur due to unavailability of required blocks, PLC
immediately goes to “Stop” mode causing a SF (System Fault). Therefore be careful when
downloading blocks in Run-P mode.

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND
Siemens S7-300 and STEP 7

And/ Or Logic Functions

You can create logics by connecting contacts series/ parallel to each other. For example two series
contacts create AND logic. Two parallel contacts create OR logic.

Use and buttons to draw parallel lines to contacts.

Nikini Automation Technology Training Centre 247, High level Rd, Colombo 05. Tel: 2826894 / Fax: 2826252
©ND

You might also like