Chainings
The operator : chains frames with each other in the programmed sequence. The frame
components, such as offsets and rotations, are executed successively additive.
Program code Comment
$P_IFRAME = $P_UIFR[15] :
$P_UIFR[16]
; Assignment of the result frame from the chaining
of the
; two settable data storage frames on the active
; settable total frame.
; Application example:
; $P_UIFR[15]: Offset
; $P_UIFR[16]: Rotation
$P_UIFR[3] = $P_UIFR[4] :
$P_UIFR[5]
; Assignment of the result frame from the chaining
of the
; two settable data storage frames on a
; different settable data storage frame
3.8.2.4 Definition of frame variables (DEF FRAME)
In addition to the predefined frame variables, user frame variables can also be defined. The
user-defined frame variables are user variables of type FRAME. The name of the frame can be
assigned freely in accordance with the rules for user variables.
The CTRANS, CROT, CSCALE and CMIRROR functions assign values to user-defined frame
variables.
Syntax
DEF FRAME <name>
Meaning
DEF FRAME: Define user variable of the type FRAME.
<name>: Name of the frame variable
Example
Definition of a "PALETTE" frame variable and the assignment of offset and rotation values:
Program code Comment
DEF FRAME PALETTE ; Define PALETTE frame variable
PALETTE = CTRANS(...) : CROT(...) ; Assignment of the result frame of the chaining
for
; offset and rotation on the PALETTE frame variable
Work preparation
3.8 Coordinate transformations (frames)
NC programming
638 Programming Manual, 12/2019, 6FC5398-2EP40-0BA0