Mitsubishi Electric MELDAS 64, MELDAS MAGIC 64 Interface Manual

DDB Interface Manual
BNP-B2214 (ENG)
MELDAS and MELDASMAGIC are registered trademarks of Mitsubishi Electric Corporation. The other company names and product names are trademarks or registered trademarks of the respective companies.
Introduction
Details described in this manual
CAUTION
For items described in "Restrictions" or "Usable State", the instruction manual
issued by the machine maker takes precedence over this manual. Items not described in this manual must be interpreted as "not possible".
This manual is written on the assumption that all option functions are added.
Refer to the specifications issued by the machine maker before starting use. Some screens and functions may differ or may not be usable depending on the
NC version.
Setting incorrect values could cause the machine to malfunction or run away.
Take care when programming.
General precautions
The following documents are available as documents related to the contents of this manual. Refer to these as required.
(1) MELDAS 64 Series
PLC Programming Manual (Ladder section) ..... BNP-B2212
PLC Interface Manual......................................... BNP-B2211
PLC Onboard Instruction Manual ....................... BNP-B2213
(2) MELDASMAGIC 64 Series
PLC Programming Manual (Ladder section) ...... BNP-B2212
PLC Interface Manual......................................... BNP-B2211
PLC Onboard Instruction Manual ....................... BNP-B2213
Precautions for Safety
Always read the specifications issued by the machine maker, this manual, related manuals and enclosed documents before starting installation, operation, programming, maintenance or inspections to ensure correct use. Thoroughly understand the basics, safety information and precautions of this numerical controller before using the unit. The safety precautions are ranked as "DANGER", "WARNING" and "CAUTION" in this manual.
DANGER
WARNING
CAUTION
Note that even if the item is ranked as " CAUTION", incorrect handling could lead to serious results. Important information is described in all cases, so please observe the
items.
Not applicable in this manual
When there is a great risk that the user could be subject to fatalities or serious injuries if handling is mistaken.
When the user could be subject to fatalities or serious injuries if handling is mistaken.
When the user could be subject to injuries or when physical damage could occur if handling is mistaken.
DANGER
WARNING
Not applicable in this manual.
1. Items related to product and manual For items described as "Restrictions" or "Usable State" in this manual, the
instruction manual issued by the machine maker takes precedence over this manual.
Items not described in this manual must be interpreted as "not possible". This manual is written on the assumption that all option functions are added.
Refer to the specifications issued by the machine maker before starting use.
Some screens and functions may differ or may not be usable depending on the
NC version.
Setting incorrect values could cause the machine to malfunction or run away.
Take care when programming.
CAUTION

Contents

Contents
1. Outline .................................................................................................................. 1
2. Usage of DDB Function with Ladder ................................................................. 2
2.1 Basics of commands ................................................................................... 2
2.2 Basic format of control data ........................................................................ 2
2.2.1 Control signals (Rn or Dn) ................................................................. 3
2.2.2 Section No. (Rn+1 or Dn+1) .............................................................. 3
2.2.3 Sub-section No. (Rn+2, Rn+3 or Dn+2, Dn+3) ................................. 3
2.2.4 Data size (Rn+4 or Dn+4) ................................................................. 3
2.2.5 Read/write designated axis (Rn+5 or Dn+5) ..................................... 4
2.2.6 Read/write data (Rn+6, Rn+7 or Dn+6, Dn+7) .................................. 4
3. Section No. List .................................................................................................... 5
4. Sub-section No. List ............................................................................................ 6
5. Explanation of Read/Write Data ......................................................................... 18
5.1 How to refer to the data ............................................................................... 18
5.2 Data unit system ......................................................................................... 19
5.3 Explanation of data details .......................................................................... 20
6. Example of DDB with Ladder Circuit ................................................................. 59

1. Outline

1. Outline
This manual describes the DDB (Direct Data Bus) function used to realize data input/output with a CNC while running a program developed with the user PLC ladder language. DDB includes the synchronous type (DDBS) and the asynchronous type (DDBA), but only the asynchronous type will be explained in this manual. DDB is a function that allows the PLC to directly read and write the various data in the CNC. By setting the information required for reading and writing into the buffer and calling out the DDB function, the PLC can set (write) the designated data into the CNC. Generally, the data is read and written in one piece units, but data related to the control axis can be processed for the designated number of axes. Features of this function include that the read data can be referred to in the step immediately following the execution of the DDBA command. This also applies to the written data. (Note that for the parameters, they may not be valid immediately after writing.)
This manual is organized in the following manner after the first chapter. Please refer to the required section for use.
6. Example of DDB with
5. Explanation of Read/Write Data
Ladder Circuit
2. Usage of DDB Function with ladder
4. Sub-section No. List
3. Section No. List
- 1 -

2. Usage of DDB Function with Ladder

2. Usage of DDB Function with Ladder

2.1 Basics of commands

Set control data with MOV command, etc.
ACT (Note 1)
DDBA Rn/Dn
(Note 1) The file registers (Rn) and data registers (Dn) in the range usable by the user can be
used in the control data buffer of the asynchronous type DDB .

2.2 Basic format of control data

Rn (Dn) Control signal Rn + 1 (Dn + 1) Section No. Rn + 2 (Dn + 2)
Rn + 4 (Dn + 4) Data size Rn + 5 (Dn + 5) Read/write designated
Rn + 6 (Dn + 6)
Rn + 8 (Dn + 8)
Rn + 10 (Dn + 10)
Rn + 12 (Dn + 12)
Sub-section No.
axis, system designation
Read/write data
(for No. 1 axis)
Read/write data
(for No. 2 axis)
Read/write data
(for No. 3 axis)
Read/write data
(for No. 4 axis)
~ ~
~ ~
(Note 1) The system designation is used when there is a multi-system specification. (Note 2) Always secure 4 bytes as the buffer for one read/write data item. (Note 3) For example, if only the No. 3 axis is designated, the data for the No. 3 axis will be the
read/write data.
- 2 -
2. Usage of DDB Function with Ladder
execution
command
2.2.1 Control signals (Rn or Dn)
F E D C B A 9 8 7 6 5 4 3 2 1 0
Warning output
Error during chopping (not used) No option Size over Number of axes illegal Section No. error Write protect Error occurrence
2.2.2 Section No. (Rn+1 or Dn+1)
0: Read designation 1: Write designation 0: Direct input 1: Added input 0: Decimal point invalid 1: Decimal point valid
Set by controller at completion of DDB
Warning output bit 4 = 1 : Variable data blank 0 : Variable data not blank bit 5 = 1 : Variable data overflowing 0 : Variable data not overflowing
Set by PLC during DDB command
Last four digits of the data during reading/writing of variables corresponding to the decimal place
The section No. of the data to be read/written is designated with a binary. Refer to the "3. Section No. List" for details.
2.2.3 Sub-section No. (Rn+2, Rn+3 or Dn+2, Dn+3) (LOW HIGH)
The sub-section No. of the data to be read/written is designated with a binary. Refer to the "4. Sub-section No. List" for details.
2.2.4 Data size (Rn+4 or Dn+4)
The size of the data to be read/written is designated with a binary.
1: 1 byte 2: 2 bytes 4: 4 bytes
(Note) The date size has not been checked, so exercise care when setting.
- 3 -
2. Usage of DDB Function with Ladder
2.2.5 Read/write designated axis (Rn+5 or Dn+5)
When reading or writing data per axis classified with the section No., designate the axis and system.
F E D C B A 9 8 7 6 5 4 3 2 1 0
System designation
0: No. 1 system 1: No. 2 system
(Note 1)
No. 1 axis No. 2 axis No. 3 axis No. 4 axis
(Note 1) The system designation is used when there is a multi-system specification. (Note 2) When reading and writing the axis data, if there is no axis designation or if the
designation exceeds the maximum control axes, the alarm "No. of axes illegal" will occur.
2.2.6 Read/write data (Rn+6, Rn+7 or Dn+6, Dn+7) (LOW) (HIGH)
When read is designated, the data designated by the PLC will be output by the CNC. When write is designated, the data to be written will be set by the PLC.
1-byte data 2-byte data 4-byte data Rn+6 L Rn+6 L Rn+6 L (Dn+6) H (Dn+6) H (Dn+6) H Rn+7 Rn+7 Rn+7 L (Dn+7)
Code expansion
(Dn+7)
Code
expansion
(Dn+7) H
L
H
The valid area of the data will differ according to the data size. (Shaded area) When read is designated, a code will be added to the 1-byte and 2-byte data to create a 4-byte data size. Thus, even when reading 1-byte or 2-byte data, 4 bytes are required for the buffer size.
- 4 -

3. Section No. List

3. Section No. List
Section
No.
1 Parameters common to each axis
2 Axis independent parameters Possible Valid Valid 3
Workpiece coordinate system offset, external
4
workpiece coordinate system offset 5 Alarm information Not possible Invalid Valid 6 7 8 9
10
Axis common non-modal information in block being
11
executed
Axis independent non-modal information in block
12
being executed
Axis common modal information in block being
13
executed
Axis independent modal information in block being
14
executed
15 Axis common non-modal information in next block Not possible Invalid Valid
Axis independent non-modal information in next
16
block
17 Axis common modal information in next block Not possible Invalid Valid 18 Axis independent modal information in next block Not possible Valid Valid 19 20 Axis common machine control information 1 Not possible Invalid Valid 21 Axis independent machine control information 1 Not possible Valid Valid 22 Information input from PLC to controller Not possible Invalid Valid 23 Information output from controller to PLC Not possible Invalid Valid 24 Cumulative time data Possible Invalid Invalid 25 26 Axis common machine control information 2 Not possible Invalid Valid 27 Axis independent machine control information 2 Not possible Valid Valid 28 29 Common variable value 1 Possible Invalid Invalid From #500 30 Local variable value Possible Invalid Valid 31 Tool compensation amount Possible Invalid Valid (Note 2) 32 Common variable value 2 Possible Invalid Valid From #100
Details Write
Possible (partially
not possible)
Possible Valid Valid (Note 1)
Not possible Invalid Valid
Not possible Valid Valid
Not possible Invalid Valid
Not possible Valid Valid
Not possible Valid Valid
Axis designation
Invalid Invalid
System designation
Remarks
(Note 1) To use the section No. 4 with the MELDASMAGIC 64, the "external workpiece coordinate
system compensation input" option is required.
(Note 2) To use the section No. 31 with the MELDASMAGIC 64, the "external tool compensation
input" option is required.
- 5 -

4. Sub-section No. List

4. Sub-section No. List
The sub-section No. list shows the sub-section No. of each data in correspondence with the section No. Each data has a search No. To refer to the contents of the data, search for the corresponding data in "5. Explanation of Read/Write Data" using this search No.
Search No.
4. Sub-section No. List

Section No. 1 Parameters common to each axis

