Instructions - Coordinate System
1. Switch Tool (SWITCHTOOL)
Description: Switch tool, 0 means no tool
Instruction Name: SWITCHTOOL
Parameter Description
| Parameter | Type | Value Range | Description |
|---|---|---|---|
_variable | object | - | Variable type; manual int type or int type, global or local |
_variable.data | float | - | Data value |
_variable.secondvalue | int | - | Secondary value |
_variable.value | int | [0, 999] | Tool number |
_variable.varname | string | - | Variable name |
logout | bool | - | Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable |
type | int | 48 | Switch tool is 48 in the enumeration sequence type |
userParamInt | int | - | Customer custom in secondary development, currently no meaning |
userParamString | string | - | 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
| Parameter | Type | Value Range | Description |
|---|---|---|---|
_variable | object | - | Variable type; manual int type or int type, global or local |
_variable.data | float | - | Data value |
_variable.secondvalue | int | - | Secondary value |
_variable.value | int | [0, 999] | User coordinate number |
_variable.varname | string | - | Variable name |
logout | bool | - | Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable |
type | int | 49 | Switch user coordinate is 49 in the enumeration sequence type |
userParamInt | int | - | Customer custom in secondary development, currently no meaning |
userParamString | string | - | 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
| Parameter | Type | Value Range | Description |
|---|---|---|---|
CoordA | int | [1, 999] | User coordinate A; the result is stored into this user coordinate system, this is the user coordinate system number |
CoordB | int | [1, 999] | User coordinate B |
CoordC | int | [1, 999] | User coordinate C |
logout | bool | - | Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable |
type | int | 117 | User coordinate transform is 117 in the enumeration sequence type |
userParamInt | int | - | Customer custom in secondary development, currently no meaning |
userParamString | string | - | 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
| Parameter | Type | Value Range | Description |
|---|---|---|---|
logout | bool | - | Whether commented out: true=this instruction will not be executed in the job file; false=not commented, executable |
syncgroup | int | [1, 3] | Group number of the external axis to switch to |
type | int | 50 | Switch external axis is 50 in the enumeration sequence type |
userParamInt | int | - | Customer custom in secondary development, currently no meaning |
userParamString | string | - | Customer custom in secondary development, currently no meaning |
Example
json
{
"logout": false,
"syncgroup": 2,
"type": 50,
"userParamInt": 0,
"userParamString": ""
}