Home

C Controller Quick Start Guide

image

Contents

1. Target operating system Want Oe that Wind Rivet The project has been created 3 4 Select Downloadable Kernel Module 5 Click the button G New Wind River Workbench Project Build Type Select the build type for the project Build type 4 Downloadable kernel Module Description Relinkable Kernel Module Shared User Library Static Kernel Library Static User Library User Defined None Setup information Resulting project type Downloadable Kernel Module Project Used build tool Linker 5 33 3 Creating a project property Configure settings to convert build the created project into a module that can be executed ona C Controller module o Terminology Build An operation that compiles source codes according to a processor and links the code to the include file 1 Setting the processor 2 Setting a include file 1 Select the created project in the Project Explorer 1 Click the Build Paths tab window and click Project Properties 2 Click the button Properties for 012 SampleProject Basic Device Development CW Workbench File Edit Source Refactor Navigate Search Miya Run Window Help J BY CS im Hr Ovi w type filter text Build Properties Project References gt 7 1 Project Explorer 3 oN amp 2 g4 Close Project Binary Parser Specify all build properties i E Q12_SampleProject Wind Rive
2. The Detailed event information window appears 5 Clicking the Previous orthe Next button will display the details of the previous or the following error 6 Clicking the Help button will open the help window on the error Detailed event information Date 2011 05 10 Time f17 10 25 Previous Source MOQbfDry Next Event No C000020E Event type fSystem Err Event info 4 CPU module built in battery error occurred Error code 1600 Error information 52 lt 2 gt Monitoring Module Status and Testing Operations Module I O status and buffer memory status can be checked through C Controller setting utility I O status can be checked and operations can be tested at start up and maintenance 1 Checking module I O status and buffer memory status The input X and output Y status of the module and buffer memory status can be monitored 2 Terminology Buffer memory The memory of an intelligent function module module such as A D conversion module and D A conversion module having a function other than input and output used to store data such as setting values and monitored values for communication with a C Controller module Operating procedure I Start C Controller setting utility 1 Select start All Programs gt MELSEC gt C Controller C Controller setting utility eg Windows 7 Upgrade Advisor Windows Media Player Windows Messenger A windows Movie Make
3. A user program and a script file can be stored on the CompactFlash card as well When a script file is stored both the standard RAM and the CompactFlash card one on the CompactFlash card is started by priority 46 lt 6 gt Checking Operations Execute the program registered with the C Controller module and check operations Use the RUN STOP MODE and RESET SELECT switches on the front of the C Controller module Functions of the RUN STOP MODE switch e RUN Enables outputs Y and writing to the buffer memory from a user program e STOP Disables outputs Y and writing to the buffer memory from a user program e MODE _ Used for the hardware self diagnostic function Functions of the RESET SELECT switch e RESET Resets hardware and programs e SELECT Used for the hardware self diagnostic function The C Controller module executes program operation regardless of the switch status RUN STOP For details on the RUN STOP MODE and RESET SELECT switches refer to the following C Controller Module User s Manual Hardware Design Function Explanation SH 080766ENG 47 Operating procedure I Enable outputs Y from the user program 1 Set the RUN STOP MODE switch on the front of the C Controller module to RUN LED display during the STOP status front cover closed Q12DCCPU V RUN ey MODE Lights in green CF CARD CH3 SD RD RUN STOP MODE switch
4. Slot No z Start 1 0 No 0000 Control CPU No 1 Type 16 points Dutput module 16 points al C Controller setting utility 192 168 3 3 Default Device settings 1 0 assignment settings Multiple CPU settings Communication diagnostics Input Output 0x0000 Beuffer memory Address format DEC HEX Offset Module information Event histo SRAM monitoring Module monitoring Online operation System settings yooo oO Stop monitorina l Slot No Fj Start 1 0 No 0000 Control CPU No 1 Type 16 points Output module 16 points Input 9 0x0000 Buffer memory Address format DEC HEX F 2 oo Stop monitoring Latest error Data settings Numeric format DEC HEX Display format 16 bits Input format f DEC HEX osiagi o000 16 bits oreet E UIT oooo0oo0o0o00 0 00008 C 32bits Connection settings Load File Save File Help New CPU type Q12DCCPL User name target 3 Double click the output Y from which forced output is executed a C Controller setting utility 192 168 3 3 Default Device settings 1 0 assignment settings Multiple CPU settings Communication diagnostics Module information Event history SRAM monitoring Module monitoring Online operation System settings oint SlotNo 0 gt Stati O No 0000 Control CPU No 1 Type 16 points Out
5. T Open Wind River YxWorks 6 4 Development Shell e Build Praian Cirle Chifts 1 eoo Rebuild PE ALLS wps mI n 5 gt Refresh c Close Project li 2 If the message shown below appears click the button You may need to set the include search path for G12 SampleProject If the Included files are Unambiguous and visible in the workspace you can generate the path now and the build will proceed To manually set the projects build properties cancel the build To proceed without generating the include search path click Continue Generate Includes Cancel i Continue The project starts to be built The progress is displayed in the Build Console window 3 Check that Build Finished is displayed in the Build Console window sRet Return value of 1Path Path of a bus Y siqnal in u Error Log Z Tasks 4 Terminal i Problems E Properties 9 Build Console 53 E console 5 8 x EMANE 5 a Sta ater d in Project Q12_SampleProject 2011 06 02 18 44 06 of makefiles started of m a dis ited Ces ed Time 00 00 Pa ton orm m Wi HARIV make b die ctor ory BUILD_ SPEC SH7750gnul ule DEBUG _ _MODE 1 TRACE 1 ownloadable Kernel Module Project 32M pf 68M Build Finished indicates the completion of creation and build of the user program If Build Finished is not displayed and an error occurs check the error and correct the program
6. resistant system WE Various functions for real time control The C Controller module equips VxWorks Wind River Systems Inc real time OS with many achievements and high reliability The runtime license does not cost Since VxWorks supports a preemptive system allowing real time operation and sophisticated process that require an interrupt and punctuality which may not be ensured under personal computer environment VxWorks also equips various functions such as file access drivers for the network functions I O and communication libraries and therefore can be used for various purposes 1 A system that equally assigns execution time to multiple programs so that the processor CPU may not be dedicated to one program Features Flexible system configuration using various MELSEC Q series modules In a C Controller system program resources can be reused and various MELSEC Q series modules are available making system configuration easier Microcomputer board and personal s C Controller system computer environment I O Analog Network Positioning Other modules module module module module such as an High speed A D conversion Controller to 4 axes 8 axes information input interrupt D Aconversion controller 16 axes pulse module input AC DC temperature network wire input differential Logging MES More than control More saving system output More communication 44 models than 26 models sensor More t
7. Create a program in which lamps connected to an output module and the 7 segment LED on the front of the C Controller module flash I Program example and control description Create a program that performs the following control When the C Controller module is set to RUN output lamps YOO and Y01 alternately turn on Synchronizing with the on status of the output lamps the tens place and ones place of the 7 segment LED alternately turn on i storage on Y01 f i F E gt ELSEC 62P 7 segment LED control i B ne ae Output access MITSUBISHI wie i Perform an output control and 7 segment LED control in turns by 20 times for i 0 i lt 20 i Output control sRet QBF_Y_ Out WordEx IPath NORMAL_ACCESS UNIT_XY WORD amp usDataBuf DUMMY if sRet OX printf ERROR QBF_Y_Out_WordEx_1 d 04hxH n sRet sRet QBF_Close IPath return 7 segment LED control sRet QBF_Control7SegLED IPath MODE_MANUAL amp pcdata 0 if sRet 0 29 2 Source code The following describes source codes n z RSS eR Ree eae RAER IEEEEEEEREEEERAKEEERKEEEEERKEKEEEEEEERANEEEER IEEE AAREEEEEIEEERAREEEEKAE EKERN EEEEEEREEERKEEEKKEEEEKE n Declare the file that defined a function list for use of the Function header of n F PEARS RN Ie Ne ROS Lee PIERS TO MR ACT AEREE KEEERREANEEEEREKKEE RENEE ae mI ERENER EELEE EANEE
8. Multiple CPU err LE LALA LE La IL LI r B r J Fuse blown err rc T fa Battery err al C Controller setting utility 192 168 3 3 Default Device settings 120 assignment settings Multiple CPU settings Communication diagnostics Module information Event history SRAM monitoring Module monitoring Online operation _ System settings Module information LED information RUN M Bl MODE 2 Error code Stop monitoring CF CARD ERR Error information CH3 SD RD M T USER I System WDT err T Main CPU err Toggle switch information segment LED information I User WDT en T Intelli module err STOP T Module verify err T Intelli module assignment err MODE RUN T Fuse blown er I Parameter err RESET SELECT J Control bus err T Intell module parameter err IT Multiple CPU bus err T Link parameter err CPU operating status STOP T Battery er T Multiple CPU err T Momentary stop T Others Parameter boot drive Standard RAM Refer to the Event history tab for details Drive information Standard RAM information SMB Used space 207 KB Free space 2865 KB CF card information Empty Used space 0 KB Free space 0 KB Connection settings Load File Save File Help New CPU type Q12DCCPU Y User name 2 When the ERR LED of the C Controller module is flashing After taking the corrective action reset the C Controller module 51 2 Checking error history Errors occurred up
9. P 12 CONTENTS 1 HOW TO READ THIS GUIDE 2 INTRODUCTION OD 3 OPERATIONS THAT CAN BE PERFORMED USING C CONTROLLER MODULE gt 5 ESophisticated and high speed processes and communications with the higher server 5 MV arious functions for real time control saannnnnannannennennnnrnnnnnnrenrnrnnnrnnrrsrrnnrnrrnnrnnrrerrenenrrnnrennen 6 TS SS E A E E P E E A E E E E E E 6 4 RELATED MANUALS 4D MLearning about a C Controller module ccc ccccccccccsceceecceeeeceeeceeeceeeccueecueeceesesueecuessaeesaeesaaes 12 mLearning about CW Workbench ccccecccceccce ccc eeeeee eee eeseeeeeeeeaeeesecesseeseueseueeseeesueeeeesaeesseeeges 12 5 USINGCCONTROLLERMODULE 18 lt 1 gt Preparing for Operation cccccsccsscccecceecceucceueecseecueeceueeseesaecsseeeceesueeseesseesceessansssensaess 14 lt 2 gt System COMMOUNANON esnasinda aia ANA EEE EAEAN DOEA aAA Eaa 15 1 System configuration CxAMPIe cccccecccceececssceceeeceeeceseeeeseeeeseeeesegeeseueessueesueesaueesneess 15 2 Mounting the modules cccccceecccesseccceeeecceeceeceaececeeuceessueeessececsuseessageeeseueeessseaeessagees 16 3 Wiring Ne Modules 3 sisnnsswnsapvniuianterannevundeddindavarenuandduanoaaundiuanacudecidundiedueaicusasuwsasuibedsinnduninannes 17 4 Checking the power supply MOUIE ccccecccceececeeeeceeeeeseeeceeeeeeeeeseeeeseaeeseeeeseeeesseeees 19 lt 3 gt Seting
10. RxR BBY Real Time Processes type filter text 2 ECMPL out 0x5 Symbol fil Value Ethernet ECPCQ out 0x4 Symbol fiy M ss 9 Buja Date 7 A serv structs 0x49CC J EZSocketCPPFOrMD out 0 i WRVxWorksDownloadModulesExecutor ski com windriver ide laun 10 10 27 13 48 a 6 die struct S Ox49CC B u l Id Co n SO l WI n d OW FA ftpdLib out 0x8 Symbol fil Unable to find view with id com windriver a org eclipse ui 10 10 27 13 48 d 6 diler int 286331 SA O12DCCPU 042 8 i C WindRiver workbench 3 2 four stion x com windriver ide target 10 10 27 13 46 6 len shortint 4370 7 7 UserProject out 0xB Syml ailed to Taunch target server for ectior com windriveride target 10 10 27 13 45 69 sRet short int 4370 Display of bu ild prog ress 83 VxMDFunc out 0x2 bx i C WindRiver workbench 3 2 foundation x com windriver ide target 10 10 27 13 45 ba fd int 786331 i Wind River Debug Server API Version 02 00 com windriveride target 10 10 27 13 28 i Connected to dfwserver at 127 0 0 1 127 0 com windriveride target 10 10 27 13 28 S VxMQBFDrv out 0 2 VxMQbfFunc out 0x6 Sym i C WindRiver workbench 3 2 dfw x86 wit com windriveride target 10 10 27 13 28 Personal computer Writable Smart Insert 35M of 57M The plug in feature Variables window Expressions window allows multilingualization of Display of the current local variable value Displ
11. ommunication a program GEM can be defined only by tool settings By defining a unique frame communications using a standard other than GEM can be made Decrease in the cost and size of the system ee Setting the C Controller module as a SECS communication gateway leads to cost saving and space saving system 4 Manufacturing Manufacturing Nippon Denno equipment equipment Co Ltd 2 Collaboration with the vision system COGNEX In Sight EZ In Sight Micro and In Sight5000 series Collaboration of the COGNEX machine vision with the C Controller module can easily automate manufacturing processes including measurement inspection and distinction of products By sending commands using a C language program pictures and images can be imported _ _ H In Sight EZ series TMT TTT EE ia Cm T Ethernet Em OH connection Collaborating with the integrated image processor machine vision available ll n In Sight pe In Sight 5000 series Micro series One cable serves as both a communication cable and a power cable COGNEX Cognex Corporation 11 RELATED MANUALS This guide explains the basic operations of a C Controller module To make maximum use of the C Controller module refer to the following E Learning about a C Controller module C Controller Module User s Manual Hardware Design Function Explanation S
12. validati Active build spec SH7750enule v Specify all build properties Redirection directory SH7750gnule Default Include paths Generate 8 i ISGWIND_BASE tareet h A I0 MELSEC CCPL DVx Include dd I WIND_BASE tareet h wen coreip TTT Remove Remove from all Up Down 10 If the following message appears after clicking the button click the button U C C Index configuration changed The G index needs to be rebuilt to reflect the build property QD changes You just made Do you wish to rebuild the index now Remember my decision The project property has been set 35 36 2 Creating a user program Create a user program that controls a C Controller system Operating procedure 1 Right click the created project in the Project Explorer window and click New gt File File Edit Source Refactor Navigate Search Project Target Run Til Di a Window Help O Q POBA F wiv Project Explor 53 M Debug Symbol 08l gga Fs E Q12_SampleProject Wind River VxWorks 6 4 Pet ae o i Build Tareet 1 B Sopy Ctrl C eaea 3 Delete Delete Rename F2 C Folder Move K XML Attributes gt s XML Schema y Import Fay Wind River Workbench Project L Export if VxWorks Downloadable Kernel Module Project py VxWorks Real Time Process Project E3 VxWorks Shared Library Project Open
13. 0 Tim 2011 01 27 14 16 13 MObfDry C000021C CPU LAY ERROR occured Error code 7036 Error information 1 2011 01 26 13 08 45 MObfDry C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim 2011 01 26 11 59 09 MObfDry C000021C CPU LAY ERROR occurred Error code 7036 Error information 2 2011 01 26 11 58 32 MObfDry C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim 2011 0126 11 48 26 MObfDry C0000208 An error occurred during module initialization Error code 2126 Error 2011 01 26 11 48 08 MObfDry C0000210 MULTI CPU DOWN occurred Error code 7000 Error information lt 2011 0126 11 48 02 MObfDry C0000208 An error occurred during module initialization Error code 2126 Error 2011 01 26 11 26 11 MObfDrv C0000208 An error occurred during module initialization Error code 3010 Error 2011 01 26 11 24 03 MObfDry C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim 2011701 426 10 15 32 MObfDrv C0000208 An error occurred during module initialization Error code 3010 Error 2011 01 26 10 15 04 MG bfDry C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim 2011 01 20 20 32 03 MGbfDry C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim 2011 01 20 18 15 30 MG bfDrv C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim v Save event history Connection settings Load File Save File Help New CPU type Q12DCCPU User name
14. 565 3131 Carretera de Rubi 76 80 E 08190 Sant Cugat del Valles Barcelona Spain Fax 34 93 589 2948 Mitsubishi Electric Europe B V French Branch Tel 33 1 5568 5568 25 Boulevard des Bouvets F 92741 Nanterre Cedex France Fax 33 1 5568 5757 Mitsubishi Electric Europe B V o s Czech office Tel 420 251 551 470 Avenir Business Park Radlicka 714 113a CZ 158 00 Praha 5 Fax 420 251 551 471 Mitsubishi Electric Europe B V Polish Branch Tel 48 12 630 47 00 ul Krakowska 50 32 083 Balice Poland Fax 48 12 630 47 01 Mitsubishi Electric Europe B V Russian branch St Petersburg office Tel 7 812 633 3497 Sverdiovskaya emb bld Sch BC Benua office 720 195027 St Petersburg Russia Fax 7 812 633 3499 Circuit Breaker Industries Ltd Tel 27 11 977 0770 9 Derrick Road Spartan Gauteng PO Box 100 Kempton Park 1620 South Africa Fax 27 11 977 0761 Mitsubishi Electric Automaiton China Ltd Tel 86 21 2322 3030 No 1386 Hongqiao Road Mitsubishi Electric Automation Center Shanghai China Fax 86 21 2322 3000 Setsuyo Enterprise Co Ltd Tel 886 2 2299 2499 6F No 105 Wugong 3 rd Wugu Dist New Taipei City 24889 Taiwan R O C Fax 886 2 2299 2509 Mitsubishi Electric Automation Korea Co Ltd Tel 82 2 3660 9530 1480 6 Gayang dong Gangseo ku Seoul 157 200 Korea Fax 82 2 3664 8372 Mitsubishi Electric Asia Pte Ltd Tel 65 6470 2480 307 Alexandra Road 05 01 02 Mitsubishi Electric Bulding Singapore 159943 Fax
15. 65 6476 7439 Mitsubishi Electric Automation Thailand Co Ltd Tel 66 2 906 3238 Bang Chan Industrial Estate No 111 Soi Serithai 54 Fax 66 2 906 3239 T Kannayao A Kannayao Bangkok 10230 Thailand P T Autoteknindo Sumber Makmur Tel 62 21 663 0833 Muara Karang Selatan Block A Utara No 1 Kav Fax 62 21 663 0832 No 11 Kawasan Industri Pergudangan Jakarta Utara 14440 P O Box5045 Jakarta 11050 Indonesia Mitsubishi Electric India Pvt Ltd Tel 91 124 4630300 2nd Floor DLF Building No 9B DLF Cyber City Phase IIl Gurgaon 122002 Haryana India Fax 91 124 4630399 Mitsubishi Electric Australia Pty Ltd Tel 61 2 9684 7777 348 Victoria Road Rydalmere N S W 2116 Australia Fax 61 2 9684 7245 MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 HIGASHI KU NAGOYA JAPAN New publication effective Jun 2011 Specifications are subject to change without notice
16. After the correction perform the operation again from 3 Generating an execution module from the user program P 37 37 4 Connecting a C Controller module to CW Workbench Connect a C Controller module to CW Workbench to perform debugging using CW Workbench Operating procedure 1 To acquire a VxWorks image file from the C Controller module start Explorer and enter the following address in the address area ftp 192 168 3 3 SYSTEMROM OS_IMAGEFILE Ta ftp 192 168 3 3 SYSTEMROM OS_IMAGEFILE File Edit view Favorites Tools Help Q sack T F Search fE Folders ddres f GM ftp 192 168 3 3 5 STEMROM OS_IMAGEFILE gt Go The Log On As window appears Point To communicate between the C Controller module and the personal computer specify the same VxWorks image file for both 2 Enter the following user name and password in the Log On As window e User name target e Password password 3 Click the button Log On As Either the server does not allow anonymous logins or the e mail address was not accepted FTP server en 2 User name Password eeecceee After you log on you can add this server to your Favorites and return to it easily FTP does not encrypt or encode passwords or data before sending them to the server To protect the security of your passwords and data use Web Folders WebDAY instead Learn more about using Web Folders Log
17. C Controller module and in a user program cable disconnection and communication status are also not required Microcomputer board and personal C Controller vste computer environment y Do I have to A program programs all is required for hip UBT each operation Setting monitoring tool for C Controller module Monitoring Md 31 Status information printf Status Md 31 printf 7s0x 04hX 8s0x 04hX 8s0x d Specify the QD75M or the QD75MH x 10 Fa tomer ree He w if sType UNITTYPE_QD75M s i lt Di ag nostic 5 Md 108 Servo status information saene saw preva re E error history printf ServoStatus Md 108 printf 7s0x 04hX 8s0x 04hX 8s Parameter settings S EE S mman omoa ne ulSize unsigned long PARAM pae s a WTI Wag irei ting Ha lt e Pe Syn DT wg aed we ulBufSize 0 S e If m a ki n g tikait sRet QBF_ToBuf IPath usloNo 16 e i r ate n itialization ulSize unsigned s 1 f 4 aR A ulBufSize Corea at acon int nRet u fod DWORD nLen i Judge writing P ULONG ulBoardNo 0 0 ifeRet Of PEHR Parameter rintf Parameter area write er di I Initialize the board numbered 0 pint p setti n g S nRet GpibOpen ulBoardNo nii vedno if nRet printf printf d n n Included in one If an lo 16 z a x ba error or any sg Siae a tool correction is found you must
18. MOGA Target Run Window Help a g w c3 D g H 0O Project References r Project Explor 83 Gi Debug Symbol O Close Project Open Wind River VxWorks 6 4 Development Shell avy Build All Ctr B Build Project Ctrl Shift 4 Build Working Set gt Clean Build Automatically i Build T gt Wind River Launches E d Binaries E E Includes H E 5H 750gnule Build Options gt 2 Select Build Properties from the tree view to the left in the window 3 Clear the Debug mode check box 4 Click the button Properties for Q12 SampleProject Build Properties Resource Specify all build properties Build Properties 2 Build Support and Specs 4 Build Tools Build Macros gt Build Paths Libraries C C General Build support Project Info Managed build makefiles generated by the IDE Project References O Disabled Run Debue Settines Task Tags Build command P no print di Validation Smakeprefix make no print directory Available and enabled build specs SH7750enule Enable All Disable All Default build spec SH 7750gnule i SH7750enule 4 Garce _ 5 Build the program following the procedure shown in 3 Generating an execution module from the user program P 37 6 If the following message appears click the button G C C Index configuration changed The C C index needs to be rebuilt to reflect t
19. N caution All files in the standard RAM are erased by module initialization Operating procedure 1 Open the cover on the module front and set the 4 Check that the MODE LED lights in orange and RESET SELECT switch to RESET the 7 segment LED displays 00 Q12DCCPU V a RUN OFF CF CARD MODE Lights in orange po USER OFF lt Set the switch to RESET RESET SELECT switch 5 Release the RUN STOP MODE switch 2 Check that the MODE LED is off The switch returns to the STOP position 6 Repeatedly set the RESET SELECT switch to SELECT until the 7 segment LED displays 11 Q12DCCPU V RUN OFF a i RUN MODE OFF module initialization setting mode CF CARD CH3 SD RD USER OFF 3 Holding the RUN STOP MODE switch on the MODE position set the RESET SELECT switch to the center Repeatedly set the switch to SELECT RUN STOP MODE switch RESET SELECT switch Hold the switch on the MODE position Q12DCCPU V RUN CF CARD CH3 SD RD RUN OFF MODE Lights in orange USER OFF Return the switch to the center RESET SELECT switch 21 7 Set the RUN STOP MODE switch to RUN and initialize the module The RUN LED will be flashing during initialization RUN STOP MODE switch Set the switch to RUN MODE STOP Q12DCCPU V RUN Flashes in green CF CARD MODE Lights in orange CH3 SD RD 8 C
20. Select the Write authority check box 5 Enter target 6 Enter password 7 Click the button Connection settings x Test Target module 192 168 3 31D efaull 4 Detailed settings Password B 6 nE e 24 3 Writing the parameters to the C Controller module Write the parameters to the C Controller module using C Controller setting utility Operating procedure 1 Select the Online operation tab in C Controller 6 Reset the C Controller module setting utility After resetting the C Controller module the written l l parameters will be valid 2 Select the Clear all parameters of all drives prior to writing check box 7 Click the EJ button to exit C Controller setting utility 3 Click the wite button E l C Controller setting utility 192 168 3 3 Default l C Controller setting utility 192 168 3 3 Default SEN g A Device settings 120 assignment settings Multiple CPU settings Communication diagnostics Eventhistoy SRAM monitoring Module monitoring Online operation System settings Device settings 140 assignment settings Multiple CPU setting an diagnostics Module information Module information Eventhistoy SRAM monitoring Module monitoring Online operation System settings A Target drive Standard RAM v Target drive Standard RAM 1 Read parameters Read parameters from C Controller module Read Write parameters Read parameters
21. Wind River xWorks 6 4 Development Shell Build Project Ctri Shift 4 MA Rebuild Project T lser Nefined Proiect 2 Enter a source file name to be created in File name Enter Q12 Sample c in this procedure f SPoint Enter a file name with extension Do not use two byte characters for a file name If used a compilation error occurs in compilation 3 Click the button New File File Create a new file resource Enter or select the parent folder Q12_ SampleProject E O12 SampleProject Wind River VxWorks 6 4 Downloadable Kernel Module Project 9 File name f O12 Sample c Advanced gt gt 9 Ci oe 4 Describe Source code P 30 to access the output module and to control the 7 segment LED in the Editor window 3 Generating an execution module from the user program Convert Build the created program into a module that can be executed on a C Controller module Operating procedure 1 Right click the created project in the Project Explorer window and click Rebuild Project Basic Device Development Q12 SampleProject Q12 Sample c File Edit Source Refactor Navigate Search Project Run Window Hel Mi ei mae aa Ori H Project Explorer 3 E ai nal Y A e Q12_Sample c oe aa G oi New ao 1 Gohto fa E Di 7 Copy Ctrl C 3 Delete Delete r Rename F2 Move Attributes gt E g Import p py Export
22. on anonymously Save password Jma 4 Copy the VxWorks image file stored on the C Controller module to CAMELSEC CCPU DVx Tools t ftp 192 168 3 3 SYSTEMROM OS_IMAGEFILE mef File Edit View Favorites Tools Help Q pack amp wi s Search E Foes J Ei ii Address Ftp 192 168 3 3JSYSTEMROMJOS _IMAGEFILE v Go Folders x Size Type 2 Recycle Bin al E q12pccpu v _12042 8 3 32MB File H O E utility EJ 6 Internet Explorer W 192 168 3 3 E ram A sysTemRom E EI Default E ig EasySocket OS_IMAGEFILE User target amp Internet 38 The C MELSEC CCPU DVx Tools folder is created when SWOIPVC CCPU has been installed on C MELSEC 5 Click inthe Remote Systems window J Remote Systems 52 O 5 na Noh F ES The New Connection window appears 6 Select Wind River VxWorks 6 x Target Server Connection in the New Connection window 7 Click the button D New Connection Select Remote System Type System type type filter text H E General VxWorks 6 x IA Wind River Vvitinrke Ay Gare Dumn Gannection 6 Fach Wind River VxWorks 6 x Target Server Connection Gancel 8 Set the following items in Backend settings e Backend wdbrpc e Processor SH7780 Click the button and select the processor e IP address 192 168 3 3 default e Port Blank 9 Select the File radio button in Kernel image 10 Click the butto
23. parameters for the C Controller module lt 4 gt Knowledge Required for Programming P 26 Explaining the bus interface function lt 5 gt Programming P 29 Creating a program using CW Workbench 1 Creating a project P 32 Starting CW Workbench creating projects and configure settings 2 Creating a user program P 36 Creating a user program that controls a C Controller system 3 Generating an execution module from the user program P 37 Converting Building the created program into an executable module 4 Connecting a C Controller module to CW Workbench P 38 Connecting a C Controller module to CW Workbench to perform debugging 5 Debugging the user program P 40 Checking operations of the created program 6 Registering an execution module P 45 Building the created program for operation and storing the program on the C Controller module lt 6 gt Checking Operations P 47 Executing the program and checking operations 13 14 lt 1 gt Preparing for Operation Prepare the necessary devices TEE ss gt aeuzEEEEH Ei auwum BEeEsH H I 1 C Controller system E 2 Personal computer I i il Eg 0 i E i j 1 ao i o g For modules refer to the Windows installed T next page personal computer J E E E E E E E E E E EE E e BH E E E E E E HE HE EE E H g 4 CW Workbench 5 Ethernet cable I I I i E E I E a I E I i E Either a straight cable or I a cross cable 1 Install SW
24. the Mod le sisisi i a a aa E ea doors 21 1 Initializing the C Controller module ccc ceccceccec cece ceeeeeeeeeseeeeseeeeeaeeeseeeeeseeesaneeseeeeneneess 21 PA Wee 111181 8 8 Parameter cen ee ee ere ee ee ee eee 23 lt 4 gt Knowledge Required for ProgrammMing cccccccesceescceeeeceeeseeeceeeeseeeseueseueeseeeseeeseeesueeseees 26 OP POON ELA E EAEE vues suse saeco asdisaonctessaeeasten racecar euberesderetecceoe E 29 TG CUNO OO SCE ean E a e aren ceou se seeeehasutecse E tes sbeasetaubeteetaeans 32 2 Creating a user POOM AIM asin seniciosigsomcnen sind deatindininigds tednesasion tiv adnem fenton andaltncnidenaiins voaakwadeliwumendeans 36 3 Generating an execution module from the user program ccccseceseeeseeeeaeeeseeeeeeesaeees 37 4 Connecting a C Controller module to CW Workbench c cccccececeeeeeeeeeceeeeeeeeeseeeees 38 5 Debugging the user program cccccseccceccceeecceececeecesaeeeeaaceseacessaeesseeesseessaeessueessaeessages 40 6 Registering An execution module cccceecccececsceceeeceueceueeceecaeeeseessueesaeeseeesaeesaeeeseess 45 lt 60 gt Checking OGL AUN S scssi usrose oe n acastacasesteutannactie ante a E T i etnouia 47 6 FREQUENTLY USED FUNCTIONS 50 lt 1 gt Checking Errors and Taking Corrective Action ccccceccseeeceeeeeeeeeeeceeeeaeeeseeeseesaeesseesaaes 50 1 How to check an error and take Corrective ACtION cccceseee
25. to the present and the error details can be checked When and what kind of error occurs can be checked useful in error analysis Operating procedure 1 Start C Controller setting utility 2 Click the Event history tab a C Controller setting utility 192 168 3 3 Default Device settings Deassionment settings Multiple CPU settings Communi Module information l Event history SRAM monitoring Module monitoring Online operation Module information 2 LED information RUN 7 Ml MODE Error code 1600 CF CARD l Ml ERR Errar inkara ston 3 Error history and the error details are displayed 4 To see more details of an error double click the error l C Controller setting utility 192 168 3 3 Default Device settings 1 0 assignment settings Multiple CPU settings Communication diagnostics Module information Event history SRAM monitoring Module monitoring Online operation System settings 06 0 A CPU module built in battery error occurre 2011 05 10 16 55 25 C000020E A CPU module built in battery error occurred 2011 04 20 14 38 55 MGbfDry C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim 2011 403 02 16 29 50 MG bfDrv C0000201 AC DC DOWN occurred Error code 1500 Error information O Tim 2011 01 27 14 22 56 MObfDry C0000201 AC DC DOWN occurred Error code 1500 Error information 0 Tim 2011 01 27 14 20 08 MG bfDrv C0000201 AC DC DOWN occurred Error code 1500 Error information
26. 2 When the RUN LED lights in green the program is running normally LED display during the RUN status front cover closed Q12DCCPU V RUN Mena MODE Lights in green aR Lights in green CH3 SD RD 100 M CH2 CH3 RS 232 SD RD 10BASE T 100BASE TX to RESET During reset front cover closed Q12DCCPU V RUN CF CARD CH3 SD RD MODE SsTOP MODE Lights in green RESET SELECT switch 2 Check that the MODE LED turns off Reset completed front cover closed Q12DCCPU V MODE OFF RUN MODE CF CARD ERR CH3 SD RD USER 3 Set the RESET SELECT switch to the center 10BASE T 100BASE TX RESET SELECT switch If the ERR LED turns on or starts flashing troubleshoot with reference to the following C Controller Module User s Manual Hardware Design Function Explanation SH 080766ENG 48 3 Use the 7 segment LED and lamps to check operations The 7 segment LED on the front of the C Controller module and output lamps operate as follows 1 The tens place and ones place of the 7 segment LED alternately turn on by 20 times 2 Synchronizing with the 7 segment LED output lamps YOO and Y01 alternately turn on T MELSEC Q62P gt rfofof gt efe Tofe MITSUBISHI 3 To check the operations again reset the C Controller module LT Reference Status of the 7 segment LED and the output lamps also can be checked on C Controller setti
27. CW Workbench depends on M Product Maintenance EON A E a personal computer If a window size differs from that shown in this guide 2 Enter the storage location of the workspace adjust the size In this procedure enter C WindRiver workspace e To default an enlarged deleted window 3 Click the button select Window New Window Workspace Launcher Select a workspace CW Workbench stores your projects in a folder called a workspace Choose a workspace folder to use for this session 2 workspace SA wine AEAEE Note The workspace directory must be writable and should be located on fast local storage C Use this as the default and do not ask again 4 Click the button Welcome to Wind River Workbench 3 2 This release introduces new capabilities and improved workflows so creatine debugging and analyzing device software is now easier than ever Watch the video gt gt Explore the new Getting Started Portal to find focused videos links and tutorials for immediate productivity gt Select the What s New link in the Getting Started Portal to see what has changed in this Release gt Switch to the Advanced Device Development Perspective for a view that s compatible with earlier Releases 4 C The main window of CW Workbench appears a File Edit Source Refactor Navigate Search Project Run Window Help M Ci B Hr Ori xv ile i p gt inal E Ty Bas
28. Changes for the Better MITSUBISHI ELECTRIC Programmable Controllers C Controller Quick Start Guide HOW TO READ THIS GUIDE Let s start C Controller INTRODUCTION CONTENTS USING C CONTROLLER MODULE RELATED MANUALS USING C CONTROLLER MODULE Preparing for Operation OPERATIONS THAT 3 CAN BE PERFORMED System 2 Configuration Smart amp Easy need A simpler and more sophisticated integrated system platform is now available with the C Controller Suess for Programming Programming Ear re ony ones Checking lt 6 Operations UserProject pee ar cer en FREQUENTLY USED 6 FUNCTIONS Checking Errors lt 5 and Taking mme a Corrective Action Eties E Build Console E Console Monitoring Module lt Status and Testing Operations HHE for a greener tomorrow HOW TO READ THIS GUIDE The following table lists symbols used in this guide with descriptions and examples l Shows information you need to The C Controller module executes program operation ont know regardless of the switch status RUN STOP Refer to the following Shows reference manuals and Reference pages on which you can find the C Conroler acted peice Manual details Hardware Design Function Explanation SH 080766ENG Buffer memory The memory of an intelligent function module used to store data such as setting values and monitored value
29. EEEEEKKEE EAK lt n include lt vxworks h gt VxWorks function header library function include lt taskLib h gt VxWorks function header 4 include lt stdio h gt Standard function header f include QbfFunc h Bus interface function header i POLE EEN AREER TAN eR LN Re MeN RTO a eS ON A a NR IY pene ee ee none I MIE Tey Arata eae een RO AOR One RY Definition x Define values used i a a For debugging Yi define UNIT_XY 0x0000 Start I O number of the module define QY_LED 0x5555 Initial output value of Y signal even bit on define SEG_LED1 OxFF Initial output value of 7 segment LED ones place define SEG_LED2 0x00 Initial output value of 7 segment LED tens place JEENE EEEREKAERKAAAENEERKAEEXAERENEERKAEAEEEEKENEERAAAAREREKEKERNAAKEEKEEAKAAARAREEEEKAEAAARKAEEEEEEEEREREKEENAEKEKAEK For QBF function define CPU_TYPE 2 CPU identification flag CCPU 2 i i define WORD 1 1 word specification i define NORMAL_ACCESS 0 General access specification i define DUMMY 0 Dummy define MODE_MANUAL 0 7 segment LED control mode i OOV AEEREKAREENEKEEENKEAFERREEEERRKENEEEEKEREKEEKEEKKEEEREXKEKEKKEKEKEXNAEEAKKEKERKAENEEREKAEREEXEEEREREEEKEKEEEKEREKEXX Process outputs from Y signal and control the 7 segment LED TEREKE EER een te te pe Pe fee EERE REREAREREEEEN ERREAK EEEE EEEE EREEREE
30. EEHEEHE ERR HERR RRR RRR RRR ee eRe eee ee RP eee eee eee eee start all over ame Monitoring and settings can be executed on the view friendly tool 4 Quick start using an integrated development environment CW Workbench An engineering tool for C Controller CW Workbench equips basic functions such as program editing generation of execution module and debugging A user program for a C Controller module is easily developed Eclipse based CW Workbench allows function enhancement using a third party plug in software CW Wo rkbench W A Device Debug UserProject Sample c kbenc Ed itor WI ndow File Edit Source Refactor Navigate Search Project Target Run Window Help mth Carnet OG S eee s GHEM Vi Hr eero les E IB Device Deb 0 D b d Program editing Bo Project Expl 12 89 Debug Syme D o I Debug 2AT SES e bug window Elga E UserProject Wind River VxWorks 6 4 Dc Wy Build Targets SH7750gnule debug f f UserProject UserProject out f UserProject_partiallmage User Wind River Launches 42 Binaries i UserProject_partiallmage o fm UserProject out sh le SH77 Graa re a t t RYO MD E i a eae R ee Debugging i e SampleTask Qy server_module UserProject out VxyOrk SH7780 Task Mode tServer_module 0x4 f 110 Stop server_module Sample c 50 Declare local variables short sRet long 1Path unsigned shor
31. H 080766ENG This manual explains the system configuration specifications functions handling wiring and troubleshooting of a C Controller module C Controller Module User s Manual Utility Operation Programming SH 080767ENG This manual explains the installation and uninstallation of SWOPVC CCPU utility operations and functions and programming using SWOPVC CCPU E Learning about CW Workbench CW Workbench Operating Manual SH 080982ENG This manual explains the system configuration installation and uninstallation specifications functions and troubleshooting of CW Workbench 12 USING C CONTROLLER MODULE The C Controller module is installed with procedures as shown below lt 1 gt Preparing for Operation P 14 Preparing the necessary devices lt 2 gt System Configuration P 15 Installing wiring and powering on the devices 1 System configuration example P 15 Showing the example of system configuration used in this guide 2 Mounting the modules P 16 Mounting the prepared modules on a base unit 3 Wiring the modules P 17 Wiring the power supply module and the output module 4 Checking the power supply module P 19 Powering on the system and checking module status lt 3 gt Setting the Module P 21 Configuring settings to operate the C Controller module using C Controller setting utility 1 Initializing the C Controller module P 21 Preparing a standard RAM 2 Setting parameters P 23 Setting
32. OPVC CCPU and CW Workbench on the same personal computer beforehand LT Reference For installation of SWOPVC CCPU refer to the following gt C Controller Module User s Manual Utility Operation Programming SH 080767ENG For installation of CW Workbench refer to the following lt gt CW Workbench Operating Manual SH O80982ENG 2 SWOPVC CCPU is a setting monitoring tool for C Controller module E 3 SwoOpvc ccpu lt 2 gt System Configuration 1 System configuration example This guide uses the following system configuration as an example C Controller system QI2DCCPUV POWER RUN amp MODE CFCARD E W ERR CH3SD IRD E USER RD 5 p aE CHS any peN MITSUBISHI ee RD ae v 10BASE T 1 3ASE TX A wire to the power supply module is omitted Lamps output Description A unit on which a power supply 1 Q33B module a C Controller module and I O modules are mounted Supplies power to modules such as 2 Power supply module Q62P a C Controller module and I O modules 3 C Controller module Q12DCCPU V Supervises the control process of a C Controller system 4 Output module QY40P Connects the personal computer Cable An Ethernet cable meeting 10BASE with SWOIPVC CCPU and CW Ethernet cable T 100BASE TX standards Workbench installed to the C Controller module 15 2 Mounting the modules Mount the prepared modules on a base unit When using the C Contro
33. R EREKE E EEEREREEER EREEREER EEE REER EREREREEE E Mage ee ty eae EARE void Q12_SampleTask Declare local variables short sRet Return value of the QBF function long IPath Path of a bus unsigned short usDataBuf Y signal in units of words unsigned short usEmptyDataBuf For reset of Y signal s char pcdata 2 7 segment LED on value short i For loop Open the bus sRet QBF_Open CPU_TYPE amp lPath Enable the bus if sRet 0 interface function at the printf ERROR QBF_Open d 04hxH n sRet sRet start of the program return oO Set the output signal Y value turn on the even bit usDataBuf QY_LED Set the output value of the 7 segment LED only the ones places are all lit pcdata 0 SEG _LED1 pcdata 1 SEG LED2 Perform an output control and 7 segment LED control in turns by 20 times a T ee ee re er ee ee eee ee ee ee eee ere eee eee erent Output control a Control the output module using the bus interface function sRet QBF_Y_Out_WordEx IPath NORMAL_ACCESS UNIT_XY WORD amp usDataBuf DUMMY if sRet O printf ERROR QBF_Y_Out_WordEx_1 d 04hxH n sRet sRet QBF_Close IPath return 7 segment LED control sRet QBF_Control7SegLED IPath MODE_MANUAL amp pcdata 0 if sRet O printf ERROR QBF_Control7SegLED_1 d 04hxH n sRet sRet QBF_Close IPath ret
34. Read parameters from C Controller module F HEEPEETIEED Write parameters to C Controller module IV Clear all parameters of all drives prior to writing E Write Write parameters to C Controller module M Clear all Verify parameters Verify parameters Verify the parameters match with the C Controller module s parameters Verity Verify the parameters match with the C Controller module s parameters Remote operation Remote operation RUN y connected CPU x Execute RUN E connected CPU Detailed settings Detailed settings Change the IP address Clock etc of C Controller module Detail Change the IP address Clock etc of C Controller module Detail Connection settings Load File Save File Help Connection settings Load File Save File Help xi a New CPU type Q12DCCPLU User name target New CPU type Q12DCCPLU V User name target r Once all parameters of all drives have been cleared parameter writing will be performed Do vou want to continue 5 When the writing is completed the following window appears Click the Ok button C Controller setting utility 192 168 3 3 Default X oe 5 Parameters written successfully They will become valid after the Controller module is reset 25 lt 4 gt Knowledge Required for Programming I Bus interface functions The bus interface function is a library function dedicated for a C Controller module Using this functi
35. River gt MELSEC Data Link Function HELP All Programs fag MELSEC fa C Controller gt Br MELSECNET_H utility Dh tos Off 0 Shut Down 3 Error code 2000 4 Error information f e T System WDT err C Controller setting utility starts PENA formation Main CPU err Clear error Intelli module err Module verify err Intelli module assignment err 2 Click the Stat monitoring button on the Module ete information tab Control bus err Multiple CPU bus err Parameter err Intelli module parameter err Link parameter err Multiple CPU err Others efer to the Event history tab for details Battery err l C Controller setting utility 192 168 3 3 Default Momentary stop Jm fm LE LY LE LA LE LI Device settings 120 assignment settings Multiple CPU settings Communication diagnostics Module information Event history SRAM monitoring Module monitoring Online operation System settings Module information LED information RUN M M MODE rror code Start monitoring CF CARD L T_T ERR CH3SD RD M M USER Sys VDT err JT Main CPU err T Intelli module err Toggle switch information 7 segment LED information STOP MODE RUN RESET SELECT module assignment err U bus err ink parameter err CPU operating status ASEEN Momentary stop I Others Parameter boot drive Refer to the Event history tab for details Drive information Standard RAM information SMB Used space 207 KB Fre
36. U type Q12DCCPL User name New CPU type Q12DCCPL User name target CPU operating status RUN Er r r STOP T Module verify err Intelli module assignment err MUDE FUN E H T Fuse blown err Parameter err RESET SELECT T Control bus err Intelli module parameter err E L L Display format 16 bits C 32 bit J N OrPOrRPOrRPORPORPOHROrHROH ANANIA 49 FREQUENTLY USED FUNCTIONS This chapter describes functions frequently used for the start up and the maintenance after operation of a C Controller system lt 1 gt Checking Errors and Taking Corrective Action An error can be checked and the corrective action can be taken using C Controller setting utility 1 How to check an error and take corrective action Operating procedure L Checking for error lt Module 3 An error code is displayed in the window information gt 4 The check boxes of the current errors color in red 1 Select start All Programs gt MELSEC gt C 1 Controller gt C Controller setting utility The error code is kept updated during monitoring 2g Windows 7 Upgrade Advisor windows Media Player 8 Windows Messenger G Windows Movie Maker E CC Link utility sttings Multiple CPU settings Communication diagnostics Trend Micro OfficeScan Client ERX Device monitoring utility 14M monitoring Module monitoring Online operation System settings Wind
37. UY 120420000000000 B oe Dna i ae 16 R D No 1 Empty Empty Empty Empty zi Save system information The help window for the current error appears 5 Find the possible cause from Error Contents and Cause 6 Take corrective action with reference to Corrective Action C Controller setting utility File Edit Bookmark Options Help Heb Toes Bin Ore e gt Error Code List Error Code 1600 Error Code 1600 Error Information Error Message LED Status RUN ON LED Status ERR ON Operatine mlawuses of CPU CONTINUE module has dropped to the specified value or less e The pad sinat atthe battery in the CPU module is not connected Corrective Action 6 ery a Ca the fea connector 3 Clearing the error after taking the corrective action 1 When the ERR LED of the C Controller module is on 1 Click the Clearenor button in the Module information tab 3 3 Default assignment settings Multiple CPU settings Communication diagnostics SRAM monitoring Module monitoring Online operation System settings Error code 1600 Error information System WDT err User WDT err i Intelli module err Intelli module assignment err gment LED information 2 Check that the error has been cleared Module verify err Parameter err Control bus err Intelli module parameter err Multiple CPU bus err Link parameter err
38. ay of the current variable value menu items and source registered for viewing code management Registers window Memory Browse window Display of the current register value Display of the memory dump on the C Controller module 10 5 High speed and high precise control by multiple CPU high speed bus transmission Multiple CPU high speed bus transmission supports real time sequential control synchronized with the operation cycle of the Motion CPU 0 88ms and tracking control to keep up with the constant changes in the target value Additionally large volume data up to 14K words can be transferred at high speed 0 88ms cycles without a program and data can be shared among CPUs By integrating the C Controller module with the CPU that serves as the nerve center of the factory the entire system can be efficiently controlled and the load of computational processing can be distributed Power supply module Q26UDHCPU r20ccPU V POWER Multiple CPU system Servo control Information control Integrates all controllers EEE an LLLI CTT i CN2 Nt z I O control g Information control eee Servo control e C Controller CPU C Controller module Programmable controller CPU Ladder C language Motion program program program e Motion CPU To Motion CPU Activate servo program ret bani coal Mitsubishi Direct integrated i command a g com
39. been designed or manufactured to be incorporated in a device or system used in purposes related to human life e Before using the products for special purposes such as nuclear power electric power aerospace medicine or passenger movement vehicles consult with Mitsubishi whether foreseeable or not caused by special factors damage to products other than e The products have been manufactured under strict quality control However when Mitsubishi Electric products and to other duties installing the products where major accidents or losses could occur if the products fail install appropriate backup or fail safe functions in the system Sales office Tel Fax Mitsubishi Electric Automation Inc Tel 1 847 478 2100 500 Corporate Woods Parkway Vernon Hills IL 60061 USA Fax 1 847 478 2253 MELCO TEC Rep Com e Assessoria Tecnica Ltda Tel 55 11 3146 2200 Av Paulista 1439 Cj 72 Cerqueira Cesar CEP 01311 200 Fax 55 11 3146 2217 Sao Paulo SP CEP 01311 200 Brazil Mitsubishi Electric Europe B V German Branch Tel 49 2102 486 0 Gothaer Strasse 8 D 40880 Ratingen Germany Fax 49 2102 486 1120 Mitsubishi Electric Europe B V UK Branch Tel 44 1707 276100 Travellers Lane Hatfield Hertfordshire AL10 8XB UK Fax 44 1707 278695 Mitsubishi Electric Europe B V Italian Branch Tel 39 039 60531 Viale Colleoni 7 20041 Agrate Brianza Milano Italy Fax 389 039 6053312 Mitsubishi Electric Europe B V Spanish Branch Tel 34 93
40. e space 2865 KB Update CF card information Empty Used space 0 KB Free space 0 KB Connection settings Load File Save File Help New CPU type Q12DCCPU Y User name 50 2 Checking the error cause and the corrective action lt Module monitoring gt 1 Click the Module monitoring tab 2 Click the System info button al C Controller setting utility 192 168 3 3 Default Device settings 120 assignment settings Communication diagnostics Module information Eventhistory SRAM monitoring Module monitoring Online operation System settings Type 16 points Output module 16 points Slot No Start 1 0 No 0000 Control CPU No 1 Input Output Buffer memory Address format C DEC HEX Start monitoring 2 C atest eror Numeric format C DEC HEX Display format 16 bits TL C 32bits w Connection settings Load File Save File Help New CPU type Q12DCCPL User name target The System information window appears 3 The current error is displayed in the window 4 Click the Eror code help button System information 192 168 3 3 Default Status Switch oe code Present error Date Time 3 STOP BATTERY ERROR 2011 05 10 19 22 25 Error code help 4 Type Sains as name Points ea No Control CPU Serial No Ver Product No a 120420000000000 B CPU DCCP
41. ed for semiconductor manufacturing and direct communication with the higher server without a gateway personal computer can be executed through a SECS communication software package e In collaboration with a vision system image distinction and product inspection can be performed without a personal computer Semiconductor manufacturing FPD manufacturing The development cost is reduced by reusing C language program resources High speed operation process which is hard for ladder programs to handle can be performed SECS communication Ethernet Can be executed only with tool settings A SECS communication gateway is established Data collection Equipment controller for __ data collection High speed synchronized communications with a servo amplifier is available Using the field network and the sensor network allows high speed data collection with minimal wiring CCink Pryuire FPD image inspection Image distinction in collaboration with the vision system The high speed maximum 1Gbps and large capacity controller network reduces takt time CC Link IE Bonto Machine vision Image distinction and product inspection can be performed without a personal computer Controller to controller network in equipment Space saving and environmentally
42. eeceeeeeeeeeeeeeeeeeaeeeeeeaeeeeeeeeas 50 2 Checking error NISUONY cecddercedess lt eeenereacesyedivessusenseiedenseeencusncscenedasdustinedieesecenaecubecesecducdedssees 52 lt 2 gt Monitoring Module Status and Testing Operations cccccecccecccececeeceeeceeeseeeseeseeeseeeeeees 53 1 Checking module I O status and buffer memory status ccc cceccceeeceeeeeeeeeeeeeeeeeeeeees 59 2 Testing operations by forced OUTDUL ccc cecc cece cece eeeeseeeceeeseeeeeeeeeeeseeeeseesaeesaeeeaeeeaes 55 MEMO OPERATIONS THAT CAN BE PERFORMED USING C CONTROLLER MODULE M Sophisticated and high speed processes and communications with the higher server A C Controller module is a CPU module that supervises MELSEC Q series modules and controls I O devices using C language or C language program This module also can e Reuse a C language or C language program developed under a microcomputer board and personal computer environment e Perform sophisticated and high speed operation process which is hard for ladder programs to handle required in the fields such as manufacturing of semiconductor products FPDs and solar cells and remote monitoring of public infrastructures e g electricity gas and water systems The C Controller module easily achieves various functions using user programs Combined with partner products the module can also perform the following functions e Program free SECS communication commonly us
43. em e Wiring to the power supply module e Power supply voltage 2 Set the C Controller module to STOP Open the cover on the front of the C Controller RUN STOP MODE switch module and set the RUN STOP MODE switch to STOP 3 Power on the power supply module 4 Check that the power supply module runs normally Check the front LED on each module The following lists the normal status of the LEDs TSN 1 Power supply module The POWER LED lights in T g ree n CH3 SD RD 2 C Controller module The MODE LED lights in green When the C Controller module is the default the standard RAM has not been initialized the 7 segment LED displays a flashing 01 However this does not mean a problem in this step The LED turns off after the module is initialized CH3 SD RD gt lt 3 gt Setting the Module P 21 NZ Construction of the system is ended If the POWER LED of the power supply module remains off even after power on check that the power supply module is correctly wired and mounted 19 RA Reference If the ERR LED turns on or starts flashing troubleshoot with reference to the following 5 gt C Controller Module User s Manual Hardware Design Function Explanation SH 080766ENG 20 lt 3 gt Setting the Module Configure settings to operate the C Controller module 1 Initializing the C Controller module Prepare a standard RAM for the C Controller module
44. gned short usButsize Dummy fixed to 0 e 7 segment LED control QBF_Control7 SegLED function 0 Manual mode 1 Auto mode Other Same as 0j Format ret IBF Control SegLEDipath mode data Type Name Description short ret Feturn value long path Opened bus path long mode Mode char data LED data Description INOIT OUT IN OUT IMOUT OUT IM WOIT IMfOUT OJT IN IN IN Displays the values specified in LED data on the segment LED in accordance with the method specified in mode Ahen Mode 0 Manual mode Displays the specified data in the format below where data U segment LED data of ones place and data 1 segment LED data of tens place Data format of Bit each place segment br b b b4 b b2 bl OP y f E d C b segment Hefer to the drawing on the left Bit value 0 LED OFF att 1 LED ON fon 2 28 Data type byte char unsigned char short unsigned short int long unsigned long float double void Bit width CW WS W NO PO Bb Ol NIOO O D gt The following data types are available for C language and C language programming used on a C Controller module Designation Unsigned integer Character string Unsigned character string Signed short integer Unsigned short integer Signed long integer Unsigned long integer Single precision real number Double precision real number lt 5 gt Programming
45. han 25 models serial communication than 16 models More than 4 models Sa hard on Flexible system configuration using Steet various MELSEC Q series modules Power supply module YE 2 Equipped OS drivers and libraries allow you to focus on developing user programs Since OS and communication drivers have been equipped with a C Controller module you are no longer bothered with troublesome work under microcomputer board and personal computer environment OS porting driver development OS writing to ROM and can focus on developing a user program The C Controller module can easily access MELSEC Q series modules using library functions dedicated for a C Controller module bus interface function MELSEC communication function Microcomputer board and personal computer environment C Controller system a User program Ma iipraries re create User program Must b e correcte e System is change ene ver Much work Troublesome Write Y output data sRet QBF_Y_Out_BitEx IPath 0 i 1 Quick start 3 Initialization parameter settings monitoring and testing can be executed without a program Complex programs for the initialization and the system settings of a C Controller module and parameter settings of a network module are not required The operations can be easily executed on view friendly setting monitoring tool for C Controller module Programs to check module status errors occurred in a
46. he address of a buffer memory area to be monitored Displays the error code of the latest error occurred in an intelligent function module Select a numeric format for a buffer memory or a CPU shared memory Select a display format for a buffer memory or a CPU shared memory 2 Testing operations by forced output Module operations can be tested by forced output from an output Y The following describes the procedure for forced output 1 Click the Start monitoring button in the Module monitoring window T Reference l C Controller setting utility 192 168 3 3 Default E al Double clicking an item under Output will Device settings 120 assignment settings Multiple CPU settings Communication diagnostics a Module information Event history SRAM monitoring Module monitoring l Online operation System settings O p e n th e D ata S etti n g S WI n d OW 2 O u tp u ts Slot No E Start 1 0 No 0000 Control CPU No 1 Type 16 points Output module 16 points Y can be batch selected by specifying a 1 Input Output Buffer memory Address format DEC HEX Offset n u m e rl C val u e System info l C Controller setting utility 192 168 3 3 Default Device settings 1 0 assignment settings Multiple CPU settings Communication diagnostics 2 Check the output status Module information Eventhistoy SRAM monitoring Module monitoring Online operation System settings
47. he build property YD changes you just made Do you wish to rebuild the index now Remember my decision 2 Storing the user program 1 Start Explorer and enter the following address in the address area for the C Controller module ftp 192 168 3 3 RAM ftp 192 168 3 3 RAM SEK Fie Edit View Favorites Tools Help ay N Q Bak S J Search a Folders ita Addres BD ftp 192 168 3 3 RAM xi J co After login to the C Controller module the address is displayed as shown below ftp 192 168 3 3 RAM maf File Edit view Favorites Tools Help ay Q Back v wi P Search io Folders fsi Address Q E z Type File Folder Other Places d File Folder l 192 168 3 3 My Documents My Network Places Details User target Internet i 2 Copy the created user program Q12_SampleProject out on the standard RAM for the C Controller module by drag and drop The user program created in this guide is stored on the following C WindRiver workspace Q12_SampleProject SH 7750gnule Q12_SampleProject NonDebug NonDebug E Sfx ay File Edit view Favorites Tools Help Q sa amp t pO search jy Folders fii Address C WindRiver workspace Q12_SampleProject SH7750gnule Q12_SampleProjec Folders x Name H O vxworks 6 4 a E ctdt c E workbench 3 2 a H O metadata S O 912_5ampleProject ES 3 5H7750gnule O Q12_SampleProject O Debug O Q12_SamplePr
48. heck that the RUN LED turns off and the 7 segment LED displays 00 Reset the C Controller module Q12DCCPU V on RUN OFF CF CARD A MODE Lights in orange D e USER OFF p SPoin Resetting procedure 1 Set the RESET SELECT switch on the front of the C Controller module to RESET 2 Check that the MODE LED turns off Reset end status Q12DCCPU V RUN CF CARD CH3 SD RD 3 Set the RESET SELECT switch to the center RESET SELECT switch A caution Do not operate the switches using a sharp pointed tool such as a driver Doing so may damage the switches 22 9 Resetting the C Controller module will format the standard RAM The RUN LED and the USER LED start flashing in green Q12DCCPU V RUN RUN Flashes in green CF CARD T MODE Lights in green USER Flashes in green CH3 SD RD 10 When the formatting is ended the RUN LED and the USER LED end flashing and the MODE LED starts flashing in green Q12DCCPU V RUN RUN OFF CF CARD MODE Flashes in green eae USER OFF 11 Reset the C Controller module When the formatting is completed the RUN LED and the MODE LED light in green Q12DCCPU V RUN CF CARD CH3 SD RD RUN Lights in green MODE Lights in green USER OFF 2 Setting parameters Set parameters for the C Controller module 2 Terminology Parameter Setting data required for a C Controller system to o
49. ic Device RS Project Explorer 52 gt Fi Q Getting Started 53 J 2 outline 53 BS a yes E Q12 SampleProject Wind River VxWor lt M j gt A Remote Systems 2 2 NM SS als Is EP Local Tasks 5 EER Problems Si 0 items a Description Resource Path Loca Type 4 ay i 24mof4sm D 32 2 Creating a project Operating procedure 1 Select File gt New Wind River Workbench 6 Enter a project name Project In this procedure enter Q12_ SampleProject 7 Click the button Basic Device Development CW Workbench 1 gies Edit Source Refactor Navigate Search Proiect Rin itindam Helm New Alt Shift N New Wind River Workbench Project Open File LJ Tweeti Build Target Project C Folder Create a new project with the specified data Ey File amp Refresh F5 File from Template 6 Convert Line Delimiters To gt i vi F4 Example Project name Q12_SamplePloject Location Create project in workspace Fy Other Otri N Switch Workspace gt Create project at external location 2 Select Wind River VxWorks6 4 Create project in workspace with content at external location 3 Click the button Ww New Wind River Workbench Project Target Operating System Select the target operating system for the project
50. ions Select the launch context for executing the launch operations Fe xR e Name Q12 SampleTask 012 SampleProject out VxWorks6x_192168 3 3 tg Launch Context 8 Downloads Projects to Build ky Source 1 amp Attach Target Context fe C C Application fe C C Attach to Application E C C Postmortem Debugger Launch Context 4 7 nn am pplication a E Q default localhost l S O VxWorks Kernel Task ore vxsimO Wind River VxWorks 6 4 Qh noEntryPoint Q12 SamplePro CHE vxsim1_smp Wind River VxWorks 6 4 Qs VxWorks Real Time Process tid VxWorks6x_192 168 33 Wind River VxWorks 6 4 General 8 Entry Point J O12 SampleTask Browse Arguments VxWorks Kernel Task Options gt Advanced v Debug Break on Entry C Automatically attach spawned Kernel Tasks lt Filter matched 9 of 9 items 9 10 Debugging starts Program execution stops at the start of the function specified in Entry Point Q12_Sample c 3 HEE ARAATEA ATEN AEA AREA ARATE A TATA RE TARA TRAN AA RAAT Process outputs from Y signal and control the 7 segment LED HAKATA AKATAAAAEKATETAATA ARATE EATEEEETEEAAAA ATA AAAEEEEE void Q12 SampleTask Declare local variables short sRet Return value of the QBF function long lPath Path of a bus unsigned short usDataBuf Y signal in units of words unsigned short usEmptyDataBuf For rese
51. le The following shows an example of wiring the power wire and the ground wire to the base unit Provide grounding to prevent electric shock and malfunction Power supply module OS Q62P E INPUT 100 240VAC 50 60Hz 105VA 1 Connect a 100VAC power supply to the power input terminal ECE ERR 24 By C pem aa _ N Ca ym GA 24G m Ca TT 2 FG 100VAC o 2 LG ae LG and l ieee terminals om TTR 2 A p I jl 1 K 120VAC o lr wire aT 2 Wiring the output module The following shows an example of wiring the output module QY40P MELSEC Q62P Q Lamp 1 Signal YOO INPUT 100 240VAC 50 60Hz 105VA Lamp 2 ERR Ali jo 24V Q 7 Signal Y01 Fan zA 7 S OSA iS fa LID oO amp N mO T Lx L oY EE ee a 17 18 Point Wire the power supply line of the output device and that of the C Controller system separately as shown below 100VAC 200VAC Main power Relay Power supply of Insulation terminal the C Controller transformer ee block system i O C Controller system Output power supply oN OO Output device Inside of a control panel 4 Checking the power supply module Check that the power supply module runs normally after installing the system mounting the modules and wiring the system Operating procedure I Check the following before powering on the syst
52. ller Module User s Manual Hardware Design Function Explanation SH 080766ENG lt Debugging using breakpoint gt As well as debugging in units of one step described in the step 11 shown to the left debugging using a breakpoint is available 1 Double click the left edge of a source file window and insert a breakpoint Q12_Sample c 3 RRKKKKKKKHTKARRHKFTKARAKKKKEKAHHEKARAAATTE a a a a a a t Process outputs from Y signal and control the 7 segment LED E a a a a a a a a a a a a a a a a a a a a a a a a a a void Q12 SampleTask Declare local variables short sRet Return value of the QBF function long 1Path Path of a bus unsigned short usDataBut Y signal in units of words unsigned short usEmptyDataBuf For reset of Y signal char pedata 2 7 segment LED on value short n AO For loop Open the bus sRet QBF Open CPU_TYPE amp lPath if sRet O printf ERROR QBF Open d 04hxH n sRet sRet return Set the output signal Y value turn on the even bit usDataBut QY_LED Set the output value of the 7 segment LED only the ones places ar pedata O SEG _LED1 pedata 1l SEG_LED2 Perform an output control and 7 segment LED control in turns by 20 for i O i lt 20 i Output control sRet QBF Y Out WordEx 1Path NORMAL ACCESS UNIT_XY WORD amp usD ifisRet Oj f printf ERROR QBF Y Out WordEx 1 da 04hxH n sRet
53. ller module for the first time connect a battery connector A caution Mount a battery before operation Power off the system before mounting a module Mounting a battery to the C Controller module 1 Open the cover at the bottom of the C Controller module L C Controller module side connector 2 Insert the battery side connector into the C Controller Battery side connector module side connector in correct orientation 4 3 Close the cover at the bottom of the C Controller module 4 Bottom of End the C Controller module N Y FA i 2 T 1 Insert the module fixing Base unit Side view projection into the module fixing hole on the base unit PTN projection 2 Fully insert the module fixing projection in the arrow direction Module Module fixing and press the module until the fixing hole projection projection snaps into place I I I I I I I Module fixing I I fixing hole Module Side view For how to remove a module refer to the following 5 gt QCPU User s Manual Hardware Design Maintenance and Inspection SH 080483ENG 16 3 Wiring the modules Wire the power supply module caution Power off the system before wiring the module For wiring precautions refer to the following QCPU User s Manual Hardware Design Maintenance and Inspection SH 080483ENG 1 Wiring the power supply modu
54. n New Connection Target Server Options Review and customize the target server options Backend settings Backend wdbrpe Processor default from target Target name IP address 192 168 3 3 v Port Kernel image 1 0 QOFile path from target iF available 9 C AMELSEC CCPUID x ToolstQ12DCCPU V_12042 B v L Bypass checksum comparison Advanced target server options Verbose target server output Options R Ci WindRiver workspace RW Bt 3 v Command Line tgtsvr Y R C WindRiver workspace RW Bt 3 c C MELSEC CCPUIDYx Tools Q12DCCPU _12042 B A 192 168 3 3 The Open File window appears 11 Select the VxWorks image file copied in the step 4 C MELSEC CCPU DVx Tools from the tree view and click the button Open File Look in Tools i 5 E gt BF i E Q12DCCPU V _12042 LJ My Recent Documents Desktop My Documents gs My Computer File name Q12DCCPU _12042 B D A My Network Files of type 12 Click the button Command Line totswr Y R C WindRiver workspace RW Bt 3 c C MELSEC CCPLID x Tools Q12DCCPU _12042 B A 192 168 3 3 13 Select the target server added in the Remote Systems window and click iA Remote _ By o JOKEREN EF Local HA Welorksb 192168 3 3 wind River VWcvorks 6 4 ka Ml gt T unconnec
55. n HELP P C Controller module connected successfully Read parameters al C Controller setting utility 192 168 3 3 Default Device settings 1 0 assignment settings Module information Eventhistoy SRAM monitoring Module monitoring Multiple CPU settings Communication diagnostics Online operation System settings r Module information m LED information RUN C C MODE CF CARD C O ERR CH3 SD RD E F USER Toggle switch information segment LED information Error code Start monitoring r Error information I System WDT er I User WDT err I Module verify err Fuse blown err IT Control bus err STOP MODE RUN RESET SELECT CPU operating status Parameter boot drive _ Multiple CPU bus err I Battery er Momentary stop I Main CPU err JT Intelli module err JT Intelli module assignment err IO Parameter err JT Intelli module parameter err TO Link parameter err I Multiple CPU err Others Refer to the Event history tab for details CPU type 2 q12DCCPuU CPU type fixed r Drive information r Standard RAM information Used space KB Free space KB Update Cancel CF card information Used space J KB Free space J KB Load File Save File Help Exit New cpu type Q12DCCPU Y User name target The Connection settings window appears 4
56. ng utility P 52 al C Controller setting utility 192 168 3 3 Default 3 al C Controller setting utility 192 168 3 3 Default Device settings 140 assignment settings Multiple CPU settings Communication diagnostics Device settings 120 assignment settings Multiple CPU settings Communication diagnostics Module information Eventhistoy SRAM monitoring Module monitoring Online operation System settings Module information Eventhistoy SRAM monitoring Module monitoring Online operation System settings Module information LED information RUN M BT MODE Error code fi Slot No gt Start 1 0 No 0000 Control CPU No 1 Type 16 points Output module 16 points CF CARD F ERR CH3 SD RD M T USER tor information System WDT err Main CPU err i 0x5555 C G Toggle switch infomation 7segmert LED information User WDT er Intelli module err Input Output Yx uffer memory Address format DEC HEX Offset Stop monitoring Latest error Numeric format DEC HEX Multiple CPU bus err Link parameter err Battery err Multiple CPU err Momentary stop Others Parameter boot drive Standard RAM efer to the Event history tab for details Drive information Standard RAM information ay Used space KB Free space KB Update CF card information Used space KB Free space KB Connection settings Load File Save File Help Exit Connection settings Load File Save File aif Help New CP
57. oads Projects to Build Common xWorks Kernel Task Download Options Launch Context N H B S E amp default localhost ore yxsimO Wind River VxWorks 6 4 mla smsmimt mame AAi Di cnu Uith AS gt Advanced 3 Gose f SPoint The Launch Configuration Selection window appears on and after the second operation of the step 2 Select the Launch the selected launch configuration radio button and click the button Launch Configuration Selection Choose Action G Workbench has found one or more existing launch configurations that match your selection What do you want to do Edit the selected launch configuration Edit a duplicate of the selected launch configuration Create a new launch configuration Matching VxWorks Kernel Task Launch Configurations leProject out VxWorks6x 192 168 3 3 See Target Management Launch Configurations for additional settines 9 Va OK Cancel 41 2 Debugging the user program 1 Select the created project in the Project Explorer window and click W on the right side of onthe toolbar 2 Click Debug Configurations G Device Debug 0127 SampleProject O12 Sample c File Edit Source Refactor Navigate Search Project Targ Re Di nie fs Jo a MS ial E Debug Ch 1 noEntry Point G12 5am Debue As 2 T On 2 sampleProject Ciind Ris gf Build Targets SSH 50enu Oreanize Favo
58. ognex Corporation All other company names and product names used in this guide are trademarks or registered trademarks of their respective companies 56 Mitsubishi Electric Corporation Nagoya Works is a factory certified for 15014001 standards for environmental management systems and ISO9001 standards for quality assurance management systems ISO 9001 e BUREAU VERITAS A U S Certification A Platform a ERMRONMENTAL EC97J1113 Mitsubishi Electric Programmable Controllers Precautions before use A For safe use This publication explains the typical features and functions of the products herein and e To use the products given in this publication properly always read the relevant manuals does not provide restrictions and other information related to usage and module before use combinations Before using the products always read the product user manuals Mitsubishi Electric will not be held liable for damage caused by factors found not to be the cause of Mitsubishi Electric opportunity loss or lost profits caused by faults in Mitsubishi Electric products damage secondary damage or accident compensation L NA 08211ENG A 1106 KWIX Country Region USA Brazil Germany UK Italy Spain France Czech Republic Poland Russia South Africa China Taiwan Korea Singapore Thailand Indonesia India Australia e The products have been manufactured as general purpose parts for general industries and have not
59. oject_parl File Edit view Favorites Tools Help i gt E Type File Folder Other Places File Folder OUT File 192 168 3 3 My Documents My Network Places Details User target Internet 45 3 Creating and storing a script file Create a script file that automatically downloads the execution module at the start of the C Controller module 1 Open a text file and describe a script file that downloads the user program and generates the task as shown below f STARTUP CMD Notepad File Feit Format Wiews Helm fe Downloads the user program 1d 1 0 Ram ol _ samp leProject cut Generates the task ff socal samplevask 3 Download the i Generate ine Q12_ SampleProject out Q12_SampleTask function file from the standard RAM with the default task name t1 Name the file as STARTUP CMD and save the file t 3 Copy the created script file on the standard RAM of the C Controller module ftp 192 168 3 3 RAM ftp 192 168 3 3 RAM SEE File Edit Yiew Favorites Tools Help ay Q sack QJ Search ij Folders ies s B ftp 192 168 3 3 RAM Eo Name Size Type O Melco File Folder Other Places MabF File Folder i ini 1 58KB OUT File 192 168 3 3 e pa fe 1STARTUP CMD 130 bytes Windows NT C My Documents My Network Places 3 User target amp Internet The script file has been created and stored
60. on in a user program allows a C Controller module to easily control MELSEC Q series modules 1 Opening closing a bus To use the functions open a bus at the start of the program and close the bus at the end of the program Functions to open close a bus Name Function QBF_Open Opens a bus QBF_Close Closes a bus SPeint Open or close a bus QBF_Open QBF_ Close functions once at the start of a program and at the end of a program respectively By using these functions only once communication performance will be improved 2 I O access 1 point access and 1 word access are available 1 1 point access A function that treats 1 point data ON OFF of switches and lamps Example of 1 point access functions Name QBF X In BitEx QBF_Y_Out BitEx QBF_Y_In _Bit_Ex Function Reads an input signal X in units of one point Outputs an output signal Y in units of one point Reads an output signal Y in units of one point 2 1 word access A function that treats 1 word 16 bits data numeric values characters Example of 1 word access functions Name QBF_X_In_WordEx QBF_Y_Out WordEx QBF_Y_In_WordEx Function Reads an input signal X in units of words Outputs an output signal Y in units of words Reads an output signal Y in units of words 3 User LED control USER LED control and 7 segment LED control are available Example of user LED control functions Name QBF_ControlLED QBF_Control7SegLED Func
61. patible Dedicated library solution controllers function Platform Large Large 0 88ms lume data volume data e vo a Shared memory gt MC Ch gt Shared memo shared memory High speed y High speed y cycles transfer transfer _ Shared memory system as if the system was controlled by a single CPU 6 Wide application using partner products In combination with the following partner products higher functionality and easy information link can be achieved 1 Information link with SECS communication software package CIMOPERATOR SECS Introduction of CIMOPERATOR achieves personal computer free and program free SECS communication GEM non GEM with the higher server enabling status management and information collection of manufacturing equipment 1 One of the industry standard communication protocol used in semiconductor manufacturing lines Microcomputer board and C Controll t personal computer environment ontroller system Higher N Higher ae SECS communication costs Personal computer free time effort and money environment Direct SECS communication can ae Eee be performed by implementing communication is the CIMOPERATOR execution required ona ns module on a C Controller module gateway personal computer Install CIMOPERATOR on the 3 CompactFlash card Lene personal Personal fefe oy ae 2 forts gt 7 PAESE n Aee Easy settings without is required Acor SECS
62. perate Set modules and a network in a C Controller system using C Controller setting utility I Connecting a C Controller module to a personal computer Connect CH1 of the C Controller module to a personal computer using an Ethernet cable C Controller Personal computer module AN caution The IP address of the C Controller module and that of the personal computer must be set to the same segment Since this guide uses the default IP address for the C Controller module 192 168 3 3 set the IP address for the personal computer to 192 168 3 other than 0 3 and 255 Set the subnet mask for the personal computer to 255 255 255 0 For how to change an IP address refer to the following C Controller Module User s Manual Hardware Design Function Explanation SH 080766ENG 23 2 Starting C Controller setting utility Operating procedure 1 Select start All Programs gt MELSEC gt C Controller C Controller setting utility eg Windows 7 Upgrade Advisor windows Media Player 8 Windows Messenger QA Windows Movie Maker T Trend Micro OfficeScan Client gt an Wind River gt All Programs fH MELSEC Log Off Shut Down B CC Link utility Preece ames EE MELSECNET_H utility The Specify CPU type window appears 2 Select Q12DCCPU V 3 Click the _ button Specify CPU type a Device monitoring utility MELSEC Data Link Functio
63. put module 16 points An operation test by forced write to a buffer Input Output 0x0000_ Buffer memory Address format C DEC HEX Offset uo i 3 3 memory can be executed in the same manner 4 The confirmation window appears 5 Check the output status al C Controller setting utility 192 168 3 3 Default Device settings 1 0 assignment settings Multiple CPU settings Communication diagnostics Module information Event history SRAM monitoring Module monitoring Online operation System settings Slot No Start 1 0 No 9000 Control CPU No 1 Type 16 points Output module 16 points Buffer memory Address format DEC HEX Offset Stop monitoring Latest error Numeric format DEC HEX Display format 16 bits eo0000coc ooo o ooo UU C 32bits H Connection settings Load File Save File Help New CPU type Q12DCCPU Y User name target The LED of the output module turns on 55 Microsoft Windows Windows NT and Windows Vista are registered trademarks of Microsoft Corporation in the United States and other countries Ethernet is a trademark of Xerox Corporation CompactFlash is a registered trademark of SanDisk Corporation VxWorks is a registered trademark of Wind River Systems Inc Cimoperator is a registered trademark of Nippon Denno Co Ltd In Sight is a registered trademark of C
64. r T Trend Micro OfficeScan Client an Wind River All Programs fm MELSEC Log Off fo Shut Down B CC Link utility Kel Device monitoring utility MELSEC Data Link Function HELP fg C Controller gt a MELSECNET_H utility bai v v C Controller setting utility starts 2 Click the Module monitoring tab 3 Click the Start monitoring button al C Controller setting utility 192 168 3 3 Default nication dia ti evice settings 1 0 assignment setting ics settings is z gnos n Event history SRAM monitoring 101 nline operation System ir nm RUN C FT MODE CF CARD I ERR CH3SD AD F I USER 7 segment LED information witch information TOP RUN SELECT rive information Standard RAM information SS Used space KB Free space KB CF card information Used space KB Free space KB Load File Save File CPU type Q12DCCPU The Module monitoring window appears 53 54 2 Check the Module monitoring window 14 al C Controller setting utility 1927 1668 3 3 Default Device settings 0 assignment settings Multiple CPU settings Communication diagnostics Module information Event history SRAM monitoring Module monitoring Online operation System settings 1 Slot No 2 Start 10 Mo Oc 3 Control CPU Ma he 4 Type 16 paints Output module 16 points 8 9 Input Output Ox0001 Suffer memory 10 Add
65. r VxWorks 6 4 Open Wind River VxWorks 6 4 Development Shell Build Properties Build Support and Specs Build Tools Build Macro Gama p Libraries Builders E a ey Build All Ctrl B E G ot Redirection root directory i g roject Info Build Project Ctrl Shift A Project References Note Leave this field blank to store build output together with the sources or enter an absolute path Clean Run Debue Settings environment variables are permissible to redirect the output Task Tags Build spec specific settings Build Ontions gt Validation Active build spec SH7750enule v Redirection directory SH7750grule Include paths u B n Include directories 2 J I WIND_BASE target h 2 Select Build Properties from the tree view to the left BIND BASE areeth y in the window fd to all 3 Click the Build Support and Specs tab 4 Select the SH7750gnule check box only in ped Available and enabled build specs 5 Select the Debug mode check box Properties for Q12 SampleProject Build Properties Resource Specify all build properties 3 Build Support and Specs Build Tools E Si Add include search path to selected build spec x Project Info Managed build makefiles generated by the IDE Project References Disabled Refactoring History Run Debug Settings Build command Smakeprefix make no print direc Task Tags Valida
66. ress format C DEC HER 11 Offset D O O O a a O A O O O G a O a e qUNAENINAEAII Connection settings New Slot No Start I O No Control CPU Type Start monitoring button A AAEREN m Stop monitoring button System into button Output Buffer memory Latest error Numeric format C DEC fe HEM Display format 16 bits A C 32 bits Load File Save File Help Exit CPU type Ql 20CCPL User name target Description Specify a slot No to be monitored Displays the start I O No of the module mounted on the slot specified in 1 Displays the CPU No that controls the module mounted on the slot specified in 1 When C Controller setting utility is connected to the C Controller module that serves as a control CPU appears on the right of the CPU No Displays the number of I O points and the type of a module when a module other than a CPU module is mounted on the slot specified in 1 Starts or stops monitoring of the C Controller module flashes in the upper right of this button during monitoring Displays the System information window Monitors the input X of the module mounted on the slot specified in 1 0 OFF 1 ON Monitors the output Y of the module mounted on the slot specified in 1 0 OFF 1 ON Monitors a buffer memory when an intelligent function module is mounted on the slot specified in 1 Select a numeric format for Offset Specify t
67. rites fle tied Aiar a1 mehar The Debug Configurations window appears 3 Click the downloaded module Q12_SampleProject out from VxWorks Kernel Task Ww Debug Configurations Create manage and run configurations 8 Please enter or select an Entry Point H y x ype filter tet O fit Attach Target Context fe GAG Application fc G G Attach to Application fe OAG Postmortem Debugger he C C Remote Application wf Launch Control Ch Veitlnek o Kernel Tack 3 ar mie TT Ch w i he T NS I GTa 4 Select the target server indicating connection to the C Controller module 5 Click the button Name noEntryPoint G12 SampleProjectiout VxWorksfx 192 168 3 3 Ag Launch Context i Downloads Projects to Build amp Source gt VxWorks Kernel Task Options Launch Context I MM S 2 E E default localhost Clits vxsiml Wind River VeWorks 6 42 mta uycimi cmn Cited Bisse whea o AAi ie General 5 Entry Foint g The Entry Points window appears 42 6 Select the function that starts debugging Q12_SampleTask 7 Click the button Module entry pointa E gt Downloads ATI CsI Daaa Sik ieee ee TF YALSIAMI_ICAI T Cancel 8 Check that the function name selected in the step 6 has been selected in Entry Point 9 Click the button Debug Configurations Create manage and run configurat
68. rtup procedure of the user program that starts at the start of a C Controller module 1 Right click the created module file Q12_ SampleProject out in the Project Explorer window and click Download VxWorks Kernel Task amp Basic Device Development 012 SampleProject Q12 Sample File Edit Source Refactor Navigate Search Project Run Window rai ri Dip Ori ge Project Explorer 52 amp H Y 7 OO A a12 samp fae Q12 SampleProject Wind River VxWorks 6 4 Downloadab f RRs lg Build Targets SH 7750enule debug Fune gt Wind River Launches fReeane gt Binaries includ Q12_SampleProject_partiallmage o sh le SH77 includ F812 SampleProject out sh le SH 7750enule includ in 1 New a E E Open Open With b EB Copy Ctrl C 3 Delete Delete Rename F2 Move Attributes b gxy Import rA Export Open Wind River VxWorks 6 4 Development Shell Build Project Ctrl Shift 4 4 Remote A Rebuild Project Build Options Refresh F5 E Loce fa WOM G gt Run VxWorks Kernel Task lt SJ wal te Nehe Veitinrke Kernel Tack fs Download VxWorks Kernel Task The Download Configurations window appears 40 2 Select the VxWorks6x_192 168 3 3 Wind River VxWorks 6 4 check box only in Launch Context 3 Click the button Name noEntryPoint 012 SampleProject out VxWorks6x_192 168 3 3 ta Launch Context 8 Downl
69. s for communication with a C Controller module ae Spoon No nen ner iiverae Power off the system before mounting a module Menu names on the menu bar Shows the explanations of y Terminology terminology Select Project Properties J gt shows drop down menus Buttons on the window OK button Keys on the keyboard _F4 key INTRODUCTION This guide simply explains the basic operations of a C Controller module for the first time users of the Mitsubishi programmable controller MELSEC Q series C Controller module hereafter abbreviated as C Controller module This guide is targeted for users who use the MELSEC Q series for the first time and are in the following situations e Users with experience in C language or C language programming e Users considering to replace the microcomputer board or the personal computer system with a C Controller system Mounting and wiring modules Quick Start Guide Programmable Controllers C Controtier Quick Start Guide Let s start C Controller d All information is included Precautions For safe use of the C Controller module read SAFETY PRECAUTIONS in the C Controller Module User s Manual N caution This guide explains operations using the system configuration in lt 2 gt System Configuration P 15 When designing operating a system refer to the manuals listed in the following gt RELATED MANUALS
70. s at the first line of the function gt Step Over Executes the current line of the function and then stops at the next line of the function amp Continues execution until the current function has returned to its caller 1 gt Executes a program ii Stops a program Ends debugging 13 Click inthe Debug window to terminate the debugging session F Debug 3 13 o Ob aps D ep E js 7 E h Le Sample Task G12 SampleProjectout VoclWorksGx 192 168 3 3 To start debugging again click W on the right side of on the toolbar and select the created debug configuration at the top of the pop up menu The steps 1 to 10 can be skipped Device Debug Q12 SampleProject Q12 Sample c CW Workbench File Edit Source Refactor Navigate Search Project Target Run Window eh aio bjo a s yese R Project Explor 2 Debug 1 O12 SampleTask O12 SampleProject out m B Debug As S E O12 SampleProject Wind Riva Debug Configurations gl Build Targets SH7750enu Organize Favorites 44 6 Registering an execution module Build the created program for operation and store the created module on the C Controller module Operating procedure I Building the user program 1 Select the created project in the Project Explorer window and click Project Properties amp Device Debug 012 SampleProject Q12 Sample c CW Workbench File Edit Source Refactor Navigate Search
71. sRe 2 Click Ge s Debue E 2 HZ Fe iz ea The program is executed at the position specified by the breakpoint mo c Q12_Sample c 3 LREEREDERE RT EEERE RT ER ERED EERE DED ER EEE E TAREE E EER ED EERE AEE REE A ERE RA EEA ET ETD Process outputs from Y signal and control the 7 segment LED FEKKKRKREEKKREEKKKREEEKKREEKKEKEKEKKEKEKRKRERKEKEEKRKREEKRRKREEKEREKERREEEE void Q12 SampleTask i Declare local variables short sRet f Return value of the OBF function long lPath Path of a bus unsigned short usDataBuf t Y signal in units of words unsigned short usEmptyDataBuf For reset of Y signal char pedata 2 7 segment LED on value short i For loop Open the bus sRet QBF Open CPU_TYPE 1Path if sRet Ojf printf ERROR QBF_ Open sad sO04hxH n sRet sRet return Set the output signal Y value turn on the even bit usDataBut QY LED Set the output value of the 7 segment LED only the ones places are pedata O SEG _LED1 pedata 1 5EG_LED2 Perform an output control and 7 segment LED control in turns by 20 for i O i lt 20 i Output control sRet QBF Y Out WordEx 1Path NORMAL ACCESS UNIT_XY WORD amp usDa if sRet 0 printf ERROR QBF_Y Out_WordEx_1 sa O04hxH n sRet sRet 43 _ Reference The descriptions of icons are as follows Step Into Steps into the called function and stop
72. t of Y signal char pedata 2 segment LED on value short is For loop Open the bus sRet QBF Open CPU_TYPE amp lPath if sRet Ojf printf ERROR QOBF Open d O04hxH n sRet sRet return 10 11 Click gt in the Debug window to perform debugging by one step F Debue 2 11 E oi Hl alele id g 7 hy 2 Samplelask G2 SampleProjectout VxWorks 192 7 66 3 3 12 By clicking a tab on the bottom right of the Variables window variable values can be checked and changed In this step check that sRet return value of the QBF_Open function is 0 normal value G Variabl Ef gt ooi Registe Go Expres D Memory O st D O v Name Type Value 1 2 J sRet short int d Path long int 122045982 J uzDe short unsi OxEEEE usEn short uns OxEEEE GH peda chari Od OCF FF x short int 4370 1 Depending on a personal computer the Variables window appears as shown below Adjust the window size J m gN E ot O gt G Name Type Value A d a K al EJ ii B In the steps 11 and 12 debug the entire program Reference If the return value of the bus interface function is other than 0 troubleshoot with reference to the following c gt Bus interface function help window in SWOPVC CCPU C Contro
73. t usDataBuf d unsigned short usEmptyDataBuf char pedata 2 short i vxTaskEntry 0x4804964a pi tServer_module 0x49391010 Project Explorer window C MELSEC CCPU uVx Include C WindRiver gnu 3 4 4 vxworl C WindRiver gnu 3 4 4 vxworl C WindRiver vxworks 6 4 targe Breakpoints window Project management and settings T E Breakpoints 5 eo a ETERNON Breakpoint management UserProject Sample c 83 Planted3 1 Open the bus B C WindRiver vxworks 6 4 target sRet QBF_Open CPU_TYPE amp 1Path SH7750gnule if sRet 0 7 Ig Sample c printf ERROR QBF_Open d 04hxH n sRet sRet W UserProject Sample c 126 Plagtied return T UserProject Sample c 137 Planted a m F Remote Systems z Remote Systems window 5 Set the output signal Y value turn on the even bit usDataBuf QY_LED x N 8 a Bl Set the output value of the 7 segment LED only the ones a Connection to the C Controller module 7 E wgl pcdata 0 SEG_LED1 B FE VxWorkegx_192 168 3 3 Wind River pedata 1 SEG_LED2 a Wind RivexJarget Debugger Win L 0 p j Fos ers S VxWorks 62 6H7780 stateles J Error Log 52 Tasks 42 Terminal Zi Problems Properties E Build Console EJ Console Sila s B Name Type 6 mod int o Kernel Tasks Workspace Log B5
74. ted Wind River VxWorks 64 14 After s is clicked the connection is completed when connected target server running is displayed at the bottom of the Remote Systems window F Remote Systems E3 a E NA 2 3 0 7 Es Ef Local S E ia Yx Works x 192 168 3 3 Wind River VxWorks 6 4 Set Wind River Target Debugger vind River VocWorks Gl VolWorks 6 4 SH7780 stateless H7780 Kernel Tasks l ae Real Time Processes 44 ECMPLout0xF Symbol file SYSTEMRG a4 ECPCGLoutOxE Symbol file SYSTEMRC a EfSocketCPPForMDout0xD Symbol file 48 ftodLliboutOx12 Symbol file SYSTEMRC 44 GU 2DCCPU V 12082 B 0 B Symbol file a YxMDFunc utOxC Symbol file SYSTE Ge ov hae eat a M anb ed AAT iil 4 al ia 14 connected target server running Kernel image If connected target server running is not displayed check that the C Controller module is normally powered on and perform the operation again from 4 Connecting a C Controller module to CW Workbench P 38 39 5 Debugging the user program Check that the created program correctly operates I 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 Downloading a user program allows users to execute the program without a script file o Terminology Script file A file that describes the download location and the sta
75. tion Available and enabled build specs 4 eerie Default build spec SH 50gnule Active build spec SH 50enule Ea SPoint Clear the Debug mode check box for the actual system operation 34 4 Select the include folder dedicated for the C Controller module in the Select directory window In this procedure the folder is the one when SWOIPVC CCPU has been installed on C MELSEC 5 Click the button Select directory E MELSEC E CCPU iy cciec CCLINK C CCPUTOOL E Dive ait i Folder Include 5 6 Check that the folder specified in the Select directory window has been selected 7 Click the button W Add include search path to selected build spec Eg Value 6 I0 MELSEC CGPUY Dehe lude Browse Dancel 8 Check that the added include path is displayed in the Include paths area 9 Click the button Properties for Q12 SampleProject Build Properties Resource Binary Parser Build Properties Build Support and Specs 4 Build Tools Build Macros amp Build Paths A Libraries Builders j 5 C C General Redirection root directory Project Info Project References Note Leave this field blank to store build output together with the sources or enter an absolute path Run Debue Settings environment variables are permissible to redirect the output Task Tags Build spec specific settines
76. tion Controls the USER LED of a C Controller module Controls the 7 segment LED of a C Controller module 26 Only the basic bus interface functions are explained in this section Bus interface function for controlling modules and the MELSEC communication function are also available SWOPVC CCPU 2 Bus interface functions used in this guide Bus interface function help window and MELSEC communication function help window in gt C Controller Module User s Manual Utility Operation Programming SH 080767ENG Basic bus interface functions output access and 7 segment LED control are used in the program created in this guide e Opening closing a bus QBF_Open QBF_ Close functions Format ret IBF Opent unit path Type Mame Description short ret Return value short unit Module identification fixed to 2 long path Pointer to the path of the opened module Format ret IBF Close pathi Type Name Description short ret Return value long path Fath of the opened bus e Output access QBF_Y_ Out_WordEx function Access flag 0 Normal access 1 High speed access Others Reserved normal accessi Format ret IBF Out WordExf path sFlg us no ussize pusDataBuf usButsize Type Name Description short ret Return value long path Path of the opened bus short sFlg unsigned short usino Start output number 0 unsigned short usSize Write size in words unsigned short pusDataBuf Write data unsi
77. urn Control the 7 segment LED using the bus interface function Invert the output signal Y value turn on the bits in order of odd bit gt even bit gt usDataBuf usDataBuf 30 Invert the output values of the 7 segment LED turn on in order of all ones places gt all tens places pcdata 0 pcdata 0 pcdata 1 pcdata 1 Wait taskDelay 40 RS il a aa cts anata lpn ae een oe eee we Turn off both outputs from the output module and the 7 segment LED usEmptyDataBuf 0x00 sRet QBF_Y_ Out_WordEx IPath NORMAL_ACCESS UNIT_XY WORD amp usEmptyDataBuf DUMMY if sRet 0 printf ERROR QBF_Y_ Out _WordEx_2 d 04hxH n sRet sRet QBF_Close IPath return Reset the 7 segment LED pcdata 0 0x00 pcdata 1 0x00 sRet QBF_Control7SegLED IPath MODE_MANUAL amp pcdata 0 if sRet 0 printf ERROR QBF_Control7SegLED_2 d 04hxH n sRet sRet QBF_Close Path return e AEAEE Close the bus J Disable the bus QBF_Close IPath interface function at ae the end of the program 31 1 Creating a project I Starting CW Workbench Operating procedure 1 Select start gt All Programs Wind River gt CW Workbench CW Workbench C Rererence ererence 1 e The default window sizes and icon AllPrograms fH Wind River gt ffm CW Workbench Te nch PPI aa o oo positions on

Download Pdf Manuals

image

Related Search

Related Contents

宮妻峡ヒュッテ  BTS-002 – Système CMT pour plateaux  EBS User`s Manual  Year 2010  Bloco de comando con funzione di sicurezza Styrbock med  BCUTE Technical Description for Digital Pulse Oximeter Module  GRAISSE MoS2 (Cartouche)  使用上の注意は、 カタログ又は取扱説明書をお読みください  Atag - `Q` Series - free boiler manuals  

Copyright © All rights reserved.
Failed to retrieve file