Download  Print this page

Mitsubishi Electric MELSEC iQ-R Series User Manual

Controller module.
Hide thumbs

Advertisement

MELSEC iQ-R C Controller Module
User's Manual (Startup)
-R12CCPU-V

Advertisement

Table of Contents

   Summary of Contents for Mitsubishi Electric MELSEC iQ-R Series

  • Page 1 MELSEC iQ-R C Controller Module User's Manual (Startup) -R12CCPU-V...
  • Page 3: Safety Precautions

    SAFETY PRECAUTIONS (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"...
  • Page 4 [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.
  • Page 5 [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.
  • Page 6 [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] ●...
  • Page 7 [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.
  • Page 8 [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.
  • Page 9 [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.
  • Page 10: Conditions Of Use For The Product

    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; 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.
  • Page 11: Introduction

    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.
  • Page 12: Table Of Contents

    CONTENTS SAFETY PRECAUTIONS ..............1 CONDITIONS OF USE FOR THE PRODUCT .
  • Page 13 Programming procedure ..............48 6.11 Checking VxWorks Image File .
  • Page 14: Relevant Manuals

    C Controller module Programmable controller system C Controller system 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.
  • Page 15: Terms

    A dedicated function library offered by a C Controller module. It is used to control a C Controller module. C intelligent function module A generic term for MELSEC iQ-R series C intelligent function modules. CPU module A generic term for MELSEC iQ-R series CPU modules.
  • Page 16: Chapter 1 Part Names

    PART NAMES This chapter shows the part names of a C Controller module. (15) (12) (16) (17) (10) (13) (11) (14) (18) 1 PART NAMES...
  • Page 17 Name Description READY LED Indicates 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 ERROR LED Indicates an error status.
  • Page 18 Name Description (17) SD memory card slot A slot to insert an SD memory card. (18) Slot cover A 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.
  • Page 19: Chapter 2 Specifications

    SPECIFICATIONS This chapter shows the performance specifications of C Controller modules. Item R12CCPU-V Hardware Endian format Little endian  Cortex-A9 Dual Core Memory Work RAM 256 MB capacity 16 MB (program memory: 8 MB, data memory: 8 MB) Backup RAM 4 MB Software Operating system...
  • Page 20 Item R12CCPU-V Weight 0.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.
  • Page 21: Chapter 3 System Configuration

    SYSTEM CONFIGURATION 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 Overall Configuration The overall configuration of a C Controller system is shown below. (1) C Controller module (2) Programmable controller CPU, process CPU, motion CPU, or C Controller module (3) Main base unit...
  • Page 22: Peripheral Configuration

    Peripheral Configuration 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)
  • Page 23: Available Software

    • 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. •...
  • Page 24: Sd Memory Card

    SD memory card 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 name Description NZ1MEM-2GBSD SD memory card 2 GB NZ1MEM-4GBSD...
  • Page 25: Chapter 4 Wiring

    WIRING 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. Ethernet 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).
  • Page 26 IP address setting To use the Ethernet port(s), set the IP address with CW Configurator. [Navigation window]  [Parameter]  [(CPU module)] [Module Parameter]  [Basic Settings]  [Own Node Settings]  [IP Address] The default value is set to the IP address for the C Controller module before shipment and after initialization. Ethernet port Default IP address Ethernet port (CH1)
  • Page 27: Interface

    RS-232 Interface This section shows the specification of an RS-232 interface and its wiring. RS-232 connector The RS-232 interface specifications to connect to a target device are shown below. Connector shape Pin No. Signal Signal name Signal direction (R12CCPU-V ⇔ RS-232 device) code CD(DCD) Data carrier detect...
  • Page 28: Usb Connector

    USB Connector 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).
  • Page 29: Hmi (got)

    HMI (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).
  • Page 30: Chapter 5 Function List

    FUNCTION LIST This chapter shows the functions of C Controller modules. Function Description Program monitoring (WDT) function To monitor and detect errors on the hardware and user programs using the watchdog timer (WDT), an internal timer of a C Controller module. Clock function To manage the time for the functions performed by the system such as date for the event history function.
  • Page 31 MEMO 5 FUNCTION LIST...
  • Page 32: Chapter 6 Procedure Before Operation

    PROCEDURE 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.
  • Page 33 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. Creating a user program Create a user program •...
  • Page 34: Initialization

    Initialization 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.
  • Page 35 The initialization is performed by resetting the module. The READY LED (5) will turn ON, and the BUS RUN LED (2) and USER LED (4) will be flashing during the initialization. Upon normal completion of the initialization, the BUS RUN LED (2) and USER LED (4) turns OFF, and the READY LED (5) starts flashing.
  • Page 36: Performing Hardware Diagnostics

    Performing 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.
  • Page 37: Performing Diagnostics

    Performing diagnostics The following shows the procedure for hardware diagnostics. Preparation Perform the following before the hardware diagnostics. 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.
  • Page 38 Mode selection The following shows how to select a mode. Set the RESET/STOP/RUN switch to the RESET position, and keep it up to the step 4. Check that all LEDs turned OFF. Set the MODE/SELECT switch to the MODE position, and keep it up to the step 6. Release the RESET/STOP/RUN switch and put it back to the STOP position.
  • Page 39 ■Executing Mode 7 Set the RESET/STOP/RUN switch to the RUN position. 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. Step.1 Step.7 Step.2 Step.8 Step.3...
  • Page 40: Operation At Error Detection

    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"...
  • Page 41: Inserting And Removing Sd Memory Card

    Inserting and Removing SD Memory Card 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 42: Connecting And Disconnecting Usb Mass Storage Class-compliant Device

    Connecting and Disconnecting USB Mass Storage 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 43: Switch Operation

    Switch Operation 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) •...
  • Page 44: Mode/select Switch

    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.
  • Page 45 *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.
  • Page 46: Creating A Project

    Creating a Project Create a project by starting CW Configurator. [Project]  [New] Creation procedure Select the C Controller module to be used in the "New" screen, and click the [OK] button. Connecting to Personal Computer This section shows the procedure to have direct connection between a personal computer and a C Controller module. Connection procedure Connect a personal computer with a C Controller module using an Ethernet cable.
  • Page 47: Setting Parameters

    Setting Parameters 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] Open the Module Configuration Diagram, and select [Online] ...
  • Page 48 CW Configurator is not connected to the actual system configuration Create the module configuration manually to set parameters. Select a base unit to be used from the Element Selection window, and drag and drop it onto the Module Configuration Diagram. Drag respective modules to be used and drop it on the base unit placed in the diagram.
  • Page 49: Writing Parameters To C Controller Module

    Writing Parameters to C Controller Module Write parameters to a C Controller module. [Online]  [Write to PLC] Operating procedure Select "System Parameter/CPU Parameter" and "Module Parameter". Click the [Execute] button. After writing to a C Controller module is completed, click the [Close] button.
  • Page 50: Creating User Program

    6.10 Creating User Program Create a user program by using VxWorks standard API functions and functions offered by a C Controller module in accordance with the specification of VxWorks. For programming method of VxWorks standard API functions, refer to the manual for VxWorks of the following version. •...
  • Page 51 ■User program execution Execute a user program by starting a task from the script file. The system may malfunction if the user program is executed without the task being started. ■Startup of a task performing floating-point operations Always specify the VX_FP_TASK option for the third argument of taskSpawn when activating the following tasks. •...
  • Page 52 ■Settings of IP address Set the IP address of a C Controller module using an engineering tool. If it is set with a user program, the network may be no longer functional properly. ■Access to USB Mass Storage Class-compliant device To create a user program accessing a USB Mass Storage Class-compliant device, implement processing to check if accessing to the USB Mass Storage Class-compliant device is allowed and to retry.
  • Page 53: Checking Vxworks Image File

    6.11 Checking VxWorks Image File Before debugging a user program, check that the VxWorks image file version in the personal computer and a C Controller module is the same. Specifying a different version of VxWorks image file prevents normal debugging. (1) VxWorks image file (2) Same version Checking method...
  • Page 54: Creating Script File

    6.12 Creating Script File A script file, "STARTUP.CMD" is a file to describe the loading destination of a user program which starts at the time of a C Controller module startup and the starting order of tasks. Considerations for creating a script file ■Starting a user program Describe a command so that a user program is executed by activating the task *1 Priority: 100 to 255...
  • Page 55 Example of script file description The following shows an example to load a user program in the program memory and SD memory card using a script file in the program memory. ■Storage file Memory File storage File name Description destination path Program memory STARTUP.CM Script file to load a user program...
  • Page 56: Registering User Program

    6.13 Registering User Program This section shows the procedure to register a user program. 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". Write the script file and user program file to the C Controller module. Turn the power OFF and ON, or reset the C Controller module.
  • Page 57 ■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. •...
  • Page 58: Troubleshooting

    6.14 Troubleshooting 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.
  • Page 59: Checking With Cw Configurator

    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. Function Description System monitor...
  • Page 60 Module diagnostics 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.
  • Page 61 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.
  • Page 62: Chapter 7 Maintenance And Inspection

    MAINTENANCE 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. Daily Inspection This section shows items that should be inspected daily. Item Inspection item Inspection method...
  • Page 63: Periodic Inspection

    Periodic Inspection This section shows items that should be inspected once or twice every six months to a year. Also, check this items when the equipment has been relocated or modified, or wiring layout has been changed. Item Inspection item Inspection method Acceptance criteria Corrective action...
  • Page 64: Chapter 8 Operation Example

    OPERATION EXAMPLE This chapter shows the operation example of a C controller module. The operation example in this chapter explains the settings in Windows 7. System configuration example The following system configuration is used in the operation example. Name Model name Description Base unit R35B...
  • Page 65: Setting The Module

    Setting the Module Initializing the C Controller module A C Controller module is required to be initialized before the first operation. For the method for initializing a module, refer to the following section. Page 32 Initialization Setting parameters Set parameters for the C Controller module. Connecting the C Controller module to the personal computer Connect the personal computer (1) to the CH1 on the C Controller module (2) using an Ethernet cable.
  • Page 66 Establishing communication with the C Controller module Operating procedure Select [Online]  [Current Connection Destination] from the menu of CW Configurator. Click the [CPU Module Direct Coupled Setting] button in the "Specify Connection Destination" screen. Select "Ethernet", and click the [Yes] button. 8 OPERATION EXAMPLE 8.2 Setting the Module...
  • Page 67 Click the [Connection Test] button, and check that the message "Successfully connected with the R12CCPU-V." appears. 8 OPERATION EXAMPLE 8.2 Setting the Module...
  • Page 68 Setting parameters Set parameters for the system and modules. Operating procedure Double-click "Module Configuration" in the "Navigation" window to open, and select [Online]  [Read Module Configuration from PLC]. When the following message appears, click the [Yes] button. Click the [OK] button when the following message appears after reading is completed. 8 OPERATION EXAMPLE 8.2 Setting the Module...
  • Page 69 The system parameters are automatically set, and the actual system configuration is displayed in the "Module Configuration" window. 8 OPERATION EXAMPLE 8.2 Setting the Module...
  • Page 70 Writing parameters to the C Controller module Write the parameters to the C Controller module using CW Configurator. Operating procedure Select [Online]  [Write to PLC]. Click the [Yes] button. Check that the "Online Data Operation" screen appears. 8 OPERATION EXAMPLE 8.2 Setting the Module...
  • Page 71 Select "System Parameter/CPU Parameter" and "Module Parameter", and click the [Execute] button. Click the [Yes to all] button. Writing the parameters starts. Click the [Close] button when writing to the C Controller module is completed. 8 OPERATION EXAMPLE 8.2 Setting the Module...
  • Page 72: Programming

    Programming 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__"...
  • Page 73 Source code The following describes source codes. /************************************************************************************/ /* 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"...
  • Page 74 /* Dot matrix LED control */ sRet = CCPU_SetDotMatrixLED(DISPMODE_ASCII, &pcdata[0]); if(sRet != 0){ printf("ERROR : CCPU_SetDotMatrixLED_1 [%d(%04hxH)]\n", sRet, sRet); return; /* Invert the output value of Y signals (turn on the bits in order of odd bit -> even bit -> ...). */ usDataBuf = ~usDataBuf;...
  • Page 75: Creating A Project

    Creating a project Starting CW Workbench Operating procedure Select [Start]  [All Programs]  [Wind River]  [CW Workbench 3.3]  [CW Workbench 3.3]. After CW Workbench is started, enter the save destination folder for a project. In this procedure, enter 'C:\WindRiver\workspace'. Click the [OK] button.
  • Page 76 Creating a new project Operating procedure Select [File]  [New]  [Wind River Workbench Project]. Select "Wind River VxWorks 6.9", and click the [Next] button. Select "Downloadable Kernel Module", and click the [Next] button. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 77 Enter a project name, and click the [Finish] button. (Project name: 'R12_SampleProject' in this chapter) 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 78 Setting properties of the project Configure the settings to convert (build) the created project into a module that can be executed on the C Controller module. Build: An operation that compiles source codes according to a processor and links the code to the include file. ■Setting a processor Operating procedure Select the created project in the "Project Explorer"...
  • Page 79 Select the [Build Support and Specs] tab. Select only the checkbox of "ARMARCH7gnu_SMP" in "Available and enabled build specs". 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 80 Select the checkbox of "Debug mode". For the actual system operation, unselect the checkbox of "Debug mode". Select the [Tools] tab, enter "-mlong-calls" in the field next to the [Tool Flags] button. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 81 Enter "-fsigned-char" in the fields next to the [Debug mode] button and [Non Debug mode] button under "Debug mode flags". ■Setting an include file Operating procedure Select the [Paths] tab, and click the [Add] button. Click the [Browse] button. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 82 Select the include folder for the C Controller module in the "Select directory" screen, and click the [OK] button. In this procedure, the include file is stored in "C:\MELSEC\R12CCPU-V". Check that the selected folder is specified in the "Add include search path to selected build spec" screen, and click the [OK] button.
  • Page 83 Add the include file to the include folder added in step 1 to 5. To acquire an include file stored in the C Controller module, start Explorer and enter the following address in the address bar. ftp://192.168.3.3/SYSTEMROM/INCLUDE/ The "Log On As" screen appears. Enter the following user name and password in the "Log On As"...
  • Page 84: Preparing A User Program

    A sample program for the quick start guide is used in this operation example. For information on how to obtain sample programs for the quick start guide, please contact your local Mitsubishi Electric sales office or representative. Adding a sample program Operating procedure Store a sample program immediately under the created project folder.
  • Page 85 The sample program stored in step 1 is added to the project. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 86 Generating an execution module from the user program Convert (build) the created program into a module that can be executed on the C Controller module. Operating procedure Select and right-click the created project in the "Project Explorer" window, and click [Rebuild Project]. If the following message appears after selecting [Rebuild Project], click the [Continue] button.
  • Page 87 Connecting the C Controller module with CW Workbench Connect the user Ethernet port CH1 of the C Controller module with CW Workbench to perform debugging in CW Workbench. Operating procedure To acquire a VxWorks image file from the C Controller module, start Explorer and enter the following address in the address bar.
  • Page 88 Click in the "Remote Systems" window. The "New Connection" screen appears. Select "Wind River VxWorks 6.x Target Server Connection" in the "New Connection" screen. Click the [Next] button. Set the following items in "Backend settings". • Processor : ARM9 (Click the [Select] button and select the processor.) •...
  • Page 89 Select "File" in "Kernel image". Click the [Browse] button. The "Open File" screen appears. Select the VxWorks image file copied to the "C:\MELSEC\R12CCPU-V\CCPUTool" folder in step 4, and click the [Open] button. Click the [Finish] button. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 90 The connection is completed when "Connected - Target server running" is displayed at the bottom of the "Remote Systems" window. If "Connected - Target server running" is not displayed, check that the C Controller module is normally powered ON, and perform the operation again from 'Page 85 Connecting the C Controller module with CW Workbench'.
  • Page 91 Debugging the user program Check if the created program runs properly. ■Downloading the user program on the C Controller module To debug the user program, download the execution module on the memory in the C Controller module. By downloading a user program, the program can be executed with no script file. Script file: A file to describe a loading location of a user program that starts at the start of a C Controller module and a startup order of the user program.
  • Page 92 The "Launch Configuration Selection" screen appears on and after the second operation of the step 2. Select "Launch the selected launch configuration", and click the [OK] button. ■Debugging the user program Operating procedure Select the created project in the "Project Explorer" window, and click the [] button on the right side of on the toolbar.
  • Page 93 Select a target server indicating connection to the C Controller module. Click the [Browse] button. The "Entry Points" screen appears. Select the function "R12_SampleTask" that starts debugging, and click the [OK] button. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 94 Check that the function name selected in step 6 is set for "Entry Point", and click the [Debug] button. Debugging starts. Program execution stops at the start of the function specified for "Entry Point". Click in the "Debug" window to debug a program by one step. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 95 Variable values can be checked and changed in the "Variables" window on the bottom right of the screen. Check that 'sRet', return value of the CCPU function, is '0' (normal value) in this step. (a) Run the programs to the line indicated with the red arrow '→' by the step execution in step 9. (b) Check that the value of sRet is '0' (normal value) in the [Variables] tab.
  • Page 96 ■Debugging using breakpoint As well as debugging in units of one step described in step 9 , debugging using a breakpoint is available. Operating procedure Double-click the left edge of the source file window and insert a breakpoint. Click The program runs to the position where the breakpoint is specified. 8 OPERATION EXAMPLE 8.3 Programming...
  • Page 97 The descriptions of icons are as follows: • : Step Into Steps into the called function and stops at the first line of the function. • : Step Over Executes the current line of the function and then stops at the next line of the function. •...
  • Page 98 Registering the execution module Build the created program for operation, and store the program on the C Controller module. ■Building the user program Operating procedure Select the created project in the "Project Explorer" window, and select [Project]  [Properties]. Select "Build Properties" from the tree to the left in the screen, unselect the "Debug mode" checkbox, and click the [OK] button.
  • Page 99 ■Storing the user program Operating procedure Start Explorer, and enter the following address in the address bar. ftp://192.168.3.3/0 After login to the C Controller module, the address is displayed as follows. Copy the created user program "R12_SampleProject.out" to the program memory '0' in the C Controller module by a drag and drop operation.
  • Page 100 ■Creating and storing a script file Create a script file that automatically downloads the execution module at the start of the C Controller module. Operating procedure Open a text file and describe a script file that downloads a user program and generates a task, as shown below. (1) The "R12_SampleProject.out"...
  • Page 101: Checking Operations

    Checking Operations Run the program registered in the C Controller module to check its operations. The status of the C Controller module can be changed by the RESET/STOP/RUN switch on the front of the module. Change the status of the RESET/STOP/RUN switch as follows, depending on the purpose. •...
  • Page 102: Checking Operations With The Dot Matrix Led And Lamps

    Checking operations with the dot matrix LED and lamps The dot matrix LED on the front of the C Controller module and output lamps operate as follows: The display of the dot matrix LED on the front of the C Controller module switches alternately ten times. Synchronizing with the dot matrix LED, the output lamps Y10 and Y11 alternately turn ON.
  • Page 103: Appendix

    APPENDIX Appendix 1 External Dimensions The following figure shows the external dimensions of a C Controller module. (Unit: mm) APPX Appendix 1 External Dimensions...
  • Page 104: Appendix 2 How To Use Melsec-q Series Modules

    Appendix 2 How to Use MELSEC-Q Series Modules This section explains how to use MELSEC-Q series modules. Window change in CW Configurator Setting items in Setting/monitoring tools for the C Controller module used for MELSEC-Q series are changed to the following windows in CW Configurator.
  • Page 105 ■"Switch Setting" and "Error Time Output Mode" in "I/O assignment setting" , and intelligent function module parameters Setting/monitoring tools for the C Controller module CW Configurator [Navigation window]  [CCPU Parameter]  [I/O [Navigation window]  [Parameter]  [Module assignment settings] tab  [Switch Setting] Information] ...
  • Page 106 ■Interrupt pointer setting In CW Configurator, the setting for interrupt pointer is changed as follows. • Setting the SI No. for an interrupt module is not required. • "Interrupt pointer" of an interrupt module must be sequential numbers. (Set I51 to No.2 and I52 to No.3 when No.1 is set to I50, for example.) Setting/monitoring tools for the C Controller module CW Configurator...
  • Page 107: Setting Procedure

    Setting procedure The setting procedure for a MELSEC-Q series module in CW Configurator is shown below. Create a module configuration in accordance with the actual configuration by dragging each MELSEC-Q series module from the Element Selection window and dropping it onto the Module Configuration Diagram. Set the parameters of each module.
  • Page 108: Considerations

    Considerations The modules requiring particular attentions are shown below. For details, refer to the manual for the module used. I/O module ■High-speed input module • When the module is used as a high-speed input module, select the following model in accordance with the ON/OFF of a noise filter.
  • Page 109 FL-net interface module • Select the following module name displayed on the Module Configuration Diagram. Module name Model name displayed on CW Configurator QJ71FL71 QJ71FL71(-T -B5)(-F01) QJ71FL71-F01 QJ71FL71-B5 QJ71FL71-B5-F01 QJ71FL71-T QJ71FL71-T-F01 QJ71FL71-B2 QJ71FL71-B2(-F01) QJ71FL71-B2-F01 • Select "Online" for "Operation Mode Setting" under "Switch Setting" in the "Module Parameter" screen. •...
  • Page 110: Appendix 3 Handling Of Batteries

    Appendix 3 Handling of Batteries The battery used for C Controller modules is shown below. Supplied status Classification for transportation Lithium battery built into the device Non-hazardous material Precautions The buttery replacement shall be charged. Please consult your local Mitsubishi representative. Transport guidelines When transporting lithium-containing butteries, they should be handled in accordance with the transportation regulations.
  • Page 111 Remove five board fixing screws (M2) from the board. Detach the printed circuit board from one another. Cut off the  (lead) portion of the battery, which is attached on the surface of the printed circuit board with RS-232 connector, using a tool such as nippers, and remove the battery.
  • Page 112: Appendix 4 Enabling Parameters

    (2) Turns the device (Y9) of the module ON. (3) Turns the device (Y9) of the module OFF. Corresponding device list The following tables show the devices corresponding to an initialization instruction to an intelligent function module. MELSEC iQ-R series Product name Model name Device...
  • Page 113 MELSEC-Q series Product name Model name Device Signal name Analog-digital converter module Q64AD Operating condition setting request Q68ADV Q68ADI Channel isolated high resolution analog-digital Q64AD-GH Operating condition setting request converter module Channel isolated high resolution analog-digital Q62AD-DGH Operating condition setting request converter module (with signal conditioning function) Channel isolated analog-digital converter module...
  • Page 114: Index

    INDEX ......15 ..... 15,22 BUS RUN LED SD memory card .
  • Page 115 MEMO...
  • Page 116: Revisions

    Japanese manual number: SH-081366-K This manual confers no industrial property rights of any other kind, nor does it confer any patent licenses. Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual.
  • Page 117: Warranty

    WARRANTY Please confirm the following product warranty details before using this product. 1. Gratis Warranty Term and Gratis Warranty Range If any faults or defects (hereinafter "Failure") found to be the responsibility of Mitsubishi occurs during use of the product within the gratis warranty term, the product shall be repaired at no cost via the sales representative or Mitsubishi Service Company.
  • Page 118: Trademarks

    TRADEMARKS ARM is a registered trademark of ARM Limited (or its subsidiaries) in the EU and other countries. The SD and SDHC logos are trademarks of SD-3C, LLC. VxWorks and Wind River are either registered trademarks or trademarks of Wind River Systems, Inc. The company names, system names and product names mentioned in this manual are either registered trademarks or trademarks of their respective companies.
  • Page 120 SH(NA)-081367ENG-K(1812)KWIX MODEL: R-CCPU-U-IN-E MODEL CODE: 13JX11 HEAD OFFICE : TOKYO BUILDING, 2-7-3 MARUNOUCHI, CHIYODA-KU, TOKYO 100-8310, JAPAN NAGOYA WORKS : 1-14 , YADA-MINAMI 5-CHOME , HIGASHI-KU, NAGOYA , JAPAN When exported from Japan, this manual does not require application to the Ministry of Economy, Trade and Industry for service transaction permission.

This manual is also suitable for:

R12ccpu-v

Comments to this Manuals

Symbols: 0
Latest comments: