Skip to content

Instructions - Coordinate System


1. Switch Tool (SWITCHTOOL)

Description: Switch tool, 0 means no tool

Instruction Name: SWITCHTOOL

Parameter Description

ParameterTypeValue RangeDescription
_variableobject-Variable type; manual int type or int type, global or local
_variable.datafloat-Data value
_variable.secondvalueint-Secondary value
_variable.valueint[0, 999]Tool number
_variable.varnamestring-Variable name
logoutbool-Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable
typeint48Switch tool is 48 in the enumeration sequence type
userParamIntint-Customer custom in secondary development, currently no meaning
userParamStringstring-Customer custom in secondary development, currently no meaning

Example

json
{
  "_variable": {
    "data": 0.0,
    "secondvalue": 0,
    "value": 4,
    "varname": "GI009"
  },
  "logout": false,
  "type": 48,
  "userParamInt": 0,
  "userParamString": ""
}

2. Switch User Coordinate (SWITCHUCOORD)

Description: Switch user coordinate

Instruction Name: SWITCHUCOORD

Parameter Description

ParameterTypeValue RangeDescription
_variableobject-Variable type; manual int type or int type, global or local
_variable.datafloat-Data value
_variable.secondvalueint-Secondary value
_variable.valueint[0, 999]User coordinate number
_variable.varnamestring-Variable name
logoutbool-Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable
typeint49Switch user coordinate is 49 in the enumeration sequence type
userParamIntint-Customer custom in secondary development, currently no meaning
userParamStringstring-Customer custom in secondary development, currently no meaning

Example

json
{
  "_variable": {
    "data": 0.0,
    "secondvalue": 1,
    "value": 4,
    "varname": "GI[GI001]"
  },
  "logout": false,
  "type": 49,
  "userParamInt": 0,
  "userParamString": ""
}

3. User Coordinate Transform (USERCOORD_TRANS)

Description: Overlays (×) user coordinate systems B and C, and stores the result into user coordinate system A

Instruction Name: USERCOORD_TRANS

Parameter Description

ParameterTypeValue RangeDescription
CoordAint[1, 999]User coordinate A; the result is stored into this user coordinate system, this is the user coordinate system number
CoordBint[1, 999]User coordinate B
CoordCint[1, 999]User coordinate C
logoutbool-Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable
typeint117User coordinate transform is 117 in the enumeration sequence type
userParamIntint-Customer custom in secondary development, currently no meaning
userParamStringstring-Customer custom in secondary development, currently no meaning

Example

json
{
  "CoordA": 8,
  "CoordB": 18,
  "CoordC": 28,
  "logout": false,
  "type": 117,
  "userParamInt": 0,
  "userParamString": ""
}

4. Switch External Axis (SWITCHSYNC)

Description: Switches the currently used external axis during program execution

Instruction Name: SWITCHSYNC

Parameter Description

ParameterTypeValue RangeDescription
logoutbool-Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable
syncgroupint[1, 3]Group number of the external axis to switch to
typeint50Switch external axis is 50 in the enumeration sequence type
userParamIntint-Customer custom in secondary development, currently no meaning
userParamStringstring-Customer custom in secondary development, currently no meaning

Example

json
{
  "logout": false,
  "syncgroup": 2,
  "type": 50,
  "userParamInt": 0,
  "userParamString": ""
}