Programming a Function
8-4
STEP 7 Getting Started
A5E00171228-01
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
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.
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.