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

M_Macro Variable

The document outlines the classification and details of macro variables used in machine tools, divided into three categories: Global, Local, and System Variables. Each category has specific rules for reading, writing, and lifecycle management, with examples of variable numbers and their descriptions provided. It includes detailed information on the usage and restrictions of these variables, emphasizing their importance in machine operation and programming.
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)
3 views

M_Macro Variable

The document outlines the classification and details of macro variables used in machine tools, divided into three categories: Global, Local, and System Variables. Each category has specific rules for reading, writing, and lifecycle management, with examples of variable numbers and their descriptions provided. It includes detailed information on the usage and restrictions of these variables, emphasizing their importance in machine operation and programming.
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/ 27

Macro Variable.

匯出日期:2021-08-05
修改日期:2021-05-31
机床产品/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/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 – 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

#1060 System Kernel Variable - -

System Variables – 6
机床产品/Machine Tool Products – Macro 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)

#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)


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.

#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 ).

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

Nu Descriptions R/W Data


mb Rule Typ
er e

#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

#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.

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

Nu Descriptions R/W Data


mb Rule Typ
er e

#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)

Other Reserved
s
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

#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)

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

Nu Descriptions R/W Data


mb Rule Typ
er e

#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 – 11
机床产品/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

bit 1 2 3 4 5 6

value 0 0 1 0 1 0

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

Nu Descriptions R/W Data


mb Rule Typ
er e

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 Current serial sequence number in program R Long


20

#16 Current line number in program R Long


22

#16 Current valid spindle number 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 – 13
机床产品/Machine Tool Products – Macro Variable.

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

#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 – 14
机床产品/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 Encoder location in current workpiece coordinate. R Dou


21~ ble

#14
38

#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.

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

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

#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

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

#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

#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 – 17
机床产品/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

#1836 Stroke limit mode, 22, 23 R Double

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

#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

#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

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

#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

#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

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

3.5 Modal variables, #1080~#3100


Number Descriptions R/W Rule Data Type

#1080~ Modal variables for electric control personnel (disappear when R/W Double
#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.

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 – 21
机床产品/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

Remark • All compensations of tool 0 are 0


s • 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 nsation ion ion

System Variables – 22
机床产品/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 – 23
机床产品/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 – 24
机床产品/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 – 25
机床产品/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 axis
ar • Data type of all variables above is Double
ks • 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 – 26
机床产品/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

System Variables – 27

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