MC_CamIn

The MC_CamIn FB permits travel along cams listed in a table.

Block diagram

FB parameters

VAR_IN_OUT

Variable name

Data type

Description

Master

AXIS_REF

Axis reference of the master axis.

Slave

AXIS_REF

Axis reference of the slave axis

VAR_INPUT

Variable name

Data type

Description

Execute

BOOL

Starts the command on the rising edge.

MasterOffset

LREAL

Offset of the master axis table

Value range [-2147483648.0, 2147483647.0]
Default unit [0.1µm or 10-4 °]

SlaveOffset

LREAL

Offset of the slave axis table

Value range [-2147483648.0, 2147483647.0]
Default unit [0.1µm or 10-4 °]

MasterScaling

LREAL

Factor for the master axis profile

Value range [-2147483648.0, 2147483647.0]

 

! Important !: Only integer values should be currently used!

SlaveScaling

LREAL

Factor for the slave axis profile

Value range [-2147483648.0, 2147483647.0]

StartMode

UDINT

See explanations in the Section Values at input “StartMode”.

CamTableID

UINT

Identifier of cam used for the motion.

TableFctType

UDINT

See explanations in the Section Values at the “TableFctType” input.

VAR_OUTPUT

Variable name

Data type

Description

InSync

BOOL

Indicates that the motion of the slave axis is now synchronous with the cam.

CommandAborted

BOOL

TRUE indicates that the command was aborted by another command.

Error

BOOL

Is TRUE if an error occurs in the FB.

ErrorID

WORD

Error identifier

EndOfProfile

BOOL

Output which indicates the cyclical end of the cam profile.

Behaviour of the FB:

If this is not the case, the “Error” output is set to FALSE and “ErrorID” indicates an error value that designates the state the axis is currently in.

For further explanations, see the Sections Influence of axis parameters on the coupling process and Cam functionality.