SMC_CAMBounds_Pos (FB)

 

FUNCTION_BLOCK SMC_CAMBounds_Pos

In opposite to SMC_CAMBounds this function block calculates only the maximum and minimum position values of the slave being coupled in absolute mode to a master which is moved according to a prescribed maximum velocity and acceleration/deceleration.

This module is especially helpful when a cam disc is created and modi­fied in online mode and the observance of the maximum values have to be checked in advance.

InOut:

Scope

Name

Type

Initial

Comment

Inout

CAM

MC_CAM_REF

Reference to cam

Input

bExecute

BOOL

Rising edge: Starts the execution of the function block.

dMasterVelMax

LREAL

1

Absolute maximum velocity of master

dMasterAccMax

LREAL

0

Absolute maximum acceleration/deceleration`` of master

dMasterScaling

LREAL

1

Scaling factor for master applied to cam

dSlaveScaling

LREAL

1

Scaling factor for slave applied to cam

Output

bDone

BOOL

TRUE: Calculation has been terminated

bBusy

BOOL

FALSE

TRUE: Execution of function block has not been finished yet yet.

bError

BOOL

TRUE: Error has occurred within the function block.

nErrorID

SMC_ERROR

Error identification

dMaxPos

LREAL

Maximum slave position value [u].

dMinPos

LREAL

Minimum slave position value [u].