0% found this document useful (0 votes)
6 views

Macro Variable

The document outlines the categories of macro variables used in machine tools, including Global Variables, Local Variables, and System Variables, detailing their respective ranges, rules, and data types. It specifies the lifecycle of these variables, indicating that local variables are temporary and global variables persist unless power is off. Additionally, it provides a comprehensive list of specific system variables and their functionalities related to machine operation and control.

Uploaded by

Văn Tuyến
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

Macro Variable

The document outlines the categories of macro variables used in machine tools, including Global Variables, Local Variables, and System Variables, detailing their respective ranges, rules, and data types. It specifies the lifecycle of these variables, indicating that local variables are temporary and global variables persist unless power is off. Additionally, it provides a comprehensive list of specific system variables and their functionalities related to machine operation and control.

Uploaded by

Văn Tuyến
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 62

Macro Variable.

匯出日期:2024-03-24
修改日期:2024-02-27
机床产品/Machine Tool Products

Macro Variable.

Variable applied in MACRO can be separated into 3 categories, which are Local Variables (#1~#400), System
Variables (#1000~#31986) and Global Variables (@1~@165535). Rules of life cycle, reading, and writing are different
in each category, further details is given in chapters below.

–2
机床产品/Machine Tool Products

Macro Variable.

1 Global Variables
Number Description R/ Data
W Rule Type

@0 VACANT R -

@1~ General operation variables R/W Double


@400

@401~ Corresponding to registers R1~R255 R/W Long


@655

@656~ Memorable variables (remained after power off) R/W Double


@999

@1000 System variables. User is forbidden to use this (version: 10.114.x/10.116.x) R Double
• Remarks: removed after version 10.118.56Z, 10.118.60T, 10.118.66M,
10.118.70G, 10.118.77, and changed to memorable variables (remained
after power off)

@1001~ Memorable variables (remained after power off) R/W Double


@1999

@10000~ Corresponding to registers R0~R4095 R/W Long


@14095

@60000~ Expansion global variables (go with No3813, only for CE system) R/W Double
@79999

@100000 Corresponding to registers R0~R65535 R/W Long


~
@165535

Remarks • Unless being power-off, all global variables have no life cycle limit.
• If @1~@400 needs to be remained after power-off, please goes with No3811.
• DOS only supports R0~R7999, please be extra careful when applying the corresponding
global variables.
• For register corresponding to @, the available range is as below:
• R50~R80, R101~R511, R1024~R4095, R5800~R7999, R10000~R10999, R15000~R65535

Global Variables – 3
机床产品/Machine Tool Products

Macro Variable.

2 Local Variables
Number Descriptions R/W Rule Data Type

#0 VACANT R -

#1~ System-reserved local variables for R/W Double


#26 MACRO arguments

#27~ Local variables for MACRO program and R/W Double


#400 subprogram

Remarks • The life cycle of local variables applied in MACRO is limited to the MACRO execution. After
execution is done, local variable returns to VACANT automatically.
• Subprogram can share local variables with main program, the life cycle of local variable also
ends when main program is completed.
• Please refer to "Argument Explanation for MACRO argument chart.

Local Variables – 4
机床产品/Machine Tool Products

Macro Variable.

3 System Variables
3.1 Modal Information in pre-interpreting(#1000~#1112)
Number Descriptions R/W Rule Data Type

#1000 Interpolation Mode R/W Long


Common:00, 01, 02, 03, 33, 34, 83, 84, 85, 87,
88, 89
For lathe only:20, 21, 21002, 24, 83001, 83002,
83003, 84001, 84002, 87001, 87002, 87003,
88001, 88002
For non-lathe system:73, 74, 76, 81, 82, 86

#1002 Plane Selection: 17, 18, 19 R Long

#1004 Absolute/Increment Command: 90, 91 R Long

#1006 Stroke Limit: 22, 23 R Long

#1008 Machining Feeding: 94, 95 R Long

#1010 Imperial/SI Units: 70, 71 R Long

#1012 Cutter Radius Compensation: 40, 41, 42 R Long

#1014 Tool Length Compensation: 43, 44, 49 R Long

#1016 Scaling Mode, Mirror Image Mode: G50, G50.1: R Long


#1016=50; G51, G51.1: #1016=51

#1018 Spindle Speed: 96, 97 R Long

#1020 Cutting Feeding Control Mode: 61, 62, 63, 64 R Long

#1022 Rotation/Turret Mirror Mode: 68, 69 R Long

#1024 Spindle Rotation Speed Change Detection R Long


Mode: 25, 26

System Variables – 5
机床产品/Machine Tool Products

Macro Variable.

#1026 Polar Coordinates Interpolation Mode: 12.1, R Long


13.1

#1028 Polar Coordinates Command Mode: 15, 16 R Long

#1030 Cutter Radius Compensation Tool Number: D R Long


code

#1032 Tool Length Compensation Tool Number: H R Long


code

#1034 Spindle Rotation Speed: S code R Long

#1035 Machining Spindle Rotation Speed R Long

#1036 Tool Number: T code R Long

#1038 Auxiliary Function: M code R Long

#1040 Current Workpiece Coordinate System Number: R Long


G54: #1040=1; G55: #1040=2; G56: #1040=3…

#1042 Serial Sequence Number: N code R Long

#1044 Previous Block Interpolation Mode of G66, R Long


G66.1, which might be 0, 1, 2, 3, 4, 31, 33, 34,
2004, 3004, 28001 or vacant(if the previous
block is M/S/T/F code)

#1046 Feeding Amount: F code. G94:IU/min, G95: R Double


IU/rev.

#1048 Current Line Number R Long

#1050 Program Starting Serial Sequence Number R Long

#1052 Program Starting Line Number R Long

#1054 Spindle Operation Mode (M03, M04, M05) R Long

#1056 Current Interpreting Program Number: N Code R Long

System Variables – 6
机床产品/Machine Tool Products

Macro Variable.

#1060 System Kernel Variable - -

#1061 System Kernel Variable - -

#1062 System Kernel Variable - -

#1063 1:Interpret to the last T code in the line; 0: R Long


others

#1064 SI/Imperial Unit Mode R Long

#1065 System Kernel Variable - -

#1066 System Kernel Variable - -

#1071~ Occupied by robot. - -


#1076

#1100 Main Program Ending M Code: #0, 02, 30, 99 R Long


(only enable when the "auxiliary program
before & after machining" is activated)

#1101~ Recording the 10 closest M codes when R Long


#1110 executing mid-program return (only enable
when Pr3851 is set to 999900)
(version: 10.116.24T, 10.116.36)

#1111 Initial assigned mid-program return line R Long


number in Intelligent mid-program return line
number mode( Pr3851 = 999901 )

#1112 Positioning command line number in Intelligent R Long


mid-program return line number mode( Pr3851
= 999901 )

System Variables – 7
机床产品/Machine Tool Products

Macro Variable.

3.2 Operation Control/State Variables (#1500~#1625)


Num Descriptions R/W Dat
ber Rul a
e Typ
e

#150 Quiet mode, system only records the program coordinate and does not organize the R/W Lon
0 motion plan g
0:OFF; 1:ON

#150 G00 motion type, invalid after Reset R/W Lon


1 0:according to value of Pr411; 1:linear g

#150 • Bit 0:Whether to run single-block execution control when PLC C40 is on R/W Lon
2 0:run single-block execution (default), return to 0 after system Reset g
1:don't run single block execution
• #1502 is valid only when Pr3221 is set to 0. Under other setting values of Pr3221,
in order to debug MACRO syntax, even if bit 0 of #1502 is set to 1, the single-step
execution function will still be executed.
• If single block execution function is not enable, step function of simulation is
not supported.

#150 • Bit 1:Whether feedhold and axis/spindle override take effect R/W Lon
4 0:Feedhold and axis/spindle ratio Override take effect (default value) g
1:Feedhold invalid during machining, axis/spindle override is fixed to 100%.
• Bit 2:Whether feedhold takes effect
0:Feedhold takes effect during machining (default value) .
1:Feedhold during machining is invalid.
• Bit 3:Whether rapid moving ratio override take effect
0:Rapid moving ratio override takes effect during machining (default value)
1:Rapid moving ratio fixed to 100% during machining.
• Bit 4:Whether cutting ratio override take effect
0:Cutting ratio override takes effect during machining (default value)
1:Cutting ratio fixed to 100% during machining.
• Bit 5:Whether spindle ratio override take effect
0:Spindle ratio override takes effect during machining (default value)
1:Spindle ratio fixed to 100% during machining.
Note 1: #1504.2~#1504.5 is valid after version 10.114.51
Note 2: If #1504 bit1, bit2 on, Reset is invalid.
If #1504 bit1, bit3~bit5 on, the MPG simulation will be inactive when running the
corresponding motion.( all / rapid move / cutting / spindle ).

System Variables – 8
机床产品/Machine Tool Products

Macro Variable.

Num Descriptions R/W Dat


ber Rul a
e Typ
e

#150 • Bit 1:Reserved R/W Lon


5 • Bit 2:Reserved g
• Bit 3:Reserved
• Bit 4:Reserved
• Bit 5:Lock spindle feeding ratio override
0:Spindle feeding ratio override takes effect during machining (default value).
1:Spindle feeding ratio during machining is fixed to the setup value.
Note:When #1505 and #1504 is applied at the same time, #1505 overrides #1504. This
function is valid in versions 10.114.56E, 10.116.0E, 10.116.5 and after.

#150 Simulation Mode. 2 modes in Interpreting NC program R Lon


6 0:General interpreting mode, applied when system is running functions, such as g
motion plan organizing, interpolation, etc.
1:Graphic simulation mode, applied when system is obtaining the size of program.

#150 Simulation on/off (only affects simulation) W Lon


7 0:Resume/activate graphic simulation g
1:Turn off graphic simulation
(Function for versions 10.116.x)

#150 Number of the path currently executing the Macro R Lon


8 1:1st Path;2:2nd Path;3:3rd Path;4:4th Path g

#150 Tool auto retract function is forbidden in axis. R/W Lon


9 g
• Bit 0:Reserved
• Bit 1:Set to 1, 1st axis is forbidden; set to 0, 1st axis is not banned.
• Bit 2:Set to 1, 2nd axis is forbidden; set to 0, 2nd axis is not banned.
• ...
• Bit 18:Set to 1, 18th axis is forbidden; set to 0, 18th axis is not banned.
• Bit 19~31:Reserved
Note:For now, only supports Syntec M3 drive.

System Variables – 9
机床产品/Machine Tool Products

Macro Variable.

Num Descriptions R/W Dat


ber Rul a
e Typ
e

#151 FileOperationControlWord R/W Lon


0 g
Bit 0 0 Turn off Main Program Reloading

1 Activate Main Program Reloading

Bit 1 0 Turn off Subprogram Reloading

1 Activate Subprogram Reloading

Bit 2 0 Update main program and subprogram


information (filename, line number, serial
sequence number)

1 Only update the main program


information (filename, line number, serial
sequence number)

Others Reserved

Notifications:If this parameter is modified during machining, it takes effect when


interpreted-instructions before #1510 are all completed.

#151 Abnormal Disturbance Torque Protection is forbidden in axis. R/W Lon


1 g
Bit 0:Reserved
Bit 1:Set to 1, 1st axis is forbidden; set to 0, 1st axis is not banned.
Bit 2:Set to 1, 2nd axis is forbidden; set to 0, 2nd axis is not banned.
...
Bit 18:Set to 1, 18th axis is forbidden; set to 0, 18th axis is not banned.
Bit 19~31:Reserved
Note:
Only effective when Option 52 is enable
It will be set to 0 when it is just turned on and reset.
When the Mill machine uses the G74 and G84 commands, the bit of the axis of the
tapping direction will be set to 1.
When the Lathe machine uses the G84 and G88 commands, the bit of the axis of the
tapping direction will be set to 1.

System Variables – 10
机床产品/Machine Tool Products

Macro Variable.

Num Descriptions R/W Dat


ber Rul a
e Typ
e

#151 G04.1 Synchronous Waiting flag R Lon


2 0:General non-Synchronous Waiting state; 1:Synchronous Waiting state g
Note:The function is no longer provided after version 10.116.

#151 G33 Thread Turning flag R/W Lon


4 0:General Turning state; 1:Tool Feeding/Retracting Turning state; 2:Tool g
Broaching state; 3:Clear D323

#151 General Tapping Tool Retracting Block flag R/W Lon


5 g

#151 Inhibit post acceleration(Pr3983) functions R/W Lon


6 g
• Bit 0:Reserved
Note: #1516 Bit 0 unsupport version: 10.118.60L, 10.118.66F, 10.118.70 and
later.
• Bit 1:Does the Rapid traverse (G00) and cutting commands post acceleration
function(Pr3983) effective?
0:Effective[Default];
1:Ineffective。
Note: #1516 Bit 1 support version: 10.118.60L, 10.118.66F, 10.118.70 and later.
• Bit 2:Does the Rapid traverse (G00) commands post acceleration
function(Pr3984) effective?
0:Effective[Default];
1:Ineffective。
Note: #1516 Bit 2 support version: 10.118.62A, 10.118.66M, 10.118.70M,
10.118.78C, 10.118.82 and later.

#151 System Variable R/W Lon


7 g

#160 Least Input Unit for Linear Axis, corresponds to Pr17 control precision(Least Input Unit, R Lon
0 LIU) g

#160 Least Input Unit for Rotary Axis, corresponds to Pr17 control precision(Least Input Unit, R Lon
2 LIU) g

#160 Is U, V, W seen as increment command mode of X, Y, Z axis R Lon


4 0:seen as normal command mode of U, V, W axis g
1:seen as increment command mode of X, Y, Z axis

System Variables – 11
机床产品/Machine Tool Products

Macro Variable.

Num Descriptions R/W Dat


ber Rul a
e Typ
e

#160 Element amount in STACK in Macro R Lon


6 g

System Variables – 12
机床产品/Machine Tool Products

Macro Variable.

Num Descriptions R/W Dat


ber Rul a
e Typ
e

#160 • bit 0:Is the skip source corresponding to G31 Skip Function triggered R Lon
8 0:Not triggered g
1:Already Triggered (after C62 ON, the axis starts decelerating to 0, and the 0th
bit of #1608 is 1 only when the axis completely decelerates to 0)
• bit 1~18:Is the skip source corresponding to each axis set by G31.10 triggered
while executing multi-axis multi-signal skip function? Bit 1~18 are
corresponding to the 1st~18th axis.
0:Not triggered
1:Already Triggered (after C62 ON, the axis starts decelerating to 0, and the bit
value of the corresponding axis is 1 only when the axis completely decelerates
to 0)
Command Skip function(G31) Multi-axis multi-signal skip
function(G31.10/G31.11)

#1608 bit 0 bit 1~18

notes No matter which function is used, the value of unsupported


bit is equal to 0.

Example:
There are axes: X, Y, Z1, Z2, Z3, Z4,the corresponding Pr21~ and Pr321~ are listed
below。
1. Use skip function(G31) and set Z1, Z2, Z3 corresponding to the skip source.
After skip source is triggered , each bit value of #1608 is:
bit 0:1
bit 1~18:0
Therefore, the value of #1608 is 20=1.
2. Use multi-axis multi-signal skip function(G31.10/G31.11) and set Z1, Z2, Z3 to be
axes corresponding to the different skip source.
After signals corresponding to Z1 and Z3 are triggered and Z1 and Z3 are
stopped, each bit value of #16-8 is:
bit 0:0
bit 1~18:
Command G31.10 & G31.11

Axis corresponding Pr21 Pr22 Pr23 Pr24 Pr25 Pr26


axis card port
number(Pr21~)

System Variables – 13
机床产品/Machine Tool Products

Macro Variable.

Num Descriptions R/W Dat


ber Rul a
e Typ
e

Command G31.10 & G31.11

Axis name(Pr321~) X Y Z1 Z2 Z3 Z4

bit 1 2 3 4 5 6

value 0 0 1 0 1 0

Therefore, the value of #1608 is 23+25=40.


Notes:#1608 is cleared to 0 if CNC just powered on, RESET, system executing G31,
G31.11 or G28.1 again.

#161 Stop angle if spindle orientation R Lon


0 g

#161 Default workpiece coordinates number: G54: #1040=1; G55: #1040=2; G56: #1040=3… R/W Lon
2 g

#161 Serial sequence number of mid-program restart R Lon


6 g

#161 Line Number Number of mid-program Restart R Lon


8 g

#162 Real-time serial sequence number in program ( The default value is set to be 0. ) R Lon
0 g

#162 Real-time line number in program ( The default value is set to be 1 except for the R Lon
2 Graphical Simulation, whose default value is set to be 0. ) g

#162 Real-time valid spindle number ( The default value is set to be 0. ) R Lon
4 g

System Variables – 14
机床产品/Machine Tool Products

Macro Variable.

Num Descriptions R/W Dat


ber Rul a
e Typ
e

#162 Default preferred tool alignment solution type R/W Lon


5 g
0 : the 1st rotary axis (Master axis) moves along with the shortest contour;(default
value)
1 : the 1st rotary axis rotates towards positive direction;
2 : the 1st rotary axis rotates towards negative direction;

#162 Occupied by robot. R Lon


7~#1 g
629

3.3 Coordinate System Information, #1301~#1478


Nu Descriptions R/W Data
mb Rul Typ
er e e

#13 Program coordinate of each axis at the end of the block R Dou
01~ (please note, if system reads #1301~#1308 immediately in the next line of G43, G44, G49, ble
G53, G54, G54 P_, G92.1, the program coordinate of last moving command block is
#13 obtained. It's suggested to apply #1341~#1358 or #1411~#1419 to get the current program
18 coordinate of each axis)

#13 Machine coordinate of each axis, which is not readable while moving. R Dou
21~ ble

#13
38

#13 Current program coordinate of each axis. R Dou


41~ ble

#13
58

System Variables – 15
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rul Typ
er e e

#13 The program coordinate of each axis when the skip source corresponding to G31 or R Dou
61~ G31.10/G31.11 skip function is triggered. ble
For software versions 10.116.38M, 10.116.54K, 10.118.0F, 10.118.6 and after, the value is
#13
cleared to 0 if CNC just powered on, RESET, program ends, system executing G31, G31.11
78
or G28.1 again, to avoid showing the previous escape location before skip signal comes in
and causes misjudgment.

#13 Tool length compensation value of each axis R Dou


81~ ble

#13
98

#14 Center vector (I, J, K) of last arc command R Dou


01~ ble

#14
03

#14 Tool vector coordinate R Dou


04~ ble

#14
06

#14 Workpiece coordinate of XYZABCUVW axes at the end of the block, the correspondence R Dou
11~ are: ble
1411(X); 1412(Y); 1413(Z)
#14 1414(A); 1415(B); 1416(C)
19 1417(U); 1418(V); 1419(W)

#14 The machine coordinate of each axis when the skip source corresponding to G31 or R Dou
41~ G31.10/G31.11 skip function is triggered. ble
For software versions 10.116.38M, 10.116.54K, 10.118.0F, 10.118.6 and after, the value is
#14
cleared to 0 after CNC just powered on, RESET, program ends, system executing G31,
58
G31.11 or G28.1 again, to avoid showing the previous escape location before skip signal
comes in and causes misjudgment.

System Variables – 16
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rul Typ
er e e

#14 Offset value of each axis when executing Enable Halted Point Return (Pr3852) R Dou
61~ ble

#14
78

#14 Position of rotary axes that can achieve tool alignment with tilted working plane. Units R Dou
81~ are IU. Relation to rotary axis is: ble
#14
1481(A axis); 1482(B axis); 1483(C axis)
83
Notice:
• If the tool alignment angle for corresponding axis direction is invalid, the # value
will return VACANT.

3.4 Runtime State, #1800~#1978


Numb Descriptions R/W Data
er Rule Type

#1800 Tracking error of rigid tapping on rotary axis (milli degree) R Double

#1801 Tracking error of rigid tapping on Z axis (μm) R Double

#1802 Maximum tracking error of rigid tapping on Z axis (μm) R Double

#1803 Maximum tracking error of 2nd rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1804 Maximum tracking error of 3rd rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1805 Maximum tracking error of 4th rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1806 Maximum tracking error of 5th rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

System Variables – 17
机床产品/Machine Tool Products

Macro Variable.

#1807 Maximum tracking error of 6th rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1810 Feedback pulse number of gap control from Z axis encoder R LONG

#1814 Define axis a radius axis or diameter axis R LONG


• Bit 0:Reserved
• Bit 1:0, 1st axis is a radius axis; 1, 1st radius is a diameter axis
• Bit 2:0, 2nd axis is a radius axis; 1, 2nd radius is a diameter axis
• ...
• Bit 18:0, 18th axis is a radius axis; 1, 18th radius is a diameter axis
• Bit 19~31:Reserved

#1815 Teaching function R Double


0: disabled; 1: enabled

#1816 Feedrate setting of teaching function (IU/min) R/W Double

#1817 D code R LONG

#1818 H code R LONG

#1819 Path output mode. System organizes the motion plan and output the path to R/W LONG
Macro Stack (for G73), please execute WAIT() before using
0: disabled; 1: enabled

#1820 Mute mode. System organizes the motion plan without actual command output. R/W Double
Goes with G10 L1100.
0: disabled; 1: enabled

#1821 Accumulated cutting length R/W Double

#1822 Cutting feedrate command F(mm/min) R/W Double

#1823 Spindle rotation speed command (RPM) R/W Double

#1824 Valid cutting control mode, G61, G62, G63, G64 R Double

System Variables – 18
机床产品/Machine Tool Products

Macro Variable.

#1825 Valid interpolation mode R Double

G Displ G Displ G code Displ G code Displ


cod ay cod ay ay ay
e e

G00 0 G02. 2004 G28.1 2800 MOVL 1001


4 1

G01 1 G03. 3004 G900.81 9000 MOVJ (axis 1002


4 (rapid 81 input)
drilling)

G02 2 G31 31 G01.84 1084 MOVJ (end 1003


(rapid point
tapping) input)

G03 3 G33 33 MOVC 1004

G04 4 G34 34

#1826 HPCC mode (optional function) R Double


0: disabled; non-0: enabled
HMI show HPCC on monitor screen by checking #1826
Valid version: after 10.116.0I,10.116.6B (included)

#1827 Valid workpiece coordinate number. G54: #1040=1; G55: #1040=2; G56: R Double
#1040=3…

#1828 Estimated machining error with current operating parameters (BLU, not R Double
displaying when Pr3808 is set to 0)
Valid version: before 10.116.54A (included)

#1829 Selection of multiple sets of HSHP parameters R/W Double

System Variables – 19
机床产品/Machine Tool Products

Macro Variable.

#1830 The servo backward compensation function applied, each number represents: R Double

#1830 0 1 2 3 4 5

compensation none Pn10 SP SPA + ZPEC ZPEC +


function 9 A Pn109 Pn109
applied

Note 1: Pn109 is the feedforward of Yaskawa drive, enabled when it's bigger
than 0.
Note 2: ZPEC and SPA won't be enabled at the same time.
Note 3: if #1830 = 3 or 5, it means 2 servo backward compensation functions are
enabled at the same time, it might lead to intense vibration of the machine.
Valid version: after 10.116.33 (included)

#1831 Machining spindle coupling mode, G51.2 , G113 , G114.1 , G114.3 R Double

#1832 Absolute/Increment command mode, 90, 91 R Double

#1833 Modal G code interpolation mode R Double

G code Display G code Display G code Display

G00 0 G02.4 2004 MOVL 1001

G01 1 G03.4 3004 MOVJ (axis 1002


input)

G02 2 G33 33 MOVJ (end point 1003


input)

G03 3 G34 44 MOVC 1004

#1834 Plane selection mode, 17, 18, 19 R Double

#1835 Absolute/Increment command mode, 90, 91 R Double

#1836 Stroke limit mode, 22, 23 R Double

#1837 Machining feeding mode, 94, 95 R Double

System Variables – 20
机床产品/Machine Tool Products

Macro Variable.

#1838 Imperial, SI Units mode, 70, 71 R Double

#1839 Cutter radius compensation mode, 40, 41, 42 R Double

#1840 Tool length compensation mode, 43, 44, 49 R Double

#1841 Scale mode, 50, 51 R Double

#1842 Spindle speed mode, 96, 97 R Double

#1843 Cutting feeding control mode, 61, 62, 63, 64 R Double

#1844 Rotation/Turret Mirror mode, 68, 69 R Double

#1845 Spindle rotation speed change detection mode, 25, 26 R Double

#1846 Polar coordinate interpolation mode, 12.1, 13.1 R Double

#1847 Polar coordinate command mode, 15, 16 R Double

#1848 Tool attitude referenced coordinate system R Long


• 0 - Machine coordinate system
• 1 - Workpiece coordinate system

#1851 System kernel variable R Long

#1852 System kernel variable R Long

#1854 System kernel variable R Long

#1855 Is the machining spindle a serial spindle R Long


0: Pulse Spindle; 1: Serial Spindle

#1856 Tapping Start Position ( point R level in absolute ). Reserved when restart, Unit : R/W Double
mm

#1857 Tapping Spindle CW / CCW Mode. Reserved when restart. R/W Long
0 : 未给定
3 : CW
4 : CCW

System Variables – 21
机床产品/Machine Tool Products

Macro Variable.

#1858 Tapping Spindle Speed. Reserved when restart, Unit : rev/min R/W Long

#1859 Tapping Axis Feedrate. Reserved when restart, Unit : mm/min R/W Double

#1881 MPG offset value of each axis R/W Double


~ The offset value of each path needs to be set independently, if using MPG offset
#1898 on HMI screen to modify the setting, only the axes of 1st path can be modified

#1901 G92, G92.1 coordinate system offset value of each axis R/W Double
~
#1918

#1930 G92.1 coordinate system rotation angle R/W Double


Notice:
The default value is 0. Depending on Pr413, the value will be restored to default
value after CNC reset or reboot.

#1931 axis of G92.1 coordinate system rotation center R/W Double


~
Notice:
#1933
The default values are 0, 0, 1. Depending on Pr413, the values will be restored to
default value after CNC reset or reboot.

#1941 3rd software positive stroke limit of each axis (IU) R/W Double
~
#1958

#1961 3rd software negative stroke limit of each axis (IU) R/W Double
~
#1978

3.5 Modal variables, #1080~#3100


Number Descriptions R/W Rule Data Type

#1080~ Modal variables for electric control personnel (disappear when R/W Long
#1099 system power off)

#2001~ Modal variables for system internal use (disappear when system R/W Double
#2200 reset)

System Variables – 22
机床产品/Machine Tool Products

Macro Variable.

Number Descriptions R/W Rule Data Type

#3001~ Modal variables for electric control personnel (disappear when R/W Double
#3100 system reset)

Remarks • Life cycle of modal variables is not limited to a single MACRO. Thus, it can be used to access
variables between different MACROs.
• #1080~1099 only support Long type value, or it will issue the COR-054 Incompatible data
type alarm.

3.6 Customer Param., #4001~#5500


Number Descriptions R/W Rule Data Type

#4001~ Customized parameters fro system internal use (parameter 4001~4100) R Double
#4100

#5001~ Customized parameters for electric control personnel (parameter R Double


#5500 5001~5500)

Remarks Please refer to EMC6_C005_扩充参数使用说明文档 to enable #5001~ display

3.7 Interface Signals, #6001~#6032


Number Descriptions R/W Rule Data Type

#6001~ MLC interface signal, C101~C132, S101~S132 R/W Double


#6032 Ex:
@1 := #6001; // assign C101 state to @1. If C101 On then @1=1,
@1=0 if opposite
#6001 := @2; // assign content of @2 to S101. If @2=1 then S101
On, S101 Off if opposite

Remarks

System Variables – 23
机床产品/Machine Tool Products

Macro Variable.

3.8 Tool Compensation, #10000~#15288


Pr3816 set 0 or 1
Single-Axis Tool Table
Milling Tool Table

Numbe Tool Length Compensation (H) Cutter Radius Compensation(D)


r
Geometric Worn Out Geometric Worn Out
Compensation Compensation Compensation Compensation

0 #11000 #10000 #13000 #12000


1 #11001 #10001 #13001 #12001
… … … … …
96 #11096 #10096 #13096 #12096

97 #11097 #10097 #13097 #12097


... ... ... ... ...
200 #11200 #10200 #13200 #12200

201 #11201 #10201 #13201 #12201


… ... ... ... ...
400 #11400 #10400 #13400 #12400

Remar • All compensations of tool 0 are 0


ks • So far, the controller provides 96 compensation of tools in standard.
By different models, there are up to 200 compensation of tools supported.
• Data type of all variables above is Double

Pr3816 set 2
Multi-Axis Tool Table
Lathe Tool Table

Nu Tool Length Compensation (H) Cutter Radius Compensation (D)


mb
er
Geometric Compensation Worn Out Compensation Geomet Worn Tool Tool
ric Out Nose Nose
Compe Conpe Direct Direct
nsation nsatio ion ion
n

System Variables – 24
机床产品/Machine Tool Products

Macro Variable.

1 #110 #31101(1st) #100 #35101(1st) #13003 #12003 #1400 #1500


01(1 #31201(2nd) 01(1 #35201(2nd) 3 3
st st
) #31301(3rd) ) #35301(3rd)
#110 #100
#31401(4th) #35401(4th)
02(2 02(2
nd
) #31501(5th) nd
) #35501(5th)
#110 #31601(6th) #100 #35601(6th)
03(3 #31701(7th) 03(3 #35701(7th)
rd
) #31801(8th) rd
) #35801(8th)
#114 #31901(9th) #104 #35901(9th)
01(4 #32001(10th) 01(4 #36001(10th)
th th
) #32101(11th) ) #36101(11th)
#114 #104
#32201(12th) #36201(12th)
02(5 02(5
th th
) )
#114 #104
03(6 03(6
th th
) )

