L_MC2P_TappetRefFromStruct

This FB generates online from the transmitted tappet track data of an L_MC2P_Tappet_Ref object-object for the FB L_MC2P_TappetRegister (tappet group).

The L_MC2P_Tappet_Ref object-object or the instance of the FB L_MC2P_TappetRefFromStruct

  • is an interface of L_MC2P_Tappet_Ref type
  • can be directly connected to an input of L_MC2P_Tappet_Ref type of another FB, e.g.
    Programming example:
    L_MC2P_TappetRegister1.TappetTable:= L_MC2P_TappetRefFromStruct

 

 

 

L_MC2P_TappetRefFromStruct

 

 

 

BOOL

-

xExecute

xDone

-

BOOL

STRING(50)

-

sName

xBusy

-

BOOL

L_MC2P_TappetType

-

eTappetType

xError

-

BOOL

UDINT

-

udiTappetDataCount

eErrorID

-

L_IE1P_Error

LREAL

-

lrXStartPos

LREAL

-

lrXEndPos

L_MC2P_ITappetData

-

itfTappetData

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

xExecute

BOOL

FALSE รค TRUE

Start generation.

sName

STRING(50)

Name of the tappet track

eTappetType

C

Type of tappet track data:

  • PositiveWay: Position-based tappet in positive direction
  • NegativeWay: Position-based tappet in negative direction
  • BidirectionalWay: Position-based tappet in bidirectional direction
  • PositiveWay: Position/time-based tappet in positive direction
  • NegativeWay: Position/time-based tappet in negative direction

udiTappetDataCount

UDINT

Number of the transmitted tappet elements

lrXStartPos

LREAL

X starting position of the curve

lrXEndPos

LREAL

X end position of the curve

itfTappetData

L_MC2P_ITappetData

First element of an array of tappet data
(ARRAY OF L_MC2P_TappetDataPosition or ARRAY OF L_MC2P_TappetDataTime)

Outputs

Name

Data type

Value/meaning

xDone

BOOL

TRUE

Generated tappet track data is available.

xBusy

BOOL

TRUE

Processing is running.

xError

BOOL

TRUE

An error has occurred. For details see eErrorID .

eErrorID

L_IE1P_Error

If xError = TRUE: Error number for the error that has occurred.

FB selection for the initialisation of the tappets of "itfTappetData" input
FUNCTION_BLOCK L_MC2P_TappetDataPosition IMPLEMENTS L_MC2P_ITappetData
VAR_INPUT
/// Switch-on position
lrTappetOn:
/// Switch-off position for position-based tappets
lrTappetOff: LREAL ;
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR
FUNCTION_BLOCK L_MC2P_TappetDataTime IMPLEMENTS L_MC2P_ITappetData
VAR_INPUT
/// Switch-on position
lrTappetOn: LREAL ;
/// Break time for time-based tappets in [ms]
lrTappetTime: LREAL ;
END_VAR
VAR_OUTPUT
END_VAR
VAR
END_VAR