Structures for motion programming (STRUCT)

Predefined data structures (STRUCT) can be used in the PLC library.

Overview

Structure

Description

APO

Approximation parameters for a Move motion command

(>>> APO)

COORDSYS

Coordinate system to which the Cartesian coordinates of the target position refer in a Move or Jog motion command

(>>> COORDSYS)

E6AXIS

Angular values or translation values of the axes in an axis group for a MoveAxis motion command

(>>> E6AXIS)

E6POS

Cartesian coordinates of the target position for a Move or Jog motion command

(>>> E6POS)

FRAME

Space coordinates and orientation for the TOOL or BASE coordinate system

(>>> FRAME)

POSITION

Contains all positions and the coordinate system to which a point refers

(>>> POSITION)

POSITION_ARRAY

Array of 100 positions of structure type POSITION

(>>> POSITION_ARRAY)

APO

Element

Type

Description

PTP_MODE

INT

Specifies whether and how the end point of a PTP motion is approximated.

  • 0: Without approximate positioning (default)
  • 1: Causes the end point to be approximated.
  • The specification C_PTP is sufficient for PTP-PTP approximate positioning. In the case of PTP-CP approximation, i.e. if the approximated PTP block is followed by a LIN or CIRC block, another approximate positioning parameter must also be specified.
  • 2: PTP-CP approximation with distance parameter
  • 3: PTP-CP approximation with orientation parameter
  • 4: PTP-CP approximation with speed parameter

CP_MODE

INT

Specifies whether and how the end point of a CP motion (LIN, CIRC) is approximated.

  • 0: Without approximate positioning (default)
  • 1: Approximate positioning with distance parameter
  • 2: Approximate positioning with orientation parameter
  • 3: Approximate positioning with speed parameter

CPTP

INT

Approximation distance for PTP motions (= furthest distance before the end point at which approximate positioning can begin)

  • 1 … 100 %

Maximum distance 100 %: half the distance between the start point and the end point relative to the contour of the PTP motion without approximate positioning

CDIS

REAL

Distance parameter (unit: mm)

Approximation starts, at the earliest, when the distance to the end point falls below the value specified here.

CORI

REAL

Orientation parameter (unit: °)

Approximation starts, at the earliest, when the dominant orientation angle (rotation or swiveling of the longitudinal axis of the tool) falls below the angle distance to the end point specified here.

CVEL

INT

Speed parameter

  • 1 … 100 %

The approximation parameter specifies the percentage of the programmed speed at which the approximate positioning process is started, at the earliest, in the deceleration phase towards the end point.

Notice: This parameter cannot be used in the case of individual spline motions.

COORDSYS

Element

Type

Description

Tool

INT

Number of the TOOL coordinate system

  • -1: coordinate system is not changed
  • 0: NULLFRAME
  • 1 … 16: TOOL_DATA[1 … 16]

Default: -1

Base

INT

Number of the BASE coordinate system

  • -1: coordinate system is not changed
  • 0: NULLFRAME
  • 1 … 32: BASE_DATA[1 … 32]

Default: -1

IPO_MODE

INT

Interpolation mode

  • 0: The tool is mounted on the mounting flange.
  • 1: The tool is a fixed tool.

Default: 0

E6AXIS

Element

Type

Description

A1

REAL

Position of robot axis A1 (unit: mm or °)

A2

REAL

Position of robot axis A2 (unit: mm or °)

A3

REAL

Position of robot axis A3 (unit: mm or °)

A4

REAL

Position of robot axis A4 (unit: mm or °)

A5

REAL

Position of robot axis A5 (unit: mm or °)

A6

REAL

Position of robot axis A6 (unit: mm or °)

E1

REAL

Position of external axis E1 (optional), (unit: mm or °)

E2

REAL

Position of external axis E2 (optional), (unit: mm or °)

E3

REAL

Position of external axis E3 (optional), (unit: mm or °)

E4

REAL

Position of external axis E4 (optional), (unit: mm or °)

E5

REAL

Position of external axis E5 (optional), (unit: mm or °)

E6

REAL

Position of external axis E6 (optional), (unit: mm or °)

E6POS

Element

Type

Description

X

REAL

Position on the X axis (unit: mm)

Y

REAL

Position on the Y axis (unit: mm)

Z

REAL

Position on the Z axis (unit: mm)

A

REAL

Rotation around the Z axis

  • -180° … +180°

B

REAL

Rotation around the Y axis

  • -180° … +180°

C

REAL

Rotation around the X axis

  • -180° … +180°

S

INT

Status

The position (X, Y, Z) and orientation (A, B, C) values of the TCP are not sufficient to define the robot position unambiguously, as different axis positions are possible for the same TCP. Status and Turn serve to define an unambiguous position that can be achieved with different axis positions.

Notice: Further information about Status and Turn is provided the operating and programming instructions of the system software.

T

INT

Turn

E1

REAL

Position of external axis E1 (optional), (unit: mm or °)

E2

REAL

Position of external axis E2 (optional), (unit: mm or °)

E3

REAL

Position of external axis E3 (optional), (unit: mm or °)

E4

REAL

Position of external axis E4 (optional), (unit: mm or °)

E5

REAL

Position of external axis E5 (optional), (unit: mm or °)

E6

REAL

Position of external axis E6 (optional), (unit: mm or °)

FRAME

Element

Type

Description

X

REAL

Position on the X axis (unit: mm)

Y

REAL

Position on the Y axis (unit: mm)

Z

REAL

Position on the Z axis (unit: mm)

A

REAL

Orientation of the Z axis

  • -180° … +180°

B

REAL

Orientation of the Y axis

  • -180° … +180°

C

REAL

Orientation of the X axis

  • -180° … +180°

POSITION

Element

Description

COORDSYS

(>>> COORDSYS)

E6POS

(>>> E6POS)

E6AXIS

(>>> E6AXIS)

POSITION_ARRAY

Element

Description

POSITION

  • 1 … 100

(>>> POSITION)