MELDAS is a registered trademark of Mitsubishi Electric Corporation.
Other company and product names that appear in this manual are trademarks or
registered trademarks of the respective company.
Introduction
This manual describes the various signal interfaces and functions required when
creating MELDAS C6/C64/C64T sequence programs (built-in PLC).
Read this manual thoroughly before programming.
Thoroughly study the "Safety Precautions" on the following page to ensure safe use of
the MELDAS C6/C64/C64T.
Details described in this manual
CAUTION
For items described in "Restrictions" or "Usable State", the instruction manual
issued by the machine manufacturer 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 manufacturer before starting
use.
Some screens and functions may differ or may not be usable depending on the
NC version.
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 manufacturer, this manual,
related manuals and attached documents before installation, operation, programming,
maintenance or inspection to ensure correct use. Understand this numerical controller,
safety items and cautions before using the unit.
This manual ranks the safety precautions into "DANGER", "WARNING" and "CAUTION".
DANGER
WARNING
CAUTION
Note that even items ranked as "
on the situation. In any case, important information that must always be observed is
described.
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.
CAUTION
" may lead to major results depending
DANGER
There are no "Danger" items in this manual.
WARNING
1. Items related to prevention of electric shocks
Do not operate the switches with wet hands, as this may lead to electric shocks.
Do not damage, apply excessive stress, place heavy things on or sandwich the
cables, as this may lead to electric shocks.
CAUTION
1. Items related to product and manual
For the items described in the "Restrictions" and "Usable State", the instruction
manual issued by the machine manufacturer takes a precedence over this
instruction manual.
Items not described in this manual must be interpreted as "not possible".
This instruction manual has been written on the assumption that all options are
provided.
Check the specifications issued by the machine manufacturer before starting use.
Some screens and functions may differ or may not be usable depending on the
NC system version.
2. Items related to connection
When using an inductive load such as relays, always contact a diode in parallel to
the load as a noise measure.
When using a capacitive load such as a lamp, always connect a protective
resistor serially to the load to suppress rush currents.
3. Items related to design
CAUTION
Always turn the spindle phase synchronization complete signal ON before
chucking both ends of the workpiece to the basic spindle and synchronous
spindle. If the spindle phase synchronization signal is turned ON when both ends
of the workpiece are chucked to the basic spindle and synchronous spindle, the
chuck or workpiece could be damaged by the torsion that occurs during phase
alignment.
If the temperature rise detection function is invalidated with the parameters, the
control could be disabled when the temperature is excessive. This could result in
machine damage or personal injuries due to runaway axis, and could damage the
device. Enable the detection function for normal use.
7.1.3 Flow of Spindle (S) Data............................................................. 7-2
i
1. OUTLINE
r
1. OUTLINE
This manual is prepared to assist you to understand the various control signals necessary for
creating the built-in sequence for the MELDAS C6/C64/C64T.
The manual is composed as shown below. Refer to related sections as necessary to gain the
maximum benefit from the manual.
System
configuration
Table for input/
output signals
with controlle
Table for input/
output signals
with machine
Explanation of
devices
Blank tables
for user
Explanation of
interface
signals
Device
Input : X, R
Output : Y , R
Others:
SM,SD,B,W
Spindle
control
(Caution)
Please note that the specifications referred to in the text represents the maximum
specifications which include also those under development.
PLC Interface
Manual
(cover)
1-1
2. SYSTEM CONFIGURATION
p
2. SYSTEM CONFIGURATION
Personal computer
Personal computer
MELSEC PLC
development tool
Other C6/C64
control unit
DC24VINSERVO1SERVO2
ENCHANDLE
ICCARD
SIOTERMINAL
SKIP
RS-232C
or
RS-422
C6/C64
Control unit
Display/
CommuÂnication
DC24VINSERVO1SERVO2
ENCHANDLE
ICCARD
SIOTERMINAL
SKIP
Ethernet
Communication
terminal
ROM built in
main unit
RIO-M
Operation
panel, etc.
Remote I/O unit
DX1**
Built-in DI : 16 points(X400 to X40F)
Built-in DO : 1 point (Y400)
Expansion DI: 32 points
Expansion DO: 32 points
Analog output: 1 point
The expansion DIO unit is an
(Note)
o
tion.
Max. 8 units
…………
Extension DIO card
Max. 2 cards
(Note)
Remote I/O unit
**
DX1
Max. input: 256 points
(X000 to X0FF)
Max. output: 256 points
(Y000 to Y0FF)
Machine control signals
Manual pulse
Sensor
Max. 4 channels
generator
RIO-M/S
Max. 8 units
…………
(X418 to X41B)
Remote I/O unit
**
DX1
Max. input: 256 points
(X100 to X1FF)
Max. output: 256 points
(Y100 to Y1FF)
Machine control signals
Refer to the following document for details on the PLC development with the MELSEC PLC
development tool.
MELDAS C6/C64 PLC Programming Manual
(Ladder section with MELSEC tool) .................... BNP-B2309
2-1
2. SYSTEM CONFIGURATION
2.1 Relation of RIO Unit and Devices
2.1 Relation of RIO Unit and Devices
The remote I/O units (hereafter RIO unit) connected to the RIO-M or RIO-M/S have different
specifications respectively as shown below. Each unit has a rotary switch for setting the unit No.,
and for establishing a relation with the device No. (X, Y).
Several remote I/O units can be used in combination. Make sure that the total of stations possessed
by the serial link connection (MC link B) is 8 stations or less. Set a unique station No. for each unit
and make sure that these station numbers are not duplicated. There is one station No. setting rotary
switch on the DX10* unit, and two on the DX11*/12*/14* unit.
Set as shown below when connected to the communication terminal (CR05).
Rotary switch No. Device No. read in Output device No.
The No. of points (devices) will differ according to the RIO unit type.
The devices shown here show an example for when the rotary switch for channel No.
setting on the RIO unit is set to 0 and set to 1.
Refer to section "2.1.2 Rotary Switch for Channel No. Setting" for details on the relation of
The No. of points (devices) will differ according to the RIO unit type.
The devices shown here show an example for when the rotary switch for channel No.
setting on the RIO unit is set to 0 and set to 1.
Refer to section "2.1.2 Rotary Switch for Channel No. Setting" for details on the relation of
the rotary switch and device No.
(Note 3)
The A4 and B4 pin analog output (AO, AO*) in the output connector (5) is found only on
the RIO unit DX120/DX121.
2-6
2. SYSTEM CONFIGURATION
2.2 Outline of Digital Signal Input Circuit
2.2 Outline of Digital Signal Input Circuit
There is a sink type digital signal input circuit and source type digital signal input circuit. Either
method can be selected with each unit's card unit.
Input circuit
(Machine side)
0V
0V
0V
DI-L/DI-R ((1)/(8))
2.2kΩ
2.2kΩ
2.2kΩ
2.2kΩ
0V
0V
24VDC(+)
(Machine side)
24VDC(+)
24VDC(+)
24VDC(+)
24VDC(+)
A3,B3
2.2kΩ
COM
Sink type
DI-L/DI-R ((1)/(8))
2.2kΩ
2.2kΩ
2.2kΩ
2.2kΩ
Control
circuit
24VDC(+)
0V
A3,B3
COM
2.2kΩ
Source type
Control
circuit
2-7
2. SYSTEM CONFIGURATION
2.2 Outline of Digital Signal Input Circuit
Input conditions
The input signal must be used within the conditions shown below.
Sink type
Input voltage when external contact is ON 6V or less
Input current when external contact is ON 9mA or more
Input voltage when external contact is OFF 20V or more, 25.2V or less
Input current when external contact is OFF 2mA or less
Tolerable chattering time
Input signal hold time
Input circuit operation delay time
Machine side contact capacity +30V or more, 16mA or more
T1
T2
T3T4
Source type
Input voltage when external contact is ON 18V or more, 25.2V or less
Input current when external contact is ON 9mA or more
Input voltage when external contact is OFF 4V or less
Input current when external contact is OFF 2mA or less
Tolerable chattering time
Input signal hold time
Input circuit operation delay time
Machine side contact capacity +30V or more, 16mA or more
3ms or less
(Refer to T1 in drawing below)
40ms or more
(Refer to T2 in drawing below)
3ms ≤ T3
T1
.
=
.
T4 ≤ 16ms
3ms or less
(Refer to T1 in drawing below)
40ms or more
(Refer to T2 in drawing below)
3ms ≤ T3
.
=
.
T4 ≤ 16ms
T1
T3
T2
T1
T4
(Note)
The input signal hold time 40ms or more is a reference. The input signal will not be
recognized unless the input signal is held for longer than the ladder process cycle time.
2-8
2. SYSTEM CONFIGURATION
A
A
2.3 Outline of Digital Signal Output Circuit
2.3 Outline of Digital Signal Output Circuit
There is a sink type (DX1*0) digital signal output circuit and source type (DX1*1) digital signal
output circuit. Use this circuit within the range shown below.
Output circuit
24VDC(+)
(Machine side)
R
PL
R
DO-L/DO-R ((4)/(9))
Sink type (DX1*0)
Control
circuit
DO-L/DO-R ((4)/(9))
(Machine side)
24VDC(+)
R
Control
circuit
R
PL
Output conditions
Source type (DX1*0)
Insulation method Non-insulating
Rated load voltage +24VDC
Max. output current 60mA/point
Output delay time 40µs
<Caution>
* When using a conductive load such as a relay, always connect a diode (withstand voltage 100V
or more, 100mA or more) parallel to that load.
* When using a capacity load such as a lamp, connect a protective resistance (R=150ohm)
serially to that load to limit the rush current. (Make sure that the current is lower than the
tolerable current including the momentary current.)
CAUTION
When using a conductive load such as relays, always contact a diode in parallel to the load as a
noise measure.
When using a capacity load such as a lamp, always connect a protective resistor serially to the
load to suppress rush currents.
2-9
2. SYSTEM CONFIGURATION
Ω
A0A
A
A
A
2.4 Outline of Analog Signal Output Circuit
2.4 Outline of Analog Signal Output Circuit
The analog signal circuit can be used only with the FCUA-DX120/DX121/DX140/DX141 unit.
Output circuit
R
220
0*
R
DAC
Output conditions
Output voltage 0V to ±10V (±5%)
Resolution 12 bit (±10V x n/4096) (Note)
Load conditions
Output impedance
10kΩ load resistance (standard)
220Ω
(Note)
2.5 Outline of Analog Signal Input Circuit
The analog signal input circuit can be used only for the FCUA-DX140/DX141.
Input circuit
150Ω
I
DC
n = (2
0
~ 211)
I*
Input conditions
Max. input rating
15V
±
Resolution 10V/2000 (5mV)
Precision
Within ±25mV
AD input sampling time14.2ms (AI0)/42.6ms (AI1 to 3)
2-10
2. SYSTEM CONFIGURATION
2.6 Fixed Signals
2.6 Fixed Signals
The connector pin Nos. in the input signals that are fixed are shown below.
The pin No. cannot be changed because the signals are fixed in the controller.
Signal name ConnectorSignal name Connector
Emergency stop X407 Stroke end –1 X408
Reference point return near-point detection 1 X400 Stroke end –2 X409
Reference point return near-point detection 2 X401 Stroke end –3 X40A
Reference point return near-point detection 3 X402 Stroke end –4 X40B
Reference point return near-point detection 4 X403 Stroke end –5 X405
Reference point return near-point detection 5 X404 Stroke end +1 X40C
Sensor signal 1 X418 Stroke end +2 X40D
Sensor signal 2 X419 Stroke end +3 X40E
Sensor signal 3 X41A Stroke end +4 X40F
Sensor signal 4 X41B Stroke end +5 X406
2.6.1 Ignoring Fixed Signals
The fixed signals can be used as other signals by ignoring them with file registers. (Refer to the
following table.)
Note that the emergency stop signal (X407) can not be ignored with the following registers.
The signal is applicable to (+) and (-) motion at the same time (ignored when "ON").
F ED C B A9876543210
1st axis OT ignored
2nd axis OT ignored
14th axis OT ignored
Bit
:
File register (R921)
F ED C B A9876543210
1st near-point ignored
2nd near-point ignored
14th near-point ignored
Bit
:
2-11
2. SYSTEM CONFIGURATION
2.6 Fixed Signals
2.6.2 Changing the Addresses of Fixed Signals
The fixed devices can be allocated arbitrarily with the following parameters.
The parameters #2073 to #2075 are valid when 1 is set in #1226 aux10 bit 5.
When the parameters #2073 to #2075 are valid, do not set the same device number. If the same
device number exists, an emergency stop occurs. However, no device number check is performed
for an axis to which a signal (R920~) that ignores the fixed signal is input.
When the arbitrary allocation is valid, the fixed signals (X400 to X40F) can be used as other signals.
# Items Details Setting range (unit)
1226 aux10
(bit5)
2073 zrn_dog Origin dog
2074 H/W_OT+ H/W OT+
2075 H/W_OT- H/W OT-
Arbitrary
allocation
of dog·OT
signal valid
arbitrary
allocation
device
arbitrary
allocation
device
arbitrary
allocation
device
Specify whether to enable the arbitrary allocation
parameter for the origin dog and H/W OT.
by the parameters #2073 to #2075)
When it is desired to assign the origin dog signal to a
position other than the fixed device, specify the input
device in this parameter.
When it is desired to assign the OT (+) signal to a
position other than the fixed device, specify the input
device in this parameter.
When it is desired to assign the OT (-) signal to a
position other than the fixed device, specify the input
device in this parameter.
0/1
00 to FF (HEX)
00 to FF (HEX)
00 to FF (HEX)
2-12
2.7 Flow of Signals
Controller
2. SYSTEM CONFIGURATION
2.7 Flow of Signals
PLC
Signal in
controller
Machine/machine operation board
Signal in
controller
Input
Output
X**
Y**
D.D.B.
Input/output signal with
controller and machine
(X, Y)
Transfer at head of
main program
Sequence program
High-speed
program
(per 7.1ms)
Main program
(Scan time with
program size)
X**
Y**
Y**
Input/output signal
with machi ne
(X, Y)
X**
Transfer at head of high-speed
processing program
(per 7.1ms)
The devices used by the PLC are shown below.
Device No. of device X, Y, B, W and H are indicated with hexadecimal, the others with decimal.
Device Device range Units Details
X* X0 to XAFF 2816 points1-bit Input signals to the PLC. Machine input, etc.
Y* Y0 to YE7F 3712 points1-bit Output signals from the PLC. Machine output, etc.
M M0 to M8191 8192 points1-bit For temporary memory
L L0 to L255 256 points1-bit Lat ch relay (Backup memory)
F F0 to F127 128 points1-bit For temporar y memory. Alarm m e s s age interface
SB SB0 to SB1FF 512 points1-bit Special relay for links
B B0 to B1FFF 8192 points1-bit Link relay
SM* SM0 to SM127 128 points1-bit Special relay
V V0 to V255 256 points1-bit Edge relay
SW SW0 to SW1FF 512 points16-bit Special register for links
SD SD0 to SD127 128 points16-bit Special register
T0 to T15 16 points1-bit/16-bit10ms unit timer
T16 to T95 80 points1-bit/16-bit100ms unit timer
T96 to T103 8 points1-bit/16-bit100ms incremented timer
T104 to T143 40 points1-bit/16-bit10ms unit timer (Fixed timers)
T144 to T239 96 points1-bit/16-bit100ms unit timer (Fixed timers)
T
T240 to T255 16 points1-bit/16-bit100ms incremented timer (Fixed timers)
T0000 to T0255 256 points1-bit T1: Timer coil
T1000 to T1255 256 points1-bit T0: Timer contact
T2000 to T2255 256 points16-bit TS: Timer setting value
T3000 to T3255 256 points16-bit TA: Timer current value
C0 to C23 24 points1-bit/16-bitCounter
C24 to C127 104 points1-bit/16-bitCounter (Fixed counters)
C0000 to C0127 128 points1-bit C1: Counter coil
C
C1000 to C1127 128 points1-bit C0: Counter contact
C2000 to C2127 128 points16-bit CS: Counter setting value
C3000 to C3127 128 points16-bit CA: Counter current value
D D0 to D8191 8192 points 16-bit/32-bitData register
R* R0 to R8191 8192 points 16-bit/32-bit File register. CNC word I/F
W W0 to W1FFF 8192 points 16-bit/32-bitLink register
Z Z0 to Z13 14 points16-bit Address index
N N0 to N7 Master control's nesting level
P0 to P255
P*
P360 to P379
K-32768 to K32767 Decimal constant for 16-bit command
K
K-2147483647 to
K2147483647
H0 to HFFFF Hexadecimal constant for 16-bit command
H
H0 to HFFFFFFFF Hexadecimal constant for 32-bit command
(Note 1)
(Note 2)
(Note 3)
Device marked with * in the device column have designated applications. Do not use
such devices for other purposes.
The fixed timer and fixed counter can not be changed with the numerical setting. Note
that those can be changed with the numerical setting when D or R device is specified.
D0 to D8191 can be used with the software version D0 and above.
Conditional jump, subroutine call label
Decimal constant for 32-bit command
2-14
2. SYSTEM CONFIGURATION
2.9 File Register General Map
2.9 File Register General Map
R0 System common NC -> PLC R4000
R100 System common PLC -> NC R4100
R200 Part system control NC -> PLC R4200
R300 Max. 7 part systems R4300
R400 R4400
R500 R4500 PLC constant
R600 R4600 Bit select
R700 R4700
R800 R4800
R900 Part system control PLC -> NC R4900
R1000 Max. 7 part systems R5000
R1100 R5100
R1200 R5200
R1300 R5300
R1400 R5400
R1500 R5500
R1600 Axis control NC -> PLC R5600
R1700 Max. 14 axes R5700
R1800 R5800
R1900 R5900
R2000 R6000
R2100 R6100
R2200 R6200
R2300 Axis control PLC -> NC R6300
R2400 Max. 14 axes R6400 M type: Tool life management
R2500 R6500 L type: Tool life management I, II
R2600
R2700
R2800 R6700 R6720
R2900 R6800
R3000 Spindle control NC -> PLC R6900 User area (backup)
R3100 Max. 7 spindles R7000
R3200 Spindle control PLC -> NC R7100
R3300 Max. 7 spindles R7200
R3400 R7300
R3500 MR-J2-CT NC -> PLC (Max. 7 axes) R7400
R3600 MR-J2-CT PLC -> NC (Max. 7 axes) R7500
R3700 (Do not use.) R7600
R3800 R7700
R3900 R7800
2-15
R6600
R7900
R8000
R8100
User area (non-backup)
M type: Tool registration
L type: Tool life management I
L type: Tool life management II
These registers are available in
(Note)
System reserve
(Note)
the 2nd part system or above.
The system reserve area is used
for function expansion by
Mitsubishi, and must not be used
by the user.
3. INPUT/OUTPUT SIGNALS WITH MACHINE
3.1 How to Read Input/Output Signal Table
3. INPUT/OUTPUT SIGNALS WITH MACHINE
3.1 How to Read Input/Output Signal Table
The method of reading the input/output signal table is shown below.
Each card mounted on the RIO unit uses 32 points. Thus, even the 16 point output card has 32 points,
and the head of the next card number will be a serial No. on the assumption that there are 32 points.
Remote I/O connection destination of C64 main unit
Connector Pin. No.
Input Signal Table from Machine
Device AbbreviationSignal name
X0
X1
X2
X3
X4
X5
X6
X7
No.0:Fi rst car d
RIO-M
Connector
Device AbbreviationSignal name
B20
X8
X9
B19
XA
B18
B17
XB
XC
B16
B15
XD
XE
B14
B13
XF
Card No. determined by remote RIO unit rotary switch.
The 0 in No. is the rotary switch No.
The card for which the rotary switch setting is 0 will be
the 1st card.
Interf ace Table
Table 3-1-1
Connector
B12
B11
B10
B09
B08
B07
B06
B05
Device AbbreviationSignal name
X10
X11
X12
X13
X14
X15
X16
X17
Device AbbreviationSignal name
X20
X21
X22
X23
X24
X25
X26
X27
Device AbbreviationSignal name
X30
X31
X32
X33
X34
X35
X36
X37
Connector
Device AbbreviationSignal name
A20
X18
X19
A19
X1A
A18
X1B
A17
A16
X1C
X1D
A15
X1E
A14
X1F
A13
RIO-M No.1:Second card
Connector
Device AbbreviationSignal name
X28
B20
X29
B19
X2A
B18
X2B
B17
X2C
B16
X2D
B15
X2E
B14
X2F
B13
Connector
Device AbbreviationSignal name
X38
A20
X39
A19
X3A
A18
X3B
A17
X3C
A16
X3D
A15
X3E
A14
X3F
A13
Connector
A12
A11
A10
A09
A08
A07
A06
A05
Table 3-1-2
Connector
B12
B11
B10
B09
B08
B07
B06
B05
Connector
A12
A11
A10
A09
A08
A07
A06
A05
(Note 1)
(Note 2)
Signals marked with
are 1 word (16-bit) data.
in the column for the 2nd part system indicate there is no
signal corresponding to the 2nd part system, or the signal for the 1st part system side is
used commonly.
(Note 3)
D0 to D8191 can be used with the software version D0 and above.
3-1
3. INPUT/OUTPUT SIGNALS WITH MACHINE
3.2 Classification of Machine Input/Output Signals
3.2 Classification of Machine Input/Output Signals
The signals handled by the PLC are classified as shown below.
Refer to the following table when making allocations during design.
Signal type
RI
Input
(Analog input)
RIO-M
RIO-M/S
EXT -
DI Table 3-3
AI
Allocation
table
Table 3-1-1 to
3-1-8
Table 3-2-1 to
3-2-8
Table 4-2-1
Explanation
(1) Allocated to device X.
(2) Some connector pin allocations are determined.
1) Stroke end signal (+, -)
2) Reference point return near-point detection signal
(3) The high-speed processing input is set with the parameters.
(Read in at the head of the high-speed processing scan.)
(4) The device used for EXT differs according to the network
type and specifications. Refer to section "6.6 Network related
functions" for details.
(1) The connector pin allocation is determined.
(2) Allocated to the file register (R).
RO
Output
RIO-M
RIO-M/S
EXT -
DO Table 3-6
AO
(Analog
Output)
Table 3-4-1 to
3-4-8
Table 3-5-1 to
3-5-8
Table 4-4-1
(1) Allocated to device Y.
(2) The high-speed processing output is set with the parameters.
(Output at end of the high-speed processing scan.)
(3) The device used for EXT differs according to the network
type and specifications. Refer to section "6.6 Network related
functions" for details.
(1) The connector pin allocation is determined.
(2) Data to be D/A converted and output can be output by
reading it into the file register (R).
(1) This is the operation board remote I/O connection device.
CR05 Table 3-7
Others
(2) Allocated to the file register (R).
3.3 Allocation of Machine Input/Output Signals
The signals are allocated to the devices of machine input/output signals X and Y, and the device
Nos. are determined automatically depending on the connection destinations.
The connection destinations and allocated device Nos. are as below:
Another unit for extension is necessary to use the expansion slot 3 and 4.
This is connected to the communication terminal.
The unused I/O can be used as input/output device of each type network. Furthermore,
the input/output devices of slot with the expansion cards (Ethernet cards, etc.) which do
not need the input/output devices is also unused, and that can be used.