Technical data

Appendix
27.6 Sample Programs
Programming with STEP 7
Manual, 05/2010, A5E02789666-01 643
Defining the Parameters for the FB
If you use a multiple instance FB for the motor (for controlling both pumps and the motor) you must
define general parameter names for the inputs and outputs.
The FB for the motor in the sample process requires the following:
It must have signals from the operator station to stop and start the motor and pumps.
It requires a response signal from the motor and pumps to indicate that the motor is running.
It must calculate the time between sending the signal to activate the motor and receiving the
response signal. If no response signal is received in this time, the motor must be switched off.
It must turn the lamps on the operator station on and off.
It supplies a signal to activate the motor.
These requirements can be specified as inputs and outputs to the FB. The following table shows
the parameters of the FB for the motor in our sample process.
Parameter Name Input Output In/Out
Start x
Stop x
Response x
Reset_Maint x
Timer_No x
Response_Time x
Fault
x
Start_Dsp
x
Stop_Dsp
x
Maint
x
Motor
x