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
This manual describes the DDB (Direct Data Bus) function used to realize data
input/output with a CNC while running a program developed with an MELDAS 64 Series
and MELDASMAGIC 64 Series user PLC (ladder language).
The methods for reading and writing various NC information using the DDB from a PLC
are described in this manual.
Please read this manual before programming.
Please read the "Precautions for Safety" listed on the following page to ensure safe use
of the MELDAS 64 Series and MELDASMAGIC 64 Series.
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.
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.
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 .
(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 A9876543210
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 data2-byte data4-byte data
Rn+6LRn+6LRn+6L
(Dn+6)H (Dn+6)H (Dn+6)H
Rn+7Rn+7Rn+7L
(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.
15Axis common non-modal information in next blockNot possibleInvalidValid
Axis independent non-modal information in next
16
block
17Axis common modal information in next blockNot possibleInvalidValid
18Axis independent modal information in next blockNot possibleValidValid
19
20Axis common machine control information 1Not possibleInvalidValid
21Axis independent machine control information 1Not possibleValidValid
22Information input from PLC to controllerNot possibleInvalidValid
23Information output from controller to PLCNot possibleInvalidValid
24Cumulative time dataPossibleInvalidInvalid
25
26Axis common machine control information 2Not possibleInvalidValid
27Axis independent machine control information 2Not possibleValidValid
28
29Common variable value 1PossibleInvalidInvalid From #500
30Local variable valuePossibleInvalidValid
31Tool compensation amountPossibleInvalidValid (Note 2)
32Common variable value 2PossibleInvalidValid From #100
DetailsWrite
Possible (partially
not possible)
PossibleValidValid (Note 1)
Not possibleInvalidValid
Not possibleValidValid
Not possibleInvalidValid
Not possibleValidValid
Not possibleValidValid
Axis
designation
InvalidInvalid
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.
axis121441Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2121324Possible Invalid/Invalid
axis121641Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2121524Possible Invalid/Invalid
axis121841Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2121724Possible Invalid/Invalid
axis122041Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2121924Possible Invalid/Invalid
axis122241Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2122124Possible Invalid/Invalid
axis122441Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2122324Possible Invalid/Invalid
axis122641Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2122524Possible Invalid/Invalid
axis122841Possible Invalid/Invalid Designate ASCII code with a decimal
dog 2122724Possible 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-30Reference point return approach speed382PossibleValid/Valid
2-35Reference point return shift amount442PossibleValid/Valid
2-36Rapid traverse backlash amount462PossibleValid/Valid
2-37Cutting feed backlash amount482PossibleValid/Valid
Stored stroke limit II (+)
2-40
Stored stroke limit II (-)
Data type
Subsection No.
272
276
280
284
288
292
202Not 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-10G54 workpiece coordinate system offset04PossibleValid/Valid
4-11G55 workpiece coordinate system offset44PossibleValid/Valid
4-12G56 workpiece coordinate system offset84PossibleValid/Valid
4-13G57 workpiece coordinate system offset124PossibleValid/Valid
4-14G58 workpiece coordinate system offset164PossibleValid/Valid
4-15G59 workpiece coordinate system offset204PossibleValid/Valid
4-16External workpiece coordinate system offset244PossibleValid/Valid
Sub 1202Not possibleValid/Invalid
Sub 2222Not possibleValid/Invalid
Main642Not possibleValid/Invalid (Note 1)
Sub 1682Not possibleValid/Invalid
Sub 2702Not possibleValid/Invalid
Main962Not possibleValid/Invalid (Note 1)
Sub 11002Not possibleValid/Invalid
Sub 21022Not possibleValid/Invalid
Main1042Not possibleValid/Invalid (Note 1)
Sub 11082Not possibleValid/Invalid
Sub 21102Not possibleValid/Invalid
Subsection 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 length1724Not 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)
Subsection No.
711Not 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 amount44Not possibleValid/Valid
Data type
Subsection 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)01Not possibleValid/Invalid Interpolation mode
13/17-11 G code (group 2)11Not possibleValid/Invalid Plane selection
13/17-12 G code (group 5)21Not possibleValid/Invalid Feed mode
13/17-13 G code (group 7)31Not possibleValid/Invalid
13/17-14 G code (group 9)41Not possibleValid/Invalid Fixed cycle modal
13/17-15 G code (group 12)51Not possibleValid/Invalid
13/17-16 G code (group 13)61Not possibleValid/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.151Not possibleValid/Invalid 0 to 99
13/17-30 Shape compensation No.762Not possibleValid/Invalid
13/17-31 Wear compensation No.782Not possibleValid/Invalid
13/17-40 Miscellaneous function code2084Not possibleValid/Invalid M code (binary)
13/17-41 Spindle function code2124Not possibleValid/Invalid S code (binary)
13/17-42 Tool function code2164Not possibleValid/Invalid T code (binary)
13/17-43 2nd miscellaneous function code2204Not possibleValid/Invalid B code (binary)
13/17-44 Program No.2404Not possibleValid/Invalid O 1 to 99999999
13/17-45 Sequence No.2444Not possibleValid/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)
24-1Power ON time04PossibleInvalid/Invalid
24-2Automatic operation time44PossibleInvalid/Invalid
24-3Automatic start up time84PossibleInvalid/Invalid
24-4External cumulative time 1124PossibleInvalid/Invalid
24-5External cumulative time 2164PossibleInvalid/Invalid
Data type
Subsection No.
Size
(bytes)
Write
System/axis
designation
Section No.26Axis common machine control information 2
Search
No.
26-10Spindle (SR.SF) Motor real speed89924Not possibleInvalid/Invalid
26-20Spindle (SR.SF) Motor load89882Not possibleInvalid/Invalid
Data type
Sub-
section No.
Size
(bytes)
Write
System/axis
designation
- 15 -
Remarks
Remarks
Including
override
4. Sub-section No. List
Section No.27Axis 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-20Servo delay amount3084Not possibleValid/Valid
27-30Feed axis motor load A (%)3282Not possibleValid/Valid
27-31Feed axis motor load B (%)3302Not possibleValid/Valid
27-33Feed axis motor speed (rpm)3122Not possibleValid/Valid
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.
(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-10Maximum 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-11Spindle 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 n100
slimt n: Spindle limit speed of corresponding gear step determined with
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-12Spindle 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-13Spindle 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-20Spindle 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-21Minimum 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-50Method 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-70Method 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-80Method 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-100Position 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-10Axis 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-11Axis 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-20Axis 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 + commandFor – 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-30Axis 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-35Axis 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-36Axis 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-37Axis 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-40Axis 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-10Axis n G54 Workpiece coordinate system offset
4-11Axis n G55 Workpiece coordinate system offset
4-12Axis n G56 Workpiece coordinate system offset
4-13Axis n G57 Workpiece coordinate system offset
4-14Axis n G58 Workpiece coordinate system offset
4-15Axis 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.)
(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-16Axis 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.)
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
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-90Servo warning
[Data definition]
This indicates that a warning alarm has occurred in the servo system.
(1) Data configuration
Sub-section No.Details
64Alarm No. main (2-byte)
66
68Alarm No. sub 1 (2-byte)
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-130Operation 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
96Alarm No. main (2-byte)
98
100Alarm No. sub 1 (2-byte)
102Alarm No. sub 2 (2-byte)
(2) Alarm contents
Alarm attribute (2-byte) bit F0: No alarm
1: Alarm has occurred(hexadecimal)
Alarm No.
Main
11Alarm axisNear-point dog length for reference point return is insufficient.
12Alarm axisZ-phase not passed during reference point return.
13Alarm axisCommand direction is illegal during reference point return.
14Alarm axisInterlock signal is input.
15Alarm axisInterlock conditions are established in NC.
16Alarm axisStroke end signal is input.
17Alarm axisTool is on soft limit.
18Tool is on chuck barrier or tailstock barrier.
19
124Zero point return signal was input during absolute position detection alarm.
125
1101Operating mode not selected.
1102The cutting feed override is zero.
1103The external feedrate is zero.
1104The F1-digit feedrate is zero.
1105The spindle is stopped. (Synchronous feed)
1106The handle feed axis No. is illegal.
1107The spindle speed is excessive. (Thread cutting)
1108The manual random feed axis designation is illegal.
1109The block start interlock signal was input.
1110The cutting start interlock signal was input.
1115The automatic start button was pressed during the reset process or tape rewinding.
1117The 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-140Automatic stop code
[Data definition]
This indicates the cause of automatic stopping or block stopping.
(1) Data configuration
Sub-section No.Details
104Alarm attribute main (2-byte)
106
108Alarm attribute sub 1 (2-byte)
110Alarm attribute sub 2 (2-byte)
(2) Alarm contents
Alarm attribute (2-byte) bit F0: No alarm
1: Alarm has occurred(hexadecimal)
Alarm No.
Main
1101There is an axis moving, so automatic starting is not possible.
1102The emergency stop state is entered, so automatic starting is not possible.
1103The process is being reset, so automatic starting is not possible.
1104The automatic stop signal is ON, so automatic starting is not possible.
1105The stroke end signal is input, so automatic starting is not possible.
1106The axis is on the soft limit, so automatic starting is not possible.
1107The operation mode is not selected, so automatic starting is not possible.
1108The operation mode is duplicate, so automatic starting is not possible.
1109The operation mode has changed, so automatic starting is not possible.
1110The buffer is being corrected, so automatic starting is not possible.
1111The tape is being searched, so automatic starting is not possible.
1113
1138The start signal was input during the absolute position detection alarm.
1139
2201Operation automatically stopped because a stroke end signal was detected.
2202Operation automatically stopped because a soft limit was detected.
2203Operation automatically stopped because a reset signal was detected.
2204Operation automatically stopped because of the automatic stop signal.
2205Operation automatically stopped because the operation mode was changed.
2215An absolute position detection alarm occurred.
2301The block stopped because of the single block switch.
2302The block stopped because of the user macro stop.
2303The block stopped because the mode was changed.
2304The 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-10Interpolation 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.
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-10Interpolation mode (G code group 1)
[Data definition]
The current movement modal (group 1) is indicated.
DataMachining center system
0
1
2
3
4
5
6
7
8
13/17-11Plane selection (G code group 2)
[Data definition]
The current plane selection modal (group 2) is indicated.
DataMachining center system
0
1
2
G00
G01
G02
G03
G33
G17
G18
G19
Lathe system
Series 2Series 3
G00
G01
G02
G03
G32
G34
Lathe system
Series 2Series 3
G17
G18
G19
G00
G01
G02
G03
G33
G34
G17
G19
13/17-12Feed mode (G code group 5)
[Data definition]
The current feed modal (group 5) is indicated.
DataMachining center system
0
1
2
G94
G95
- 37 -
Lathe system
Series 2Series 3
G94
G95
G94
G95
5. Explanation of Read/Write Data
13/17-13Diameter compensation modal (G code group 7)
[Data definition]
The current diameter compensation modal (group 7) is indicated.
DataMachining center system
0
1
2
3
13/17-14Fixed cycle modal (G code group 9)
[Data definition]
The current fixed cycle modal (group 9) is indicated.
DataMachining 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 2Series 3
G40
G41
G42
G46
Lathe system
Series 2Series 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-15Workpiece coordinate system modal (G code group 12)
[Data definition]
The current workpiece coordinate system modal (group 12) is indicated.
DataMachining center system
0
1
2
3
4
5
13/17-16Cutting mode (G code group 13)
[Data definition]
The current cutting modal (group 13) is indicated.
DataMachining center system
0
1
2
3
G54
G55
G56
G57
G58
G59
G61
G62
G63
G64
Lathe system
Series 2Series 3
G54
G55
G56
G57
G58
G59
Lathe system
Series 2Series 3
G61
G62
G63
G64
G54
G55
G56
G57
G58
G59
G61
G62
G63
G64
13/17-17Other 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
1G15G96G99G20G22G90
0G14G97G98G21G23G91
∗ Lathe system
13/17-20Block No.
[Data definition]
The current block No. is indicated.
[Data range]
The setting range is 0 to 99.
∗bit6
Group 18 Group 17Group 10Group 6Group 4Group 3
bit5bit4bit3bit2bit1bit0
- 39 -
5. Explanation of Read/Write Data
Tool No.
Tool No.
13/17-30Shape 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-31Wear 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-40Miscellaneous function (M) code (BCD)
[Data definition]
The miscellaneous function No. commanded with the miscellaneous function code (M) is indicated.
13/17-41Spindle function (S) code (BIN)
[Data definition]
The spindle speed commanded with the spindle function code (S) is indicated.
13/17-42Tool function (T) code (BCD)
[Data definition]
The tool No. commanded with the tool function code (T) is indicated.
13/17-432nd miscellaneous function (B) code (BCD)
[Data definition]
The data commanded with the 2nd miscellaneous function code (B, A or C) is indicated.
13/17-44Program No.
[Data definition]
The current program No. (modal) is indicated.
[Data range]
The setting range is 1 to 99999999 (binary).
13/17-45Sequence 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-10Length 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-10Automatic 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)
A10 x 2
B1 x 2
C0.1 x 2
Input unit (metric)Input unit (inch)
–10
mm/min1 x 2
–10
mm/min0.1 x 2
–10
mm/min0.01 x 2
–10
inch/min
–10
inch/min
–10
inch/min
20-11Manual 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)
A10 x 2
B1 x 2
C0.1 x 2
Input unit (metric)Input unit (inch)
–10
mm/min1 x 2
–10
mm/min0.1 x 2
–10
mm/min0.01 x 2
–10
inch/min
–10
inch/min
–10
inch/min
- 42 -
5. Explanation of Read/Write Data
21-10Current position in machine coordinate system
[Data definition]
The current position of the axis in the machine coordinate system is indicated.
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.
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-10Spindle 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-1Power 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-2Automatic 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-3Automatic 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-4External cumulative time 1
24-5External 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-10Spindle 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-20Spindle 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-10Smoothing 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 blockNext 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-20Servo 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-30Feed 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-31Feed 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
MotorConversion constant C
HA 40
HA 43
HA 80
HA 83
HA 100450
HA 200530
HA 300595
27-33Feed 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.)
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".
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-10Local 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-11Local 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-12Local 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-13Local 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-10Tool 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-20Tool 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-30Tool 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-40Tool 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-100X 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-110X 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-120No. 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-130No. 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-140Z 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-150Z 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-160Nose 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-170Nose 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-180Hypothetical 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
MOVK0D100 Control signal set
ON only when
power is turned
ON
DMOVK8988D102 Sub-section No. set
M1001
MOVK26D101 Section No. set
MOVK2D104 Data size (2-byte)
MOVK0D105 Axis designation
DDBAD100 DDB start up
[Always ON]
/D106K5D114
WORD114H9400R153
D100Control signal = 0
D101Section No. = 26
D102
D103