Search
No.
1-10
~ ~
1 - 10
1-10 Maximum spindle speed (Gear 1st step to gear 4th step)
[Data definition]
This is a parameter for the maximum spindle speed of each gear step. (This corresponds to the setup parameter, spindle parameter smax1 to 4.) The CNC creates the spindle gear shift command 1 and 2 based on this value and the commanded S command.
During tapping, the maximum speed will be the spindle tap speed. ~ ~
Data type
Maximum spindle speed (Gear 1st step) Maximum spindle speed (Gear 2nd step) Maximum spindle speed (Gear 3rd step) Maximum spindle speed (Gear 4th step)
No. of searching (Note) This is not the sub-section No. Section No.
5. Explanation of Read/Write Data
Sub­section No.
8960 8964 8968 8972
Size
(bytes)
4 4 4 4
Write
Possible Possible Possible Possible
System/axis
designation
Invalid/Invalid Invalid/Invalid Invalid/Invalid Invalid/Invalid
Remarks
~ ~
~ ~
Sub-section No. list
Section No. 1 Parameters common to each axis
Search
No.
1-10
Data type
Maximum spindle speed (Gear 1st step) Maximum spindle speed (Gear 2nd step) Maximum spindle speed (Gear 3rd step) Maximum spindle speed (Gear 4th step)
Sub-
section No.
8960 8964 8968 8972
- 6 -
Size
(bytes)
4 4 4 4
Write
Possible Possible Possible Possible
System/axis
designation
Invalid/Invalid Invalid/Invalid Invalid/Invalid Invalid/Invalid
Remarks
4. Sub-section No. List
Search
No.
Spindle limit speed (Gear 1st step) Spindle limit speed (Gear 2nd step)
1-11
Spindle limit speed (Gear 3rd step) Spindle limit speed (Gear 4th step)
Spindle shift speed (Gear 1st step) Spindle shift speed (Gear 2nd step)
1-13
Spindle shift speed (Gear 3rd step)
Spindle shift speed (Gear 4th step) 1-20 Spindle orient speed 9024 2 Possible Invalid/Invalid 1-21 Minimum spindle speed 9026 2 Possible Invalid/Invalid
Method selection parameter (1)
BIT0 :
BIT1 :
BIT2 : 1-50
BIT3 :
BIT4 :
BIT5 :
BIT6 : Synchronous tapping
BIT7 :
Method selection parameter (3)
BIT0 :
BIT1 : Tool compensation method (Tabsmv)
BIT2 : 1-70
BIT3 :
BIT4 :
BIT5 :
BIT6 :
BIT7 :
Method selection parameter (4)
BIT0 :
BIT1 :
BIT2 : 1-80
BIT3 :
BIT4 :
BIT5 : Reference point middle point ignore
BIT6 :
BIT7 :
Data type
Sub-
section No.
8976 8980 8984 8988
9008 9010 9012 9014
195 1 Not possible Invalid/Invalid
130 1 Possible Invalid/Invalid
194 1 Possible Invalid/Invalid
Size
(bytes)
4 4 4 4
2 2 2 2
Write
Possible Possible Possible Possible
Possible Possible Possible Possible
System/axis
designation
Invalid/Invalid Invalid/Invalid Invalid/Invalid Invalid/Invalid
Invalid/Invalid Invalid/Invalid Invalid/Invalid Invalid/Invalid
Remarks
- 7 -
4. Sub-section No. List

Section No. 1 Parameters common to each axis (Position switch No.1 system)

Search
No.
1-100 Position switch [1] dog 1 11968 4 Possible Invalid/Invalid
1-100 Position switch [2] dog 1 11988 4 Possible Invalid/Invalid
1-100 Position switch [3] dog 1 12008 4 Possible Invalid/Invalid
1-100 Position switch [4] dog 1 12028 4 Possible Invalid/Invalid
1-100 Position switch [5] dog 1 12048 4 Possible Invalid/Invalid
1-100 Position switch [6] dog 1 12068 4 Possible Invalid/Invalid
1-100 Position switch [7] dog 1 12088 4 Possible Invalid/Invalid
1-100 Position switch [8] dog 1 12108 4 Possible Invalid/Invalid
Data type
Sub­section No.
axis 11984 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 11972 4 Possible Invalid/Invalid
axis 12004 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 11992 4 Possible Invalid/Invalid
axis 12024 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12012 4 Possible Invalid/Invalid
axis 12044 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12032 4 Possible Invalid/Invalid
axis 12064 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12052 4 Possible Invalid/Invalid
axis 12084 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12072 4 Possible Invalid/Invalid
axis 12104 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12092 4 Possible Invalid/Invalid
axis 12124 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12112 4 Possible Invalid/Invalid
Size
(bytes)
Write
System/axis
designation
Remarks
- 8 -
4. Sub-section No. List

Section No. 1 Parameters common to each axis (Position switch No.2 system)

Search
No.
1-100 Position switch [1] dog 1 12128 4 Possible Invalid/Invalid
1-100 Position switch [2] dog 1 12148 4 Possible Invalid/Invalid
1-100 Position switch [3] dog 1 12168 4 Possible Invalid/Invalid
1-100 Position switch [4] dog 1 12188 4 Possible Invalid/Invalid
1-100 Position switch [5] dog 1 12208 4 Possible Invalid/Invalid
1-100 Position switch [6] dog 1 12228 4 Possible Invalid/Invalid
1-100 Position switch [7] dog 1 12248 4 Possible Invalid/Invalid
1-100 Position switch [8] dog 1 12268 4 Possible Invalid/Invalid
Data type
Sub­section No.
axis 12144 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12132 4 Possible Invalid/Invalid
axis 12164 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12152 4 Possible Invalid/Invalid
axis 12184 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12172 4 Possible Invalid/Invalid
axis 12204 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12192 4 Possible Invalid/Invalid
axis 12224 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12212 4 Possible Invalid/Invalid
axis 12244 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12232 4 Possible Invalid/Invalid
axis 12264 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12252 4 Possible Invalid/Invalid
axis 12284 1 Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2 12272 4 Possible Invalid/Invalid
Size
(bytes)
Write
System/axis
designation
Remarks
- 9 -
4. Sub-section No. List

Section No. 2 Axis independent parameters

Search
No.
No. 1 reference point coordinates
No. 2 reference point coordinates 2-10
No. 3 reference point coordinates
No. 4 reference point coordinates
Stored stroke limit I (+) 2-11
Stored stroke limit I (-)
Movement control parameters
BIT0 :
BIT1 : Inch output
BIT2 : Reference point return direction (-)
BIT3 : Servo OFF error compensation
BIT4 : Rotary axis
BIT5 : Motor CCW
BIT6 : 2-20
BIT7 :
BIT8 :
BIT9 :
BITA : No reference point axis
BITB :
BITC :
BITD : Diameter designated axis
BITE :
BITF : 2-30 Reference point return approach speed 38 2 Possible Valid/Valid 2-35 Reference point return shift amount 44 2 Possible Valid/Valid 2-36 Rapid traverse backlash amount 46 2 Possible Valid/Valid 2-37 Cutting feed backlash amount 48 2 Possible Valid/Valid
Stored stroke limit II (+) 2-40
Stored stroke limit II (-)
Data type
Sub­section No.
272 276 280 284
288 292
20 2 Not possible Valid/Valid
656 660
Size
(bytes)
4 4 4 4
4 4
4 4
Write
Possible Possible Possible Possible
Possible Possible
Possible Possible
System/axis
designation
Valid/Valid Valid/Valid Valid/Valid Valid/Valid
Valid/Valid Valid/Valid
Valid/Valid Valid/Valid
Remarks
For machine maker For machine maker
For user For user

Section No. 4 Workpiece coordinate system offset, external workpiece coordinate system offset

Search
No.
4-10 G54 workpiece coordinate system offset 0 4 Possible Valid/Valid 4-11 G55 workpiece coordinate system offset 4 4 Possible Valid/Valid 4-12 G56 workpiece coordinate system offset 8 4 Possible Valid/Valid 4-13 G57 workpiece coordinate system offset 12 4 Possible Valid/Valid 4-14 G58 workpiece coordinate system offset 16 4 Possible Valid/Valid 4-15 G59 workpiece coordinate system offset 20 4 Possible Valid/Valid 4-16 External workpiece coordinate system offset 24 4 Possible Valid/Valid
Data type
Sub-
section No.
Size
(bytes)
Write
System/axis
designation
Remarks
- 10 -
4. Sub-section No. List

Section No. 5 Alarm information

Search
No.
5-30 Servo alarm Attribute (bit F) 18 2 Not possible Valid/Invalid (0-Invalid, 1-Valid)
5-90 Servo warning Attribute (bit F) 66 2 Not possible Valid/Invalid (0-Invalid, 1-Valid)
5-130 Operation error Attribute (bit F) 98 2 Not possible Valid/Invalid (0-Invalid, 1-Valid)
5-140 Automatic stop code Attribute (bit F) 106 2 Not possible Valid/Invalid (0-Invalid, 1-Valid)
Data type
Main 16 2 Not possible Valid/Invalid (Note 1)
Sub 1 20 2 Not possible Valid/Invalid Sub 2 22 2 Not possible Valid/Invalid Main 64 2 Not possible Valid/Invalid (Note 1)
Sub 1 68 2 Not possible Valid/Invalid Sub 2 70 2 Not possible Valid/Invalid Main 96 2 Not possible Valid/Invalid (Note 1)
Sub 1 100 2 Not possible Valid/Invalid Sub 2 102 2 Not possible Valid/Invalid Main 104 2 Not possible Valid/Invalid (Note 1)
Sub 1 108 2 Not possible Valid/Invalid Sub 2 110 2 Not possible Valid/Invalid
Sub­section No.
Size
(bytes)
Write
System/axis
designation
Remarks
- 11 -
4. Sub-section No. List

Section No. ACT 11 PCB 15

Search
No.
11/15-10 Interpolation vector length 172 4 Not possible Valid/Invalid
Movement mode gmov
Binary data
0 : Positioning (each axis independent)
1 : Positioning (linear)
2 : Linear interpolation
3 : Circular interpolation (CW)
4 : Circular interpolation (CCW)
5 : Helical interpolation (CW)
6 : Helical interpolation (CCW)
7 :
8 :
9 :
10 :
11 : Time designated dwell
12 :
13 : No. 1 reference point compare
11/15-20
14 : No. 2 reference point compare
15 : No. 3 reference point compare
16 : No. 4 reference point compare
17 : Automatic reference point return
18 : Return from automatic reference point
return
19 : No. 2 reference point return
20 : No. 3 reference point return
21 : No. 4 reference point return
22 : Skip function
23 : Multi-step skip function 1
24 : Multi-step skip function 2
25 : Multi-step skip function 3
26 : Thread cutting
27 :
28 :
29 : Coordinate system setting
Data type
Axis common non-modal information in block being executed (ACT) and in next block (PCB)
Sub­section No.
71 1 Not possible Valid/Invalid
Size
(bytes)
Write
System/axis designation
Remarks
Axis independent non-modal information in block being

Section No. ACT 12 PCB 16

executed (ACT) and in next block (PCB)
Search
No.
12/16-10 Axis direction movement amount 4 4 Not possible Valid/Valid
Data type
Sub­section No.
Size
(bytes)
Write
System/axis designation
- 12 -
Remarks
4. Sub-section No. List

