Siemens SIMATIC STEP 7 V5.2 Getting Started page 80

Table of Contents

Advertisement

Programming a Function
Select the question marks, enter "#" and select the corresponding names.
Set the delay time at input TV of S_OFFDT. Here, S5T#4s means that a constant
has been defined with the data type S5Time#(S5T#), lasting four seconds (4s).
Then save the function and close the window.
Programming the Timer Function in Statement List
8-4
The "#Timer_Function" is started with
the input parameter "#Engine_On." Later
on when the function is called in OB1, it
will be supplied once with the
parameters for the petrol engine and
once with the parameters for the diesel
engine (for example, T1 for
"PE_Follow_on"). You will enter the
symbolic names of these parameters
later in the symbol table.
If you are programming in Statement
List, select the input area below the
network and enter the statement as
shown here.
Then save the function and close the
window.
STEP 7 Getting Started
A5E00171228-01

Advertisement

Table of Contents
loading

Table of Contents