L_MC2P_TappetRegister
This FB is a tappet group with switch-on/off dynamisation. The FB reads in a defined tappet track and outputs the tappet state for the specified position.
- A tappet track can contain up to 24 tappets of the same type (position or time-based tappet).
- By means of a parameterisable dynamic displacement of the tappets, delay times of switching elements connected can be compensated.
- If further tappet tracks are to be evaluated, further instances of this FB just have to be added to the application.
|
|
|
|
L_MC2P_TappetRegister |
|
|
|
|
|---|---|---|---|---|---|---|---|
|
AXIS_REF |
- |
|
Axis |
xSwitch |
|
- |
BOOL |
|
BOOL |
- |
|
xEnable |
xBusy |
|
- |
BOOL |
|
BOOL |
- |
|
xForce |
xError |
|
- |
BOOL |
|
L_MC2P_Tappet_Ref |
- |
|
itfTappetTable |
eErrorID |
|
- |
L_IE1P_Error |
|
LREAL |
- |
|
lrOffset |
byTappetNo |
|
- |
BYTE |
|
LREAL |
- |
|
lrHysterese |
lrTimeOnRelative |
|
- |
LREAL |
|
LREAL |
- |
|
lrReactTimeOn |
lrTimeOffRelative |
|
- |
LREAL |
|
LREAL |
- |
|
lrReactTimeOff |
|
|
|
|
|
MC_SOURCE |
- |
|
eValueSource |
|
|
|
|
|
BYTE |
- |
|
byDigitalOutputSel |
|
|
|
|
|
Pointer to L_FastIO_OutRef |
- |
|
pFastIO_Out |
|
|
|
|
|
BOOL |
- |
|
xOutputState |
|
|
|
|
|
BOOL |
- |
|
xEdgeControl |
|
|
|
|
|
|
|
|
|
|
|
|
|
Inputs
|
Name Data type |
Information/possible settings |
|
|---|---|---|
|
Axis |
Transfer of the axis data structure |
|
|
xEnable BOOL
|
TRUE |
Start execution of the function block. |
|
FALSE |
Complete the execution of the FB, reset outputs xSwitch and xError to FALSE. |
|
|
Please note the following note in the section
|
||
|
xForce BOOL |
TRUE |
The xSwitch output is set in accordance with xOutputState , irrespective of xEnable . When xEnable is activated, the cam sequence set is overwritten. |
|
FALSE |
The function is inactive. |
|
|
itfTappetTable L_MC2P_Tappet_Ref |
Tappet track data
|
|
|
lrOffset LREAL |
Offset
|
|
|
lrHysterese LREAL |
Hysteresis for switching threshold
|
|
|
lrReactTimeOn LREAL |
Switch-on position offset
|
|
|
lrReactTimeOff LREAL |
Switch-off position offset
|
|
|
eValueSource |
Selection of the position to be used:
|
|
|
byDigitalOutputSel BYTE |
Selection of the digital output to be switched:
|
|
|
pFastIO_Out POINTER TO L_FastIO_OutRef |
Address of the FastIO hardware |
|
|
xOutputState BOOL |
Value on xOutputState is transferred with xForce = TRUE to xSwitch . |
|
|
xEdgeControl BOOL
|
||
Outputs
|
Name Data type |
Value/meaning |
|
|---|---|---|
|
xSwitch BOOL |
Tappet state |
|
|
FALSE |
Tappet switched off. |
|
|
TRUE |
Tappet switched on. |
|
|
xBusy BOOL |
TRUE |
Processing is running. |
|
xError BOOL |
TRUE |
An error has occurred. For details see eErrorID . |
|
eErrorID |
If xError =Â TRUE: Error number for the error that has occurred.
|
|
|
byTappetNo BYTE |
If the position points to a tappet,
If the position is outside of a tappet, a zero is provided at the output byTappetNo . |
|
|
lrTimeOnRelative LREAL |
Relative position by which the switch-on position of the tappet is shifted. The path is calculated from the current velocity and the selection from the lrReactTimeOn input. |
|
|
lrTimeOffRelative LREAL |
Relative position by which the switch-off position of the tappet is shifted. The path is calculated from the current velocity and the selection from the lrReactTimeOff input. |
|
Motion axes (AXIS_REF)