Section No. ACT 13 PCB 17

Search
No.
13/17-10 G code (group 1) 0 1 Not possible Valid/Invalid Interpolation mode 13/17-11 G code (group 2) 1 1 Not possible Valid/Invalid Plane selection 13/17-12 G code (group 5) 2 1 Not possible Valid/Invalid Feed mode
13/17-13 G code (group 7) 3 1 Not possible Valid/Invalid
13/17-14 G code (group 9) 4 1 Not possible Valid/Invalid Fixed cycle modal
13/17-15 G code (group 12) 5 1 Not possible Valid/Invalid
13/17-16 G code (group 13) 6 1 Not possible Valid/Invalid Cutting mode
G code (group 3, 4, 6, 10, 17, 18)
BIT0 : Absolute/incremental mode
BIT1 : Barrier check
BIT2 : Inch/metric mode
13/17-17
13/17-20 Block No. 15 1 Not possible Valid/Invalid 0 to 99 13/17-30 Shape compensation No. 76 2 Not possible Valid/Invalid 13/17-31 Wear compensation No. 78 2 Not possible Valid/Invalid 13/17-40 Miscellaneous function code 208 4 Not possible Valid/Invalid M code (binary) 13/17-41 Spindle function code 212 4 Not possible Valid/Invalid S code (binary) 13/17-42 Tool function code 216 4 Not possible Valid/Invalid T code (binary) 13/17-43 2nd miscellaneous function code 220 4 Not possible Valid/Invalid B code (binary) 13/17-44 Program No. 240 4 Not possible Valid/Invalid O 1 to 99999999 13/17-45 Sequence No. 244 4 Not possible Valid/Invalid N 1 to 99999
BIT3 : Fixed cycle R point return
BIT4 :
BIT5 : Constant surface speed control
BIT6 : Balance cut
BIT7 :
Data type
Axis common modal information in block being executed (ACT)
and in next block (PCB)
Sub­section No.
7 1 Not possible Valid/Invalid
Size
(bytes)
Write
System/axis
designation
Remarks
Diameter com­pensation modal
Workpiece coordi­nate system modal

Section No. ACT 14 PCB 18

Search
No.
14/18-10 Length compensation No. 112 2 Not possible Valid/Invalid
Data type
Axis independent modal information in block being executed
(ACT) and in next block (PCB)
Sub­section No.
Size
(bytes)
Write
System/axis
designation
- 13 -
Remarks
Machining center system only
4. Sub-section No. List

Section No. 20 Axis common machine control information 1

Search
No.
20-10 Automatic effective feedrate 84 4 Not possible Valid/Invalid
20-11 Manual effective feedrate 88 4 Not possible Valid/Invalid
Data type
Sub­section No.
Size
(bytes)
Write
System/axis designation

Section No. 21 Axis independent machine control information 1

Search
No.
21-10 Current position in machine coordinate system 0 4 Not possible Valid/Valid
21-12 Manual interrupt amount (1) 8 4 Not possible Valid/Valid
21-13 Manual interrupt amount (2) 12 4 Not possible Valid/Valid
21-20 Current position in workpiece coordinate system 36 4 Not possible Valid/Valid
21-30
21-31
21-32 Remaining distance during skip ON 120 4 Not possible Valid/Valid
21-33
Current position in workpiece coordinate system
during skip ON
Current position in machine coordinate system
during skip ON
Current position in machine coordinate system
during manual skip ON
Data type
Sub­section No.
112 4 Not possible Valid/Valid
116 4 Not possible Valid/Valid
124 4 Not possible Valid/Valid
Size
(bytes)
Write
System/axis designation
Remarks
Effective speed of feed direction
Effective speed of axis direction
Remarks
When manual ABS switch is OFF
When manual ABS switch is ON
- 14 -
4. Sub-section No. List

Section No. 22 Information input from PLC to controller

Search
No.
22-10
Data type
Emergency stop causes
BIT0 : Software emergency stop BIT1 : BIT2 : Wait for link start up BIT3 : Link stop BIT4 : External input BIT5 : BIT6 : PLC emergency stop BIT7 : BIT8 : BIT9 : BITA : BITB : BITC : BITD : BITE : Spindle emergency stop BITF : Servo emergency stop
Sub­section No.
0 2 Not possible Valid/Invalid
Size
(bytes)
Write
System/axis
designation

Section No. 23 Information output from controller to PLC

Search
No.
23-10 Spindle command speed (effective value) 48 4 Not possible Valid/Invalid
Data type
Sub­section No.
Size
(bytes)
Write
System/axis
designation
Remarks
Remarks
Including override

Section No. 24 Cumulative time data

Search
No.
24-1 Power ON time 0 4 Possible Invalid/Invalid 24-2 Automatic operation time 4 4 Possible Invalid/Invalid 24-3 Automatic start up time 8 4 Possible Invalid/Invalid 24-4 External cumulative time 1 12 4 Possible Invalid/Invalid 24-5 External cumulative time 2 16 4 Possible Invalid/Invalid
Data type
Sub­section No.
Size
(bytes)
Write
System/axis
designation

Section No. 26 Axis common machine control information 2

Search
No.
26-10 Spindle (SR.SF) Motor real speed 8992 4 Not possible Invalid/Invalid
26-20 Spindle (SR.SF) Motor load 8988 2 Not possible Invalid/Invalid
Data type
Sub-
section No.
Size
(bytes)
Write
System/axis
designation
- 15 -
Remarks
Remarks
Including override
4. Sub-section No. List

Section No. 27 Axis independent machine control information 2

Search
No.
Smoothing status, servo status
BIT0 : Ready ON BIT1 : Servo ON BIT2 : In emergency stop BIT3 : In alarm BIT4 : Z phase passing BIT5 : BIT6 : In-position
27-10
27-20 Servo delay amount 308 4 Not possible Valid/Valid 27-30 Feed axis motor load A (%) 328 2 Not possible Valid/Valid 27-31 Feed axis motor load B (%) 330 2 Not possible Valid/Valid 27-33 Feed axis motor speed (rpm) 312 2 Not possible Valid/Valid
BIT7 : Torque limit BIT8 : Smoothing 0 BIT9 : Smoothing+ BITA : Smoothing ­BITB : BITC : Hardware OT+ BITD : Hardware OT­BITE : Near-point dog ON BITF : No. 1 reference point reached
Data type
Sub­section No.
74 2 Not possible Valid/Valid
Size
(bytes)
Write
System/axis designation
Remarks

Section No. 29 Common variable value 1

Search
No.
29-10 Variable command 100 sets 500 to 549 4 Possible
29-11 Variable command 200 sets 500 to 599 4 Possible
Data type
Sub-
section No.
Size
(bytes)
Write
System/axis
designation
Invalid/InvalidSystem common
Invalid/InvalidSystem common

Section No. 30 Local variable value

Search
No.
30-10 Local variables (level 0) 1 to 32 4 Possible Valid/Invalid 30-11 Local variables (level 1) 101 to 132 4 Possible Valid/Invalid 30-12 Local variables (level 2) 201 to 232 4 Possible Valid/Invalid 30-13 Local variables (level 3) 301 to 332 4 Possible Valid/Invalid 30-14 Local variables (level 4) 401 to 432 4 Possible Valid/Invalid
Data type
Sub­section No.
Size
(bytes)
Write
System/axis designation
Remarks
variables
variables
Remarks
- 16 -
4. Sub-section No. List

Section No. 31 Tool compensation amount

Search
No.
31-10 Tool compensation amount 1 1 to 400 4 Possible Valid/Invalid 31-20 Tool compensation amount 2 1001 to 1400 4 Possible Valid/Invalid 31-30 Tool compensation amount 3 6001 to 6400 4 Possible Valid/Invalid
31-40 Tool compensation amount 4 7001 to 7400 4 Possible Valid/Invalid 31-100 X axis tool length compensation amount 1 to 40 4 Possible Valid/Invalid 31-110 X axis wear compensation amount 1001 to 1040 4 Possible Valid/Invalid 31-120 No. 3 axis tool length compensation amount 2001 to 2040 4 Possible Valid/Invalid 31-130 No. 3 axis wear compensation amount 3001 to 3040 4 Possible Valid/Invalid 31-140 Z axis tool length compensation amount 4001 to 4040 4 Possible Valid/Invalid 31-150 Z axis wear compensation amount 5001 to 5040 4 Possible Valid/Invalid 31-160 Nose R compensation amount 6001 to 6040 4 Possible Valid/Invalid 31-170 Nose R wear compensation amount 7001 to 7040 4 Possible Valid/Invalid 31-180 Hypothetical nose No. 8001 to 8040 1 Possible Valid/Invalid
Data type
Sub-
section No.
Size
(bytes)
Write
System/axis designation

Section No. 32 Common variable value 2

Search
No.
32-10 Variable command 100 sets 100 to 149 4 Possible Valid/Invalid
32-11 Variable command 200 sets 100 to 199 4 Possible Valid/Invalid
Data type
Sub­section No.
Size
(bytes)
Write
System/axis designation
Remarks
The contents will differ according to the type of tool offset memory.
The contents will differ according to the type of tool offset memory.
Remarks
Variables per system
Variables per system
- 17 -

5. Explanation of Read/Write Data

5. Explanation of Read/Write Data

5.1 How to refer to the data

The explanation of the read and write data is common for all machine type. The method for referring to the data is shown below.
4. Sub-section No. List
Section No. 1 Parameters common to each axis
~ ~
(3)
~ ~
Search
(2)
No.
(1)
Maximum spindle speed (Gear 1st step) →(1) Maximum spindle speed (Gear 2nd step)
1-10
Maximum spindle speed (Gear 3rd step) Maximum spindle speed (Gear 4th step)
Spindle limit speed (Gear 1st step) Spindle limit speed (Gear 2nd step)
1-11
Spindle limit speed (Gear 3rd step) Spindle limit speed (Gear 4th step)
Spindle tap speed (Gear 1st step) Spindle tap speed (Gear 2nd step)
1-12
Spindle tap speed (Gear 3rd step) Spindle tap speed (Gear 4th step)
Data type
Sub­section No.
8960 8964 8968 8972
8976 8980 8984 8988
8992 8996 9000 9004
Size
(bytes)
4 4 4 4
4 4 4 4
4 4 4 4
Write
Possible Possible Possible Possible
Possible Possible Possible Possible
Possible Possible Possible Possible
System/axis designation
Invalid/Invalid Invalid/Invalid Invalid/Invalid Invalid/Invalid
Invalid/Invalid Invalid/Invalid Invalid/Invalid Invalid/Invalid
Invalid/Invalid Invalid/Invalid Invalid/Invalid Invalid/Invalid
5. Explanation of Read/Write Data
1-10 Maximum spindle speed (Gear 1st step to gear 4th step)
[Data definition]
This is a parameter for the maximum spindle speed of each gear step. (This corresponds to the setup parameter, spindle parameter smax1 to 4.) The CNC creates the spindle gear shift command 1 and 2 with this value and the commanded S command. During tapping, the maximum speed will be the spindle tap speed.
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 99999.
[Precaution]
After being set (written), this data is valid from the next spindle speed (S) command. However, the clamping operation with the maximum speed will be validated immediately.
Remarks
~ ~
~ ~
(1) Search for the data to be read or written from the type of data given in the "Sub-section No. List" of the target model. (2) Confirm the search No. corresponding to the searched data. (3) Search for the reference data from the "5. Explanation of Read/Write Data" based on the confirmed search No.
(Note 1) Note that the first value of the search No. (for example, 1-10) is the section No., but the second value is not the sub-section
No.
(Note 2) The expression "1-50-6)" in the read/write data explanation indicates section No. : 1, search No.: 50 and bit: 6. (Note 3) The search No. expressed as "11/15-10" in the read/write data explanation indicates that the contents are common
to the data in section No.:11, search No.: 10, and the data in section No.: 15 and search No.: 10.
- 18 -
5. Explanation of Read/Write Data

