RCK_EnhancedFeedAxis (FB)
FUNCTION_BLOCK RCK_EnhancedFeedAxis
This function block is implemented to build an enhanced feed axis for rotary cutter system; the built enhanced feed axis can have up to 5 position measure channels from encoder or other measure devices that can provide position value in real time. The selected channel can be dynamically switched between the configured position measure channels when the rotary cutter system is running. This function block also handles the position value latched by registration sensor and converts to proper unit for the registration function block.
Note
This function block must be called in the POU which is executing in the MotionSolution_Task.
Note
This function block must be called before RCK_RotaryCutter for better system performance.
- InOut:
Scope
Name
Type
Initial
Comment
Input
EnableBOOLEnable the function block with Enable = TRUE
ChannelSelectINTSelect which channel as the activated channel
MeasureParametersARRAY [0..(gciMaxMeasureChannel - 1)] OF RCK_MeasureParameter
Measure parameters
ActualValueARRAY [0..(gciMaxMeasureChannel - 1)] OF DINT
the position value gotten from the encoder
NewValueLatchedARRAY [0..(gciMaxMeasureChannel - 1)] OF BOOL
A new position value is latched
LatchedValueARRAY [0..(gciMaxMeasureChannel - 1)] OF DINT
The latched position value
Output
ValidBOOLShows the outputs are valid if Valid = True
BusyBOOLIndicates that the function block is not finished
ErrorBOOLSignals that an error has occurred within function block
AppErrorIDError identification. For error details refer to Enumeration ERROR_ID
SelectedChannelINT-1
Shows the actual activated channel, -1: no channel is activated
EnhancedFeedAxisAxis_RefThe structure of the enhanced feed axis for rotary cutter system
NewPositionLatchedBOOLA new axis position is latched
LatchedPositionLREALThe latched axis position