
B-14
Ladder Logic (LAD) for S7-300 and S7-400
C79000-G7076-C504-02
B.6 Word Logic Instructions
The operator of the oven shown in Figure B-12 starts the oven heating by
pushing the start push button. The operator can set the length of time for
heating by using the thumbwheel switches shown in the figure. The value
that the operator sets indicates seconds in binary coded decimal (BCD)
format. Table B-7 lists the components of the heating system and their
corresponding absolute addresses used in the sample program shown in
Figure B-13.
Table B-7 Heating System Components and Corresponding Absolute Addresses
System Component
Absolute Address in STL Program
Start push button I 0.7
Thumbwheel for ones I 1.0 to I 1.3
Thumbwheel for tens I 1.4 to I 1.7
Thumbwheel for hundreds I 0.0 to I 0.3
Heating starts Q 4.0
7....
Oven
1 0 0 1 0 0 0 1X X X X 0 0 0 1
Heat
Q 4.0
Thumbwheels for setting BCD digits
IW0
44 4
Start push button I 0.7
IB1IB0 Bytes
Bits7......0 ...0
Figure B-12 Using the Inputs and Outputs for a Time-Limited Heating Process
Heating an Oven
Programming Examples
Comentários a estes Manuais