IAI America XSEL-KX User Manual
Page 153
![background image](/manuals/350295/153/background.png)
137
Part 4 Commands
OFST (Set offset)
Extension condition
(LD, A, O, AB, OB)
Input condition
(I/O, flag)
Command, declaration
Output
(Output, flag)
Command,
declaration
Operand 1
Operand 2
Optional
Optional
OFST
Axis
pattern
Offset
value
CP
[Function] Reset the target value by adding the offset value specified in operand 2 to the original target
value when performing the actuator movement specified in operand 1.
The offset is set in mm, and the effective resolution is 0.001 mm.
A negative offset may be specified as long as the operation range is not exceeded.
(Note)
An OFST command cannot be used outside the applicable program. To use OFST in multiple
programs, the command must be executed in each program.
An OFST command cannot be used with MVPI, MVLI, TMLI, and TMPI commands.
[Example 1]
OFST
110
50
Add 50 mm to the specified positions of the Y and Z-axes.
[Example 2]
The axis pattern can be specified indirectly using a variable. When indirect variable
specification is used, [Example 1] can be rephrased as follows:
110 (binary)
→ 6 (decimal)
LET
1
6
Assign 6 to variable 1.
OFST
*1
50
[Example 3]
LET
1
30
Assign 30 to variable 1.
OFST
1000 *1
Add the content of variable 1 (30
°) to the specified position
of the R-axis.