2 #110 #31102(1st) #100 #35102(1st) #13006 #12006 #1400 #1500


04(1 #31202(2nd) 04(1 #35202(2nd) 6 6
st st
) #31302(3rd) ) #35302(3rd)
#110 #100
#31402(4th) #35402(4th)
05(2 05(2
nd
) #31502(5th) nd
) #35502(5th)
#110 #31602(6th) #100 #35602(6th)
06(3 #31702(7th) 06(3 #35702(7th)
rd
) #31802(8th) rd
) #35802(8th)
#114 #31902(9th) #104 #35902(9th)
04(4 #32002(10th) 04(4 #36002(10th)
th th
) #32102(11th) ) #36102(11th)
#114 #104
#32202(12th) #36202(12th)
05(5 05(5
th th
) )
#114 #104
06(6 06(6
th th
) )

… … ... … ... … … … …

System Variables – 25
机床产品/Machine Tool Products

Macro Variable.

96 #112 #31196(1st) #102 #35196(1st) #13288 #12288 #1428 #1528


86(1 #31296(2nd) 86(1 #35296(2nd) 8 8
st st
) #31396(3rd) ) #35396(3rd)
#112 #102
#31496(4th) #35496(4th)
87(2 87(2
nd
) #31596(5th) nd
) #35596(5th)
#112 #31696(6th) #102 #35696(6th)
88(3 #31796(7th) 88(3 #35796(7th)
rd
) #31896(8th) rd
) #35896(8th)
#116 #31996(9th) #106 #35996(9th)
86(4 #32096(10th) 86(4 #36096(10th)
th th
) #32196(11th) ) #36196(11th)
#116 #106
#32296(12th) #36296(12th)
87(5 87(5
th th
) )
#116 #106
88(6 88(6
th th
) )