5.2 Data unit system

The unit system indicated in this manual is shown below.
Unit system
Input unit
Output unit (Detection unit)
Machine constant input unit
A
(10 micron
system)
mm 0.01 0.001 0.0001
inch 0.001 0.0001 0.00001
mm 0.005 0.0005 0.00005
inch 0.0005 0.00005 0.000005
mm 0.01 0.001 0.001
inch 0.001 0.0001 0.00001
B
(1 micron
system)
C
(0.1 micron
system)
Selection parameter
Setup parameter Basic specification
parameter I_inch = 0 Setup parameter Basic specification
parameter I_inch = 1 Setup parameter Basic specification
parameter iout = 0 Setup parameter Basic specification
parameter iout = 1 Setup parameter Basic specification
parameter M_inch = 0 Setup parameter Basic specification
parameter M_inch = 1
(Note 1) The unit systems A, B and C are settings for the setup parameters (basic specification
parameters: iunit). This may differ according to the machine type.
(Note 2) The unit system C (0.1 micron system) is an option specification. (Note 3) Of the selection parameters, I_inch and M_inch are common for each axis, and iout is for
the independent axis.
- 19 -
5. Explanation of Read/Write Data

5.3 Explanation of data details

The details of the data that are read or written with the DDB are explained below.
1-10 Maximum spindle speed (Gear 1st step to gear 4th step)
[Data definition]
This is a parameter for the maximum spindle speed of each gear step. (This corresponds to the setup parameter, spindle parameter smax1 to 4.) The CNC creates the spindle gear shift command 1 and 2 with this value and the commanded S command. During tapping, the maximum speed will be the spindle tap speed.
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 99999.
[Precaution]
After being set (written), this data is valid from the next spindle speed (S) command. However, the clamping operation with the maximum speed will be validated immediately.
1-11 Spindle limit speed (Gear 1st step to gear 4th step)
[Data definition]
This parameter is used to calculate the spindle speed (S-analog) data for each gear step. (This corresponds to the setup parameter, spindle parameter slimt 1 to 4.) The CNC determines the corresponding spindle limit speed with the spindle gear selection input (Y...) output from the PLC, and calculates the spindle speed (S-analog) data.
SOVRSd1d2d3d
Spindle speed data = x
slimt n 100
slimt n : Spindle limit speed of corresponding gear step determined with
spindle gear selection input. (n: 1~4) Sd1d2d3d4: Spindle speed (S) command SOVR : Spindle override
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 99999.
[Precaution]
This setting is validated immediately after setting (writing).
4
- 20 -
5. Explanation of Read/Write Data
slimt n
ssift n
1-12 Spindle tap speed (Gear 1st step to gear 4th step)
[Data definition]
This parameter is for the maximum spindle speed during tapping (G68, G74, G84). The maximum spindle speed during normal operation follows the "1-10 Maximum spindle speed (Gear 1st step to gear 4th step)" setting, but a maximum speed parameter dedicated for tapping is provided during tapping (including synchronous tapping). (This corresponds to the setup parameter, spindle parameter stap1 to 4.) The CNC creates the spindle gear shift command 1 and 2 with the commanded S command and this parameter during tapping.
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 99999.
[Precaution]
After being set (written), this data is validated from the next spindle speed (S) command during tapping.
1-13 Spindle shift speed (Gear 1st step to gear 4th step)
[Data definition]
The spindle motor is run slowly at a constant speed when changing the spindle gears to make the changeover operation smooth. This parameter is used to designate the speed at that time. (This corresponds to the setup parameter, spindle parameter ssift 1 to 4.) The CNC determines the corresponding spindle shift speed with the spindle gear selection input (Y...) output from the PLC.
Spindle speed data for gear shift =
slimt n : Spindle limit speed of corresponding gear step determined with
spindle gear selection input (n: 1~4) ssift n : Spindle shift speed of corresponding gear step determined with
spindle gear selection input
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 32767.
[Precaution]
This setting is validated immediately after setting (writing).
- 21 -
5. Explanation of Read/Write Data
slimt n
sori
1-20 Spindle orient speed
[Data definition]
This parameter is used to rotate the spindle at a slow constant speed when carrying out spindle orientation (orient position stop). (This corresponds to the setup parameter, spindle parameter sori.)
Spindle speed data for orient =
sori : Spindle orient speed slimt n : Spindle limit speed of corresponding gear step determined with
spindle gear selection input (n: 1~4)
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 32767.
[Precaution]
This setting is validated immediately after setting (writing).
[Supplement]
The orient function is provided for most of the recent spindle controllers, so this parameter is not used often for the spindle orientation.
1-21 Minimum spindle speed
[Data definition]
This parameter specifies the minimum spindle speed value. If the S command issued is a spindle speed lower than this parameter value or if the results of the spindle override are lower than this parameter value, the spindle will be rotated at this minimum spindle speed. (This corresponds to the setup parameter, spindle parameter smini.)
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 32767.
[Precaution]
This setting is validated immediately after setting (writing).
1-50 Method selection parameter (1)
[Data definition]
The following parameters are indicated in bit units.
1-50-6) Synchronous tapping
This parameter is used when carrying out the machining program's tapping cycle (G84, G74) with the synchronous method.
0 : Asynchronous method 1 : Synchronous method
(This corresponds to the setup parameter, basic specification parameter set01.)
- 22 -
5. Explanation of Read/Write Data
1-70 Method selection parameter (3)
[Data definition]
The following parameters are set in bit units.
[Data range]
The setting range is 0 to 255. The set data could affect the other bits, so take care when setting.
1-70-1) Tool compensation method ....... Valid only for lathe (L) system
The type of movement command for when the tool compensation operation (Tmove) is set to "1" is designated.
0 : Compensation is carried out regardless of the movement command type. 1 : Compensation is carried out only for a movement command issued with an absolute value.
(This corresponds to the setup parameter, basic specification parameter Tabsmv.)
1-80 Method selection parameter (4)
[Data definition]
The following parameters are set in bit units.
[Data range]
The setting range is 0 to 255. The set data could affect the other bits, so take care when setting.
1-80-5) Reference point middle point ignore
This parameter designates how to handle the middle point during G28 and G30 reference point return.
0 : Move to the reference point via the middle point designated in the program. 1 : Ignore the middle point designated in the program, and move directly to the reference
point.
(This corresponds to the setup parameter, basic specification parameter Mpoint.)
- 23 -
5. Explanation of Read/Write Data
PGN
1-100 Position switches [1] to [8] (System 1, 2)
[Data definition]
A software dog switch is established at a designated point of the axis on the machine, and the output signal from this switch is output to the PLC interface when the axis passes over this switch. A maximum of eight switches can be set per system. This switch can be used after the zero point is established. (This corresponds to the setup parameter, position switches axis, dog1 and dog 2.)
The position switch uses the axis, dog1 and dog2 data as one set.
Axis : Name of axis for which switch is established. dog1 : Distance 1 from basic machine coordinate system zero point dog2 : Distance 2 from basic machine coordinate system zero point
The difference of dog1 and dog2 becomes the position switch width.
[Data unit, range]
The data unit is 1/2 of the machine constant input unit. The setting range is -99999.999 mm to +99999.999 mm.
[Precaution]
There will be a slight delay in the output signal changes in respect to the actual machine position. This maximum delay time (tmax) can be obtained with the following equation.
tmax = 0.06 - TP [sec]
TP : Position loop time constant ( [sec] )
1
2-10 Axis n No. 1 to No. 4 reference point coordinates
[Data definition]
The No. 1 reference point, No. 2 reference point, No. 3 reference point and No. 4 reference point using 0 of the basic machine coordinates as the base point can be set for each axis with these parameters. (This corresponds to the setup parameter, zero point return parameters G53ofs to #4_rfp.)
Basic machine coordinates
#1 reference point
#2 reference point
#3 reference point
#4 reference point
[Data unit, range]
The data unit is 1/2 of the machine constant input unit. The setting range is -99999.999 mm to +99999.999 mm.
[Precaution]
This setting is validated from the next reference point return after setting (writing).
- 24 -
5. Explanation of Read/Write Data
2-11 Axis n Stored stroke limit I (+), (-) ..... For machine maker
[Data definition]
These parameters indicate the movable range in the (+) or (-) limit using 0 of the basic machine coordinates as the base point. These can be set for each axis. (This corresponds to the setup parameter, axis specification parameters OT+ and OT-.)
Basic machine coordinates
Basic machine coordinate system
Movable range
[Data unit, range]
The data unit is 1/2 of the machine constant input unit. The setting range is -99999.999 mm to +99999.999 mm.
[Precaution]
This setting is validated immediately after setting (writing). (Note that this is only when the axis movement is stopped.)
2-20 Axis n Movement control parameters
[Data definition]
The following parameters are set in bit units.
2-20-1) Inch output
This parameter indicates whether the output unit is a metric unit or inch unit. (This corresponds to the setup parameter, basic specification parameter iout.)
0 : When the machine side detectors (ball screw and detectors) are metric specifications.) 1 : When the machine side detectors (ball screw and detectors) are inch specifications.)
2-20-2) Reference point return direction (-)
This parameter indicates whether the reference point position is to the (-) direction or (+) direction from the reference point return near-point detection (near-point dog). (This corresponds to the setup parameter, zero point return parameter dir(-).)
0 : (+) direction 1 : (-) direction
(-) direction
(+) direction
Near-point dog
- 25 -
5. Explanation of Read/Write Data
2-20-3) Servo OFF error compensation
The servo system will enter the servo OFF state when the servo OFF nth axis (*SVFn) signal is input from the PLC to the CNC. This parameter is used for each axis to set whether the amount that the motor rotated during servo OFF is to be returned to the original state when the servo is turned ON again. (This corresponds to the setup parameter, basic specifications parameter svof.)
0 : Compensate the error (Do not return to the original state.) 1 : Do not compensate the error
2-20-4) Rotary axis
This parameter indicates whether the target control axis is a linear axis or rotary axis.
0 : Linear axis 1 : Rotary axis
(This corresponds to the setup parameter, basic specification parameter rot.)
2-20-5) Motor CCW
This parameter indicates the motor rotation direction when commanded in the + direction.
0 : CW direction looking from motor load side 1 : CCW direction looking from motor load side
(This corresponds to the setup parameter, basic specification parameter ccw.)
Looking from load side
For + command For – command
Motor rotation direction definition (when parameter ccw = 0)
2-20-A) No reference point axis
This parameter indicates that the control axis is one that does not have a reference point or that reference point return is not required.
0 : G28, G29, G30, manual reference point return is carried out. 1 : G28, G29, G30, manual reference point return is ignored.
(This corresponds to the setup parameter, zero point return parameter noref.)
2-20-D) Diameter designated axis ..... Valid only for lathe system
This parameter indicates the movement amount (commanded with U) in the X axis direction to half of the command value. The command in address X will always be a diameter command.
0 : Addresses X and U command movement amounts are the same. 1 : The address U command movement amount is half of the address X movement amount.
(This corresponds to the setup parameter, basic specification parameter dia.)
- 26 -
5. Explanation of Read/Write Data
2-30 Axis n Reference point return approach speed
[Data definition]
This parameter indicates the movement speed when moving toward the reference point after detecting the near-point dog and decelerating to a stop during the reference point return command. This parameter can be set for each axis. (This corresponds to the setup parameter, zero point return parameter G28crp.)
[Data unit, range]
The data unit is mm/min, deg/min or inch/min. The setting range is 1 to 999999.
[Precaution]
This setting is validated immediately after setting (writing).
2-35 Axis n Reference point return shift amount
[Data definition]
This parameter defines the distance from the electrical reference point (grid) to the actual machine reference point during the reference point return command. This can be set for each axis. (This corresponds to the setup parameter, zero point return parameter G28sft.)
[Data unit, range]
The data unit is 1/2 of the machine constant input unit. The setting range is 1 to 65535 (µ).
[Precaution]
This setting is validated immediately after setting (writing).
- 27 -
5. Explanation of Read/Write Data
2-36 Axis n Rapid traverse backlash amount
[Data definition]
This parameter indicates the backlash amount to be compensated when the movement direction is reversed with the movement command in the rapid traverse mode or with the manual operation (excluding handle feed). This can be set for each axis. (This corresponds to the setup parameter, axis specification parameter G0back.)
[Data unit, range]
The data unit is 1/2 of the machine constant input unit. The setting range is -9999 to +9999 pulses.
[Precaution]
This setting is valid immediately after setting (writing).
2-37 Axis n Cutting feed backlash amount
[Data definition]
This parameter indicates the backlash amount to be compensated when the movement direction is reversed with the movement command in the cutting feed mode or with the handle feed mode of the manual operation. (This corresponds to the setup parameter, axis specification parameter G1back.)
[Data unit, range]
The data unit is 1/2 of the machine constant input unit. The setting range is –9999 to +9999 pulses.
[Precaution]
This setting is validated immediately after setting (writing).
2-40 Axis n Stored stroke limit II (+), (-) ..... For user
[Data definition]
These parameters indicate the movable range in the (+) or (-) limit using 0 of the basic machine coordinates as the base point. These can be set for each axis. (This corresponds to the setup parameter, axis specification parameters soft limit (+) and soft limit (-).)
Basic machine coordinate system
Movable range
[Data unit, range]
The data unit is 1/2 of the machine constant input unit. The setting range is -99999.999 mm to +99999.999 mm.
[Precaution]
This setting is validated immediately after setting (writing). (Note that this is only when the axis movement is stopped.)
- 28 -
5. Explanation of Read/Write Data
4-10 Axis n G54 Workpiece coordinate system offset 4-11 Axis n G55 Workpiece coordinate system offset 4-12 Axis n G56 Workpiece coordinate system offset 4-13 Axis n G57 Workpiece coordinate system offset 4-14 Axis n G58 Workpiece coordinate system offset 4-15 Axis n G59 Workpiece coordinate system offset
[Data definition]
These are the G54 to G59 workpiece offset amount of the nth axis (n: 1 to No. of control axes.) (This corresponds to the tool/compensation amount workpiece coordinate offset G54 to G59.)
[Data unit, range]
Unit:
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
Rotary axis
Range: -199999998 to +199999998
[Precautions]
(1) The "external workpiece coordinate system offset input" option is required to read or write
these data with the MELDASMAGIC 64.
(2) This setting is valid after the data is rewritten and the next workpiece coordinate changeover is
commanded.
4-16 Axis n External workpiece coordinate system offset
[Data definition]
This is the external workpiece coordinate system offset amount of the nth axis (n : 1 to No. of control axes). (This corresponds to the tool/compensation amount workpiece coordinate offset EXT.)
[Data unit, range]
Unit:
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
Rotary axis
Range: -199999998 to +199999998
[Precautions]
(1) The "external workpiece coordinate offset system input" option is required to read or write this
data with the MELDASMAGIC 64.
(2) This setting is valid after the data is rewritten and the next workpiece coordinate changeover is
commanded.
- 29 -
5. Explanation of Read/Write Data
5-30 Servo alarm
[Data definition]
This indicates that an error has occurred in the servo system. When an error occurs, the NC alarm 2 (AL2: X211) will turn ON.
(1) Data configuration
Sub-section No. Details
16 Alarm No. main (2-byte)
18
20 Alarm No. sub 1 (2-byte) 22 Alarm No. sub 2 (2-byte)
(2) Alarm contents
Alarm attribute (2-byte) bit F 0: No alarm
1: Alarm has occurred (hexadecimal)
Alarm No.
Main
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Alarm No.
Sub 1
10 11 12 13 16 17 18
1B 1C 1D
1E
1F
20
21
23
25
26
27
28
29
2A
2B 2C 2D
2F
30
31
Alarm No.
Sub 2
Alarm axis
Alarm axis
Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis
Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis
Alarm contents
Driver undervoltage Axis selection error Memory error Software processing error Magnetic pole position detection error 1 A/D converter error Magnetic pole position detection error 2 CPU error (SUB) LED error (SUB) Data error (SUB) Serial detector, thermal error (SUB) Serial detector, communication error (SUB) No feedback signal 1 No feedback signal 2 Speed deflection excessive Absolute position lost Not used axis error Absolute position detecting scale, CPU error Absolute position overspeed Absolute position detecting circuit error Relative position detecting circuit error CPU error LED error Data error Serial detector, communication error Over-regeneration Overspeed
(Continued on next page)
- 30 -
5. Explanation of Read/Write Data
Alarm No.
Main
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Alarm No.
Sub 1
32
33
34
35
36
37
38
39
3A
3B
40
41
42
43
46
50
51
52
53 5C
60
61
63
65
67
68
69
6A
6B 6C 6D
6E
6F
71
73
74
75
77
82
88
Alarm No.
Sub 2
Alarm axis Alarm axis
Alarm axis
Alarm axis
Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis
Alarm contents
Power module error (overcurrent) Overvoltage CRC error of CNC communication Data error of CNC communication CNC communication error Initial parameter error Protocol error 1 of CNC communication Protocol error 2 of CNC communication Overcurrent Power module error (overheat) A-TK unit changeover error A-TK unit communication error Feedback error Feedback error 2 Motor overheat Overload 1 Overload 2 Excessive error 1 (during servo ON) Excessive error 2 (during servo OFF) Orient, feedback error Momentary power failure Power module overcurrent Regeneration error/auxiliary regeneration error Rush relay error Phase failure Watch dog Ground Contactor fusion Rush relay fusion Main circuit error Parameter error Memory error Power supply alarm Momentary power failure/external emergency stop Over-regeneration Regenerative resistor overheat Overvoltage Power module (V)/fin (R)/print board overheat Power supply signal absence Watch dog
(Note 1) Depending on the driver type and power supply type, there may be some alarms that
might not occur.
(Note 2) Refer to the alarm No. when the alarm attribute bit F is set to 1.
- 31 -
5. Explanation of Read/Write Data
5-90 Servo warning
[Data definition]
This indicates that a warning alarm has occurred in the servo system.
(1) Data configuration
Sub-section No. Details
64 Alarm No. main (2-byte) 66 68 Alarm No. sub 1 (2-byte)
70 Alarm No. sub 2 (2-byte)
(2) Alarm contents
Alarm attribute (2-byte) bit F 0: No alarm
1: Alarm has occurred
(hexadecimal)
Alarm No.
Main
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2
Alarm No.
Sub 1
90
91
92
93
96
97
9E
9F
A8
E0
E1
E3
E4
E6
E7
E8
E9
Alarm No.
Sub 2
Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis
Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis Alarm axis
Alarm contents
Low-speed serial initial communication error Low-speed serial communication error Low-speed serial protocol error Initial absolute position fluctuation MP scale, feedback error MP scale, offset fluctuation Serial detector, multi-rotation counter error Battery voltage drop Turret indexing command error warning Over-regeneration warning Overload warning/momentary power failure warning Absolute position counter warning Parameter error warning Control axis removal warning In external emergency stop Over-regeneration warning Momentary power failure warning
(Note 1) E7 of the alarm No. sub 1 cannot be viewed as the servo warning No. (Note 2) Refer to the alarm No. when the alarm attribute bit F is set to 1.
- 32 -
5. Explanation of Read/Write Data
5-130 Operation error
[Data definition]
This indicates that the axis cannot move, etc., due to the operation or machine side conditions. When an error occurs, the NC alarm 4 (AL4: X213) will turn ON.
(1) Data configuration
Sub-section No. Details
96 Alarm No. main (2-byte) 98
100 Alarm No. sub 1 (2-byte) 102 Alarm No. sub 2 (2-byte)
(2) Alarm contents
Alarm attribute (2-byte) bit F 0: No alarm
1: Alarm has occurred (hexadecimal)
Alarm No.
Main
1 1 Alarm axis Near-point dog length for reference point return is insufficient. 1 2 Alarm axis Z-phase not passed during reference point return. 1 3 Alarm axis Command direction is illegal during reference point return. 1 4 Alarm axis Interlock signal is input. 1 5 Alarm axis Interlock conditions are established in NC. 1 6 Alarm axis Stroke end signal is input. 1 7 Alarm axis Tool is on soft limit. 1 8 Tool is on chuck barrier or tailstock barrier.
1 9
1 24 Zero point return signal was input during absolute position detection alarm.
1 25
1 101 Operating mode not selected. 1 102 The cutting feed override is zero. 1 103 The external feedrate is zero. 1 104 The F1-digit feedrate is zero. 1 105 The spindle is stopped. (Synchronous feed) 1 106 The handle feed axis No. is illegal. 1 107 The spindle speed is excessive. (Thread cutting) 1 108 The manual random feed axis designation is illegal. 1 109 The block start interlock signal was input. 1 110 The cutting start interlock signal was input. 1 115 The automatic start button was pressed during the reset process or tape rewinding. 1 117 The playback switch was pressed during editing or the full-sized mode (9-inch).
Alarm No.
Sub 1
Alarm No.
Sub 2
Alarm contents
No. 2 to No. 4 reference point was designated when reference point return was not complete.
Zero point return signal was input during zero point initialization of absolute position detection system.
(Note 1) Refer to the alarm No. when the alarm attribute bit F is set to 1.
- 33 -
5. Explanation of Read/Write Data
5-140 Automatic stop code
[Data definition]
This indicates the cause of automatic stopping or block stopping.
(1) Data configuration
Sub-section No. Details
104 Alarm attribute main (2-byte) 106 108 Alarm attribute sub 1 (2-byte)
110 Alarm attribute sub 2 (2-byte)
(2) Alarm contents
Alarm attribute (2-byte) bit F 0: No alarm
1: Alarm has occurred (hexadecimal)
Alarm No.
Main
1 101 There is an axis moving, so automatic starting is not possible. 1 102 The emergency stop state is entered, so automatic starting is not possible. 1 103 The process is being reset, so automatic starting is not possible. 1 104 The automatic stop signal is ON, so automatic starting is not possible. 1 105 The stroke end signal is input, so automatic starting is not possible. 1 106 The axis is on the soft limit, so automatic starting is not possible. 1 107 The operation mode is not selected, so automatic starting is not possible. 1 108 The operation mode is duplicate, so automatic starting is not possible. 1 109 The operation mode has changed, so automatic starting is not possible. 1 110 The buffer is being corrected, so automatic starting is not possible. 1 111 The tape is being searched, so automatic starting is not possible.
1 113
1 138 The start signal was input during the absolute position detection alarm.
1 139
2 201 Operation automatically stopped because a stroke end signal was detected. 2 202 Operation automatically stopped because a soft limit was detected. 2 203 Operation automatically stopped because a reset signal was detected. 2 204 Operation automatically stopped because of the automatic stop signal. 2 205 Operation automatically stopped because the operation mode was changed. 2 215 An absolute position detection alarm occurred. 2 301 The block stopped because of the single block switch. 2 302 The block stopped because of the user macro stop. 2 303 The block stopped because the mode was changed. 2 304 The MDI final block was completed.
Alarm No.
Sub 1
Alarm No.
Sub 2
Alarm contents
The temperature warning (Z53 Overheat) has occurred, so automatic starting is not possible.
The start signal was input during zero point initialization of the absolute position detection system.
(Note 1) Refer to the alarm No. when the alarm attribute bit F is set to 1.
- 34 -
5. Explanation of Read/Write Data
11/15-10 Interpolation vector length
[Data definition]
The remaining movement distance of the block being executed is indicated.
(Remaining movement distance of each axis)
2
[Data unit]
The unit is 1/2 of the input unit. (Either 5µ, 0.5µ, or 0.05µ)
[Precaution]
The data is not set when G0 non-interpolation (G0Intp = 1). The data will be updated with the interpolation cycle.
11/15-20 Movement mode
[Data definition]
Data (binary) Contents
0 1 2 3 4 5 6
G00 Positioning (each axis independent) G00 Positioning (linear) G01 Linear interpolation G02 Circular interpolation (CW) G03 Circular interpolation (CCW) G02 X__Y__Z__ Helical interpolation (CW)
G03 X__Y__Z__ Helical interpolation (CCW) 7 8 9
10 11
G04 Time designated dwell
12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
G27_P1 No. 1 reference point compare
G27_P2 No. 2 reference point compare
G27_P3 No. 3 reference point compare
G27_P4 No. 4 reference point compare
G28 Automatic reference point return
G29 Return from automatic reference point
G30_P2 No. 2 reference point return
G30_P3 No. 3 reference point return
G30_P4 No. 4 reference point return
G31 Skip function
G31.1 Multi-step skip function 1
G31.2 Multi-step skip function 2
G31.3 Multi-step skip function 3
G33 Thread cutting (G32 for lathe G code series 2.)
G34 Variable lead thread cutting (only lathe)
28 29
G92 Coordinate system setting
30
[Interpolation vector length][Interpolation vector length]
- 35 -
5. Explanation of Read/Write Data
12/16-10 Axis direction movement amount
[Data definition]
The remaining movement distance of each axis in the block being executed is indicated.
(Machine position at movement end point)
- (Machine position at movement start point or current position)
For block being executed
For block before execution
[Data unit]
The unit is 1/2 of the input unit. (Either 5µ, 0.5µ, or 0.05µ)
[Precautions]
(1) If the movement mode is skip or multi-step skip, the movement end point will not be the skip
stop point, but instead will be a value calculated form the commanded value.
(2) If the movement mode is counter preset, the counter preset value will be set instead of the
remaining movement distance of each axis. The value will be cleared immediately after the counter preset is executed.
(3) If the movement mode is reference point return, the remaining movement distance to the
middle point will be set.
(4) If the movement mode is start position return, the remaining movement distance from the
middle point will be set.
- 36 -
5. Explanation of Read/Write Data
13/17-10 Interpolation mode (G code group 1)
[Data definition]
The current movement modal (group 1) is indicated.
Data Machining center system
0 1 2 3 4 5 6 7 8
13/17-11 Plane selection (G code group 2)
[Data definition]
The current plane selection modal (group 2) is indicated.
Data Machining center system
0 1 2
G00 G01 G02 G03
G33
G17 G18 G19
Lathe system
Series 2 Series 3
G00 G01 G02 G03
G32 G34
Lathe system
Series 2 Series 3
G17 G18 G19
G00 G01 G02 G03
G33
G34
G17 G19
13/17-12 Feed mode (G code group 5)
[Data definition]
The current feed modal (group 5) is indicated.
Data Machining center system
0 1 2
G94 G95
- 37 -
Lathe system
Series 2 Series 3
G94 G95
G94 G95
5. Explanation of Read/Write Data
13/17-13 Diameter compensation modal (G code group 7)
[Data definition]
The current diameter compensation modal (group 7) is indicated.
Data Machining center system
0 1 2 3
13/17-14 Fixed cycle modal (G code group 9)
[Data definition]
The current fixed cycle modal (group 9) is indicated.
Data Machining center system
0 1 2 3 4 5 6 7 8
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
G40 G41 G42
G80 G81 G82 G83 G84 G85 G86 G87 G88 G89
G73 G74 G76
Lathe system
Series 2 Series 3
G40 G41 G42 G46
Lathe system
Series 2 Series 3
G72 G73 G74 G75 G76 G90 G92 G94 G80
G83 G84 G85
G87 G88 G89
G70 G71
G79
G40 G41 G42 G46
G72 G73 G74 G75 G76 G90 G92 G94 G80
G83 G84 G85
G87 G88 G89
G70 G71
G83.2
- 38 -
5. Explanation of Read/Write Data
13/17-15 Workpiece coordinate system modal (G code group 12)
[Data definition]
The current workpiece coordinate system modal (group 12) is indicated.
Data Machining center system
0
1
2
3
4
5
13/17-16 Cutting mode (G code group 13)
[Data definition]
The current cutting modal (group 13) is indicated.
Data Machining center system
0
1
2
3
G54 G55 G56 G57 G58 G59
G61 G62 G63 G64
Lathe system
Series 2 Series 3
G54 G55 G56 G57 G58 G59
Lathe system
Series 2 Series 3
G61 G62 G63 G64
G54 G55 G56 G57 G58 G59
G61 G62 G63 G64
13/17-17 Other G modals (G code group 3, 4, 6, 10, 17, 18)
[Data definition]
The current G modal (group 3, 4, 6, 10, 17, 18) is indicated.
bit7
1 G15 G96 G99 G20 G22 G90 0 G14 G97 G98 G21 G23 G91
Lathe system
13/17-20 Block No.
[Data definition]
The current block No. is indicated.
[Data range]
The setting range is 0 to 99.
bit6
Group 18 Group 17 Group 10 Group 6 Group 4 Group 3
bit5 bit4 bit3 bit2 bit1 bit0
- 39 -
5. Explanation of Read/Write Data
Tool No.
Tool No.
13/17-30 Shape compensation No.
[Data definition]
(1) Machining center system
The tool compensation No. commanded with address D in the nose radius compensation (G41, G42) or position compensation (G45 to G48) block is indicated.
(2) Lathe system
The tool length compensation No. commanded by the tool function code T is indicated.
a) When designating the tool length or tool nose wear compensation No. with the low-order
1 digit or 2 digits of the T command.
T * * * * * * * *
Tool length compensation Tool nose wear compensation
T * * * * * * * * *
Tool length compensation Tool nose wear compensation
b) When designating the tool length compensation No. and tool nose wear compensation
No. independently.
T * * * * * * * *
Tool nose wear compensation
Tool No. + Tool length compensation
T * * * * * * * * *
Same compensation No.
Same compensation No.
Tool nose wear compensation
Tool No. + Tool length compensation
In this case, the tool length compensation No. is the last two digits of the high-order digit.
- 40 -
5. Explanation of Read/Write Data
13/17-31 Wear compensation No.
[Data definition]
(1) Machining center system
This is the same as the shape compensation No.
(2) Lathe system
The tool nose wear No. commanded with the tool function code (T) is indicated.
13/17-40 Miscellaneous function (M) code (BCD)
[Data definition]
The miscellaneous function No. commanded with the miscellaneous function code (M) is indicated.
13/17-41 Spindle function (S) code (BIN)
[Data definition]
The spindle speed commanded with the spindle function code (S) is indicated.
13/17-42 Tool function (T) code (BCD)
[Data definition]
The tool No. commanded with the tool function code (T) is indicated.
13/17-43 2nd miscellaneous function (B) code (BCD)
[Data definition]
The data commanded with the 2nd miscellaneous function code (B, A or C) is indicated.
13/17-44 Program No.
[Data definition]
The current program No. (modal) is indicated.
[Data range]
The setting range is 1 to 99999999 (binary).
13/17-45 Sequence No.
[Data definition]
The current sequence No. is indicated.
[Data range]
The setting range is 1 to 99999 (binary).
- 41 -
5. Explanation of Read/Write Data
14/18-10 Length compensation No.
[Data definition]
The length compensation No. of that axis is indicated.
[Data range]
The setting range is 0 to the maximum compensation No. (binary). This is valid only for the machining center system.
20-10 Automatic effective feedrate
[Data definition]
The actual feedrate in the automatic mode is indicated. (This includes the speed change conditions such as override.)
(1) For G0, G1, G2, G3, G27
The composite speed of all commanded axes is indicated.
(2) For G28, G29, G30
The speed of the fastest axis in the axes moving simultaneously is indicated.
[Data unit]
Input unit system
(iunit)
A 10 x 2 B 1 x 2 C 0.1 x 2
Input unit (metric) Input unit (inch)
–10
mm/min 1 x 2
–10
mm/min 0.1 x 2
–10
mm/min 0.01 x 2
–10
inch/min
–10
inch/min
–10
inch/min
20-11 Manual effective feedrate
[Data definition]
The actual feedrate in the manual mode is indicated. (This includes the speed change conditions such as override.) The speed of the fastest axis in the axes moving simultaneously is indicated.
[Data unit]
Input unit system
(iunit)
A 10 x 2 B 1 x 2 C 0.1 x 2
Input unit (metric) Input unit (inch)
–10
mm/min 1 x 2
–10
mm/min 0.1 x 2
–10
mm/min 0.01 x 2
–10
inch/min
–10
inch/min
–10
inch/min
- 42 -
5. Explanation of Read/Write Data
21-10 Current position in machine coordinate system
[Data definition]
The current position of the axis in the machine coordinate system is indicated.
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
21-12 Manual interrupt amount (1) (Manual absolute switch OFF)
[Data definition]
The total of the movement amount in the manual mode with the manual absolute switch OFF is indicated. The program coordinate system is shifted by the distance corresponding to this data.
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
Rotary axis
Rotary axis
21-13 Manual interrupt amount (2) (Manual absolute switch ON)
[Data definition]
The total of the movement amount in the manual mode with the manual absolute switch ON is indicated. This data is cleared in the following cases:
(1) When calculation of the buffer is started during automatic starting, or when automatic start
up is executed.
(2) When the reset signal is input.
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
- 43 -
Rotary axis
5. Explanation of Read/Write Data
21-20 Current position in workpiece coordinate system
[Data definition]
The current position in the currently selected workpiece coordinate system is indicated.
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
21-30 Current position in workpiece coordinate system during skip ON
[Data definition]
The current position in the workpiece coordinate system when the skip signal is input during the G31 command is indicated.
This corresponds to the macro variables #5061, #5062 .....
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
Rotary axis
Rotary axis
21-31 Current position in machine coordinate system during skip ON
[Data definition]
The current position in the machine coordinate system when the skip signal is input during the G31 command is indicated.
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
- 44 -
Rotary axis
5. Explanation of Read/Write Data
21-32 Remaining distance during skip ON
[Data definition]
The remaining commanded distance when the skip signal is input during the G31 command is indicated.
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
21-33 Current position in machine coordinate system during manual skip ON
[Data definition]
The current position in the machine coordinate system when the skip signal is ON during the manual skip command is indicated.
[Data unit]
Input unit system Linear axis
(iunit) Input unit (metric) Input unit (inch)
A 0.005 mm 0.0005 inch 0.005 deg. B 0.0005 mm 0.00005 inch 0.0005 deg. C 0.00005 mm 0.000005 inch 0.00005 deg.
Rotary axis
Rotary axis
- 45 -
5. Explanation of Read/Write Data
22-10 Emergency stop causes
[Data definition]
The cause of why the CNC entered the emergency stop state is indicated. This data can also be referred to with the file register R69 in the PLC and CNC interfaces. The correspondence of each bit is explained below. Here, the signal is normally "1", and is set to "0" when an emergency stop occurs.
22-10-0) Software emergency stop
This indicates that the emergency stop state was entered because the user PLC's RUN/STOP switch was set to STOP. The user PLC's RUN/STOP switch is set with the rotary switch NCSYS on the control unit. (Normal: 0, at STOP: 1) This will also occur if the remote I/O unit's 5 V/24 V input is in the abnormal state.
22-10-2) Wait for link start up
With a MELSEC bus connection, "0" will be output until the first interrupt is input from the MELSEC.
22-10-3) Link stop
With a MELSEC bus connection, this indicates that communication with the MELSEC has been cut off.
22-10-4) External input
This indicates that the 24 V is not being supplied to the emergency stop input because the emergency stop switch has been pressed.
22-10-6) PLC emergency stop
This indicates that the user PLC has entered the emergency stop state. The PLC device "Y29F" is the PLC emergency stop interface.
22-10-E) Spindle emergency stop
This indicates that the spindle controller is in the emergency stop state.
22-10-F) Servo emergency stop
This indicates that the servo controller is in the emergency stop state.
23-10 Spindle command speed (Effective value)
[Data definition]
This is not the spindle function (S) command value, but instead is the commanded speed that adds the conditions such as spindle override, spindle stop and spindle gear shift to the S command.
[Data unit, range]
The data unit is r/min, and the setting range is 0 to 32767.
- 46 -
5. Explanation of Read/Write Data
24-1 Power ON time
[Data definition]
This is the total cumulative time from when the controller power is turned ON to when it is turned OFF.
[Data unit]
The read data is a binary, and is not a time unit. The following calculation is carried out to change the data to time (unit: sec.).
512
Time (sec.) = DDB read data x
The reverse calculation is carried out to write the data.
9000
DDB write data = x time
24-2 Automatic operation time
512
9000
[Data definition]
This is the total cumulative time per machining time from when the automatic start button is pressed in the memory (tape) mode to when the M02/M30 command is issued, or to when the reset process is carried out by pressing the reset button.
[Data unit]
The read data is a binary, and is not a time unit. The following calculation is carried out to change the data to time (unit: sec.).
512
Time (sec.) = DDB read data x
The reverse calculation is carried out to write the data.
9000
DDB write data = x time
512
9000
- 47 -
5. Explanation of Read/Write Data
24-3 Automatic start up time
[Data definition]
This is the total cumulative time of automatic starting from when the automatic start button is pressed in the memory (tape) mode or MDI mode to when the feedhold stop, block stop or reset button is pressed.
[Data unit]
The read data is a binary, and is not a time unit. The following calculation is carried out to change the data to time (unit: sec.).
512
Time (sec.) = DDB read data x
The reverse calculation is carried out to write the data.
9000
DDB write data = x time
24-4 External cumulative time 1 24-5 External cumulative time 2
512
9000
[Data definition]
This counts and displays the total cumulative time that the designated signal (Y234, Y235) is ON with the user PLC. The signals are assigned in the following manner.
24-4 External cumulative time 1: Y234 24-5 External cumulative time 2: Y235
[Data unit]
The read data is a binary, and is not a time unit. The following calculation is carried out to change the data to time (unit: sec.).
512
Time (sec.) = DDB read data x
The reverse calculation is carried out to write the data.
9000
DDB write data = x time
512
9000
- 48 -
5. Explanation of Read/Write Data
26-10 Spindle Motor real speed
[Data definition]
This is the real speed of the spindle motor detected by the encoder built into the motor.
[Data unit]
The data unit is r/min.
[Precaution]
This signal is limited to the "MDS-*-SP/SPH/SPJ" spindle controller.
26-20 Spindle Motor load
[Data definition]
This is the load (torque current) of the spindle motor.
Spindle motor load (%) = Read data (An absolute value is retrieved.)
- 49 -
5. Explanation of Read/Write Data
27-10 Smoothing status, servo status
[Data definition]
The various servo related information is expressed in bit units.
27-10-0) Ready ON
If the drive amplifier can be entered the ready ON state, including the ready ON request signal from the CNC, the main circuit will be turned ON. While the main circuit is ON, the ready ON signal will turn ON as the answer signal to the CNC. The conditions for turning OFF are as follows:
1) When the ready ON request signal from the CNC turns OFF.
2) When the CNC enters the emergency stop state.
3) When a servo alarm occurs.
27-10-1) Servo ON
When the above ready ON signal is ON and the servo ON request signal is received from the CNC, if the conditions provide that the servo can be turned ON, the servo ON signal will turn ON (a position loop will be structured). The servo ON signal will turn ON as the answer signal to the CNC while the position loop is structured. The condition for turning OFF is as follows:
1) When in addition to the conditions for the ready ON signal to turn OFF, the servo ON request signal from the CNC turns OFF.
27-10-2) In emergency stop
This is the signal answered by the drive amplifier when it receives notice that the CNC is in the emergency stop state. E7 will be displayed on the 7-segment display for drive amplifier diagnosis.
27-10-3) In alarm
This notifies that the drive amplifier is in the servo OFF state.
27-10-4) Z phase passing
This means that the reference point (Z phase) has been passed by the axis movement after the power was turned ON. The SPEC value of the servo parameters in the setup parameters determines which reference point (Z phase) is valid. The CNC will determine the zero point return position, etc., based on this signal. Once turned ON, this signal remains ON until it is turned OFF.
27-10-6) In-position
This indicates that the difference of the command and the feedback from the detector, or in other words, the position deflection (position loop droop) is within the range designated by ZRZ (in-position width) of the servo parameters in the setup parameters. How the CNC operates upon receiving this signal depends on inpos (in-position check valid) in the basic specification parameters of the setup parameters.
Servo
Previous block Next block
Command
In-position width
27-10-7) Torque limit
This notifies that the motor drive current has been limited. The current limit parameter will follow the ILMT (limit values for both + and – directions) in the servo parameters of the setup parameters.
- 50 -
5. Explanation of Read/Write Data
Reference point return
27-10-8) Smoothing 0
The acceleration/deceleration time constant for making the machine movement smooth is applied to the issued step-state command. The circuit onto which the acceleration/deceleration time constant is applied is called the smoothing circuit. Smoothing 0 means that there is no droop amount in that smoothing circuit.
(Note 1) This may turn ON when the machine is moving at an extremely low speed. (Note 2) This state is equivalent to when the plus motion (+) signal (MVPn) and the minus motion
(-) signal (MVMn) sent from the CNC to the PLC are both OFF.
27-10-9) Smoothing (+)
This indicates that there is a (+) droop amount (movement in the + direction) in the smoothing circuit described in section 27-10-8).
(Note 1) This may turn OFF when the machine is moving at an extremely low speed. (Note 2) This state is equivalent to the plus motion (+) signal (MVPn) sent from the CNC to the
PLC.
27-10-A) Smoothing (-)
This indicates that there is a (-) droop amount (movement in the – direction) in the smoothing circuit described in section 27-10-8).
(Note 1) This may turn OFF when the machine is moving at an extremely low speed. (Note 2) This state is equivalent to the minus motion (-) signal (MVPn) sent from the CNC to the
PLC.
27-10-C) Hardware OT+ (hardware overtravel)
This indicates that the stroke end (+) signal was input for an axis moving in the (+) direction. Once the conditions are established, the signal will turn ON and the axis will move in the (-) direction. And when the stroke end (+) signal is no longer input, this signal will turn OFF.
27-10-D) Hardware OT– (hardware overtravel)
This indicates that the stroke end (-) signal was input for an axis moving in the (-) direction. Once the conditions are established, the signal will turn ON and the axis will move in the (+) direction. And when the stroke end (-) signal is no longer input, this signal will turn OFF.
27-10-E) Near-point dog ON
This turns ON when the reference point return near-point detection signal (dog) for the axis is detected while executing the dog-type reference point return. This turns OFF when the reference point is reached.
Creep speed
operation
Near-point dog ON
Rapid traverse rate
Dog
Reference point
27-10-F) No. 1 reference point reached
This signal turns ON when the reference point is reached during dog-type reference point return, and turns OFF when the axis moves in another mode.
- 51 -
5. Explanation of Read/Write Data
2
27-20 Servo delay amount
[Data definition]
This is an amount that indicates the difference of the actual machine position from the commanded position. (With code (+) or (-).) The servo delay amount will be the same as the droop on the diagnosis screen's servo monitor, according to the following equation.
Droop [command unit] = Read data x
27-30 Feed axis motor load A (%)
[Data definition]
This is the load of the feed axis motor. The data read with the DDB has a code (+ or -).
Feed axis motor load (%) = Read data (An absolute value is retrieved.)
[Precaution]
The motor data is data that considers the motor type. Thus, conversion may not be required depending on the motor type.
27-31 Feed axis motor load B (%)
[Data definition]
This is the load (current) of the feed axis motor.
Feed axis motor load (%) = Read data (An absolute value is retrieved.)
1
(Note) The same contents as the feed axis motor load A (27-30) are obtained for the feed axis
motor load B. To read the feed axis motor load, use the feed axis motor load A (27-30). Note that if the feed axis motor load B is used in a machine type that used the MR-S Series servo amplifier, the conversion calculation is not required.
- 52 -
5. Explanation of Read/Write Data
Read data
<Reference> Feed axis motor load B conversion method when using MR-S Series servo amplifier
[Data definition]
This is the load (current) of the feed axis motor. The data read with the DDB has a code (+ or -). The following equation is used for the conversion into the load (%).
x 100
Feed axis motor load (%) = (An absolute value is retrieved.)
C
Motor Conversion constant C
HA 40 HA 43 HA 80
HA 83 HA 100 450 HA 200 530 HA 300 595
27-33 Feed axis motor speed (rpm)
[Data definition]
This is the speed of the feed axis motor. The data read with the DDB has a code (+ or -).
Feed axis motor speed = Read data (An absolute value is retrieved.)
29/32-10 Variable command 100 sets (common variable values 1, 2)
[Data definition]
These are common variables used by the variable commands and user macros. When using the variable type A specifications, a total of 100 sets from #100 to #149 and from #500 to #549 can be used. The sub-section No. of the DDB uses the same value as the variable No. to be read or written.
318
<Supplement>
Generally, the previously explained feed axis motor load A (data not requiring conversion according to motor type) is used.
[Precautions]
(1) When data is changed during operation:
(1) The data will not be effective on a block that has already been calculated.
(2) The substitute command is executed when the command block is ACT. (3) When handling decimal place with the DDB, the last four digits of the data read or written
correspond to the decimal place when the control signal bit 2 is set to "1".
29/32-11 Variable command 200 sets (common variable values 1, 2)
[Data definition]
This is the same as for the 100 sets of variable commands. Note that when there are 200 sets of variable commands, a total of 200 sets from #100 to #199 and from #500 to #599 can be used.
- 53 -
5. Explanation of Read/Write Data
30-10 Local variables (level 0)
[Data definition]
These are the local variables for the main program (macro level 0). The sub-section No. of the DDB uses the same value as the local variable No. to be read or written.
[Precautions]
(1) When data is changed during operation: (1) The data is not effective on a block that has already been calculated. (2) The variable is cleared to a blank when the macro is called.
(2) The substitute command is executed when the command block is ACT.
(3) When handling decimal place with the DDB, the last four digits of the data read or written
correspond to the decimal place when the control signal bit 2 is set to "1".
30-11 Local variables (level 1)
[Data definition]
These are the same as the local variables (level 0), and are the local variables in macro level 1.
Note that the sub-section No. used by the DDB is the value which 100 has been added to the local
variable No.
30-12 Local variables (level 2)
[Data definition]
These are the same as the local variables (level 1), and are the local variables in macro level 2.
Note that the sub-section No. used by the DDB is the value which 200 has been added to the local
variable No.
30-13 Local variables (level 3)
[Data definition]
These are the same as the local variables (level 2), and are the local variables in macro level 3.
Note that the sub-section No. used by the DDB is the value which 300 has been added to the local
variable No.
31-10 Tool compensation amount 1
[Data definition]
This is the tool offset and differs according to the distinction of shape and wear.
When there is no shape/wear distinction : Tool compensation amount When there is a shape/wear distinction : Tool length shape compensation amount
The sub-section No. used by the DDB corresponds to the tool offset No.
[Data unit, range]
Unit : 1/2 of the input unit (Either 5µ, 0.5µ, or 0.05µ) Data range : -99999999 to +99999999 (binary)
[Precaution]
Even if this data is changed during operation, it will not be effective on a block that has already
been calculated.
- 54 -
5. Explanation of Read/Write Data
31-20 Tool compensation amount 2
[Data definition]
This is the tool length wear compensation amount.
(This is valid only when there is a shape/wear distinction in the tool offset.)
The sub-section No. used by the DDB is the value which 1000 has been added to the tool offset No.
[Data unit, range]
Unit : 1/2 of the input unit (Either 5µ, 0.5µ, or 0.05µ)
Data range : -99999 to +99999 (binary)
[Precaution]
Even if this data is changed during operation, it will not be effective on a block that has already
been calculated.
31-30 Tool compensation amount 3
[Data definition]
This is the nose radius shape compensation amount.
(This is valid only when there is a shape/wear distinction in the tool offset.)
The sub-section No. used by the DDB is the value which 6000 has been added to the tool offset No.
The following is the same as tool compensation amount 1.
- 55 -
5. Explanation of Read/Write Data
31-40 Tool compensation amount 4
[Data definition]
This is the nose radius wear compensation amount.
(This is valid only when there is a shape/wear distinction in the tool offset.)
The sub-section No. used by the DDB is the value which 7000 has been added to the tool offset No.
The following is the same as the tool compensation amount 2.
31-100 X axis tool length compensation amount
[Data definition]
This is the X axis tool length compensation amount.
The sub-section No. used by the DDB corresponds to the tool offset No.
[Data unit, range]
Unit : 1/2 of the input unit. (Either 5µ, 0.5µ, or 0.05µ)
Data range : -99999999 to +99999999 (binary)
[Precaution]
Even if this data is changed during operation, it will not be effective on a block that has already
been calculated.
31-110 X axis wear compensation amount
[Data definition]
This is the X axis wear compensation amount.
The sub-section No. used by the DDB is the value which 1000 has been added to the tool offset No.
[Data unit, range]
Unit : 1/2 of the input unit. (Either 5µ, 0.5µ, or 0.05µ)
Data range : 0 to 99999 (binary)
[Precaution]
Even if this data is changed during operation, it will not be effective on a block that has already
been calculated.
- 56 -
5. Explanation of Read/Write Data
31-120 No. 3 axis tool length compensation amount
[Data definition]
This is the No. 3 tool length compensation amount.
The sub-section No. used by the DDB is the value which 2000 has been added to the tool offset No.
The following is the same as the X axis tool length compensation amount.
31-130 No. 3 axis wear compensation amount
[Data definition]
This is the No. 3 axis wear compensation amount.
The sub-section No. used by the DDB is the value which 3000 has been added to the tool offset No.
The following is the same as the X axis wear compensation amount.
31-140 Z axis tool length compensation amount
[Data definition]
This is the Z axis tool length compensation amount
The sub-section No. used by the DDB is the value which 4000 has been added to the tool offset No.
The following is the same as the X axis tool length compensation amount.
31-150 Z axis wear compensation amount
[Data definition]
This is the Z axis wear compensation amount.
The sub-section No. used by the DDB is the value which 5000 has been added to the tool offset No.
The following is the same as the X axis wear compensation amount.
31-160 Nose R compensation amount
[Data definition]
This is the nose R compensation amount.
The sub-section No. used by the DDB is the value which 6000 has been added to the tool offset No.
The following is the same as the X axis tool length compensation amount.
31-170 Nose R wear compensation amount
[Data definition]
This is the nose R wear compensation amount.
The sub-section No. used by the DDB is the value which 7000 has been added to the tool offset No.
The following is the same as the X axis wear compensation amount.
- 57 -
5. Explanation of Read/Write Data
Correspondence of hypothetical
31-180 Hypothetical nose No.
[Data definition]
This is the hypothetical nose No.
(1) Nose point
Generally, the tool nose is rounded, so the nose position in the program is aligned to point P as shown in the following example. With nose R compensation, select one point from the points shown below for each tool No., and preset this position relation. (In the G46 mode, 1 to 8 are selected, and in the G41/G42 mode, 0 to 9 are selected.)
Nose point 0 or 9
nose No. and nose point
The sub-section No. used by the DDB is the value which 8000 has been added to the tool offset No.
- 58 -

