MELSEC iQ-R C Controller Module
User's Manual (Startup)
-R12CCPU-V
SAFETY PRECAUTIONS
WARNING
Indicates that incorrect handling may cause hazardous conditions, resulting in
death or severe injury.
CAUTION
Indicates that incorrect handling may cause hazardous conditions, resulting in
minor or moderate injury or property damage.
(Read these precautions before using this product.)
Before using this product, please read this manual and the relevant manuals carefully, and pay full attention to safety to
handle the product correctly.
In this manual, the safety precautions are classified into two levels: "WARNING" and "CAUTION".
Under some circumstances, failure to observe the precautions given under "CAUTION" may lead to serious
consequences.
Observe the precautions of both levels because they are important for personal and system safety.
Make sure that the end users read this manual and then keep the manual in a safe place for future reference.
[Considerations for using this manual]
● Replace the terms used in the following pages in this manual with the terms shown on the right,
respectively.
Corresponding page: SAFETY PRECAUTIONS, CONDITIONS OF USE FOR THE PRODUCT, and
COMPLIANCE WITH THE EMC AND LOW VOLTAGE DIRECTIVES
(1) "Programmable controller" → "C Controller module"
(2) "Programmable controller system" → "C Controller system"
● For details on a fail-safe circuit for a C Controller module, refer to the following manual.
MELSEC iQ-R C Controller Module User's Manual (Application)
1
[Design Precautions]
WARNING
● Configure safety circuits external to the programmable controller to ensure that the entire system
operates safely even when a fault occurs in the external power supply or the programmable controller.
Failure to do so may result in an accident due to an incorrect output or malfunction.
(1) Emergency stop circuits, protection circuits, and protective interlock circuits for conflicting
operations (such as forward/reverse rotations or upper/lower limit positioning) must be configured
external to the programmable controller.
(2) When the programmable controller detects an abnormal condition, it stops the operation and all
outputs are:
• Turned OFF if the overcurrent or overvoltage protection of the power supply module is
activated.
• Held or turned OFF according to the parameter setting if the self-diagnostic function of the CPU
module detects an error such as a watchdog timer error.
(3) All outputs may be turned on if an error occurs in a part, such as an I/O control part, where the
CPU module cannot detect any error. To ensure safety operation in such a case, provide a safety
mechanism or a fail-safe circuit external to the programmable controller. For a fail-safe circuit
example, refer to "General Safety Requirements" in MELSEC iQ-R Module Configuration Manual.
(4) Outputs may remain ON or OFF due to a failure of a component such as a relay and transistor in
an output circuit. Configure an external circuit for monitoring output signals that could cause a
serious accident.
● In an output circuit, when a load current exceeding the rated current or an overcurrent caused by a
load short-circuit flows for a long time, it may cause smoke and fire. To prevent this, configure an
external safety circuit, such as a fuse.
● Configure a circuit so that the programmable controller is turned on first and then the external power
supply. If the external power supply is turned on first, an accident may occur due to an incorrect output
or malfunction.
● For the operating status of each station after a communication failure, refer to manuals relevant to the
network. Incorrect output or malfunction due to a communication failure may result in an accident.
● When connecting an external device with a CPU module or intelligent function module to modify data
of a running programmable controller, configure an interlock circuit in the program to ensure that the
entire system will always operate safely. For other forms of control (such as program modification,
parameter change, forced output, or operating status change) of a running programmable controller,
read the relevant manuals carefully and ensure that the operation is safe before proceeding. Improper
operation may damage machines or cause accidents.
● Especially, when a remote programmable controller is controlled by an external device, immediate
action cannot be taken if a problem occurs in the programmable controller due to a communication
failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions
to be taken between the external device and CPU module in case of a communication failure.
● Do not write any data to the "system area" and "write-protect area" of the buffer memory in the
module. Also, do not use any "use prohibited" signals as an output signal from the CPU module to
each module. Doing so may cause malfunction of the programmable controller system. For the
"system area", "write-protect area", and the "use prohibited" signals, refer to the user's manual for the
module used.
2
[Design Precautions]
WARNING
● If a communication cable is disconnected, the network may be unstable, resulting in a communication
failure of multiple stations. Configure an interlock circuit in the program to ensure that the entire
system will always operate safely even if communications fail. Incorrect output or malfunction due to a
communication failure may result in an accident.
● To maintain the safety of the programmable controller system against unauthorized access from
external devices via the network, take appropriate measures. To maintain the safety against
unauthorized access via the Internet, take measures such as installing a firewall.
[Precautions for using C Controller modules]
● In the refresh parameter setting, 'Y' cannot be specified for a link output (LY) refresh device or a
remote output (RY) refresh device. Therefore, C Controller module holds the device status as is even
after the module status is changed to STOP.
[Design Precautions]
CAUTION
● Do not install the control lines or communication cables together with the main circuit lines or power
cables. Keep a distance of 100mm or more between them. Failure to do so may result in malfunction
due to noise.
● During control of an inductive load such as a lamp, heater, or solenoid valve, a large current
(approximately ten times greater than normal) may flow when the output is turned OFF and ON.
Therefore, use a module that has a sufficient current rating.
● After the power is turned OFF and ON or the CPU module is reset, the time taken to enter the RUN
status varies depending on the system configuration, parameter settings, and/or program size. Design
circuits so that the entire system will always operate safely, regardless of the time.
● Do not turn the power OFF or reset the CPU module while the settings are being written. Doing so will
make the data in the flash ROM undefined. The values need to be set in the buffer memory and
written to the flash ROM again. Doing so may cause malfunction or failure of the module.
● When changing the operating status of the CPU module from external devices (such as remote RUN/
STOP functions), select "Do Not Open in Program" for "Open Method Setting" in the module
parameters. If "Open in Program" is selected, an execution of remote STOP causes the
communication line to close. Consequently, the CPU module cannot reopen the communication line,
and the external device cannot execute the remote RUN.
3
[Installation Precautions]
WARNING
● Shut off the external power supply (all phases) used in the system before mounting or removing the
module. Failure to do so may result in electric shock or cause the module to fail or malfunction.
[Precautions for using C Controller modules]
● When mounting a C Controller module, make sure to attach the connector cover included in a base
unit to the module connector of the second slot to prevent entrance of foreign material such as dust.
[Installation Precautions]
CAUTION
● Use the programmable controller in an environment that meets general specifications written in Safety
Guidelines included in the base unit. Failure to do so may result in electric shock, fire, malfunction, or
damage to or deterioration of the product.
● To mount a module, place the concave part(s) located at the bottom onto the guide(s) of the base unit,
and push in the module until the hook(s) located at the top snaps into place. Incorrect interconnection
may cause malfunction, failure, or drop of the module.
● Secure the module with screws especially when it is used in an environment where constant
vibrations may occur.
● Tighten the screws within the specified torque range. Undertightening can cause drop of the screw,
short circuit, or malfunction. Overtightening can damage the screw and/or module, resulting in drop,
short circuit, or malfunction.
● When using an extension cable, connect it to the extension cable connector of the base unit securely.
Check the connection for looseness. Poor contact may cause malfunction.
● When using an SD memory card, fully insert it into the memory card slot. Check that it is inserted
completely. Poor contact may cause malfunction.
● Securely insert an extended SRAM cassette into the cassette connector of a CPU module. After
insertion, close the cassette cover and check that the cassette is inserted completely. Poor contact
may cause malfunction.
● Do not directly touch any conductive parts and electronic components of the module, SD memory
card, extended SRAM cassette, or connector. Doing so may cause malfunction or failure of the
module.
[Wiring Precautions]
WARNING
● Shut off the external power supply (all phases) used in the system before installation and wiring.
Failure to do so may result in electric shock or cause the module to fail or malfunction.
● After installation and wiring, attach the included terminal cover to the module before turning it on for
operation. Failure to do so may result in electric shock.
4
[Wiring Precautions]
CAUTION
● Individually ground the FG and LG terminals of the programmable controller with a ground resistance
of 100 ohms or less. Failure to do so may result in electric shock or malfunction.
● Use applicable solderless terminals and tighten them within the specified torque range. If any spade
solderless terminal is used, it may be disconnected when the terminal screw comes loose, resulting in
failure.
● Check the rated voltage and signal layout before wiring to the module, and connect the cables
correctly. Connecting a power supply with a different voltage rating or incorrect wiring may cause fire
or failure.
● Connectors for external devices must be crimped or pressed with the tool specified by the
manufacturer, or must be correctly soldered. Incomplete connections may cause short circuit, fire, or
malfunction.
● Securely connect the connector to the module. Poor contact may cause malfunction.
● Do not install the control lines or communication cables together with the main circuit lines or power
cables. Keep a distance of 100mm or more between them. Failure to do so may result in malfunction
due to noise.
● Place the cables in a duct or clamp them. If not, dangling cable may swing or inadvertently be pulled,
resulting in damage to the module or cables or malfunction due to poor contact. Do not clamp the
extension cables with the jacket stripped. Doing so may change the characteristics of the cables,
resulting in malfunction.
● Check the interface type and correctly connect the cable. Incorrect wiring (connecting the cable to an
incorrect interface) may cause failure of the module and external device.
● Tighten the terminal screws or connector screws within the specified torque range. Undertightening
can cause drop of the screw, short circuit, fire, or malfunction. Overtightening can damage the screw
and/or module, resulting in drop, short circuit, fire, or malfunction.
● When disconnecting the cable from the module, do not pull the cable by the cable part. For the cable
with connector, hold the connector part of the cable. For the cable connected to the terminal block,
loosen the terminal screw. Pulling the cable connected to the module may result in malfunction or
damage to the module or cable.
● Prevent foreign matter such as dust or wire chips from entering the module. Such foreign matter can
cause a fire, failure, or malfunction.
● A protective film is attached to the top of the module to prevent foreign matter, such as wire chips,
from entering the module during wiring. Do not remove the film during wiring. Remove it for heat
dissipation before system operation.
● Programmable controllers must be installed in control panels. Connect the main power supply to the
power supply module in the control panel through a relay terminal block. Wiring and replacement of a
power supply module must be performed by qualified maintenance personnel with knowledge of
protection against electric shock. For wiring, refer to MELSEC iQ-R Module Configuration Manual.
● For Ethernet cables to be used in the system, select the ones that meet the specifications in the user's
manual for the module used. If not, normal data transmission is not guaranteed.
5
[Startup and Maintenance Precautions]
WARNING
● Do not touch any terminal while power is on. Doing so will cause electric shock or malfunction.
● Correctly connect the battery connector. Do not charge, disassemble, heat, short-circuit, solder, or
throw the battery into the fire. Also, do not expose it to liquid or strong shock. Doing so will cause the
battery to produce heat, explode, ignite, or leak, resulting in injury or fire.
● Shut off the external power supply (all phases) used in the system before cleaning the module or
retightening the terminal screws, connector screws, or module fixing screws. Failure to do so may
result in electric shock.
[Startup and Maintenance Precautions]
CAUTION
● When connecting an external device with a CPU module or intelligent function module to modify data
of a running programmable controller, configure an interlock circuit in the program to ensure that the
entire system will always operate safely. For other forms of control (such as program modification,
parameter change, forced output, or operating status change) of a running programmable controller,
read the relevant manuals carefully and ensure that the operation is safe before proceeding. Improper
operation may damage machines or cause accidents.
● Especially, when a remote programmable controller is controlled by an external device, immediate
action cannot be taken if a problem occurs in the programmable controller due to a communication
failure. To prevent this, configure an interlock circuit in the program, and determine corrective actions
to be taken between the external device and CPU module in case of a communication failure.
● Do not disassemble or modify the modules. Doing so may cause failure, malfunction, injury, or a fire.
● Use any radio communication device such as a cellular phone or PHS (Personal Handy-phone
System) more than 25cm away in all directions from the programmable controller. Failure to do so
may cause malfunction.
● Shut off the external power supply (all phases) used in the system before mounting or removing the
module. Failure to do so may cause the module to fail or malfunction.
● Tighten the screws within the specified torque range. Undertightening can cause drop of the
component or wire, short circuit, or malfunction. Overtightening can damage the screw and/or module,
resulting in drop, short circuit, or malfunction.
● After the first use of the product, do not mount/remove the module to/from the base unit, and the
terminal block to/from the module, and do not insert/remove the extended SRAM cassette to/from the
CPU module more than 50 times (IEC 61131-2 compliant) respectively. Exceeding the limit may cause
malfunction.
● After the first use of the product, do not insert/remove the SD memory card to/from the CPU module
more than 500 times. Exceeding the limit may cause malfunction.
● Do not touch the metal terminals on the back side of the SD memory card. Doing so may cause
malfunction or failure of the module.
● Do not touch the integrated circuits on the circuit board of an extended SRAM cassette. Doing so may
cause malfunction or failure of the module.
6
[Startup and Maintenance Precautions]
CAUTION
● Do not drop or apply shock to the battery to be installed in the module. Doing so may damage the
battery, causing the battery fluid to leak inside the battery. If the battery is dropped or any shock is
applied to it, dispose of it without using.
● Startup and maintenance of a control panel must be performed by qualified maintenance personnel
with knowledge of protection against electric shock. Lock the control panel so that only qualified
maintenance personnel can operate it.
● Before handling the module, touch a conducting object such as a grounded metal to discharge the
static electricity from the human body. Failure to do so may cause the module to fail or malfunction.
[Operating Precautions]
CAUTION
● When changing data and operating status, and modifying program of the running programmable
controller from an external device such as a personal computer connected to an intelligent function
module, read relevant manuals carefully and ensure the safety before operation. Incorrect change or
modification may cause system malfunction, damage to the machines, or accidents.
● Do not turn the power OFF or reset the CPU module while the setting values in the buffer memory are
being written to the flash ROM in the module. Doing so will make the data in the flash ROM undefined.
The values need to be set in the buffer memory and written to the flash ROM again. Doing so can
cause malfunction or failure of the module.
[Disposal Precautions]
CAUTION
● When disposing of this product, treat it as industrial waste.
● When disposing of batteries, separate them from other wastes according to the local regulations. For
details on battery regulations in EU member states, refer to MELSEC iQ-R Module Configuration
Manual.
[Transportation Precautions]
CAUTION
● When transporting lithium batteries, follow the transportation regulations. For details on the regulated
models, refer to MELSEC iQ-R Module Configuration Manual.
● The halogens (such as fluorine, chlorine, bromine, and iodine), which are contained in a fumigant
used for disinfection and pest control of wood packaging materials, may cause failure of the product.
Prevent the entry of fumigant residues into the product or consider other methods (such as heat
treatment) instead of fumigation. The disinfection and pest control measures must be applied to
unprocessed raw wood.
7
CONDITIONS OF USE FOR THE PRODUCT
(1) Mitsubishi programmable controller ("the PRODUCT") shall be used in conditions;
i) where any problem, fault or failure occurring in the PRODUCT, if any, shall not lead to any major or serious accident;
and
ii) where the backup and fail-safe function are systematically or automatically provided outside of the PRODUCT for the
case of any problem, fault or failure occurring in the PRODUCT.
(2) The PRODUCT has been designed and manufactured for the purpose of being used in general industries.
MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY (INCLUDING, BUT NOT LIMITED TO ANY AND ALL
RESPONSIBILITY OR LIABILITY BASED ON CONTRACT, WARRANTY, TORT, PRODUCT LIABILITY) FOR ANY
INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE
OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS, PRECAUTIONS, OR
WARNING CONTAINED IN MITSUBISHI'S USER, INSTRUCTION AND/OR SAFETY MANUALS, TECHNICAL
BULLETINS AND GUIDELINES FOR the PRODUCT.
("Prohibited Application")
Prohibited Applications include, but not limited to, the use of the PRODUCT in;
• Nuclear Power Plants and any other power plants operated by Power companies, and/or any other cases in which the
public could be affected if any problem or fault occurs in the PRODUCT.
• Railway companies or Public service purposes, and/or any other cases in which establishment of a special quality
assurance system is required by the Purchaser or End User.
• Aircraft or Aerospace, Medical applications, Train equipment, transport equipment such as Elevator and Escalator,
Incineration and Fuel devices, Vehicles, Manned transportation, Equipment for Recreation and Amusement, and
Safety devices, handling of Nuclear or Hazardous Materials or Chemicals, Mining and Drilling, and/or other
applications where there is a significant risk of injury to the public or property.
Notwithstanding the above, restrictions Mitsubishi may in its sole discretion, authorize use of the PRODUCT in one or
more of the Prohibited Applications, provided that the usage of the PRODUCT is limited only for the specific
applications agreed to by Mitsubishi and provided further that no special quality assurance or fail-safe, redundant or
other safety features which exceed the general specifications of the PRODUCTs are required. For details, please
contact the Mitsubishi representative in your region.
CONSIDERATIONS FOR USE
Considerations for the Wind River Systems product
C Controller module has an embedded real-time operating system, VxWorks, manufactured by Wind River Systems, Inc. in
the United States. We, Mitsubishi, make no warranty for the Wind River Systems product and will not be liable for any
problems and damages caused by the Wind River Systems product during use of C Controller module.
For the problems or specifications of the Wind River Systems product, refer to the corresponding manual or consult Wind
River Systems, Inc.
Contact information is available on the following website.
• Wind River Systems, Inc.: www.windriver.com
8
INTRODUCTION
Thank you for purchasing the Mitsubishi Electric MELSEC iQ-R series programmable controllers.
This manual describes the performance specifications, procedure before operation, wiring, and communication examples to
use the module listed below.
Before using this product, please read this manual and the relevant manuals carefully and develop familiarity with the
performance of the MELSEC iQ-R series programmable controller to handle the product correctly.
When applying the program examples provided in this manual to an actual system, ensure the applicability and confirm that it
will not cause system control problems.
Please make sure that the end users read this manual.
Relevant product
R12CCPU-V
COMPLIANCE WITH THE EMC AND LOW VOLTAGE
DIRECTIVES
Method of ensuring compliance
To ensure that Mitsubishi programmable controllers maintain EMC and Low Voltage Directives when incorporated into other
machinery or equipment, certain measures may be necessary. Please refer to one of the following manuals.
• MELSEC iQ-R Module Configuration Manual
• Safety Guidelines (included in a base unit)
The CE mark on the side of the programmable controller indicates compliance with EMC and Low Voltage Directives.
Additional measures
To ensure that this product meets the requirements of the EMC and Low Voltage Directives, compliance with the noise
immunity standards for Ethernet cable, RS-232 cable, and USB cable is required.
■Ethernet cable
For a twisted pair cable to be connected to the connector of 10BASE-T/100BASE-TX/1000BASE-T, use a shielded twisted
pair cable.
■RS-232 cable
For RS-232 cable, be sure to ground the shield part of a shield cable.
This manual does not include detailed information on the following:
• General specifications
• Available CPU modules and the number of mountable modules
• Available remote head modules and the number of mountable modules
• Installation
For details, refer to the following manual.
MELSEC iQ-R Module Configuration Manual
It should be noted that the terms in the left column shall be replaced with the one in the right column.
Ter mReplaced term
Programmable controllerC Controller module
Programmable controller systemC Controller system
Explains the performance specifications, procedure before
operation, and troubleshooting of a C Controller module.
Explains the functions, devices, and parameters of a C
Controller module.
Explains the programming specifications and dedicated
function library of a C Controller module.
Explains the programming specifications and dedicated
function library for analyzing the data of a C Controller module
and a C intelligent function module.
Explains the system configuration, specifications, functions,
and troubleshooting of CW Workbench/CW-Sim.
Explains the system configuration, parameter settings, and
operation methods for the online function of CW Configurator.
Print book
e-Manual
PDF
Print book
e-Manual
PDF
e-Manual
PDF
e-Manual
PDF
e-Manual
PDF
e-Manual
PDF
e-Manual refers to the Mitsubishi Electric FA electronic book manuals that can be browsed using a dedicated
tool.
e-Manual has the following features:
• Required information can be cross-searched in multiple manuals.
• Other manuals can be accessed from the links in the manual.
• Hardware specifications of each part can be found from the product figures.
• Pages that users often browse can be bookmarked.
12
TERMS
Unless otherwise specified, this manual uses the following terms.
TermDescription
Base unitA generic term for main base units, extension base units, and RQ extension base units.
C Controller moduleA generic term for MELSEC iQ-R series C Controller modules.
C Controller module dedicated functionA dedicated function library offered by a C Controller module.
It is used to control a C Controller module.
C intelligent function moduleA generic term for MELSEC iQ-R series C intelligent function modules.
CPU moduleA generic term for MELSEC iQ-R series CPU modules.
CW ConfiguratorA generic product name for SWnDND-RCCPU. ('n' indicates its version.)
CW WorkbenchAn abbreviation for a C Controller module and C intelligent function module engineering tool, CW Workbench.
CW-SimAn abbreviation for VxWorks simulator that can operate and debug C Controller module programs and C
intelligent function module programs on a personal computer with CW Workbench installed, without connecting
to an actual device (target).
CW-Sim StandaloneAn abbreviation for VxWorks simulator that can operate C Controller module programs and C intelligent function
module programs even on a personal computer without CW Workbench installed.
Data analysis functionA dedicated function library offered by a C Controller module and a C intelligent function module.
It is used for data analysis processing.
Dedicated function libraryA generic term for C Controller module dedicated functions, MELSEC data link functions, data analysis functions,
GOTAn abbreviation for the Mitsubishi Graphic Operation Terminal.
I/O moduleA generic term for input modules, output modules, I/O combined modules, and interrupt modules.
Intelligent function moduleA module which has functions other than input and output, such as an A/D converter module or a D/A converter
MELSEC data link functionA dedicated function library offered by a C Controller module.
Network moduleA generic term for the following modules:
Power supply moduleA generic term for MELSEC iQ-R series power supply modules.
R12CCPU-VAn abbreviation for R12CCPU-V C Controller modules.
Statistical analysis functionA dedicated function library offered by a C Controller module and a C intelligent function module.
Target deviceA personal computer, GOT, or another CPU module to connect for data communication.
USB Mass Storage Class-compliant device A USB device that is compliant with the standard for recognizing as a memory device (USB Mass Storage
VxWorksA product name for the real-time operating system manufactured by Wind River Systems, Inc.
and statistical analysis functions.
module.
It is used to access another CPU module as a connection target via network or in a multiple CPU system.
• CC-Link IE Controller Network module
• CC-Link IE Field Network module
• MELSECNET/H network module
• CC-Link module
It is used for statistical analysis processing.
Class).
13
1PART NAMES
(1)
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
(12)
(13)
(14)
(15)
(16)
(17)
(18)
This chapter shows the part names of a C Controller module.
14
1 PART NAMES
No.NameDescription
(1)READY LEDIndicates an operating mode.
• ON: Normal operation mode
• Flashing: Initializing (including the execution of the script file, "STARTUP.CMD")
• OFF (for normal operation): Hardware failure or resetting
• OFF (for diagnostic mode): Hardware diagnostic mode
(2)ERROR LEDIndicates an error status.
(3)BUS RUN LEDIndicates an operating status.
(4)CARD RDY LEDIndicates the availability of anSD memory card.
(5)USER LEDThe indication can be controlled with a user program.
(6)USB RDY LEDIndicates the availability of a connected USB Mass Storage Class-compliant device.
(7)RS SD/RD LEDIndicates the data sending/receiving status for an RS-232 interface.
(8)Dot matrix LEDIndicates the setting content or results for the operation selection mode or hardware diagnostic mode.
(9)SPEED LEDIndicates the communication speed and the link status for Ethernet.
(10)SD/RD LEDIndicates the data sending/receiving status for Ethernet.
(11)Ethernet portA port for connecting to an Ethernet device.
(12)RS-232 connectorA connector for connecting with an RS-232 supported device.
(13)USB connectorA connector for connecting with a USB-supported device.
(14)Product information markingIndicates the production information (16 digits) of the module.
• OFF : STOP/PAUSE (state where output (Y) from a user program and writing to the buffer memory are
prohibited)
• ON: Accessible (mounted)
• Flashing: Mounting or unmounting an SD memory card
• OFF: Inaccessible (not inserted or unmounted)
• ON: Accessible (mounted)
• Flashing: Mounting or unmounting a device
• OFF: Inaccessible (not installed or unmounted)
• ON: Sending/receiving data
• OFF: Not sending/receiving data
The indication can be controlled with a user program during normal operation.
• ON (orange): Linking-up (1000 Mbps)
• ON (green): Linking-up (100 Mbps)
• OFF: Linking-down or linking-up (10 Mbps)
• ON: Sending/receiving data
• OFF: Not sending/receiving data
A switch to control the hardware operating status.
• RUN: Changes the operating status of the module to RUN. (State where output (Y) from a user program and
writing to the buffer memory are permitted)
• STOP: Changes the operating status of the module to STOP. (State where output (Y) from a user program and
writing to the buffer memory are prohibited)
• RESET: Resets the module.
The switch operation for each operating status is described in the following sections.
For initialization
Page 32 Initialization
For hardware diagnostics
Page 34 Performing Hardware Diagnostics
For operation selection mode
Page 41 Switch Operation
A switch to select a hardware mode.
The switch operation for each operating status is described in the following sections.
For initialization
Page 32 Initialization
For hardware diagnostics
Page 34 Performing Hardware Diagnostics
For operation selection mode
Page 41 Switch Operation
1
1 PART NAMES
15
No.NameDescription
(17)SD memory card slotA slot to insert an SD memory card.
(18)Slot coverA cover of the SD memory card slot and the switches.
Open this cover to insert/remove an SD memory card or to operate the switches.
Close the cover unless inserting/removing an SD memory card or operating the switches to prevent foreign
material intrusion such as dust.
*1 Operate the switches by a fingertip. Using tools such as a screwdriver may cause damage to the switches.
16
1 PART NAMES
2SPECIFICATIONS
This chapter shows the performance specifications of C Controller modules.
ItemR12CCPU-V
HardwareEndian formatLittle endian
MPUARM
Memory
capacity
SoftwareOperating systemVxWorks Version 6.9
Programming languageC language (C/C++)
SD memory card slotInterfaceSD/SDHC memory card (up to 16 GB)
Power supply+3.3 VDC, up to 200 mA
Ethernet portNumber of channels2
Interface1000BASE-T100BASE-TX10BASE-T
Data transmission rate1000 Mbps100 Mbps10 Mbps
Number of cascaded connections
Maximum segment length100 m (length between a hub and a node)
Communication methodFull-duplex/half-duplex
Transmission methodBase band
Applicable connector for external
wiring
Supported functionAuto-negotiation function (automatic recognition of the communication speed/
Complied standardUSB Mass Storage Class (up to 2 TB)
Number of occupied I/O points4096 points
Clock functionDisplayed informationYear, month, day, hour, minute, second, day of week (automatic leap year detection)
PrecisionDaily error : -5.86 to +3.35 seconds (0 to 55 )
Allowable momentary power failure timeAccording to the power supply module
5 VDC internal current consumption1.26 A
External dimensionsHeight106 mm
Width56 mm
Depth110 mm
Work RAM256 MB
ROM16 MB (program memory: 8 MB, data memory: 8 MB)
Backup RAM
Data bit7/8
Parity bit1/None
Stop bit1/2
*1
*2
Cortex-A9 Dual Core
4 MB
Maximum 2 stagesMaximum 4 stages
RJ45
communication method)
Auto-MDI/MDI-X (automatic recognition of a straight/crossing cable)
*3
Daily error: -1.71 to +3.35 seconds (25 )
*4
2
2 SPECIFICATIONS
17
ItemR12CCPU-V
Weight0.35 kg
*1 A file storage area in the device/label memory. For details on the memory configuration, refer to the following manual.
MELSEC iQ-R C Controller Module User's Manual (Application)
*2 It is for a repeater hub.
For a switching hub, consult the manufacturer of the hub used.
*3 Select an appropriate USB Mass Storage Class-compliant device to be connected to observe the current consumption limit.
*4 The current consumption of a USB is not included.
18
2 SPECIFICATIONS
3SYSTEM CONFIGURATION
(1)
(2)
(5)
(4)
(3)
(6)
This chapter shows the overall configuration and considerations for system configuration of a C Controller system.
When configuring a C Controller system, refer to the following manual.
MELSEC iQ-R Module Configuration Manual
3.1Overall Configuration
The overall configuration of a C Controller system is shown below.
3
(1) C Controller module
(2) Programmable controller CPU, process CPU, motion CPU, or C Controller module
(3) Main base unit
(4) Extension cable
(5) Power supply module, I/O module, or intelligent function module
(6) Extension base unit or RQ extension base unit
3 SYSTEM CONFIGURATION
3.1 Overall Configuration
19
3.2Peripheral Configuration
(2)(1)
(3)
(5)
(4)
(6)
(7)
(8)
(9)
The configuration with peripherals is shown below.
(1) Personal computer for maintenance (Telnet function and FTP function)
(2) User program development environment (CW Workbench and CW-Sim)
(3) SNTP server
(4) USB Mass Storage Class-compliant device
(5) SD memory card
(6) Connection via a built-in Ethernet (HMI (GOT), SLMP supported device)
(7) CW Configurator
(8) Various networks via a network module (CC-Link IE Controller Network, CC-Link IE Field Network, MELSECNET/H network, or CC-Link)
(9) Connection via a built-in Ethernet (CC-Link IE Field Network Basic device)
20
3 SYSTEM CONFIGURATION
3.2 Peripheral Configuration
• USB devices can be used for a C Controller module with the firmware version '03' or later.
• Insert or connect peripherals to a C Controller module so that the specifications of both C Controller module
and peripherals are met.
• For information on the access via each Network module and the access using Ethernet communication,
refer to the following manual.
MELSEC iQ-R C Controller Module User's Manual (Application)
Available software
The following software can be used for the system of MELSEC iQ-R C Controller modules. ( The manual of each
software)
Software packageVer sio n
CW ConfiguratorSW1DND-RCCPU-JVersion 1.00A or later
SW1DND-RCCPU-E
CW WorkbenchSW1DND-CWWR-E/EZ/EVZVersion 1.00A or later
CW-SimSW1DND-CWWSIMR-EZVersion 1.00A or later
CW-Sim StandaloneSW1DND-CWWSIMSAR-EVersion 1.00A or later
Wind River WorkbenchVersion 3.3
GX Works3SW1DND-GXW3-JVersion 1.007H or later
SW1DND-GXW3-E
GT Designer3SW1DNC-GTWK3-JVersion 1.126G or later
SW1DNC-GTWK3-E
MT Works2SW1DNC-MTW2-JVersion 1.110Q or later
SW1DNC-MTW2-E
3
3 SYSTEM CONFIGURATION
3.2 Peripheral Configuration
21
SD memory card
Precautions
Only one SD memory card can be inserted in a single C Controller module.
Available memory cards
The following Mitsubishi Electric Corporation's SD memory cards are available.
Model nameDescription
NZ1MEM-2GBSDSD memory card 2 GB
NZ1MEM-4GBSDSD memory card 4 GB
NZ1MEM-8GBSDSD memory card 8 GB
NZ1MEM-16GBSDSD memory card 16 GB
For commercially available SD memory cards, refer to the following document. Before using any commercially available SD
memory card, it is advised to check and ensure that the card has no impact on the control of the system.
TECHNICAL BULLETIN No. FA-A-0023
• Use the format function of CW Configurator to format an SD memory card.
• If any SD memory card other than the one listed above is used, data in the SD memory card may be corrupted or a system
shutdown may occur.
• If the power is turned OFF or a C Controller module is reset, or the SD memory card is removed while the card is being
accessed, data in the SD memory card may be corrupted. Always turn the power OFF or reset a C Controller module, or
remove an SD memory card after the access to the card has been stopped.
22
3 SYSTEM CONFIGURATION
3.2 Peripheral Configuration
4WIRING
This chapter shows the wiring methods to a C Controller module.
The bend radius of the cable near the connector or port should be at least four times longer than the cable's
outside diameter.
4.1Ethernet Ports
This section shows the specification of a usable Ethernet cable and its wiring.
Ethernet cable
The following shows the specifications of the cables that can be used for connection with peripherals by using the Ethernet
ports (CH1 and CH2). Cables compliant with IEEE802.3 10BASE-T/100BASE-TX/1000BASE-T standards can be used.
The specifications of fixing screws are as follows:
• Connector mating screw: #4-40UNC
• Tightening torque range : 0.15 to 0.20 N⋅m
■Considerations for wiring RS-232 cable
The following shows the considerations for wiring RS-232 cable.
• Make sure that RS-232 connection cable shield is single-point grounded.
• Do not short-circuit the FG and SG signals of the RS-232 connection cable. When the FG and SG signals are connected
inside of the peripheral device, do not connect the FG signal to a C Controller module.
• For connection method of peripheral device, check the specifications of the peripheral device.
■Considerations when connecting a target device
The following shows the considerations when connecting a target device.
• A reception error may occur on the target device connected to a C Controller module when the power for the C Controller
module or the target device is turned ON or OFF.
• A reception error occurs on the target device when the system on the target device side is booting while a C Controller
module is transmitting data to the target device.
• When an error occurred on the target device, take corrective actions in accordance with the manual for the target device.
4 WIRING
4.2 RS-232 Interface
25
4.3USB Connector
(1)
(2)
(3)
This section shows the specification of a usable USB cable and its wiring.
USB cable
Use a USB cable supplied with a USB Mass Storage Class-compliant device.
The type of cable connector connectable with the USB connector is type A.
Preventing USB cable from falling out
Connected USB cable can be fixed to the hole for fixing band of the module by using a fixing band (recommended
specification: width: 6 to 9 mm, thickness: 1 mm or less).
1. A through hole for a fixing band (1) is situated on the
bottom of a C Controller module.
2. Pass the fixing band (2) through the hole.
3. Pass the USB cable (3) through the fixing band to fix.
26
4 WIRING
4.3 USB Connector
4.4HMI (GOT)
This section shows the connection method of GOT to a C Controller module.
Connection route
A C Controller module can be connected to GOT by any of the following routes.
• Connection using Ethernet port(s)
• Connection via a network module
Connection using Ethernet port(s)
Connect to GOT by using the Ethernet port(s) (CH1 and CH2).
Connection via a network module
Connection to GOT is available via any of the following network modules.
• CC-Link IE Controller Network
• CC-Link IE Field Network
• CC-Link (via an intelligent device station, G4)
For the connection methods via a network, refer to the manual for the network module used.
4
4 WIRING
4.4 HMI (GOT)
27
5FUNCTION LIST
This chapter shows the functions of C Controller modules.
FunctionDescription
Program monitoring (WDT) functionTo monitor and detect errors on the hardware and user programs using the watchdog timer
Clock functionTo manage the time for the functions performed by the system such as date for the event history
Remote operation functionTo change the operating status of a C Controller module with CW Configurator or user program,
Device access functionTo read/write data from/to devices and buffer memory of the intelligent function module which is
Interrupt function to a C Controller moduleTo perform an interrupt routine by an interrupt request from an input module, an intelligent
Fixed cycle processing functionTo perform refresh with a network module and perform data communication with an external
Inter-module synchronization functionTo perform synchronous control among each module.
Label communication functionTo access other stations by using labels.
Data analysis functionTo perform data analysis processing such as fast Fourier transform, digital filter operation, and
Output mode setting of STOP to RUNTo set the output (Y) mode when the operating status of a C Controller module is switched from
Memory card functionBoot operationTo transfer files stored in an SD memory card to the CPU built-in memory when turning the
Enable/disable the use of file/
data on memory card
RAS functionSelf-diagnostic functionTo diagnose any abnormality by a C Controller module itself.
Error clear functionTo clear continuation errors occurred in a batch.
Event history functionTo collect and save the operation and error information of each module. The saved event
Security functionTo prevent assets stored in a personal computer or a module from being stolen, falsified,
Access function using
network module
Ethernet communication
function
CC-Link IE Field Network Basic functionTo use for CC-Link IE Field Network Basic. (CC-Link IE Field Network Basic Reference
Multiple CPU system
function
Firmware update functionTo update the firmware of a C Controller module.
Cyclic transmissionTo perform data communication periodically between stations on a network using link devices.
Transient transmissionTo perform data communication with other stations when a communication request is issued.
Access function of each
network module
Connection with MELSOFT
product or GOT
Communication with SLMPTo read/write device data from/to a personal computer or HMI using SLMP.
FTP functionTo operate files in a C Controller module from a target device with the FTP client function.
Time setting functionTo set the time on a C Controller module by collecting time information with the specified timing
Telnet functionTo perform remote debugging of a C Controller module with Telnet tool on a personal computer.
Security functionTo apply optimal security according to the network environment by restricting the access to a C
Out-of-group I/O fetchTo access a module which is not controlled by a CPU module to import the input/output (X/Y) or
Operation settingTo set operations for the multiple CPU system function.
Data communication between
CPU modules
Interrupt from another CPUTo restart a user program which is waiting for an interrupt event.
Issuing an interrupt to another
CPU
(WDT), an internal timer of a C Controller module.
function.
or by an external device using SLMP.
controlled by a CPU module or a C Controller module.
function module, or an interrupt module.
device.
calculation of a standard deviation.
STOP to RUN.
power OFF and ON, or resetting the C Controller module.
To set whether to use files/data stored on a memory card or not.
history can be viewed in chronological order.
operated incorrectly, and executed improperly due to unauthorized access from a third party.
Communication with different network can also be performed.
To transmit data to the devices on the network via a Network module controlled by a C
Controller module.
To monitor or test a C Controller module via Ethernet.
from the time information server (SNTP server) connected to LAN.
Controller module for each communication route.
Manual)
access the buffer memory of an intelligent function module.
To perform data communication among CPU modules in a multiple CPU system.
To issue an interrupt to another CPU from the user program of a C Controller module.
(MELSEC iQ-R Module Configuration Manual)
28
5 FUNCTION LIST
MEMO
5
5 FUNCTION LIST
29
6PROCEDURE BEFORE OPERATION
This chapter shows the startup procedure and program execution of a C Controller module.
At the time of the first operation of a C Controller module, check that there is no error on the module using the hardware
diagnostic, then start the system.
Performing hardware diagnostics
1. Mounting a C Controller module
Mount a power supply module and a C Controller module on a base unit. (MELSEC iQ-R Module Configuration Manual)
2. Turning the power of the system ON
Check the wiring and the supply voltage of the power supply before the system is powered ON.
3. Initializing the C Controller module
Initialize the C Controller module. (Page 32 Initialization)
4. Performing hardware diagnostics
Check the hardware status of the C Controller module. (Page 34 Performing Hardware Diagnostics)
Starting the C Controller system
1. Inserting an SD memory card
Insert an SD memory card to the C Controller module as necessary. (Page 39 Inserting and Removing SD Memory Card)
2. Mounting modules and wiring for each device
Mount modules on the base unit, and wire for each device. (MELSEC iQ-R Module Configuration Manual)
3. Turning the power of the system ON
Check the following items, and then turn ON the power supply.
• The wiring and supply voltage of the power supply are in the required range.
• The C Controller module is placed into the STOP state.
4. Creating a project
Create a project for the C Controller module to be used with a personal computer on which CW Configurator has been
installed. (Page 44 Creating a Project)
5. Connecting a personal computer to the C Controller module
Connect the personal computer on which CW Configurator has been installed to the C Controller module. (Page 44
Connecting to Personal Computer)
6. Setting parameters
Set the system parameter, CPU parameter, and module parameter. (Page 45 Setting Parameters)
When using an SD memory card function, or when mounting an intelligent function module, also set parameters other than
the above. ( User's manual (Application) for each module)
7. Writing parameters to the C Controller module
Write the parameters set with CW Configurator to the C Controller module. (Page 47 Writing Parameters to C Controller
Module)
8. Resetting the C Controller system
Reset the system by one of the following methods.
• Turning the power of the system OFF and ON
• Resetting the C Controller module (Page 41 Switch Operation)
30
6 PROCEDURE BEFORE OPERATION
9. Checking errors
Check the READY LED and ERROR LED on the C Controller module. When any error occurred, perform the troubleshooting.
When any errors caused by factors other than the C Controller module occurred, refer to the manual for each module used.
10. Creating a user program
Create a user program
• Create a user program and debug it. (Page 48 Creating User Program)
• Create a script file. (Page 52 Creating Script File)
• Register the user program and the script file to the C Controller module. (Page 54 Registering User Program)
11. Resetting the C Controller system
Reset the system by one of the following methods.
• Turning the power of the system OFF and ON
• Resetting the C Controller module (Page 41 Switch Operation)
12. Executing the program
Change the operating status of the C Controller module to RUN, and check that the BUS RUN LED turns ON. (Page 41
Switch Operation)
6
6 PROCEDURE BEFORE OPERATION
31
6.1Initialization
(1)
(2)
(1)
(3)
(2)
(2)
Initialize a C Controller module in the following cases.
• First operation
• The C Controller module does not start by the execution of the script file registered in the program memory
• The user name/password set to the C Controller module has been forgotten
The data in the program memory, device/label memory, and data memory are deleted during the process of
initialization. Back up all necessary data in advance.
Procedure for initialization
Check that the RESET/STOP/RUN switch is positioned at the center i.e. on the "Stop" position at first.
1. Put and hold the MODE/SELECT switch (1) on the MODE
position.
2. Turn the power of the C Controller module ON. The BUS
RUN LED (2) turns ON, and "M-00" is displayed on the dot
matrix LED.
When the power of the C Controller module is ON,
the ERROR LED may flash and an error code
may be displayed on the dot matrix LED.
(Page 33 Abnormal completion of
initialization process)
3. Release the MODE/SELECT switch (1) and put it back to the
center position.
4. Set the MODE/SELECT switch (1) to the SELECT position.
Every time the switch is set to the SELECT position, the
value of mode displayed on the dot matrix LED is changed.
Repeat this switch movement until "0011" is displayed on the
dot matrix LED.
5. Set the RESET/STOP/RUN switch (3) to the RUN position.
The selected mode is executed. The BUS RUN LED (2) will
be flashing during initialization.
6. Check that the BUS RUN LED (2) turns ON and "0000" is
displayed on the dot matrix LED, then reset the C Controller
module.
(Page 41 RESET/STOP/RUN switch)
32
6 PROCEDURE BEFORE OPERATION
6.1 Initialization
7. The initialization is performed by resetting the module. The
(2)
(4)
(5)
(5)
READY LED (5) will turn ON, and the BUS RUN LED (2) and
USER LED (4) will be flashing during the initialization.
8. Upon normal completion of the initialization, the BUS RUN
LED (2) and USER LED (4) turns OFF, and the READY LED
(5) starts flashing.
9. Reset the C Controller module.
(Page 41 RESET/STOP/RUN switch)
■Mode selection
ModeDot matrix LED displayDescription
100010Default IP setting
110011Module initialization setting
Do not reset the C Controller module during initialization.
Perform the initialization again if the module has been reset in error.
Abnormal completion of initialization process
Upon abnormal completion of the initialization, the ERROR LED will be flashing, and the READY LED and USER LED turn
ON. In the case of abnormal completion, perform the initialization again.
6
■The ERROR LED flashes, and the value other than '0000' is displayed on the dot matrix LED
The ERROR LED flashes, and the value corresponding to the error is displayed.
Dot matrix LEDError nameCauseCorrective action
E100Initialization function
execution error
E101Firmware update function
E102
For an abnormal completion, check the error corresponding to the value displayed on the dot matrix LED, and take the
appropriate corrective action. If the error occurs again, please consult your local Mitsubishi representative.
execution error
The execution of the initialization function failed.Execute the initialization again.
For details on the firmware update function, refer to the following manual.
MELSEC iQ-R Module Configuration Manual
Module status after initialization
After initialization, the status of the C Controller module will be as follows:
■Default IP setting
• The registered script file stops to be executed.
• The IP address for the C Controller module is set to the default. (Page 23 Ethernet Ports)
*1 The script file name is renamed as "STARTUP.BAK", and deregistered.
■Module initialization setting
• Default parameters are set to the data memory.
• The program memory, device/label memory, and data memory are formatted.
• A security password is initialized. (Default password: password)
*1
6 PROCEDURE BEFORE OPERATION
6.1 Initialization
33
6.2Performing Hardware Diagnostics
Diagnose the hardware of a C Controller module.
Hardware diagnostics timing
Use the hardware diagnostics in the following cases.
• First operation
• Troubleshooting
Do not turn the power OFF, or reset the C Controller module during the hardware diagnostics. Doing so may
cause abnormal startup of the C Controller module. If it does not start normally, perform the initialization.
Diagnostics types
The modes of hardware diagnostics are shown below.
ModeDot matrix LEDDiagnostic itemDescription
0M-00Diagnostic test for Mode 1 to Mode 6 To perform diagnostic test in the order from Mode 1 to Mode 6.
1M-01Program memory, data memory
diagnostic test
Device/label memory diagnostic test To write/read test data to/from the device/label memory, and
2M-02Ethernet diagnostic testTo diagnose the Ethernet port (CH1 and CH2) status.
3M-03SD memory card interface diagnostic
test
4M-04RS-232 diagnostic test To perform a self-loopback test for an RS-232 connector. The
5M-05USB diagnostic test To diagnose the USB connector status.
6M-06Bus diagnostic testTo write/read/verify the memory of the internal bus and register.
7M-07Dot matrix LED testTo show the dot matrix LED test display.
To read data in the program memory and data memory, and
perform error detection.
check by verifying the data.
To diagnose the SD memory card slot status.
wiring for self-loopback is required.
34
6 PROCEDURE BEFORE OPERATION
6.2 Performing Hardware Diagnostics
Performing diagnostics
1
2
3
4
5
6
7
8
9
1
CD(DCD)
2
RD(RXD)
3
4
5
6
7
8
9
SD(TXD)
ER(DTR)
SG
DR(DSR)
RS(RTS)
CS(CTS)
CI(RI)
(2)(3)(4)(1)
The following shows the procedure for hardware diagnostics.
Preparation
Perform the following before the hardware diagnostics.
1. Mount the modules.
Mount a power supply module and a C Controller module on a base unit.
The hardware diagnostics can be performed even when a C Controller module is not mounted on the CPU
slot.
To perform the hardware diagnostics with the module mounted on the slot other than the CPU slot, mount
another CPU module on the CPU slot. Although an error may be detected on the mounted CPU module, the
hardware diagnostics can be performed.
2. Check the wiring.
• Check that the power supply cable is wired properly.
• Do not connect any cable other than power supply cable.
3. Make the necessary preparations for each diagnostic.
4. Power ON.
• Check that the power supply voltage is within the range of the specifications.
• Check that the RESET/STOP/RUN switch is put on the STOP position.
6
Preparation required for each diagnostic
Perform the following before starting each mode (0 to 7) of hardware diagnostics.
ModeDescription
0Make all of the preparations required for Mode 1 to 6.
1Back up the data in the program memory, data memory, and device/label memory.
2Check that no cable is connected to the Ethernet port.
3Check that no SD memory card is inserted.
4Connect a cable to the RS-232 connector.
5Check that no cable is connected to the USB connector.
6No preparation required for this mode.
The connector pin arrangement and cable connection are shown below.
(1) Connector
(2) Pin number
(3) Abbreviation of signal code
(4) Cable connection
6 PROCEDURE BEFORE OPERATION
6.2 Performing Hardware Diagnostics
35
Mode selection
The following shows how to select a mode.
1. Set the RESET/STOP/RUN switch to the RESET position, and keep it up to the step 4.
2. Check that all LEDs turned OFF.
3. Set the MODE/SELECT switch to the MODE position, and keep it up to the step 6.
4. Release the RESET/STOP/RUN switch and put it back to the STOP position.
5. The BUS RUN LED turns ON, and "M-00" is displayed on the dot matrix LED.
6. Release the MODE/SELECT switch and put it back to the center position.
7. Set the MODE/SELECT switch to the SELECT position, and select the desired diagnostic mode.
Every time the switch is set to the SELECT position, the value of mode displayed on the dot matrix LED is changed.
Repeat this switch movement until the dot matrix LED displays the desired diagnostic mode.
Mode execution
The following shows how to execute the selected mode.
■Executing Mode 0 to 6
1. Set the RESET/STOP/RUN switch to the RUN position.
• While Mode 0 or 1 is being executed, the BUS RUN LED will be flashing, and the current mode and its progress are
• While Mode 2 to 6 is being executed, the BUS RUN LED will be flashing, and the current mode is displayed on the dot
matrix LED.
2. Check that the BUS RUN LED turns ON.
When the test is completed normally, "0000" is displayed on the dot matrix LED.
3. Turn the power OFF.
Before performing the steps of mode execution, put the RESET/STOP/RUN switch back to the STOP position,
if the switch is in the RUN position.
36
6 PROCEDURE BEFORE OPERATION
6.2 Performing Hardware Diagnostics
Step.1
Step.2
Step.3
Step.4
Step.5
Step.6
Step.8
Step.9
Step.10
Step.11
Step.12
Step.1
Step.7
Step.7
■Executing Mode 7
1. Set the RESET/STOP/RUN switch to the RUN position.
2. Set the MODE/SELECT switch to the SELECT position.
Every time the switch is set to the SELECT position, the lighting status on the dot matrix LED switches.
6
: ON
: OFF
3. Turn the power OFF.
6 PROCEDURE BEFORE OPERATION
6.2 Performing Hardware Diagnostics
37
Check visually that there is no inactive dot exists on the dot matrix LED.
If there is any inactive LED, the C Controller module may have hardware failure. Please consult your local
Mitsubishi representative.
Operation at error detection
The error contents displayed at the time of error detection are shown below.
Dot matrix LED displays other than "0000"
The ERROR LED start flashing and the value corresponding to the diagnostics on which an error occurred will be displayed at
the time of error detection during diagnostics or setting. Only flashing of the ERROR LED without dot matrix LED display
means a system error.
ModeDot matrix LEDDiagnostics on which an error occurred
1E010Program memory, data memory diagnostic test
E020
E030
E040
2E050Ethernet diagnostic test (CH1)
E060Ethernet diagnostic test (CH2)
3E070SD memory card interface diagnostic test
4E080RS-232 diagnostic test
5E090USB diagnostic test
6E0A0Bus diagnostic test
E0B0
E0C0
E0D0
E0E0
Device/label memory diagnostic test
*1
*1 An error may occur if a wiring cable is not connected properly. Connect the cable or wire the cable correctly again, and perform the
diagnostics for Mode 4.
The diagnostics or setting will be terminated at the time of abnormal completion. Retry the diagnostics or
setting. If an error is detected after the abnormal completion, the C Controller module may have its hardware
failure. Please consult your local Mitsubishi representative.
38
6 PROCEDURE BEFORE OPERATION
6.2 Performing Hardware Diagnostics
6.3Inserting and Removing SD Memory Card
Precautions
(2)
(1)
(2)
(3)
(1)
Insert or remove an SD memory card by following the procedure below. Failure to do so may cause data corruption in the SD
memory card.
Change the MODE/SELECT switch operation to "SD UNMOUNT" or "SD/USB UNMOUNT" before removing
the SD memory card. (Page 41 Switch Operation)
How to insert an SD memory card
1. Insert an SD memory card (1) straight into the SD memory card slot
with its cutout pointed down. Make sure it is not uplifted after
inserting it.
2. The CARD RDY LED (2) keeps flashing until the SD memory card is
ready to be used.
3. Once the CARD RDY LED (2) turns ON, the card can be used.
6
How to remove an SD memory card
1. Check that no SD memory card is accessed.
2. Hold the MODE/SELECT switch (1) in the SELECT position to
unmount the SD memory card. The CARD RDY LED (2) is flashing,
which indicates that process of unmounting SD memory card is in
progress, and later upon successful completion, the LED turns OFF.
3. Push the SD memory card (3) in once, and pull it out straight.
An SD memory card can also be unmounted with a user program using the C Controller module dedicated
function (CCPU_UnmountMemoryCard).
Do not perform the following operations while accessing the files in an SD memory card. Doing so may result in data
corruption in the SD memory card or file system error.
• Turning the power of the system OFF
• Turning the power OFF and ON, or resetting the C Controller module
• Unmounting or removing the SD memory card
6 PROCEDURE BEFORE OPERATION
6.3 Inserting and Removing SD Memory Card
39
6.4Connecting and Disconnecting USB Mass Storage
Precautions
(2)
(1)
Class-compliant Device
Connect or disconnect a USB Mass Storage Class-compliant device by following the procedure below. Failure to do so may
cause data corruption in the USB Mass Storage Class-compliant device.
Change the MODE/SELECT switch operation to "USB UNMOUNT" or "SD/USB UNMOUNT" before
disconnecting the USB Mass Storage Class-compliant device. (Page 41 Switch Operation)
How to connect a USB device
1. Connect a connector of USB Mass Storage Class-compliant device
or USB cable to the USB connector (1). Firmly insert the connector
to prevent it from falling out.
(1)
2. The USB RDY LED (2) keeps flashing until the USB Mass Storage
Class-compliant device is ready to be used.
3. Once the USB RDY LED (2) turns ON, the USB Mass Storage Class-
compliant device can be used.
How to disconnect a USB device
1. Check that no USB Mass Storage Class-compliant device is
accessed.
2. Hold the MODE/SELECT switch in the SELECT position to unmount
the USB Mass Storage Class-compliant device. The USB RDY LED
(1) is flashing, which indicates that process of unmounting USB
Mass Storage Class-compliant device is in progress, and later upon
successful completion, the LED turns OFF.
3. Disconnect the USB Mass Storage Class-compliant device or USB
cable that is inserted to the USB connector (2).
(2)
A USB Mass Storage Class-compliant device can also be unmounted with a user program using C Controller
Do not perform the following operations while accessing the files in a USB Mass Storage Class-compliant device. Doing so
may result in data corruption in the USB Mass Storage Class-compliant device or file system error.
• Turning the power of the system OFF
• Turning the power OFF and ON, or resetting the C Controller module
• Unmounting/ejecting the USB Mass Storage Class-compliant device
40
6 PROCEDURE BEFORE OPERATION
6.4 Connecting and Disconnecting USB Mass Storage Class-compliant Device
6.5Switch Operation
(1)
(2)
This section explains the method for changing the operating status of a C Controller module.
RESET/STOP/RUN switch
The operating status of a C Controller module can be changed using the RESET/STOP/RUN switch.
• By setting the switch to the RUN position, the operating status is changed to RUN. (Status where output (Y) from a user
program and writing to the buffer memory are permitted)
• By setting the switch to the STOP position, the operating status is changed to STOP. (Status where output (Y) from a user
program and writing to the buffer memory are prohibited)
• Operating the switch with the following procedure resets a C Controller module.
1. Hold the RESET/STOP/RUN switch (1) in the RESET
position.
2. Check that all LEDs turn OFF after the ERROR LED (2)
flashes several times.
3. Release the RESET/STOP/RUN switch (1) and put it back to
the STOP position.
6
Operate the RESET/STOP/RUN switch by fingertip.
Using tools such as a screwdriver may cause damage on the switch.
6 PROCEDURE BEFORE OPERATION
6.5 Switch Operation
41
MODE/SELECT switch
With the MODE/SELECT switch, the mode can be switched between the operation selection mode and normal operation
mode, and the operation selected in the operation selection mode can be performed.
The 'notification/unmount' and 'information display on the dot matrix LED' can be performed in the operation selection mode.
Make sure that the C Controller module is in normal operation before selecting its operation.
Selecting and performing an operation
The following shows how to select and perform the operation.
1. Hold the MODE/SELECT switch (1) in the MODE position.
(1)
2. The selectable operation is displayed on the dot matrix LED.
(In the operation selection mode, the lighting status of LED
display is reversed.)
3. Release the MODE/SELECT switch (1) and put it back to the
center position.
4. Set the MODE/SELECT switch (1) to the SELECT position.
Every time the switch is set to the SELECT position, the value
of mode displayed on the dot matrix LED is changed. Repeat
this switch movement until the desired operation is displayed
(1)
on the dot matrix LED.
5. Hold the MODE/SELECT switch (1) in the SELECT position.
6. The selected operation is performed.
The mode is switched to the normal operation mode by holding the MODE/SELECT switch in the MODE
position while selecting an operation.
LED display
EVENTNotifies an event to the user program. (Default)Notification/unmount
SD UNMOUNTUnmounts the SD memory card forcibly.
USB UNMOUNTUnmounts the USB Mass Storage Class-compliant device forcibly.
SD/USB
UNMOUNT
USER
ERROR
*5
CH1
*5
CH2
*1
OperationOperation at execution
Unmounts the SD memory card and USB Mass Storage Class-compliant device forcibly.
*3
*4
Displays contents specified by the user on the dot matrix LED. (Default)Information display on the dot
Displays an error code on the dot matrix LED.
Displays IP address of the Ethernet port (CH1) on the dot matrix LED.
Displays IP address of the Ethernet port (CH2) on the dot matrix LED.
matrix LED
*2
42
6 PROCEDURE BEFORE OPERATION
6.5 Switch Operation
*1 The LED display scrolls horizontally (right to left) to display the portion not appeared on dot matrix LED.
*2 The selected operation is registered in the behavior caused when holding the switch in the SELECT position, and can be performed
even in the normal operation mode.
*3 The character string output with the C Controller module dedicated function (CCPU_SetDotMatrixLED) is displayed. In addition, when
this operation is selected again after switched to other operation, the previously shown character string will be displayed.
*4 The latest error is displayed. ("" is displayed when no error occurred.)
*5 When an IP address is not set, "..." is displayed.
■Performing the 'notification/unmount' in the normal operation mode
The last selected operation (out of 'notification/unmount') in the operation selection mode is registered as the operation
performable by holding the switch in the SELECT position. By holding the MODE/SELECT switch in the SELECT position, the
registered operation can be performed even in the normal operation mode.
1. Hold the MODE/SELECT switch (1) in the SELECT position.
2. The operation selected in the operation selection mode is
performed.
(1)
• By setting the MODE/SELECT switch to the SELECT position once during the normal operation, the
operation that is currently selected is displayed on the dot matrix LED display.
• Even while performing the operation among the 'information display on the dot matrix LED', the operation
among the 'notification/unmount' can also be performed.
6
6 PROCEDURE BEFORE OPERATION
6.5 Switch Operation
43
6.6Creating a Project
Ethernet
(1)
(2)
Create a project by starting CW Configurator.
[Project] [New]
Creation procedure
1. Select the C Controller module to be used in the "New"
screen, and click the [OK] button.
6.7Connecting to Personal Computer
This section shows the procedure to have direct connection between a personal computer and a C Controller module.
Connection procedure
1. Connect a personal computer with a C Controller
module using an Ethernet cable.
2. Select [Online] [Current Connection Destination] from
the menu of CW Configurator.
3. In the "Specify Connection Destination" screen, click the
[CPU Module Direct Coupled Setting] button (1).
4. Select the connection method to the C Controller
module, and click the [Yes] button.
5. Click the [Communication Test] button (2) in the "Specify
Connection Destination" screen to check the connection
to the C Controller module is available.
44
6 PROCEDURE BEFORE OPERATION
6.6 Creating a Project
6.8Setting Parameters
Precautions
Set parameters for the system and modules.
CW Configurator is connected to the actual system configuration
Read the actual system configuration to the Module Configuration Diagram of CW Configurator to set parameters.
[Navigation window] [Module Configuration]
1. Open the Module Configuration Diagram, and select
[Online] [Read Module Configuration from PLC].
2. The system parameter has been set automatically, and
the actual system configuration is displayed on the
Module Configuration Diagram.
3. Double-click the CPU module, I/O module, and
intelligent function module shown to display the
parameter editor for the respective modules.
6
4. After setting the parameters, click the [Apply] button.
RQ extension base unit, MELSEC-Q series extension base unit, or modules mounted on these extension base units cannot
be read. For the modules unable to be read, create the module configuration by dragging each module from the Element
Selection window and dropping it on the Module Configuration Diagram.
6 PROCEDURE BEFORE OPERATION
6.8 Setting Parameters
45
CW Configurator is not connected to the actual system configuration
Create the module configuration manually to set parameters.
1. Select a base unit to be used from the Element
Selection window, and drag and drop it onto the Module
Configuration Diagram.
2. Drag respective modules to be used and drop it on the
base unit placed in the diagram.
3. Select [Edit] [Parameter] [Fix] from the menu.
4. Double click the module to display the parameter editor
for the respective modules.
5. After setting the parameters, click the [Apply] button.
Parameter settings from the navigation window
Set the following parameters from the navigation window.
■System parameter
To change the number of slots of a base unit or the number of occupied points for a module as well as to configure the multiple
CPU setting or synchronization setting, the system parameter is set from the navigation window.
(1) Load the "fileA.out" file from "DirA" directory in the program memory.
(2) Load the "fileB.out" file from "DirB" directory in the SD memory card.
(3) Generate the "funcA" function under the default task name (t1). (The "funcA" function is already included in the fileA.out file.)
(4) Generate the "funcB" function under the task name, "taskB". (The "funcB" function is already included in the fileB.out file.)
Up to 12 arguments can be specified for one command. Therefore, in the example of script file description
above, up to seven arguments can be passed to the function entry specified for taskSpawn (example: funcB).
If eight or more arguments are specified, the task will not be activated.
6
6 PROCEDURE BEFORE OPERATION
6.12 Creating Script File
53
6.13Registering User Program
This section shows the procedure to register a user program.
1. Describe the loading destination of the user program which starts at the time of the C Controller module startup to the
script file, "STARTUP.CMD".
2. Write the script file and user program file to the C Controller module.
3. Turn the power OFF and ON, or reset the C Controller module.
• User program files can be stored in any memories that can store files.
• To register by overwriting, close the file before overwriting it. Overwriting with the file opened may fail.
How to write
The following methods are available to write a script file and a user program.
• Writing from a personal computer by using the FTP function
• Writing from an SD memory card by copying with a command in a script file
■When writing files using the FTP function from a personal computer
The following shows the procedure to write files using the FTP function from a personal computer.
1. Create the following files.
File nameDescription
STARTUP.CMDScript file to load a user program
file.out
*1
User program
*1 Specify an arbitrary file name.
•STARTUP.CMD
ld(1,0,"/0/file.out")/*(1)*/
sp(func,0,0,0,0,0,0,0,0,0)/*(2)*/
(1) Load the "file.out" file from root directory in the program memory.
(2) Generate the "func" function under the default task name (t1). (The "func" function is already included in the file.out file.)
2. Turn the power of the C Controller module ON.
3. Connect the C Controller module with the personal computer.
4. Access the C Controller module using the FTP function.
5. Write the script file and user program to the program memory.
6. Turn the power OFF and ON, or reset the C Controller module.
7. Check that the READY LED starts flashing. ("STARTUP.CMD" is executed.)
8. Check that the READY LED turns ON. ("file.out" is executed.)
The default settings of the FTP function are as follows:
• Login name: target
• Password: password
54
6 PROCEDURE BEFORE OPERATION
6.13 Registering User Program
■When writing from an SD memory card by copying with a command in a script file
The following shows the procedure to copy files in an SD memory card by using a command in a script file.
Copy a file in the SD memory card in the following cases.
• When a personal computer and a C Controller module cannot be connected normally
• When writing a same user program in multiple C Controller modules
1. Create files.
File nameDescription
STARTUP.CMDScript file to copy files to the program memory
*1
STARTUP.ROM
*2
file.out
*1 Use any file name other than "STARTUP.CMD".
*2 Use arbitrary file name.
•STARTUP.CMD
copy("/2/file.out","/0/file.out")/*(1)*/
copy("/2/STARTUP.ROM","/0/STARTUP.CMD")/*(2)*/
(1) Copy the user program, "file.out" in the SD memory card to the program memory.
(2) Rename the operational script file, "STARTUP.ROM" in the SD memory card to "STARTUP.CMD", and copy it to the program memory.
• STARTUP.ROM
ld(1,0,"/0/file.out")/*(1)*/
sp(func,0,0,0,0,0,0,0,0,0)/*(2)*/
(1) Load the "file.out" file from root directory in the program memory.
(2) Generate the "func" function under the default task name (t1). (The "func" function is already included in the file.out file.)
Script file to load a user program
User program
6
2. Write the created files to the SD memory card.
3. Insert the SD memory card to a C Controller module.
4. Turn the power OFF and ON, or reset the C Controller module.
5. Check that the READY LED starts flashing. ("STARTUP.CMD" is executed.)
6. Check that the READY LED turns ON. ("STARTUP.CMD" processing is completed.)
7. Turn the power of the C Controller module OFF, and remove the SD memory card.
8. Turn the power of the C Controller module ON.
9. Check that the READY LED starts flashing. (The file name is changed and "STARTUP.CMD" command which is copied
to the program memory is executed.)
10. Check that the READY LED turns ON. ("file.out" is executed.)
6 PROCEDURE BEFORE OPERATION
6.13 Registering User Program
55
6.14Troubleshooting
This section explains the contents, causes, and corrective actions of various error which may occur during the system use.
For module-specific troubleshooting, refer to the manual for respective modules.
In case of error occurrence, saving a user program or device status, etc. will be useful for clarifying the factors
of the error.
CW Configurator Operating Manual
Troubleshooting procedure
1. Check the LED on the power supply module.
(MELSEC iQ-R C Controller Module User's Manual (Application))
2. Check the LED on the C Controller module.
(MELSEC iQ-R C Controller Module User's Manual (Application))
3. Check the LED on each I/O module or intelligent function module. ( User's manual for respective modules
(Application))
4. Connect CW Configurator, and start the system monitor function. The module which causes error can be checked.
(Page 57 System monitor)
5. Select the module causing the error, and start the Module Diagnostic function. The cause and corrective actions can be
checked. (Page 58 Module diagnostics)
6. If the cause cannot be identified by the Module Diagnostic function, check the operation or error logs with CW
Configurator to identify the causes. (Page 59 Event history)
7. If the cause still cannot be identified by the step 1 to 6, perform the troubleshooting by symptom. ( User's manual for
respective modules (Application))
56
6 PROCEDURE BEFORE OPERATION
6.14 Troubleshooting
Checking with CW Configurator
Use CW Configurator to check the errors occurred logs and to identify the cause of the error. Detailed information, cause of
error, and corrective actions can be checked.
CW Configurator has the following functions which support troubleshooting.
FunctionDescription
System monitorTo display the module configuration, detailed information for each module, and an error status
Module diagnosticsTo diagnose the operating status of each module (module information, existence of an error, or error logs, etc.)
Event historyTo display the event information including error occurred on each module, performed operations, and error on the
network
For more details on the functions of CW Configurator, refer to the following manual.
CW Configurator Operating Manual
System monitor
The System Monitor function displays the module configuration, detailed information of each module, and error status.
[Diagnostics] [System Monitor]
6
6 PROCEDURE BEFORE OPERATION
6.14 Troubleshooting
57
Module diagnostics
(1)
(2)
The Module Diagnostic function diagnoses the operating status of each module (module status, existence of an error, or error
logs, etc.).
It displays an error occurred, detailed status, causes, and corrective actions, so information necessary for troubleshooting can
be checked. In addition, the error part on the parameter can be identified by selecting the error and click the [Error Jump]
button.
In the [Module Information List] tab, the current LED information or switch information of the corresponding module can be
checked.
[Diagnostics] [System Monitor] double-click an arbitrary module
■Dot matrix LED information
"DotMatrixLED1" to "DotMatrixLED7" under "LED information" indicates the dot matrix LED display status.
The contents are displayed in hexadecimal notation, and the lower 20 bits of each data are valid.
ItemContent
DotMatrixLED1Lighting bit data of the 1st row from the top
DotMatrixLED2Lighting bit data of the 2nd row from the top
DotMatrixLED3Lighting bit data of the 3rd row from the top
DotMatrixLED4Lighting bit data of the 4th row from the top
DotMatrixLED5Lighting bit data of the 5th row from the top
DotMatrixLED6Lighting bit data of the 6th row from the top
DotMatrixLED7Lighting bit data of the 7th row from the top
• Display example
Dot matrix LED displayLED informationLower 20 bits (Binary)
(1) 1st row
(2) 7th row
DotMatrixLED10002318400100011000110000100
DotMatrixLED200064A4C01100100101001001100
DotMatrixLED30002085400100000100001010100
DotMatrixLED40002109400100001000010010100
DotMatrixLED50002205E00100010000001011110
DotMatrixLED60002424400100100001001000100
DotMatrixLED70002798400100111100110000100
58
6 PROCEDURE BEFORE OPERATION
6.14 Troubleshooting
Event history
The Event History function displays the event information including error occurred on each module, performed operations,
and error on the network. Since the information collected before turning the power OFF or resetting can be saved, it is used to
identify the cause of abnormalities from past operations or error occurrence tendency. The displayed information can be
Use the event history function in the following cases.
• For checking error occurrence status for all modules, and clarifying the causes of malfunction which
occurred on the facilities/equipment
• For checking when and from where a parameter of a user program has been changed
• For checking if any unauthorized access from a third party has been tried
For more details on the function or information collected with the event history function, refer to the following manual.
MELSEC iQ-R C Controller Module User's Manual (Application)
6 PROCEDURE BEFORE OPERATION
6.14 Troubleshooting
59
7MAINTENANCE AND INSPECTION
This chapter shows items that should be maintained or inspected daily or periodically to use a C Controller module properly
and in optimal condition at all times.
7.1Daily Inspection
This section shows items that should be inspected daily.
Create a program in which lamps connected to an output module and the dot matrix LED on the front of the C Controller
module flash.
Program example and control description
When the C Controller module is set to RUN, the output lamps Y10 and Y11 alternately turn ON.
Synchronizing with the output lamps, the dot matrix LED on the front of the C Controller module switches alternately between
"00__" and "__00".
70
8 OPERATION EXAMPLE
8.3 Programming
Source code
/************************************************************************************/
/* Function header */
/************************************************************************************/
#include <vxworks.h> /* VxWorks function header */
#include <taskLib.h> /* VxWorks function header */
#include <stdio.h> /* Standard function header */
#include <string.h> /* Standard function header */
#include "CCPUFunc.h" /* C Controller module dedicated function header */
/************************************************************************************/
/* Definition */
/************************************************************************************/
/* For debugging */
#define UNIT_XY 0x0010 /* Start I/O number of the module */
#define RY_LED 0x5555 /* Initial output value of Y signals (even bit: on) */
#define LED_0 0x30 /* Initial output value on the dot matrix LED (LED1,2) */
#define LED_SPACE 0x20 /* Initial output value on the dot matrix LED (LED3,4) */
/************************************************************************************/
/* Processing to output Y signals and to control dot matrix LED */
/************************************************************************************/
void R12_SampleTask()
{
/* Declare local variables. */
short sRet; /* Return value of the C Controller module dedicated function */unsigned short usDataBuf; /* For accessing Y signals */unsigned short usEmptyDataBuf; /* For resetting Y signals */char pcdata[4]; /* Value on the dot matrix LED */short i; /* For loop */
/* Set the output value of Y signals (turn on the even bit). */
usDataBuf = RY_LED;
/* Set the output value of the dot matrix LED (LED1,2: on). */