Re • All compensations of tool 0 are 0


ma • Software version before 10.116.34, provide tool compensation function for first 6 axis, variable
rks #10000~#15999, which have to be linear axis
• After software version 10.116.34 and 10.116.34 included, provides tool compensation function for
first 12 axis, variable #30000~#39999, which have to be linear axis
• Tool compensation function of first 12 axis is only supported by lathe system
• Data type of all variables above is Double
• It requires customizing the corresponding tool table compensation screen for multi-axis
compensation on mill machine system
• Only supports the variables listed in the table

Pr3816 set 3
Multi-Axis Tool Table

Nu Tool Length Compensation (H) Cutter Radius Compensation (D)


m
be
Geometric Worn Out Geometric Worn Out Tool Nose Tool Nose
r
Compensation Compensation Compensati Compensati Direction Angle
on on

System Variables – 26
机床产品/Machine Tool Products

Macro Variable.

1 #31101(1st) #35101(1st) #13001 #12001 #14001 #15001


#31201(2nd) #35201(2nd)
#31301(3rd) #35301(3rd)
#31401(4th) #35401(4th)
#31501(5th) #35501(5th)
#31601(6th) #35601(6th)
#31701(7th) #35701(7th)
#31801(8th) #35801(8th)
#31901(9th) #35901(9th)
#32001(10th) #36001(10th)
#32101(11th) #36101(11th)
#32201(12th) #36201(12th)

