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

Enable

BOOL

Enable the function block with Enable = TRUE

ChannelSelect

INT

Select which channel as the activated channel

MeasureParameters

ARRAY [0..(gciMaxMeasureChannel - 1)] OF RCK_MeasureParameter

Measure parameters

ActualValue

ARRAY [0..(gciMaxMeasureChannel - 1)] OF DINT

the position value gotten from the encoder

NewValueLatched

ARRAY [0..(gciMaxMeasureChannel - 1)] OF BOOL

A new position value is latched

LatchedValue

ARRAY [0..(gciMaxMeasureChannel - 1)] OF DINT

The latched position value

Output

Valid

BOOL

Shows the outputs are valid if Valid = True

Busy

BOOL

Indicates that the function block is not finished

Error

BOOL

Signals that an error has occurred within function block

AppErrorID

ERROR_ID

Error identification. For error details refer to Enumeration ERROR_ID

SelectedChannel

INT

-1

Shows the actual activated channel, -1: no channel is activated

EnhancedFeedAxis

Axis_Ref

The structure of the enhanced feed axis for rotary cutter system

NewPositionLatched

BOOL

A new axis position is latched

LatchedPosition

LREAL

The latched axis position