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.
Содержание SIMATIC STEP 7 V5.2
Страница 4: ...Welcome to STEP 7 STEP 7 Getting Started iv A5E00171228 01 ...
Страница 12: ...Introduction to STEP 7 1 6 STEP 7 Getting Started A5E00171228 01 ...
Страница 22: ...Programming with Symbols 3 4 STEP 7 Getting Started A5E00171228 01 ...
Страница 60: ...Creating a Program with Function Blocks and Data Blocks 5 24 STEP 7 Getting Started A5E00171228 01 ...
Страница 76: ...Downloading and Debugging the Program 7 14 STEP 7 Getting Started A5E00171228 01 ...
Страница 88: ...Programming a Shared Data Block 9 4 STEP 7 Getting Started A5E00171228 01 ...
Страница 100: ...Programming a Multiple Instance 10 12 STEP 7 Getting Started A5E00171228 01 ...
Страница 110: ...Appendix A STEP 7 Getting Started A 2 A5E00171228 01 ...