2 #31102(1st) #35102(1st) #13002 #12002 #14002 #15002


#31202(2nd) #35202(2nd)
#31302(3rd) #35302(3rd)
#31402(4th) #35402(4th)
#31502(5th) #35502(5th)
#31602(6th) #35602(6th)
#31702(7th) #35702(7th)
#31802(8th) #35802(8th)
#31902(9th) #35902(9th)
#32002(10th) #36002(10th)
#32102(11th) #36102(11th)
#32202(12th) #36202(12th)

… ... ... … … … …

96 #31196(1st) #35196(1st) #13096 #12096 #14096 #15096


#31296(2nd) #35296(2nd)
#31396(3rd) #35396(3rd)
#31496(4th) #35496(4th)
#31596(5th) #35596(5th)
#31696(6th) #35696(6th)
#31796(7th) #35796(7th)
#31896(8th) #35896(8th)
#31996(9th) #35996(9th)
#32096(10th) #36096(10th)
#32196(11th) #36196(11th)
#32296(12th) #36296(12th)

System Variables – 27
机床产品/Machine Tool Products

Macro Variable.

Re • All compensations of tool 0 are 0


m • Provides tool compensation function for first 12 axis, variable #30000~#39999, needs to be linear
ar axis
ks • Data type of all variables above is Double
• Only supports the variables listed in the table

3.9 Workpiece Coordinate System Offset Value, #20001~#22018


Number Descriptions R/W Rule Data Type

#20001~ Offset value of offset coordinate system R/W Double


#20018

#20021~ G54(G54P1) coordinate system offset value R/W Double


#20038

#20041~ G55(G54P2) coordinate system offset value R/W Double


#20058

… … R/W Double

#20121~ G59(G54P6) coordinate system offset value R/W Double


#20138

#20141~ G59.1(G54P7) coordinate system offset value R/W Double


#20158

… … R/W Double

#20301~ G59.9(G54P15) coordinate system offset value R/W Double


#20318

#20321~ G54P16 coordinate system offset value R/W Double


#20338

… … R/W Double

#20641 G54P32 coordinate system offset value R/W Double


~#20658

... ... R/W Double

System Variables – 28
机床产品/Machine Tool Products

Macro Variable.

Number Descriptions R/W Rule Data Type

#22001 G54P100 coordinate system offset value R/W Double


~#22018

Remarks • Each coordinate system corresponds to 18 axis


