Creating a tappet track online with time-based tappets
How to create a tappet track online with time-based tappets:
- Create 3 instances
-
L_MC2P_TappetDataTime1
:
ARRAY[0..1] OF L_MC2P_TappetDataTime; -
L_MC2P_TappetRefFromStruct1
:
L_MC2P_TappetRefFromStruct; -
L_MC2P_TappetRegister1
:
L_MC2P_TappetRegister;
- Create two tappets with FB L_MC2P_TappetDataTime
-
Tappet 1:
L_MC2P_TappetDataTime1[0].lrTappetOn := 90.0;
L_MC2P_TappetDataTime1[0]. lrTappetTime:= 10; //milliseconds -
Tappet 2:
L_MC2P_TappetDataTime1[1].lrTappetOn := 270.0;
L_MC2P_TappetDataTime1[1]. lrTappetTime:= 10; //milliseconds - Create FB L_MC2P_TappetDataTime1 and instance of L_MC2P_TappetRefFromStruct1 at input itfTappetData :
|
|
- Assign the instance of L_MC2P_TappetRefFromStruct1 to the input itfTappetTable of FB L_MC2P_TappetRegister1 :
|
|