
6. The SPEL+ Language
6.17.7 Extracting and setting point coordinates
Use the CX, CY, CZ, CU, CV, and CW commands to get a coordinate of a point or set it.
xcoord = CX(P1)
P2 = XY(xcoord, 200, -20, 0)
ycoord = CY(P*) ' Gets current Y position coordinate
CX(pick) = 25.5
CY(pick) = CY(pick) + 2.3
6.17.8 Alteration of points
There are several ways of modifying a point without re-teaching it. You can change one or
more coordinate values with relative offsets or absolute values.
To set an absolute value for a coordinate, use a colon followed by the axis letter and the
value.
To add a relative offset to a coordinate, use an axis letter followed by the offset value or
expression in parentheses. If the offset is negative, then precede the axis letter with the
minus sign. If parentheses are omitted, they will be automatically added.
Go P1 -Z(20)
Move to P1 with a z offset of -20mm
Go P1 :Z(-25)
Move to P1 with a z absolute position of -25mm
Go P1 -X(20) +Y(50) :Z(-25)
Move to P1 with offsets for X and Y relative
offsets and an absolute position for Z
180 EPSON RC+ 5.0 (Ver.5.4) User's Guide Rev.4
Comentários a estes Manuais