AreaCorrectionOffset Function
Returns points relatively displaced from corrected points
Syntax
AreaCorrectionOffset(Point, offset, AreaNum[, TOOL])
Parameters
- Point
- Specify the point data of the position to serve as reference for relative movement.
- Relative movement amount specification
- Specify the relative movement amount as point data.
- AreaNum
- Specify the area number (integer from 1 to 8) as an expression or numerical value.
- TOOL
- Indicates which coordinate system to use as reference when making relative movement. If omitted, local coordinate system will be reference.
When movement is based on a local coordinate system, the coordinates are relative to a coordinate system in which the point expression is defined. When movement is based on a tool coordinate system, the coordinates are relative to a point expression position.
TOOL Constant Value Local coordinate reference AC_LOCAL 0 Tool coordinate reference AC_TOOL 1
Description
Returns a point that has moved relative to a point corrected by the AreaCorrection function. The coordinates are defined in the same local coordinate system as the specified point. This function can be used in conjunction with a motion command (such as Go or Jump command) to move the robot to a specified position.
When used in conjunction with the Here function, it can perform the same operation as BGo and TGo. The amount of relative movement is more accurate if it is within the correction area.
Specifying a correction area that has not been set will result in an error.
Notes
When a relative movement in orientation is made
If a relative movement in orientation is performed, the orientation after the relative movement will not be subject to correction and an error may occur.
See Also
AreaCorrectionSet, AreaCorrectionClr, AreaCorrectionDef Function, AreaCorrectionInv, Here
AreaCorrectionOffset Function Example
' Assume correction area 1 is already defined
' Similar to BGo XY(50, 0, 0, 0)
Go AreaCorrectionOffset(Here, XY(50, 0, 0, 0), 1)
' Similar to TGo XY(50, 0, 0, 0)
Go AreaCorrectionOffset(Here, XY(50, 0, 0, 0), 1, AC_TOOL)