MC_ReadCoordinateTransform (FB)

FUNCTION_BLOCK MC_ReadCoordinateTransform

This function block reads the coordinate transformation that is configured between the world coordinate system (WCS) and a product coordinate system (PCS_1, PCS_2) or machine coordinate system (MCS).

If a dynamic coordinate system is queried, its current value is returned.

Bemerkung

The returned coordiante system is not necessarily the same that is used by the active movement. Instead, the returned coordinate system is the one that is effective for new movements.

InOut:

Scope

Name

Type

Comment

Inout

AxisGroup

AXIS_GROUP_REF_SM3

Reference to a group of axis

Input

Enable

BOOL

Gets the coordinate transformation of the axis group continuously while enabled

CoordSystem

SMC_COORD_SYSTEM

Which coordinate transformation is to be read. Allowed values are PCS_1, PCS_2, and MCS.

Output

Valid

BOOL

TRUE if valid outputs are available

Busy

BOOL

The FB is not finished

Error

BOOL

Signals that an error has occurred within the function block

ErrorID

SMC_ERROR

Error identification

CoordTransform

MC_COORD_REF

The coordinate transformation