Creating a tappet track offline with a "TappetTrack1" file

How to create a tappet track offline with a "TappetTrack1" file:
  1. Create a tappet track offline without ticking the box in the dialog:
  1. Press Add .
  • The dialog box is closed. The directory tree includes the created file TappetTrack1 :
  1. Create the instance of FB L_MC2P_TappetRefFromFile
  • That way, the tappet file is read out.
  1. Create an FB array of the type L_MC2P_TappetDataObject .
  • The size results from the number of the created tappets, e.g.:

L_MC2P_TappetDataObject1:ARRAY[0..7] OF L_MC2P_TappetDataObject;

  1. Assign the name of the instance of FB L_MC2P_TappetDataObject1 to the input itfTappetData of L_MC2P_TappetRefFromFile1 .
  2. Assign the name of the instance of FB L_MC2P_TappetRefFromFile to the input itfTappetTable of FB L_MC2P_TappetRegister :

L_MC2P_TappetRefFromFile1(

xExecute:= TRUE,

sFileName:= 'TappetTrack1.lct',

itfTappetData:= L_MC2P_TappetDataObject1[0],

udiTappetDataCount:= 8,

xDone=> ,

xBusy=> ,

xError=> ,

eErrorID=> );

L_MC2P_TappetRegister1(

Axis:= LM_Drive_i700,

xEnable:= ,

itfTappetTable:= L_MC2P_TappetRefFromFile1,

lrOffset:= ,

lrHyterese:= ,

lrReactTimeOn:= ,

lrReactTimeOff:= ,

eValueSource:= MC_SOURCE.mcSetValue,

byDigitalOutputSel:= 1,

pFastIO_Out := ADR(FastIO_OutRef),

xSwitch=> ,

xBusy=> ,

xError=> ,

eErrorID=> );