6. Example of DDB with Ladder Circuit

6. Example of DDB with Ladder Circuit
(1) Axis load
The spindle load can be read in, and can be displayed on the CNC screen by using the load meter display function in the PLC. Refer to the section on the PLC Auxiliary Functions in the "PLC Programming Manual (Ladder
Section)" ..... BNP-B2212 for details on the load meter display.
M1000
MOV K0 D100 Control signal set
ON only when power is turned ON
DMOV K8988 D102 Sub-section No. set
M1001
MOV K26 D101 Section No. set
MOV K2 D104 Data size (2-byte)
MOV K0 D105 Axis designation
DDBA D100 DDB start up
[Always ON]
/ D106 K5 D114
WOR D114 H9400 R153
D100 Control signal = 0 D101 Section No. = 26 D102 D103
Sub-section No. = 8988 D104 Data size = 2 D105 Axis designation =
insignificant D106 D107
Data read out
MOV D106 R152 Set final data in display interface
Convert data into display scale number (Example when one scale is 5%)
Set load meter display validity, length of section not to be reversed or displayed in red, and length of bar
- 59 -
6. Example of DDB with Ladder Circuit
(for X axis)
(for Z axis)
ON
(2) Z axis load
The Z axis load can be read in, and can be displayed on the CNC screen by using the load meter display function in the PLC.
M1000
MOV K0 D116 Control signal set
ON only when power is turned
DMOV K328 D118 Sub-section No. set
M1001
MOV K27 D117 Section No. set
MOV K2 D120 Data size (2-byte)
MOV H4 D121 Axis designation (Z) = 4
DDBA D116 DDB start up
[Always ON]
MOV D126 D130 Save data read out
MOV D130 R154 Set final data in display interface
/ D130 K5 D131
Convert data into display scale number (bar graph) (Example when one scale is 5%)
WOR D131 H9400 R155
Set load meter display validity, length of section not to be reversed or displayed in red, and length of bar
D116 Control signal = 0 D124 D117 Section No. = 27 D125
Data read out
(for Y axis)
D118 D126 D119 D127
Sub-section No. = 328
Data read out
D120 Data size = 2 D128 D121
Axis designation = insignificant
D129
Data read out
(for No. 4 axis)
D122 D130 (D126) D123 D131
Data read out
(D130 ÷ 5)
In this example, only the Z axis data is read out, and the previous states are held for the X, Y and No. 4 axis data.
- 60 -

Revision History

Sub-No. Date of revision Revision details
February 1998 First edition created.
1998 MITSUBISHI ELECTRIC CORPORATION
ALL RIGHTS RESERVED
MITSUBISHI ELECTRIC CORPORATION
HEAD OFFICE: MITSUBISHI DENKI BLDG. MARUNOUCHI. TOKYO 100 TEL:03-3218-3426
Loading...