Programming Examples
Absolute and symbolic Programming
You can write a program to control the conveyor belt using absolute values or
symbols that represent the various components of the conveyor system.
You need to make a symbol table to correlate the symbols you choose with absolute
values (see the STEP 7 Online Help).
System Component Absolute
Address
Symbol Symbol Table
Push Button Start Switch I 1.1 S1 I 1.1 S1
Push Button Stop Switch I 1.2 S2 I 1.2 S2
Push Button Start Switch I 1.3 S3 I 1.3 S3
Push Button Stop Switch I 1.4 S4 I 1.4 S4
Sensor I 1.5 S5 I 1.5 S5
Motor Q 4.0 MOTOR_ON Q 4.0 MOTOR_ON
Absolute Program Symbolic Program
O I 1.1
O I 1.3
S Q 4.0
O I 1.2
O I 1.4
ON I 1.5
R Q 4.0
O S1
O S3
S MOTOR_ON
O S2
O S4
ON S5
R MOTOR_ON
Statement List (STL) for S7-300 and S7-400 Programming
A5E00706960-01
B-3
Comments to this Manuals