• Modifying workpiece coordinate system variables (#20001~#20658) of other paths takes
effect after Reset

3.10 Reference Point Position, #26001~#26078


Number Descriptions R/W Rule Data Type

#26001~ 1st reference point of each axis R Double


#26018

#26021~ 2nd reference point of each axis, corresponds to Pr2801~Pr2818 R Double


#26038

#26041~ 3rd reference point of each axis, corresponds to Pr2821~Pr2838 R Double


#26058

#26061~ 4th reference point of each axis, corresponds to Pr2841~Pr2858 R Double


#26078

Remarks • Each reference point position can correspond to 18 axis


• The position of 1st reference point is the origin

Variable applied in MACRO can be separated into 3 categories, which are Local Variables (#1~#400), System
Variables (#1000~#31986) and Global Variables (@1~@165535). Rules of life cycle, reading, and writing are different
in each category, further details is given in chapters below.

System Variables – 29
机床产品/Machine Tool Products

Macro Variable.

4 Global Variables
Number Description R/W Rule Data Type

@0 VACANT R -

@1~ General operation variables R/W Double


@400

@401~ Corresponding to registers R1~R255 R/W Long


@655

@656~ Memorable variables (remained after power off) R/W Double


@999

@1000 System variables. User is forbidden to use this (version: R Double


10.114.x/10.116.x)

@1001~ Memorable variables (remained after power off) R/W Double


@1999

@10000~ Corresponding to registers R0~R4095 R/W Long


@14095

@60000~ Expansion global variables (go with No3813, only for CE R/W Double
@79999 system)

@100000~ Corresponding to registers R0~R65535 R/W Long


@165535

Remarks • Unless being power-off, all global variables have no life cycle limit.
• If @1~@400 needs to be remained after power-off, please goes with No3811.
• DOS only supports R0~R7999, please be extra careful when applying the
corresponding global variables.
• For register corresponding to @, the available range is as below:
• R50~R80, R101~R511, R1024~R4095, R5800~R7999, R10000~R10999,
R15000~R65535

Global Variables – 30
机床产品/Machine Tool Products

Macro Variable.

5 Local Variables
Number Descriptions R/W Rule Data Type

#0 VACANT R -

#1~ System-reserved local variables for R/W Double


#26 MACRO arguments

#27~ Local variables for MACRO program and R/W Double


#400 subprogram

Remarks • The life cycle of local variables applied in MACRO is limited to the MACRO execution. After
execution is done, local variable returns to VACANT automatically.
• Subprogram can share local variables with main program, the life cycle of local variable also
ends when main program is completed.
• Please refer to "Argument Explanation for MACRO argument chart.

Local Variables – 31
机床产品/Machine Tool Products

Macro Variable.

6 System Variables
6.1 Modal Information in pre-interpreting(#1000~#1112)
Number Descriptions R/W Rule Data Type

#1000 Interpolation Mode R/W Long


Common:00, 01, 02, 03, 33, 34, 83, 84, 85, 87,
88, 89
For lathe only:20, 21, 21002, 24, 83001, 83002,
83003, 84001, 84002, 87001, 87002, 87003,
88001, 88002
For non-lathe system:73, 74, 76, 81, 82, 86

#1002 Plane Selection: 17, 18, 19 R Long

#1004 Absolute/Increment Command: 90, 91 R Long

#1006 Stroke Limit: 22, 23 R Long

#1008 Machining Feeding: 94, 95 R Long

#1010 Imperial/SI Units: 70, 71 R Long

#1012 Cutter Radius Compensation: 40, 41, 42 R Long

#1014 Tool Length Compensation: 43, 44, 49 R Long

#1016 Scaling Mode, Mirror Image Mode: G50, G50.1: R Long


#1016=50; G51, G51.1: #1016=51

#1018 Spindle Speed: 96, 97 R Long

#1020 Cutting Feeding Control Mode: 61, 62, 63, 64 R Long

#1022 Rotation/Turret Mirror Mode: 68, 69 R Long

#1024 Spindle Rotation Speed Change Detection R Long


Mode: 25, 26

System Variables – 32
机床产品/Machine Tool Products

Macro Variable.

#1026 Polar Coordinates Interpolation Mode: 12.1, R Long


13.1

#1028 Polar Coordinates Command Mode: 15, 16 R Long

#1030 Cutter Radius Compensation Tool Number: D R Long


code

#1032 Tool Length Compensation Tool Number: H R Long


code

#1034 Spindle Rotation Speed: S code R Long

#1035 Machining Spindle Rotation Speed R Long

#1036 Tool Number: T code R Long

#1038 Auxiliary Function: M code R Long

#1040 Current Workpiece Coordinate System Number: R Long


G54: #1040=1; G55: #1040=2; G56: #1040=3…

#1042 Serial Sequence Number: N code R Long

#1044 Previous Block Interpolation Mode of G66, R Long


G66.1, which might be 0, 1, 2, 3, 4, 31, 33, 34,
2004, 3004, 28001 or vacant(if the previous
block is M/S/T/F code)

#1046 Feeding Amount: F code. G94:IU/min, G95: R Double


IU/rev.

#1048 Current Line Number R Long

#1050 Program Starting Serial Sequence Number R Long

#1052 Program Starting Line Number R Long

#1054 Spindle Operation Mode (M03, M04, M05) R Long

#1056 Current Interpreting Program Number: N Code R Long

System Variables – 33
机床产品/Machine Tool Products

Macro Variable.

#1060 System Kernel Variable - -

#1061 System Kernel Variable - -

#1062 System Kernel Variable - -

#1063 1:Interpret to the last T code in the line; 0: R Long


others

#1064 SI/Imperial Unit Mode R Long

#1065 System Kernel Variable - -

#1066 System Kernel Variable - -

#1071 Single-Axis Speed Percentage of Robot FJ R Double


Internal Axis

#1072 Feeding Speed in Linear Direction of Robot FL R Double


Assigned End Point

#1073 Feeding Speed in Rotary Direction of Robot FR R Double


Assigned End Point

#1074 Single-Axis Speed Percentage of Robot FEJ R Double


External Axis

#1075 Type of the Smoothing Command of Robot. 0: R Long


No Smoothing Command, 1: PL, 2: PQ, 3: PR

#1076 Parameter of the Smoothing Command of R Double


Robot. PL: Level of Smoothing[ 0 ~ 10 ]; PQ:
mm; PR: deg

#1100 Main Program Ending M Code: #0, 02, 30, 99 R Long


(only enable when the "auxiliary program
before & after machining" is activated)

#1101~ Recording the 10 closest M codes when R Long


#1110 executing mid-program return (only enable
when Pr3851 is set to 999900)
(version: 10.116.24T, 10.116.36)

System Variables – 34
机床产品/Machine Tool Products

Macro Variable.

#1111 Initial assigned mid-program return line R Long


number in Intelligent mid-program return line
number mode( Pr3851 = 999901 )

#1112 Positioning command line number in Intelligent R Long


mid-program return line number mode( Pr3851
= 999901 )

6.2 Operation Control/State Variables (#1500~#1625)


Nu Descriptions R/W Data
mb Rule Typ
er e

#15 Quiet mode, system only records the program coordinate and does not organize the R/W Long
00 motion plan
0:OFF; 1:ON

#15 G00 motion type, invalid after Reset R/W Long


01 0:according to value of Pr411; 1:linear

#15 • Bit 0:Whether to run single-block execution control when PLC C40 is on R/W Long
02 0:run single-block execution (default), return to 0 after system Reset
1:don't run single block execution
• Bit1:Whether the system continue to run the following program before MST
codes are not finished (not provided for now)
0:wait (default), return to 0 after system Reset
1:don't wait, thus PLC S30(DEN) won't output
• If single block execution function is not enable, step function of simulation is not
supported.

System Variables – 35
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rule Typ
er e

#15 • Bit 1:Whether feedhold and axis/spindle override take effect R/W Long
04 0:Feedhold and axis/spindle ratio Override take effect (default value)
1:Feedhold invalid during machining, axis/spindle override is fixed to 100%.
• Bit 2:Whether feedhold takes effect
0:Feedhold takes effect during machining (default value) .
1:Feedhold during machining is invalid.
• Bit 3:Whether rapid moving ratio override take effect
0:Rapid moving ratio override takes effect during machining (default value)
1:Rapid moving ratio fixed to 100% during machining.
• Bit 4:Whether cutting ratio override take effect
0:Cutting ratio override takes effect during machining (default value)
1:Cutting ratio fixed to 100% during machining.
• Bit 5:Whether spindle ratio override take effect
0:Spindle ratio override takes effect during machining (default value)
1:Spindle ratio fixed to 100% during machining.
Note 1: #1504.2~#1504.5 is valid after version 10.114.51
Note 2: If #1504 bit1, bit2 on, Reset is invalid.
If #1504 bit1, bit3~bit5 on, the MPG simulation will be inactive when running the
corresponding motion.( all / rapid move / cutting / spindle ).

#15 • Bit 1:Reserved R/W Long


05 • Bit 2:Reserved
• Bit 3:Reserved
• Bit 4:Reserved
• Bit 5:Lock spindle feeding ratio override
0:Spindle feeding ratio override takes effect during machining (default value).
1:Spindle feeding ratio during machining is fixed to the setup value.
Note:When #1505 and #1504 is applied at the same time, #1505 overrides #1504. This
function is valid in versions 10.114.56E, 10.116.0E, 10.116.5 and after.

#15 Simulation Mode. 2 modes in Interpreting NC program R Long


06 0:General interpreting mode, applied when system is running functions, such as motion
plan organizing, interpolation, etc.
1:Graphic simulation mode, applied when system is obtaining the size of program.

#15 Simulation on/off (only affects simulation) W Long


07 0:Resume/activate graphic simulation
1:Turn off graphic simulation
(Function for versions 10.116.x)

#15 Number of the path currently executing the Macro R Long


08 1:1st Path;2:2nd Path;3:3rd Path;4:4th Path

System Variables – 36
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rule Typ
er e

#15 Tool auto retract function is forbidden in axis. R/W Long


09
• Bit 0:Reserved
• Bit 1:Set to 1, 1st axis is forbidden; set to 0, 1st axis is not banned.
• Bit 2:Set to 1, 2nd axis is forbidden; set to 0, 2nd axis is not banned.
• ...
• Bit 18:Set to 1, 18th axis is forbidden; set to 0, 18th axis is not banned.
• Bit 19~31:Reserved
Note:For now, only supports Syntec M3 drive.

#15 FileOperationControlWord R/W Long


10
Bit 0 0 Turn off Main Program Reloading

1 Activate Main Program Reloading

Bit 1 0 Turn off Subprogram Reloading

1 Activate Subprogram Reloading

Bit 2 0 Update main program and subprogram


information (filename, line number, serial
sequence number)

1 Only update the main program


information (filename, line number, serial
sequence number)

Others Reserved

Notifications:If this parameter is modified during machining, it takes effect when


interpreted-instructions before #1510 are all completed.

#15 G04.1 Synchronous Waiting flag R Long


12 0:General non-Synchronous Waiting state; 1:Synchronous Waiting state
Note:The function is no longer provided after version 10.116.

#15 G33 Thread Turning flag R/W Long


14 0:General Turning state; 1:Tool Feeding/Retracting Turning state; 2:Tool Broaching
state

System Variables – 37
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rule Typ
er e

#15 General Tapping Tool Retracting Block flag R/W Long


15

#15 System Variable R/W Long


17

#16 Least Input Unit for Linear Axis, corresponds to Pr17 control precision(Least Input Unit, R Long
00 LIU)

#16 Least Input Unit for Rotary Axis, corresponds to Pr17 control precision(Least Input Unit, R Long
02 LIU)

#16 Is U, V, W seen as increment command mode of X, Y, Z axis R Long


04 0:seen as normal command mode of U, V, W axis
1:seen as increment command mode of X, Y, Z axis

#16 Element amount in STACK in Macro R Long


06

System Variables – 38
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rule Typ
er e

#16 • bit 0:Is the skip source corresponding to G31 Skip Function triggered R Long
08 0:Not triggered
1:Already Triggered (after C62 ON, the axis starts decelerating to 0, and the 0th
bit of #1608 is 1 only when the axis completely decelerates to 0)
• bit 1~18:Is the skip source corresponding to each axis set by G31.10 triggered
while executing multi-axis multi-signal skip function? Bit 1~18 are corresponding
to the 1st~18th axis.
0:Not triggered
1:Already Triggered (after C62 ON, the axis starts decelerating to 0, and the bit
value of the corresponding axis is 1 only when the axis completely decelerates to
0)
Command Skip function(G31) Multi-axis multi-signal skip
function(G31.10/G31.11)

#1608 bit 0 bit 1~18

notes No matter which function is used, the value of unsupported


bit is equal to 0.

Example:
There are axes: X, Y, Z1, Z2, Z3, Z4,the corresponding Pr21~ and Pr321~ are listed
below。
1. Use skip function(G31) and set Z1, Z2, Z3 corresponding to the skip source.
After skip source is triggered , each bit value of #1608 is:
bit 0:1
bit 1~18:0
Therefore, the value of #1608 is 20=1.
2. Use multi-axis multi-signal skip function(G31.10/G31.11) and set Z1, Z2, Z3 to be
axes corresponding to the different skip source.
After signals corresponding to Z1 and Z3 are triggered and Z1 and Z3 are stopped,
each bit value of #16-8 is:
bit 0:0
bit 1~18:
Command G31.10 & G31.11

Axis corresponding Pr21 Pr22 Pr23 Pr24 Pr25 Pr26


axis card port
number(Pr21~)

Axis name(Pr321~) X Y Z1 Z2 Z3 Z4

System Variables – 39
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rule Typ
er e

Command G31.10 & G31.11

bit 1 2 3 4 5 6

value 0 0 1 0 1 0

Therefore, the value of #1608 is 23+25=40.


Notes:#1608 is cleared to 0 if CNC just powered on, RESET, system executing G31,
G31.11 or G28.1 again.

#16 Stop angle if spindle orientation R Long


10

#16 Default workpiece coordinates number: G54: #1040=1; G55: #1040=2; G56: #1040=3… R/W Long
12

#16 Serial sequence number of mid-program restart R Long


16

#16 Line Number Number of mid-program Restart R Long


18

#16 Real-time serial sequence number in program ( The default value is set to be 0. ) R Long
20

#16 Real-time line number in program ( The default value is set to be 1 except for the R Long
22 Graphical Simulation, whose default value is set to be 0. )

#16 Real-time valid spindle number ( The default value is set to be 0. ) R Long
24

#16 Default preferred tool alignment solution type R/W Long


25
0 : the 1st rotary axis (Master axis) moves along with the shortest contour;(default value)
1 : the 1st rotary axis rotates towards positive direction;
2 : the 1st rotary axis rotates towards negative direction;

System Variables – 40
机床产品/Machine Tool Products

Macro Variable.

6.3 Coordinate System Information, #1301~#1478


Nu Descriptions R/W Data
mb Rul Typ
er e e

#13 Program coordinate of each axis at the end of the block R Dou
01~ (please note, if system reads #1301~#1308 immediately in the next line of G43, G44, G49, ble
G53, G54, G54 P_, G92.1, the program coordinate of last moving command block is
#13 obtained. It's suggested to apply #1341~#1358 or #1411~#1419 to get the current program
18 coordinate of each axis)

#13 Machine coordinate of each axis, which is not readable while moving. R Dou
21~ ble

#13
38

#13 Current program coordinate of each axis. R Dou


41~ ble

#13
58

#13 The program coordinate of each axis when the skip source corresponding to G31 or R Dou
61~ G31.10/G31.11 skip function is triggered. ble
For software versions 10.116.38M, 10.116.54K, 10.118.0F, 10.118.6 and after, the value is
#13
cleared to 0 if CNC just powered on, RESET, program ends, system executing G31, G31.11
78
or G28.1 again, to avoid showing the previous escape location before skip signal comes in
and causes misjudgment.

#13 Tool length compensation value of each axis R Dou


81~ ble

#13
98

#14 Center vector (I, J, K) of last arc command R Dou


01~ ble

#14
03

System Variables – 41
机床产品/Machine Tool Products

Macro Variable.

Nu Descriptions R/W Data


mb Rul Typ
er e e

#14 Tool vector coordinate R Dou


04~ ble

#14
06

#14 Workpiece coordinate of XYZABCUVW axes at the end of the block, the correspondence R Dou
11~ are: ble
1411(X); 1412(Y); 1413(Z)
#14 1414(A); 1415(B); 1416(C)
19 1417(U); 1418(V); 1419(W)

#14 The machine coordinate of each axis when the skip source corresponding to G31 or R Dou
41~ G31.10/G31.11 skip function is triggered. ble
For software versions 10.116.38M, 10.116.54K, 10.118.0F, 10.118.6 and after, the value is
#14
cleared to 0 after CNC just powered on, RESET, program ends, system executing G31,
58
G31.11 or G28.1 again, to avoid showing the previous escape location before skip signal
comes in and causes misjudgment.

#14 Offset value of each axis when executing Enable Halted Point Return (Pr3852) R Dou
61~ ble

#14
78

#14 Position of rotary axes that can achieve tool alignment with tilted working plane. Units R Dou
81~ are IU. Relation to rotary axis is: ble
#14
1481(A axis); 1482(B axis); 1483(C axis)
83
Notice:
• If the tool alignment angle for corresponding axis direction is invalid, the # value
will return VACANT.

6.4 Runtime State, #1800~#1978


Numb Descriptions R/W Data
er Rule Type

#1800 Tracking error of rigid tapping on rotary axis (milli degree) R Double

System Variables – 42
机床产品/Machine Tool Products

Macro Variable.

#1801 Tracking error of rigid tapping on Z axis (μm) R Double

#1802 Maximum tracking error of rigid tapping on Z axis (μm) R Double

#1803 Maximum tracking error of 2nd rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1804 Maximum tracking error of 3rd rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1805 Maximum tracking error of 4th rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1806 Maximum tracking error of 5th rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1807 Maximum tracking error of 6th rigid tapping on Z axis (μm) R Double
Valid version: 10.114.16~10.116.5

#1810 Feedback pulse number of gap control from Z axis encoder R LONG

#1814 Define axis a radius axis or diameter axis R LONG


• Bit 0:Reserved
• Bit 1:0, 1st axis is a radius axis; 1, 1st radius is a diameter axis
• Bit 2:0, 2nd axis is a radius axis; 1, 2nd radius is a diameter axis
• ...
• Bit 18:0, 18th axis is a radius axis; 1, 18th radius is a diameter axis
• Bit 19~31:Reserved

#1815 Teaching function R Double


0: disabled; 1: enabled

#1816 Feedrate setting of teaching function (IU/min) R/W Double

#1817 D code R LONG

#1818 H code R LONG

#1819 Path output mode. System organizes the motion plan and output the path to R/W LONG
Macro Stack (for G73), please execute WAIT() before using
0: disabled; 1: enabled

System Variables – 43
机床产品/Machine Tool Products

Macro Variable.

#1820 Mute mode. System organizes the motion plan without actual command output. R/W Double
Goes with G10 L1100.
0: disabled; 1: enabled

#1821 Accumulated cutting length R/W Double

#1822 Cutting feedrate command F(mm/min) R/W Double

#1823 Spindle rotation speed command (RPM) R/W Double

#1824 Valid cutting control mode, G61, G62, G63, G64 R Double

#1825 Valid interpolation mode R Double

G Displ G Displ G code Displ G code Displ


cod ay cod ay ay ay
e e

G00 0 G02. 2004 G28.1 2800 MOVL 1001


4 1

G01 1 G03. 3004 G900.81 9000 MOVJ (axis 1002


4 (rapid 81 input)
drilling)

G02 2 G31 31 G01.84 1084 MOVJ (end 1003


(rapid point
tapping) input)

G03 3 G33 33 MOVC 1004

G04 4 G34 34

#1826 HPCC mode (optional function) R Double


0: disabled; non-0: enabled
HMI show HPCC on monitor screen by checking #1826
Valid version: after 10.116.0I,10.116.6B (included)

#1827 Valid workpiece coordinate number. G54: #1040=1; G55: #1040=2; G56: R Double
#1040=3…

System Variables – 44
机床产品/Machine Tool Products

Macro Variable.

#1828 Estimated machining error with current operating parameters (BLU, not R Double
displaying when Pr3808 is set to 0)
Valid version: before 10.116.54A (included)

#1829 Selection of multiple sets of HSHP parameters R/W Double

#1830 The servo backward compensation function applied, each number represents: R Double

#1830 0 1 2 3 4 5

compensation none Pn10 SP SPA + ZPEC ZPEC +


function 9 A Pn109 Pn109
applied

Note 1: Pn109 is the feedforward of Yaskawa drive, enabled when it's bigger
than 0.
Note 2: ZPEC and SPA won't be enabled at the same time.
Note 3: if #1830 = 3 or 5, it means 2 servo backward compensation functions are
enabled at the same time, it might lead to intense vibration of the machine.
Valid version: after 10.116.33 (included)

#1831 Machining spindle coupling mode, G51.2 , G113 , G114.1 , G114.3 R Double

#1832 Absolute/Increment command mode, 90, 91 R Double

#1833 Modal G code interpolation mode R Double

G code Display G code Display G code Display

G00 0 G02.4 2004 MOVL 1001

G01 1 G03.4 3004 MOVJ (axis 1002


input)

G02 2 G33 33 MOVJ (end point 1003


input)

G03 3 G34 44 MOVC 1004

#1834 Plane selection mode, 17, 18, 19 R Double

#1835 Absolute/Increment command mode, 90, 91 R Double

System Variables – 45
机床产品/Machine Tool Products

Macro Variable.

#1836 Stroke limit mode, 22, 23 R Double

#1837 Machining feeding mode, 94, 95 R Double

#1838 Imperial, SI Units mode, 70, 71 R Double

#1839 Cutter radius compensation mode, 40, 41, 42 R Double

#1840 Tool length compensation mode, 43, 44, 49 R Double

#1841 Scale mode, 50, 51 R Double

#1842 Spindle speed mode, 96, 97 R Double

#1843 Cutting feeding control mode, 61, 62, 63, 64 R Double

#1844 Rotation/Turret Mirror mode, 68, 69 R Double

#1845 Spindle rotation speed change detection mode, 25, 26 R Double

#1846 Polar coordinate interpolation mode, 12.1, 13.1 R Double

#1847 Polar coordinate command mode, 15, 16 R Double

#1851 System kernel variable R Long

#1852 System kernel variable R Long

#1854 System kernel variable R Long

#1855 Is the machining spindle a serial spindle R Long


0: Pulse Spindle; 1: Serial Spindle

#1856 Tapping Start Position ( point R level in absolute ). Reserved when restart, Unit : R/W Double
mm

System Variables – 46
机床产品/Machine Tool Products

Macro Variable.

#1857 Tapping Spindle CW / CCW Mode. Reserved when restart. R/W Long
0 : 未给定
3 : CW
4 : CCW

#1858 Tapping Spindle Speed. Reserved when restart, Unit : rev/min R/W Long

#1859 Tapping Axis Feedrate. Reserved when restart, Unit : mm/min R/W Double

#1881 MPG offset value of each axis R/W Double


~ The offset value of each path needs to be set independently, if using MPG offset
#1898 on HMI screen to modify the setting, only the axes of 1st path can be modified

#1901 G92, G92.1 coordinate system offset value of each axis R/W Double
~
#1918

#1930 G92.1 coordinate system rotation angle R/W Double


Notice:
The default value is 0. Depending on Pr413, the value will be restored to default
value after CNC reset or reboot.

#1931 axis of G92.1 coordinate system rotation center R/W Double


~
Notice:
#1933
The default values are 0, 0, 1. Depending on Pr413, the values will be restored to
default value after CNC reset or reboot.

#1941 3rd software positive stroke limit of each axis (IU) R/W Double
~
#1958

#1961 3rd software negative stroke limit of each axis (IU) R/W Double
~
#1978

Robot Product (ARTIC, DELTA, SCARA) Definition Changes

Number Descriptions R/W Rule Data Type

#1901~ 1st layer offset value of partial offset (IU) R Double


#1906 X, Y, Z, A, B, C

System Variables – 47
机床产品/Machine Tool Products

Macro Variable.

Number Descriptions R/W Rule Data Type

#1911~ 2nd layer offset value of partial offset R Double


#1916 (IU)
X, Y, Z, A, B, C

#1921~ 3rd layer offset value of partial offset (IU) R Double


#1926 X, Y, Z, A, B, C

6.5 Modal variables, #1080~#3100


Number Descriptions R/W Rule Data Type

#1080~ Modal variables for electric control personnel (disappear when R/W Long
#1099 system power off)

#2001~ Modal variables for system internal use (disappear when system R/W Double
#2100 reset)

#3001~ Modal variables for electric control personnel (disappear when R/W Double
#3100 system reset)

Remarks • Life cycle of modal variables is not limited to a single MACRO. Thus, it can be used to access
variables between different MACROs.
• #1080~1099 only support Long type value, or it will issue the COR-054 Incompatible data
type alarm.

6.6 Customer Param., #4001~#5500


Number Descriptions R/W Rule Data Type

#4001~ Customized parameters fro system internal use (parameter 4001~4100) R Double
#4100

#5001~ Customized parameters for electric control personnel (parameter R Double


#5500 5001~5500)

Remarks Please refer to EMC6_C005_扩充参数使用说明文档 to enable #5001~ display

System Variables – 48
机床产品/Machine Tool Products

Macro Variable.

6.7 Interface Signals, #6001~#6032


Number Descriptions R/W Rule Data Type

#6001~ MLC interface signal, C101~C132, S101~S132 R/W Double


#6032 Ex:
@1 := #6001; // assign C101 state to @1. If C101 On then @1=1,
@1=0 if opposite
#6001 := @2; // assign content of @2 to S101. If @2=1 then S101
On, S101 Off if opposite

Remarks

6.8 Tool Compensation, #10000~#15288


Pr3816 set 0 or 1
Single-Axis Tool Table - Milling Tool Table

Numb Tool Length Compensation (H) Cutter Radius Compensation(D)


er
Geometric Worn Out Geometric Compensation Worn Out
Compensation Compensation Compensation

0 #11000 #10000 #13000 #12000


1 #11001 #10001 #13001 #12001
… … … … …
24 #11024 #10024 #13024 #12024
... … … … …
32 #11032 #10032 #13032 #12032
... … … … …
48 #11048 #10048 #13048 #12048
... … … … …
96 #11096 #10096 #13096 #12096

97 #11097 #10097 #13097 #12097


... ... ... ... ...
200 #11200 #10200 #13200 #12200

System Variables – 49
机床产品/Machine Tool Products

Macro Variable.

Remar • All compensations of tool 0 are 0.


ks • So far, the controller provides 96 compensation of tools in standard.
By different models, there are up to 200 compensation of tools supported.
• Multi-axis group tool table ( Pr3829 ) is supported after software version 10.118.52L,
10.118.56F, 10.118.60.
• Pr3829 set 0: The # value of the tool table is not divided into axis groups.
That is, the number 1 of the first axis group and the number 1 of the second axis group
correspond to the same compensation value.
• Pr3829 set 1: The # value of the tool table is independent for each axis group.
That is, the number 1 of the first axis group and the number 1 of the second axis group
represent their respective compensation values.
And the more axes groups are turned on, the less compensation values are available for each
axis group.
• According to the number of open axis groups, determine the number of tool
compensation groups provided.
• Open 2-axis group: Each axis group provides 48 sets of tool compensation as
standard, depending on the model, currently supports up to 100 sets of tool
compensation.
• Open 3-axis group: each axis group provides 32 sets of tool compensation as
standard, depending on the model, currently supports up to 66 sets of tool
compensation.
• Open 4-axis group: each axis group provides 24 sets of tool compensation as
standard, depending on the model, currently supports up to 50 sets of tool
compensation.
• Data type of all variables above is Double.

Pr3816 set 2
Multi-Axis Tool Table - Lathe Tool Table

Num Tool Length Compensation (H) Cutter Radius Compensation (D)


ber
Geometric Worn Out Geometric Worn Out Tool Nose Tool Nose
Compensation Compensation Compensatio Compensatio Direction Direction
n n

System Variables – 50
机床产品/Machine Tool Products

Macro Variable.

1 #11001 #31101 #10001 #35101 #13003 #12003 #14003 #15003


(1st) (1st) (1st) (1st)
#11002 #31201 #10002 #35201
(2nd) (2nd) (2nd) (2nd)
#11003 #31301 #10003 #35301
(3rd) (3rd) (3rd) (3rd)
#11401 #31401 #10401 #35401
(4th) (4th) (4th) (4th)
#11402 #31501 #10402 #35501
(5th) (5th) (5th) (5th)
#11403 #31601 #10403 #35601
(6th) (6th) (6th) (6th)
#31701 #35701
(7th) (7th)
#31801 #35801
(8th) (8th)
#31901 #35901
(9th) (9th)
#32001 #36001
(10th) (10th)
#32101 #36101
(11th) (11th)
#32201 #36201
(12th) (12th)

... ... ... ... ... ... ... ... ...

System Variables – 51
机床产品/Machine Tool Products

Macro Variable.

24 #11070 #31124 #10070 #35124 #13072 #12072 #14072 #15072


(1st) (1st) (1st) (1st)
#11071 #31224 #10071 #35224
(2nd) (2nd) (2nd) (2nd)
#11072 #31324 #10072 #35324
(3rd) (3rd) (3rd) (3rd)
#11470 #31424 #10470 #35424
(4th) (4th) (4th) (4th)
#11471 #31524 #10471 #35524
(5th) (5th) (5th) (5th)
#11472 #31624 #10472 #35624
(6th) (6th) (6th) (6th)
#31724 #35724
(7th) (7th)
#31824 #35824
(8th) (8th)
#31924 #35924
(9th) (9th)
#32024 #36024
(10th) (10th)
#32124 #36124
(11th) (11th)
#32224 #36224
(12th) (12th)

… … ... … ... … … … …

System Variables – 52
机床产品/Machine Tool Products

Macro Variable.

32 #11094 #31132 #10094 #35132 #13096 #12096 #14096 #15096


(1st) (1st) (1st) (1st)
#11095 #31232 #10095 #35232
(2nd) (2nd) (2nd) (2nd)
#11096 #31332 #10096 #35332
(3rd) (3rd) (3rd) (3rd)
#11494 #31432 #10494 #35432
(4th) (4th) (4th) (4th)
#11495 #31532 #10495 #35532
(5th) (5th) (5th) (5th)
#11496 #31632 #10496 #35632
(6th) (6th) (6th) (6th)
#31732 #35732
(7th) (7th)
#31832 #35832
(8th) (8th)
#31932 #35932
(9th) (9th)
#32032 #36032
(10th) (10th)
#32132 #36132
(11th) (11th)
#32232 #36232
(12th) (12th)

... ... ... ... ... ... ... ... ...

System Variables – 53
机床产品/Machine Tool Products

Macro Variable.

48 #11142 #31148 #10142 #35148 #13144 #12144 #14144 #15144


(1st) (1st) (1st) (1st)
#11143 #31248 #10143 #35248
(2nd) (2nd) (2nd) (2nd)
#11144 #31348 #10144 #35348
(3rd) (3rd) (3rd) (3rd)
#11542 #31448 #10542 #35448
(4th) (4th) (4th) (4th)
#11543 #31548 #10543 #35548
(5th) (5th) (5th) (5th)
#11544 #31648 #10544 #35648
(6th) (6th) (6th) (6th)
#31748 #35748
(7th) (7th)
#31848 #35848
(8th) (8th)
#31948 #35948
(9th) (9th)
#32048 #36048
(10th) (10th)
#32148 #36148
(11th) (11th)
#32248 #36248
(12th) (12th)

... ... ... ... ... ... ... ... ...

System Variables – 54
机床产品/Machine Tool Products

Macro Variable.

96 #11286 #31196 #10286 #35196 #13288 #12288 #14288 #15288


(1st) (1st) (1st) (1st)
#11287 #31296 #10287 #35296
(2nd) (2nd) (2nd) (2nd)
#11288 #31396 #10288 #35396
(3rd) (3rd) (3rd) (3rd)
#11686 #31496 #10686 #35496
(4th) (4th) (4th) (4th)
#11687 #31596 #10687 #35596
(5th) (5th) (5th) (5th)
#11688 #31696 #10688 #35696
(6th) (6th) (6th) (6th)
#31796 #35796
(7th) (7th)
#31896 #35896
(8th) (8th)
#31996 #35996
(9th) (9th)
#32096 #36096
(10th) (10th)
#32196 #36196
(11th) (11th)
#32296 #36296
(12th) (12th)

System Variables – 55
机床产品/Machine Tool Products

Macro Variable.

Rema • All compensations of tool 0 are 0.


rks • Software version before 10.116.34, provide tool compensation function for first 6 axis, variable
#10000~#15999, which have to be linear axis.
• After software version 10.116.34 and 10.116.34 included, provides tool compensation function
for first 12 axis, variable #30000~#39999, which have to be linear axis.
• Tool compensation function of first 12 axis is only supported by lathe system.
• Multi-axis group tool table ( Pr3829 ) is supported after software version 10.118.52L, 10.118.56F,
10.118.60.
• Pr3829 set 0: The # value of the tool table is not divided into axis groups.
That is, the number 1 of the first axis group and the number 1 of the second axis group
correspond to the same compensation value.
• Pr3829 set 1: The # value of the tool table is independent for each axis group.
That is, the number 1 of the first axis group and the number 1 of the second axis group represent
their respective compensation values.
And the more axes groups are turned on, the less compensation values are available for each
axis group.
• According to the number of open axis groups, determine the number of tool
compensation groups provided.
• Open 2-axis groups: Each axis group provides 48 sets of tool compensation as
standard.
• Open 3-axis groups: Each axis group provides 32 sets of tool compensation as
standard.
• Open 4-axis groups: Each axis group provides 24 sets of tool compensation as
standard.
• Data type of all variables above is Double.
• It requires customizing the corresponding tool table compensation screen for multi-axis
compensation on mill machine system.
• Only supports the variables listed in the table.

Pr3816 set 3
Multi-Axis Tool Table

Numb Tool Length Compensation (H) Cutter Radius Compensation (D)


er
Geometric Worn Out Geometric Worn Out Tool Nose Tool Nose
Compensation Compensation Compensati Compensati Direction Angle
on on

System Variables – 56
机床产品/Machine Tool Products

Macro Variable.

1 #31101(1st) #35101(1st) #13001 #12001 #14001 #15001


#31201(2nd) #35201(2nd)
#31301(3rd) #35301(3rd)
#31401(4th) #35401(4th)
#31501(5th) #35501(5th)
#31601(6th) #35601(6th)
#31701(7th) #35701(7th)
#31801(8th) #35801(8th)
#31901(9th) #35901(9th)
#32001(10th) #36001(10th)
#32101(11th) #36101(11th)
#32201(12th) #36201(12th)

... ... ... ... ... ... ...

24 #31124(1st) #35124(1st) #13024 #12024 #14024 #15024


#31224(2nd) #35224(2nd)
#31324(3rd) #35324(3rd)
#31424(4th) #35424(4th)
#31524(5th) #35524(5th)
#31624(6th) #35624(6th)
#31724(7th) #35724(7th)
#31824(8th) #35824(8th)
#31924(9th) #35924(9th)
#32024(10th) #36024(10th)
#32124(11th) #36124(11th)
#32224(12th) #36224(12th)

… ... ... … … … …

32 #31132(1st) #35132(1st) #13032 #12032 #14032 #15032


#31232(2nd) #35232(2nd)
#31332(3rd) #35332(3rd)
#31432(4th) #35432(4th)
#31532(5th) #35532(5th)
#31632(6th) #35632(6th)
#31732(7th) #35732(7th)
#31832(8th) #35832(8th)
#31932(9th) #35932(9th)
#32032(10th) #36032(10th)
#32132(11th) #36132(11th)
#32232(12th) #36232(12th)

System Variables – 57
机床产品/Machine Tool Products

Macro Variable.

... ... ... ... ... ... ...

48 #31148(1st) #35148(1st) #13048 #12048 #14048 #15048


#31248(2nd) #35248(2nd)
#31348(3rd) #35348(3rd)
#31448(4th) #35448(4th)
#31548(5th) #35548(5th)
#31648(6th) #35648(6th)
#31748(7th) #35748(7th)
#31848(8th) #35848(8th)
#31948(9th) #35948(9th)
#32048(10th) #36048(10th)
#32148(11th) #36148(11th)
#32248(12th) #36248(12th)

... ... ... ... ... ... ...

96 #31196(1st) #35196(1st) #13096 #12096 #14096 #15096


#31296(2nd) #35296(2nd)
#31396(3rd) #35396(3rd)
#31496(4th) #35496(4th)
#31596(5th) #35596(5th)
#31696(6th) #35696(6th)
#31796(7th) #35796(7th)
#31896(8th) #35896(8th)
#31996(9th) #35996(9th)
#32096(10th) #36096(10th)
#32196(11th) #36196(11th)
#32296(12th) #36296(12th)

System Variables – 58
机床产品/Machine Tool Products

Macro Variable.

Remar • All compensations of tool 0 are 0.


ks • Provides tool compensation function for first 12 axis, variable #30000~#39999, needs to be
linear axis.
• Multi-axis group tool table ( Pr3829 ) is supported after software version 10.118.52L,
10.118.56F, 10.118.60.
• Pr3829 set 0: The # value of the tool table is not divided into axis groups.
That is, the number 1 of the first axis group and the number 1 of the second axis group
correspond to the same compensation value.
• Pr3829 set 1: The # value of the tool table is independent for each axis group.
That is, the number 1 of the first axis group and the number 1 of the second axis group
represent their respective compensation values.
And the more axes groups are turned on, the less compensation values are available for each
axis group.
• According to the number of open axis groups, determine the number of tool
compensation groups provided.
• Open 2-axis groups: Each axis group provides 48 sets of tool compensation as
standard.
• Open 3-axis groups: Each axis group provides 32 sets of tool compensation as
standard.
• Open 4-axis groups: Each axis group provides 24 sets of tool compensation as
standard.
• Data type of all variables above is Double.
• Only supports the variables listed in the table.

6.9 Workpiece Coordinate System Offset Value, #20001~#22018


Number Descriptions R/W Rule Data Type

#20001~ Offset value of offset coordinate system R/W Double


#20018

#20021~ G54(G54P1) coordinate system offset value R/W Double


#20038

#20041~ G55(G54P2) coordinate system offset value R/W Double


#20058

… … R/W Double

#20121~ G59(G54P6) coordinate system offset value R/W Double


#20138

#20141~ G59.1(G54P7) coordinate system offset value R/W Double


#20158

System Variables – 59
机床产品/Machine Tool Products

Macro Variable.

Number Descriptions R/W Rule Data Type

… … R/W Double

#20301~ G59.9(G54P15) coordinate system offset value R/W Double


#20318

#20321~ G54P16 coordinate system offset value R/W Double


#20338

… … R/W Double

#20641 G54P32 coordinate system offset value R/W Double


~#20658

... ... R/W Double

#22001 G54P100 coordinate system offset value R/W Double


~#22018

Remarks • Each coordinate system corresponds to 18 axis


• Modifying workpiece coordinate system variables (#20001~#20658) of other paths takes
effect after Reset

6.10 Workpiece coordinate system rotation value, #25004~#25299


编号 说明 规则 型态

#25004~ G54(G54P1) coordinate system rotation value R/W Double


#25006

#25007~ G54(G54P2) coordinate system rotation value R/W Double


#25009

... ... R/W Double

#25019~ G54(G54P6) coordinate system rotation value R/W Double


#25021

#25022~ G54(G54P7) coordinate system rotation value R/W Double


#25024

System Variables – 60
机床产品/Machine Tool Products

Macro Variable.

编号 说明 规则 型态

... ... R/W Double

#25046~ G54(G54P15) coordinate system rotation value R/W Double


#25048

#25049~ G54(G54P16) coordinate system rotation value R/W Double


#25051

... ... R/W Double

#25097~ G54(G54P32) coordinate system rotation value R/W Double


#25099

... ... R/W Double

#25301~ G54(G54P100) coordinate system rotation value R/W Double


#25303

Remarks • There are 3 values in each G54 P_, which represent X, Y, Z rotation angle
• Rotation method is ZYX Euler Angle
• For example of G54 P1, the relationship is BCS frame→ rotate #25006 LIU of Z axis
→ rotate #25005 LIU of Y axis → rotate #25004 LIU of X axis→ G92CS frame

6.11 Reference Point Position, #26001~#26078


Number Descriptions R/W Rule Data Type

#26001~ 1st reference point of each axis R Double


#26018

#26021~ 2nd reference point of each axis, corresponds to Pr2801~Pr2818 R Double


#26038

#26041~ 3rd reference point of each axis, corresponds to Pr2821~Pr2838 R Double


#26058

#26061~ 4th reference point of each axis, corresponds to Pr2841~Pr2858 R Double


#26078

System Variables – 61
机床产品/Machine Tool Products

Macro Variable.

Number Descriptions R/W Rule Data Type

Remarks • Each reference point position can correspond to 18 axis


• The position of 1st reference point is the origin

System Variables – 62

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy