MC_GroupReadActualPosition

This FB serves to read the current position of the axes group in the selected coordinate system.

  • This is an administrative FB as no motion command is generated.

 

 

 

MC_GroupReadActualPosition

 

 

 

AXES_GROUP_REF

-

AxesGroup

Valid

-

BOOL

BOOL

-

ENABLE

Busy

-

BOOL

L_MC4P_CoordSystem

-

CoordSystem

Error

-

BOOL

ErrorID

-

L_IE1P_Error

Position

-

ARRAY [1..12] OF LREAL

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

AxesGroup

AXES_GROUP_REF

axes group reference

ENABLE

BOOL

TRUE

Read current position of the axes group continuously.

CoordSystem

L_MC4P_CoordSystem

Selection of the coordinate system to be used:

  • WCS: World Coordinate System
  • MCS: Machine Coordinate System
  • ACS: Axes Coordinate System
  • PCS_1 ... PCS_16: Product Coordinate System (1 ... 16)

Coordinate systems and transformations

Outputs

Name

Data type

Value/meaning

Valid

BOOL

TRUE

Valid values are applied to the FB outputs.

Busy

BOOL

TRUE

Processing is running.

Error

BOOL

TRUE

An error has occurred. For details see ErrorID .

ErrorID

L_IE1P_Error

If Error = TRUE: Error number for the error that has occurred.

Position

ARRAY [1..12] OF LREAL

Current position of the axes group:

  • [1; 6]
    • When ACS is selected: Position of the drive axes.
    • When WCS , MCS or PCS are selected: Position of the TCP in the selected coordinate system.
  • Index 7 ... 12 = axis positions of the optionally available auxiliary axes.