Home
CW Workbench/CW-Sim Operating Manual
Contents
1. lt gt 9 Check that the added include folder is displayed in the Da a Include directories column in Include paths and click B Peers z Busa Suppor ana spect f Tools amp Paths Defines mh Libraries Variables t nm 3 the OK button Redirection directory ARMARCH7gnu SMP Redirection root directory li Note Leave this field blank to store build output together with the sources or enter an absolute path environment variables are permissible to redirect the output 10 if the message shown on the left appears click the Yes button Que o The C C index needs to be rebuilt to reflect the build property changes you just made Do you wish to rebuild the index now l Remember my decision 7 CREATING AND BUILDING PROJECT 3 7 1 Creating New Projects 9 How to add new files 1 Selecta project to which a new file is to be added from File Edit Navigate Search Run Project Window Help the Project Explorer window and select File New New Alt Shift N gt E Wind River Workbench Project Open File ES Project gt File Close Ctrl W Build Target Save Cus Folder Save As Lt Fae 3 Filefrom Template Refresh F5 Convert Line Delimiters To gt FS Example Print cp DI Ce Y New File is displayed
2. OxeECOOQ 78 20000000 20000000 QQQOQQOD Debugging of multiple tasks Operating procedure 1 Repeat the procedure from the step 1 to step 6 described in Debugging of single task Page 74 Debugging of single task Multiple tasks can be started he executed task is displayed on the Debug window The tasks can be switched by selecting a function on the Debug window Multiple tasks can be debugged with switching the tasks m py uy ry r x i c e EntryWDTInt_R12 c 23 N_ gite T m pcm vr ee EEE a it MODULE EntryWDTMain ABSTRACT WDT Main processing FUNCTION Task Initialization i NOTE None PI RETURN None CREATE 2014 10 09 MITSUBISHI ELECTRIC COR ej UPDATE vy KKKKKKKKKKKKKKKKKKKKKKKKKKKK SESSSSSSSESTSSESSTSSESESE SSS SESESTESESESSESESESESSE void EntryWDTMain STE ttttttttttttttttttttttttttttttttttttttttt a Create and activate a task monitoring Module Status AAA Ret taskSpawn TASK NAME 1 PRIORITY_150 e STACK FUNCPTR StatusCheckRtn 0 0 0 O O O O 0 if sRet ERROR 8 CONNECTING AND DEBUGGING C Controller module 8 5 Debugging User Programs AN pf f 3 0 e md 4 ET Entry WDTMain UserProject out VxWorks x 192 168 3 3 VxWorks Kernel Task 4 2 ARMI 0x57F438 Task Mode 4 tEntryWDTMain 0x2158D20 Stopped EntryWDTMain Entr
3. Non Debug mode 4 202 fno builtin fsigned char 2 7 CREATING AND BUILDING PROJECT 5 7 1 Creating New Projects 1 Selecta project to which property is to be set and select Project gt Properties on the Project Explorer window The Properties for project name screen is displayed 2 Select Build Properties from the tree on the left on the screen and select the Build Support and Specs tab 3 Check that only the following item is selected in Available and enabled build specs Fora project to be downloaded to C Controller module ARMARCH7gnu SMP For a project to be simulated with CW Sim or CW Sim Standalone SIMNTgnu SMP The Debug mode is selected by default Unselect Debug mode for the practical operation Non Debug mode 4 Setthe following for a project to be downloaded to C Controller module that is when ARMARCH7gnu SMP is selected in the step 3 e Select the Tools tab enter mlong calls in the box next to the Tool Flags button Enter fsigned char in the boxes next to the Debug mode and Non Debug mode buttons for Debug mode flags 5 Select the Paths tab and click the Add button Properties for UserProject X type filter text Build Properties x Specify all build properties Build Properties Build Support and Specs f Tools
4. Pr LLLI Socket communication wee ee eB ee ee ee ee ee ee eH Simulator No 1 Simulator No 3 Simulator No 0 In CCPU Simulator the following device memory is simulated gpsDevArea Input signal X 2s Output signal Y 1024 bytes 8192 points 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 96 11 1 Features of Sample Program Operation of sample program Simulator No 0 1 Establish the TCP IP connections with the previous No 3 and next No 1 simulators 2 Monitor X0 to X8191 when X device is turned ON then Y device data same device number as X device is turned ON 3 Send the device number of X device of which ON status is detected in the step 2 to the next simulator No 1 with the socket communication 4 When the ON notification of X device is received from the previous simulator No 3 inversely output the data to Y device with the same device number as ON notified X device number 5 Read the data of ON notified X device number and transfer the same data to the next simulator No 1 if the status is ON 6 Repeat the steps from 1 to 5 The Y device turns ON and OFF repeatedly by the above operation Simulators from No 1 to No 3 1 Establish the TCP IP connections with the previous and next simulators 2 Ifthe ON notification of X device is received from the previous simulator inversely output the data to the following Y device No 1 Y device with the ON notif
5. Before performing online operations especially program modification forced output and operation status change for the running C Controller module from the peripheral devices connected read relevant manuals carefully and ensure the safety Improper operation may damage machines or cause accidents O When connecting any external device during operations of CW Sim and CW Sim Standalone ensure that the operation is safe before proceeding Improper operation may damage machines or cause accidents CONDITIONS OF USE FOR THE PRODUCT 1 Mitsubishi programmable controller the PRODUCT shall be used in conditions i where any problem fault or failure occurring in the PRODUCT if any shall not lead to any major or serious accident and ii where the backup and fail safe function are systematically or automatically provided outside of the PRODUCT for the case of any problem fault or failure occurring in the PRODUCT 2 The PRODUCT has been designed and manufactured for the purpose of being used in general industries MITSUBISHI SHALL HAVE NO RESPONSIBILITY OR LIABILITY INCLUDING BUT NOT LIMITED TO ANY AND ALL RESPONSIBILITY OR LIABILITY BASED ON CONTRACT WARRANTY TORT PRODUCT LIABILITY FOR ANY INJURY OR DEATH TO PERSONS OR LOSS OR DAMAGE TO PROPERTY CAUSED BY the PRODUCT THAT ARE OPERATED OR USED IN APPLICATION NOT INTENDED OR EXCLUDED BY INSTRUCTIONS PRECAUTIONS OR WARNING CONTAINED IN MITSUBISHI S USER INSTRUCTION AND O
6. cc ee hr 23 2 5 Contents of DVD ROM CD ROM cvs cerrara eee wae ote ee eae So eee Ss 24 CW Workbench CW Sim DVD ROM 2 226005 bella eX ds be be eee bers die 24 CW Sim Standalone CD ROM linea A ETA 24 PART 2 INSTALLATION AND UNINSTALLATION CHAPTER 3 INSTALLING CW Workbench CW Sim 26 3 1 Preparation Tor Installation isc a a dr a oc de eee i A sd CR e 26 3 2 Considerations for Installation 2 242 ssi up nm RR EE a REOR A TRL 26 Installation using temporary license 25 5 acere hen eater un 27 3 3 Acquiring Reacquiring Permanent License cee es 27 Acquiring permanent license a 27 Reacquiring permanent license replacement of host Machine 28 3 4 tici M 30 IS tallavon PlOCCOUNG 22 PTUS 30 Environment and operation after installation 36 3 5 Applying Permanent License parere ta de ao de a a RO aa 37 3 6 APPNO uir MP C PLC te eee 37 HOWO acaulre Pali 25d uu roo ERRE RARI Oe 38 HOW IO SDDIY Dal spero TS TS tI rue TTE ET ST EE PRESE EINE ed 38 CONTENTS CHAPTER 4 INSTALLING CW Sim Standalone 4 1 Preparation for Installation 2 2 asserire pia aio 4 2 Installation MN RETE Gan ela reti i IT ee ee ee ee ee ae CHAPTER 5 UNINSTALLING CW Workbench CW Sim 5 1 Preparation for Uninstallation 0 0 0 cc es 5 2 Deleting Permanent License 29x IO En 98 CERRAR ACE 8 ACCIUS UC e ii eee wees 5 3 UNAS ta MA MON ce s 2 276 309 ai cao CA al eee chee A ca It
7. win32 bin A Prompt from Windows Start 1 For Windows 8 or later select All apps on the Start screen The Command Prompt is started en configuration file C CCPUSIMvxsimnetd conf start networ tio k configura vxsimnetd Debug Shell Execute the command prompt as administrator 2 Enterthe following command to change the current directory to the folder in which CW Sim is installed e cd C WindRiver vxworks 6 9 host x86 win32 bin 3 Enterthe following command to start the VxWorks network daemon e vxsimnetd exe f C CCPUSIM vxsimnetd conf s Poin tr Do not close the command prompt on which VxWorks network daemon is started during debugging Otherwise the VxWorks network daemon will be terminated 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 2 Starting VxWorks Network Daemon 89 9 3 This section explains how to start the simulator Starting Simulator In the Operating procedure as an example the setting of the following virtual network is described IP address 192 168 2 1 Default gateway 192 168 2 254 BS c FA EEES 4 Ei Local b Q Wind River Registries b Local Files TX Local Shells gt HB vxsim0 Wind River VxWorks 6 9 gt HB vxsim1_smp Wind River VxWorks 6 9 gt HA VxWorks6x_192 168 3 3 Wind River VxWorks 6 9 Select Remote System Type System type type filter text gt gt Gen
8. Paths Defines m Libraries Variables Builders Build spec specific settings DU Oe Active build spec ARMARCH7gnu_SMP External File A gne I Project Info Project References Include paths Refactoring History Run Debug Settings Include directories Generate Task Tags IS WIND_BASE target h Edit Validation IS WIND BASE target h wrn coreip E S Add to all Remove from all Up Down Redirection directory ARMARCH7gnu SMP Redirection root directory Note Leave this field blank to store build output together with the sources or enter an absolute path environment variables are permissible to redirect the output The Add include search path to selected build spec screen is displayed 6 Click the Browse button The Select directory screen is displayed 7 Select the include folder to be added and click the OK button The include file is stored in the following Use the include file after copying it to a local folder of the personal computer R12CCPU V SYSTEMROM INCLUDE e CW Workbench CW Sim DVD ROM Include 4 WindRiver p wind gt p components gt p docs 4 p download gt di data dy INCLUDE gt 6 gnu gt p jre p license gt J Imapi 5 0 Folder INCLUDE senesi LX Co 8 Check that the include folder specified in the step 6 is selected and click the OK button Value IC WindRiver download INCLUDE
9. i Tae wm j E Creste a new file resource E 2 Enter a file name in File name and click the Finish polio butt on i 12 RemoteSystemsTempFiles ui UserProject Wind River VxWorks 6 9 Downloadable Kernel Module Project Enter a file name with extension c h cpp hpp for File name File name Sample c 3 Editthe source files on the Editor window and include 15 Basic Device Development UserProject 5amp EC CW 1 orkbench ai i File Edit Source Refactor Navigate Search Run Project Window Help the following include file B Gels O0 9 ox ded LOL ILES A MEI C Controller module dedicated function CCPUFunc h 3 Project Explorer HN E 3 I 2 N ame O css TX 4 amp UserProject Wind River VxWorks 6 9 Downloadable Kernel Mc a include CCPUFunc h M E LS E C d ata n k fu n ctio n M D F unc h gt Mln Build Targets ARMARCH7gnu_SMP debug Es include MDFunc h Es Wind River Launches gt ap Includes d Sample c Point If characters that cannot be used for Windows is entered for File name an error text appears on the header of the window and the Finish button is disabled Do not use the following characters and symbols for File name Otherwise a compilation error occurs at compilation amp two byte characters katakana K Page 106 Common Troubleshooting 4 7 CREATING AND BUILDING PROJECT
10. 1 Right click on the Project Explorer window and select Import from the shortcut menu The Import screen is displayed 2 Select General gt Existing Projects into Workspace and click the Next button 3 Select Select root directory and click the Browse button The Browse For Folder screen is displayed 4 Select the folder in which the project to be imported is stored and click the OK button A list of the projects stored in the folder including subfolders impo e ea specified in Select root directory is displayed in Projects Import Projects Select a directory to search for existing Eclipse projects 9 Select root directory C WindRiver workspace33 TestProject 5 Checkthatthe project to be imported is selected and Select archive file Bro a NM a click the Finish button Y TestProject C WindRiver workspace33 TestProject Select AII L Copy projects into workspace Working sets Add project to working sets Working set Y Select The specified project is imported to the workspace File Edit Source Refactor Navigate Search Run Project mi ri bHeo 0 a E D gt gt TestProject Wind River VxWorks 6 9 Downloadable Kernel b ai UserProject Wind River VxWorks 6 9 Downloadable Kernel Mi Point When importing a project created in Wind River Workbench 2 6 or earlier
11. 3 Enterthe following command to start the simulator vxsim69 nl exe f C CCPUSIM vxWorks 6 9 SMP d simnet e 192 168 2 1 g 192 168 2 254 OL When the connection to the simulator is established the Tl Vxsim3 an Volume Parameters FAT type FAT12 sectors per cluster 1 2 FAT copies 54 clusters 1 sectors per FAT Sectors reserved 1 hidden 0 FAT sectors 2 Root dir entries 112 sysId VXDOS12 serial number 60000 Label To UR OK Loading symbol table from host c ccpusim vxworks 6 9 smp sym done Target Consoles screen is displayed 111141 11144 Development System VxWorks 6 9 SMP KERNEL WIND version 2 13 Copyright Wind River Systems Inc 1984 2014 11111 CPU Windows 6 1 Processor 3 Memory Size 0x1 00000 31Mb Created Nov 25 2014 16 57 06 ED amp R Policy Mode Deployed WDB Comm Type UDB COMM PIPE WDB Ready m BSP version 6 9 0 gt ld 1 0 simulation_3 out value 283376192 0x10e3fa40 sp StartSimulation 0 0 0 0 0 0 0 0 0 Task spawned id 0x10e785d0 name tl value 283608528 0xi10e785d0 sp UserProgram 0 0 0 0 0 0 0 0 0 Task spawned id Oxi0e785d0 name t2 Vili 283608528 Ox10e785d0 4 10 CONNECTING CW Sim Standalone AND DEBUGGING PROGRAMS 9 10 3 Starting Simulator Poin tr For activating multiple simulators specify a processor number by adding the p option e If STA
12. 8 CONNECTING AND DEBUGGING C Controller module 8 5 Debugging User Programs 17 Expressions window Displays the current values of variables registered on the Watch window A Variables 3982 Registers 42 Expressions zm g Memory Browser a e Bl et RG e Expression Type Value Name lEvent _ r_ _TrrreGG ji Hex 0x024C2FA 4 2 lEvent long int 4 0x024C2FAC Decimal 38547 69 lEvent long int 1 Octal 0002230 69 lEvent long int 1 Binary 0b0000 69 lEvent long int Default 0x024 1 String 69 lEvent long int de Add new e ll Memory Browser window Displays the memory dumps on the C Controller module Timing to refresh values can be selected Right click on the Memory Browser tab and select Update Mode gt Always On Breakpoint Manual from the shortcut menu Cc Variables 1010 toro ri ES x dxec00000 OxecO0000 lt Traditiona M Qx ECABBAA 20000000 00000000 QQQOQQOD QxGECABBAC 4000008 10000000 QQQQOQOOD OxeEceoQ018 GOQOQOQQO 20000000 QQOOQQQOD Ax0EC20024 20000000 00000000 QQQQOQOOD Ax0ECA003a A0000000 20000000 20000000 Ax0ECOA03C OOQQOQQO 20000000 20000000 Ax0ECA0048 BAAAAAAA 20000000 BI000000 OxeECOO054 AAAA 20000000 20000000 exeECOOQ60 OOQQOQQO 20000000 QQOQOQQQOD axeEcaoQec 40000008 20000000 QQQQOQOOD
13. Acquire the permanent license according to the following instructions Start i Acquire a Permanent License Application Form on the DVD ROM Acquire the host information of the personal E For how to acquire a host information refer to the Permanent computer on which CW Workbench and CW Sim License Application Form sample included with the product are used lt gt Enter the information directly on the Permanent License Application Form PermanentLicenseApplicationForm xls stored on the DVD ROM For how to fill out the form refer to the Permanent License Application Form sample included with the product Fill out the Permanent License Application Form 3 INSTALLING CW Workbench CW Sim 27 3 3 Acquiring Reacquiring Permanent License Send the application form to the address described on the form by attaching to e mail MAIL Permanent License Application Form Will be replied within 5 working days Permanent license file A permanent license file will be e mailed 77 When CW Workbench and CW Sim have been installed using a temporary license or installation key on the DVD ROM apply a permanent an installation key file to a personal computer K Page 37 Applying Permanent License i Completed 1 For the updated license product enter the same host information as the one which has been registered to acquire the permanent license previously on the Permanent License Application Form Rea
14. Hardware to install A WindRiver WRTAP To start installing your new hardware click Next 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon The Locate File screen is displayed 8 Select wrtap inf and click the Open button If the folder in which CW Sim is installed is C WindRiver the folder for wrtap inf is as follows 32 bit version operation system C WindRiver vxworks 6 9 host x86 win32 bin 64 bit version operation system C WindRiver vxworks 6 9 host x86 win32 bin x86_64 If the folder in which CW Sim Standalone is copied is C CCPUSIM the folder for wrtap inf is as follows 32 bit version operation system C CCPUSIM CWSIMSA vxsimnetd e 64 bit version operation system C CCPUSIM CWSIMSA vxsimnetd x86_ 64 9 Click the OK button 10 Select WindRiver WRTAP and click the Next button 11 Click the Next button If the following message appears click Install Would you like to install this device software wv Name WindRiver Network adapters c o Publisher Wind River Systems Inc Always trust software from Wind River Systems inc Y You should only install driver software from publishers you trust How can I decide which device software is safe to install 12 Click the Finish button Completing the Add Hardware Wizard The following hardware was installed Li WindRiver WRTAP Sat Windows has finished installing the
15. Rename Copy Delete Suffixes c Build output generation 9 Generated build output is an object Generated build output is a build target Build target can be passed Build spec specific settings Active build spec ARMARCH7gnu SMP x Derived suffi 0 Command echo building ccompilerprefix sm OOL PATH ccarm DebugModeFlags ToolFlags Defines S DEFINES S ADDED CFLAGS Includes S ADDED INCLUDES o OutFile c InFile Tool Flags S CC ARCH SPEC ansi fno zero initialized in bss Wall MD MP mlong calls Debug mode flags Debug mode 4 g fsigned char Non Debug mode 02 fno builtin fsigned char Restore Defaults Apply Point e J cw The Gnu Compiler Options screen is displayed 4 6 Select Optimization from the tree on the left on the screen and select Enable maximum speed optimizations Check that O2 has been added to Current value and click the OK button Check that O2 is added in the box next to the Tool Flags button in Build Properties and click the OK button To cancel the optimization option select Optimization from the tree on the left on the Gnu Compiler Options screen Then click the button in Enable optimization or unselect the check box Check that the button is changed to cancel and O2 is deleted from Current value 7 CREATING AN
16. instruction below B r3 Ea mr Or File Edit Source Refactor Navigate Search Run Project Window Help BSa amyn gt ES UserProject Wind River VxWorks 6 9 Downloadable Kernel M Open Development Shell Refresh Build Options Select Create new projects from an archive file or directory Select an import source type filter text 4 amp General Archive File Build Settings B Combined Workspace Import Existing Projects into Workspace G File System Perspectives E Preferences Wind River Kernel Objects Settings Lh Wind River Target Connections b E C C gt g CVS gt Desktop gt Install 23 Remote Sucteme Import Projects Select a directory to search for existing Eclipse projects Select root directory Select archive file Projects Copy projects into workspace Working sets l Add project to working sets Working sets Geo Ce Select root directory of the projects to import b d readme D setup de updates gt JI utilities 1 0 b de vxworks 6 9 gt JJ workbench 33 D de workspace 4 de workspace33 gt p metadata p RemoteSystemsTempFiles Ji TestProject Folder TestProject 56 7 CREATING AND BUILDING PROJECT 7 2 Adding Projects bb Lp wnuh dehuamade wnrksnace LT
17. EntrM DTInt R12 c 111 wxTaskEntry 0x176ba0 gj terminated exit value 26854008 gt tEntryWDTMain 0x19AC528 8 CONNECTING AND DEBUGGING C Controller module 8 5 Debugging User Programs 8 Click ae The task operation is restarted The task operation is suspended at the position of the breakpoint inserted in the step 7 9 Checkthe operation of the task by using 3 or i Page 77 Debug operation 10 After checking the task operation click m on the Debug window The debugging is completed To debug the task again select the created debug configurations in the pull down list of on the toolbar The steps from 1 to 6 can be skipped Task operation status The following table shows the status of the task operations based on enabled or disabled status of the three buttons l Resume in Suspend and Terminate Run status during execution Suspended status during suspension Termination status debugging terminated Debug operation The tool buttons used for the debugging operations are as follows 3 Step Into a Performs debugging in one step units For the function steps step execution is continued with into the called function a Step Over 7 Performs debugging in one step units For the function steps step execution is continued in function units without into the called function Step Return e P Continues execution at the end of the fun
18. Page 89 Starting VxWorks Network Daemon 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 11 3 Building Project 99 11 5 Creating Simulator The sample program uses four simulators vxsimO to vxsim3 Perform the following operations four times to create the simulators vxsimO to vxsim3 1 Click on the Remote Systems window Mn ENER amp HJ dix l The New Connection screen is displayed Select Remote System Type 2 Select Wind River VxWorks 6 x Simulator Connection and click the Next button System type type filter text gt gt General 4 2 VxWorks 6 x al Wind River VxWorks 6 x Core Dump Connection e Wind River VxWorks 6 x Simulator Connection 18 Wind River VxWorks 6 x Target Server Connection O Back Einish Cancel gt gt 3 Select Custom simulator under Select boot file rita i pui name and enter the path to the VxWorks image file a and file name The example of a path to the VxWorks image file and file Standard simulator Default Enable SMP Enable 64 bit 9 Custom simulator CACCPUSIM vxWorks_6_9_SMP lf name is as follows e CACCPUSIMivxWorks 6 9 SMP K Page 36 Copying VxWorks image symbol files CW Sim Bypass checksum comparison Processor number 0 lana 4 Click the Finish button O lt Back met J Emish J _ cancel ix A L LCOEOELL I IL CLLLOGULE LLULL LLLLKLLECPLOCLOL
19. The following four projects are the projects to be newly created e simulation O e simulation 1 simulation 2 e simulation 3 5 Setthe property of each project by following the procedure shown in the section below Page 52 How to set the property 6 Double click each sample program UserProgram c on the Project Explorer window to display and edit the sample program In this sample program the stub for some C Controller module dedicated functions is defined in CCPUFunc h Add a stub as necessary 11 3 Building Project The section explains the procedure to build a project in which a sample program is used For details on errors displayed after the completion of building a project and execution files to be generated refer to the following section Page 62 Building Project Operating procedure 1 Selectthe project to be built on the Project Explorer window Right click and select Refresh from the shortcut menu 2 Select the project to be built on the Project Explorer window Right click and select Rebuild Project from the shortcut menu Poin tr Perform Refresh and Rebuild Project for the following four projects included in the sample program e simulation O simulation 1 simulation 2 simulation 3 11 4 Starting VxWorks Network Daemon For more details on how to set and start VxWorks network daemon refer to the following section gt Page 81 Setting VxWorks Network Daemon
20. and click the Tool f Properties for UserProjec ae M Build Properties I Flags button gt sr Specify all build properties me qu Build Support and Specs Tools Paths Defines mh Libraries Variables For C select C Compiler Builders P De Gon Build tool New Rename ji Copy Delete External File C Compiler Run Debug Settings Pa Librarian Task Tags Genere Assembler p Validation Generated build output is a build target C Build target can be passed Build spec specific settings Active build spec ARMARCH7 gnu_SMP Y Derived suffix 0 Command echo building ccompilerprefix TOOL_PATH ccarm DebugModeFlags ToolFlags Defines S DEFINES S ADDED CFLAGS Includes S ADDED INCLUDES o OutFile c InFile Tool Flags 4 S CC ARCH SPEC ansi fno zero initialized in bss Wall MD MP mlong calls Debug mode flags Debug mode g fsigned char Non Debug mode 02 fno builtin fsigned char Restore Defaults Apply O o Project Info Suffixes Linker Project References Build out Partial Image Linker 64 7 CREATING AND BUILDING PROJECT 7 3 Building Project Specify flags for Tool Flags v Current value S CC ARCH SPEC ansi fno zero initialized in bss Wall MD MP mlong calls 02 Optimization Debugging Memory 4 Compilation Ou
21. gt Page 37 Applying Patch 5 Create a project Start CW Workbench Create a project for user program Perform programming gt Page 50 Creating New Projects 6 Build a user program gt Page 62 Building Project 7 Connect to CW Sim gt Page 81 Setting VxWorks Network Daemon gt Page 89 Starting VxWorks Network Daemon gt Page 90 Starting Simulator 8 Debug a user program gt Page 74 Debugging User Programs 1 6 1 BEFORE USING PRODUCTS 1 3 Procedure Overview CW Sim Standalone 1 Install CW Sim Standalone Copy an execution file from the CD ROM to the local folder on a personal computer Page 40 Installation 2 Create a project Start CW Workbench Create a project for user program Perform programming gt Page 50 Creating New Projects 3 Build a user program gt Page 62 Building Project 4 Connect to CW Sim Standalone gt Page 81 Setting VxWorks Network Daemon gt Page 93 Starting VxWorks Network Daemon Page 94 Starting Simulator 5 Execute a user program gt Page 74 Debugging User Programs 1 BEFORE USING PRODUCTS 1 3 Procedure Overview 17 2 SYSTEM CONFIGURATION This chapter explains the system configuration of CW Workbench CW Sim and CW Sim Standalone 2 1 Configurations CW Workbench The following shows the environment for developing user programs with CW Workbench Product with l
22. MITSUBISHI A A ELECTRIC Engineering Software CW Workbench CW Sim Operating Manual SW1DND CWWR E SW1DND CWSIMR EZ SW1DNC CWSIMSAR E SAFETY PRECAUTIONS Read these precautions before using this product Before using this product please read this manual and the relevant manuals carefully and pay full attention to safety to handle the product correctly The precautions given in this manual are concerned with this product only For the safety precautions for the programmable controller system refer to the user s manual for the module used and the MELSEC iQ R Module Configuration Manual In this manual the safety precautions are classified into two levels N WARNING and N CAUTION Indicates that incorrect handling may cause hazardous conditions resulting in N WARN N G death or severe injury Indicates that incorrect handling may cause hazardous conditions resulting in A CAUTION minor or moderate injury or property damage Under some circumstances failure to observe the precautions given under N CAUTION may lead to serious consequences Observe the precautions of both levels because they are important for personal and system safety Make sure that the end users read this manual and then keep the manual in a safe place for future reference Design Precautions NWARNING When handling external devices and performing the following operations configure an interlock circuit in a user progra
23. State Province 1 Select Temporary activation requires License Authorization Code and Internet connection and click the Next button 2 Checkthe content of Note Then select either Ethernet Adapter or Disk Serial Number for Host ID and click the Next button 3 Enter a License Authorization Code LAC and user information click the Next button gt Page 35 LAC and user information 4 Gotothe following step 8 gt Page 30 Installation procedure When selecting Temporary activation requires License Authorization Code and Internet connection an internet environment is required to acquire the Temporary activation Execute the installation on a personal computer connected to the Internet If the personal computer is connected to the Internet via a proxy server configure the proxy server setting Page 30 Installation procedure step 4 If Temporary activation requires License Authorization Code and Internet connection is selected without configuring the proxy server setting installation does not proceed 3 INSTALLING CW Workbench CW Sim 3 4 Installation BL AC and user information Use alphanumeric characters for the LAC and user information Items with a mark on the window must be entered LAC License Authorization Code described in the License Agreement included with CW Workbench User Name User name Company Company name Address1 Address such as town nam
24. T Use this as the default and do not ask again prs Project Create a new project with the specified data Project name simulation 0 Location gt Create project in workspace Create project at external location O Create project in workspace with content at external location Directory C CCPUSIM simulation simulation_0 4 El simulation_0 Wind River VxWorks 6 9 Downloadable Kernel Modu fio Build Targets SIMNTgnu_SMP debug es ij CCPUSimulator c ih CommonDef h UserProgram c E StartSimulation69_0 bat E STARTUP CMD simulation 1 Wind River VxWorks 6 9 Downloadable Kernel Modu simulation_2 Wind River Vo dable Kernel Modu E simulation 3 Wind River Works 6 9 Dow Modull 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 11 2 Utilizing Sample Program 11 2 Utilizing Sample Program This section explains the procedure for utilizing the sample program 1 Select Wind River gt CW Workbench 3 3 gt CW Workbench 3 3 from Windows Start 1 Select All apps on the Start screen or Start gt All Programs The Workspace Launcher screen is displayed 2 Specify the folder in which the sample program has been copied to Workspace A folder can also be selected by clicking the Browse button 3 Click the OK button CW Workbench is started 4 Create a new project as shown in the procedure from step 4 to 6 below Page 50 How to create a new project
25. 5 3 Uninstallation The following explains the uninstallation procedure and its method of CW Workbench The procedure shown below with the screens are of Windows 7 it may differ depending on the operating system Note that if CW Workbench is uninstalled CW Sim is uninstalled at the same time 1 Ifthe Wind River Registry for Workbench 3 3 icon exists on the task tray of Windows right click the icon and select Shutdown from the shortcut menu 2 Click the Yes button when the message shown on the left is displayed Wind River Registry for Workbench 3 3 is shut down Do you really want to shutdown the Wind River Registry You will not be able to start any new Wind River tools or target servers 3 Whena patch has not been applied go to the step 6 4 Select Wind River gt Product Maintenance from Windows Start and right click and select Properties Y Product Maintenance n y Help and Support Windows Security from the shortcut menu 1 Select All apps on the Start screen or Start gt All Programs ir 5 Add the following argument at the end of the Target e field on the Shortcut tab and click the OK button sey ee Argument vmargs Dallow_patch_removal true Shortcut Compatibility ay Product Maintenance Target type Application When a patch has been applied the Wind River gt Product Maintenance menu is not deleted The menu is dele
26. Backend wdbrpc Target name or address 192168 33 y Check Port Kernel image File path from target if available 9 File C WindRiver download OS_IMAGEFILE R12CCPU V_01 S04a Bypass checksum comparison Advanced target server options V Verbose target server output Options R C WindRiver workspace RW Bt 3 z Command Line tgtsvr V R C WindRiver workspace RW Bt 3 c C WindRiver download OS_IMAGEFILE R12CCPU V_01 S04a 192 168 3 3 O lt Back net gt J Eme J conce O Ji Local Disk C WindRiver download OS IMAGEFILE v 4 Search OS IMAGEFILE 5 Organize v New folder a fil d download Name E Date modified Type Size B data INCLUDE Jo OS IMAGE di gnu di ire d license d Imapi 5 0 d maintenance a ocd 3 3 n readme n setup RI2CCPU V_01 S04a 12 11 2014 10 58 File 6 381 KB File name RI2CCPU V 01 S04a sa y 8 CONNECTING AND DEBUGGING C Controller module 68 8 1 Setting Target Server 1 Click on the toolbar of Remote Systems window New Connection screen is displayed 2 Select Wind River VxWorks 6 x Target Server Connection and click the Next button 3 Setthe target connection information Processor ARM9 e Backend wdbrpc Target name or address 192 168 3 3 default Port Blank 4 Select File in Kernel image and click the Browse b
27. Environment after uninstallation llle CHAPTER6 UNINSTALLING CW Sim Standalone 6 1 Uninstallall liccts ues DRE E dure EE Eus acne ea mua das Debs eerte ani PART3 PROGRAMMING AND DEBUGGING CHAPTER 7 CREATING AND BUILDING PROJECT T 1 Creating New Projects ooooooocoor hh hh hn Howto Create anew pro SOL 222 222 0505 CETTE How to sel the property eri ie e E e eee yoke eee eee eee eb eee ees How to add new es 2 22x dom fo eee ah ond dob deum RE DX Xo in Howto add source MeS cs sra uh cutee a da add da e be 7 2 Adding PrFOISCIS uu dad ERE rd die ele ita 7 3 Bullding ProjecE scsssgii allea gaia Setting optimization option 4 3 ae eit hoes baw eed ho eee hos Ses Bes SR RE US DOS des x Eod bee es CHAPTER8 CONNECTING AND DEBUGGING C Controller module 8 1 Setting Target Server ous used ois ds RA LA WR RUE dE oA ARR Gu B CR Rs ate Checking method of VxWorks image file consistency llli llle Acquiring method of VxWorks image file LL Checking network connection LL How to set the target server connection 0 ccc eee eens 8 2 Connecting and Disconnecting Communication 000 ccc eee ees How to check connection settings siii piera eve eee wee oes anaes es 8 3 Staind AMA beeen renew beetle eee eee eee ae oe ened 8 4 Downloading Module for Debugging eee nn 8 5 Debugging User Programs Li Debugging of single task lt 5 siano Debuggi
28. Ports COM amp LPT de Printers SBP2 IEEE 1394 Devices V SD host adapters 6 Click the Have Disk button Select Network Adapter Which network adapter do you want to install Click the Network Adapter that matches your hardware then click OK If you have an A installation disk for this feature click Have Disk Network Adapter EglIntel R 82567LF Gigabit Network Connection E Intel R 82567LF 2 Gigabit Network Connection EglIntel R 82567LM Gigabit Network Connection E Intel R 82567LM 2 Gigabit Network Connection M 11_ 2 1 M ONCE TAA Ate Ala ail El This driver is digitally signed Tell me why driver signing is important The Install From Disk screen is displayed c e 7 Click the Browse button 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon 83 84 Insert the manufacturer s installation disk and then make sure that the correct drive is selected below A OK Copy manufacturer s files from C WindRiver vxworks 6 S host x86 win32 bin x8 v Select Network Adapter Which network adapter do you want to install y Click the Network Adapter that matches your hardware then click OK If you have an installation disk for this feature click Have Disk Network Adapter WindRiver WRTAP Tell me why driver signing is important A divi ay et The wizard is ready to install your hardware
29. Project Explorer window Right click and select Download gt VxWorks Kernel Task from the shortcut menu i ctdt o arm le ARMARCH7gnu_SMP debug iy UserProject out Iarm lel ABMARCHTanu SMP E UserProject part New i Makefile e EntryWDTInt R12 c f Sample c Open Open With gt uild Console E Debug Command Shell 192 168 3 38Ghost PC fi o 3 Ctrl C Paste Ctrl V Delete Move to debugger server t to DFW session dfw wb335 Ghost Rename F2 still running x T a Import Export EE AA Remote Systems 52 TA Local Shells ta vxsim0 Wind River VxV Open Wind River VxWorks 6 9 Development Shell HA visimi_smp Wind Rive 2 Refresh F5 4 Yd VxWorks x 19216833 Build Project Ctrl B Ctri P 4 e Wind River Target D a 4 S VxWorks 6 9 ARN i Kernel Tasks Build Options gt qf Real Time Pr E SYSTEMROI E SYSTEMROI E SYSTEMRO Run de 5 E SYSTEMROI in Debug As E SYSTEMRO g I E SYSTEMROI x Download 1 VxWorks Kernel Task E SYSTEMRO Profile As Download Configurations E SYSTEMRO Team rl MA Rebuild Project Run Remote Application Debug Remote Application Download Configurations screen is displayed Create manage and run configurations D Select the launch context for executing the launch operations O 3 Click the Download button The selected execution file is downloaded on the C Co
30. RMARCH7gnu SMP debug include stdlib h ds Wind River Launches include lt taskLib h gt Debug i Binaries include semLib h include CcpuFunc h window gt fal Includes e ARMARCH7gnu SMP define UNIT identifier ej EntryWDTInt_R12 c define PRIORITY_ ES 150 define PRIORITY_ Editor 160 9o Breakpoints 23 uL define STACK ize 20000 define TASK NAME window n el Project Explorer define TASK NAMEL e2 window long glWDTIntcnt 8 Total WDT interrupt count Monitor Module Status Breakpoints void StatusCheckRtn Processing to output the output signal Y window via IA not LL MAT TA Build Console 23 N gt OF A Remote Systems 23 7 mL E u tt ae E tuto B m 9 288 69 Varia i Regist Expre O Memo E ps E 4 E Local eror TENREPRIETETTERTPUPIH Te 1019 10 Wind River Raabe Com mand make no print directory BUILD_SPEC ARMARCH7gnu_SMP DEBUG_MODE 1 T 2 Local Fil 9 Working Directory D WindRiver workspace UserProject ARMARCH7gnu SMP Ocal Files i ta dara Te make removing targets arydzalais UserProject ARMARCHTgnu SM Variables window Registers window t EntryWDTInt_R12 0 Expressions window pa sil Memory Browser window if d UserProject then it Remote Systems if d UserProject partiall Build Console age rm if Debug fi i if d dirname UserPro i window building UserPr
31. Shell Starts a command line Shell that can use the GNU compiler Sample programs to be registered CW Workbench When CW Workbench is installed on a personal computer sample programs provided by Wind River Systems Inc are installed To check the installed sample programs start CW Workbench and select File New Example For details on the sample programs refer to the Wind River Workbench document provided by Wind River Systems Inc TO CW Workbench menu Help gt Help Contents gt Wind River Documentation gt Workbench 3 3 gt Wind River Workbench User s Guide 3 3 gt Projects gt Building and Debugging a Sample Project Copying VxWorks image symbol files CW Sim To use CW Sim copy the VxWorks image symbol files stored in the VxWorks folder on the DVD ROM to the local folder Copy destination local folder CACCPUSIMWxWorks 6 9 SMP C CCPUSIM vxWorks 6 9 SMP sym Registering to Exception List of Windows Firewall CW Sim Before using CW Sim check the Windows Firewall setting If Windows Firewall is enabled refer to the following section and check the settings Page 111 Communication with the simulator cannot be established 3 INSTALLING CW Workbench CW Sim 3 4 Installation 3 9 Applying Permanent License Apply the acquired permanent license file to the personal computer on which CW Workbench and CW Sim have been installed using a temporary license or an installation key file Apply i
32. When the connection to the simulator is established the tree if Remote Systems 23 Ny R SIA BSa EE n Ef Local to the left is displayed on the Remote Systems window and im0 Wind River VxWorks 6 9 pens lE EE the Target Consoles screen is displayed gt HA vxsim2 Wind River Vx Works 6 9 gt B vxsim3 Wind River VxWorks 6 9 5 Click on the Remote Systems window and close the Target Consoles screen 1 00 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 11 5 Creating Simulator 11 6 Setting Simulator Perform the following operations four times to configure the settings for simulators vxsimO to vxsim3 Operating procedure 1 Select each simulator vxsimO to vxsim3 on the Remote Systems window Right click and select Properties from the shortcut menu The Target Connection screen is displayed m T n re gt TX VxWorks Simulator Miscellaneous Options Associated target platform Wind River VxWorks 6 9 Boot Parameters Memory Options Network Options Miscellaneous Options Target S gt VxWorks simulator output log file Owse Non volatile RAM file VxWorks simulator temporary directory C CCPUSIM simulation simulatior Browse gg FEE 4 VxWorks simulator process priority BelowNormal Other VxWorks simulator options passed as is d simnet e 192 168 2 1 g 192 168 2 254 Q 2 Specify the save fold
33. also required to apply for a permanent license Prepare the License Agreement included with CW Workbench CW Sim Permanent license file A permanent license file is required to install CW Workbench CW Sim by using a permanent license The permanent license file must be acquired in advance by filling the Permanent License Application Form stored on the DVD ROM and sending it to us K Page 27 Acquiring Reacquiring Permanent License Internet connection An internet connection is required to install CW Workbench CW Sim by using a temporary license A 31 day temporary license can be acquired via the Internet 3 2 Considerations for Installation When installing CW Workbench on the personal computer on which the existing CW Workbench has already been installed install CW Workbench in a different folder from the one with the existing CW Workbench Note that the existing CW Workbench and CW Workbench cannot be run at the same time Do not install CW Workbench on a personal computer where Wind River Workbench has been already installed To install CW Workbench uninstall the Wind River Workbench or prepare another personal computer Log on as a user with administrative privileges Stop all other applications running on Windows before installation The installer may not operate properly due to the automatic start of update programs of the operating system or any other software such as Windows Update or Java Update Change the setting to disable
34. characters and symbols or a project name that is already used is entered for Project name an error text appears on the header of the window and the Finish button is disabled e LH5 0 1 1 5 lt gt two byte characters katakana or when a space is used except at the end of the project name In addition a space entered at the end of the project name is dropped For the considerations when creating user programs refer to the following manual LA MELSEC iQ R C Controller Module User s Manual Startup 7 CREATING AND BUILDING PROJECT 1 7 1 Creating New Projects 9 How to set the property B ci gt c Device Development CW Workbench File Edit Navigate Search Run Window Help m ts Open Project liz UserProject Wind River VxWoi Project References Close Project Open Development Shell Gi Build All Ctrl B Build Project Ctrl B Ctrl P Run Last Build Ctrl B Ctrl L Build containing Folder Target Ctrl B Ctrl C Compile File Ctrl B Ctrl F Clean Build Options gt C C Index gt TAR P x type filter text Build Properties da y X Resource o E a Binary Pars Specify all build properties Build Properties Build Support and Specs 4 Tools gt Paths Defines BA Libraries Variables Builders Bu
35. following shows errors that may occur when using CW Sim Installation Page 110 When selecting a license file the message Your Product Activation File does not have a valid install key for any Products on Disk Please re enter a new Product Activation File appears and the installation fails License Page 110 Simulator does not start when message Checking License ERROR appears during startup Page 110 Simulator does not start when message Step finished with this error appears during startup Simulator startup Page 111 CW Sim does not start when message Windows cannot find vxsim Make sure you typed the name correctly and then try again is displayed Page 111 Virtual network is not enabled in case of during startup of VxWorks network daemon the warning message WARNING subnet external configuration failed can t find a WRTAP network connection to use or the error message SC OpenSCManager FAILED 5 Access denied appears Page 111 Communication with the simulator cannot be established 12 TROUBLESHOOTING 1 12 3 CW Sim Troubleshooting 09 Corrective action The cause s of errors and their respective corrective action s are explained below MWhen selecting a license file the message Your Product Activation File does not have a valid install key for any Products on Disk Please re enter a new Product Activation File appears and the installation fails An error has occurred in license file checking dur
36. one personal computer and training Ethernet Personal computer 4 Information processing system Personal computer 3 Information processing system Windows application Simulator Poin tr Since the system functions such as C Controller module dedicated functions and MELSEC data link functions are not supported by CW Sim CW Sim Standalone creation of system function stub in accordance with the application or deletion of the caller of the system function is required To debug any program which contains a dedicated function library provided by C Controller module creating the stub is required The sample stub program is stored on the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD 1 BEFORE USING PRODUCTS 1 2 CW Sim and CW Sim Standalone 1 3 1 3 Procedure Overview The following describes the operating procedure from installation up to debugging CW Workbench 1 Acquire a permanent license Page 27 Acquiring Reacquiring Permanent License 2 Install CW Workbench Permanent license file Present Install CW Workbench using a permanent license Permanent license file i Install CW Workbench using a temporary license Internet connection Present Permanent license file Install CW Workbench using an installation key file Internet connection Absent Page 30 Installation 3 Apply a permanent license When installing CW Workbench using a temporary license or an installation key fil
37. software for this device To close this wizard click Finish Ce oomen Poin tr If the following message appears on Windows XP after the step 11 click the Continue Anyway button The software you are installing for this hardware WindRiver WRTAP has not passed Windows Logo with Windows XP Tel STOP Installation 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon 85 86 For Windows XP Operating procedure 1 Select Start gt Control Panel gt Add Hardware Add Hardware Wizard The Add Hardware Wizard screen is displayed Welcome to the Add Hardware Wizard 2 Click the Next button DS This wizard helps you Install software to support the hardware you add to your computer Troubleshoot problems you may be having with your hardware A If your hardware came with an installation CD it is recommended that you click Cancel to close this wizard and use the manufacturer s CD to install this hardware To continue click Next Cancel Add Hardware Wizard 3 Select Yes have already connected the hardware Is the hardware connected and click the Next button Have you already connected this hardware to your computer Gies have already connected the hardware O No have not added the hardware yet lt Back Cancel Add Hardware Wizard The following hardware is already installed on your computer i 4 Select Add a new ha
38. target for target specific information G ARMO 0x57F438 Task Mode None preserve current settings General Source Lookup Status Scope Advanced Path Type 9 Project System File System File Path Es UserProject EntryWDTInt_R12 c Browse Line 57 Printf RET d sRet V Enabled Verbose Mode Condition Skip Count Q The print statement entered at Printf is added on the Breakpoints window The execution result is displayed on the Console window If the result of Dynamic Printf is not displayed on the Console window select Allocate console necessary for input in the Common tab on the Debug Configurations Screen Ree ABBA DE printf RET 5d sRet EntrAiDTInt_R12 c 56 Planted Restricte 8 CONNECTING AND DEBUGGING C Controller module 79 8 5 Debugging User Programs Q CONNECTING CW Sim AND DEBUGGING PROGRAMS This chapter explains how to connect CW Sim and debug the programs For details on the available communication route for CW Sim refer to the following section Page 21 Available communication route for CW Sim CW Sim Standalone Poin tr For program to be debugged select SIMNTgnu_SMP on the Build Support and Specs tab of Build Properties in the property setting for a project and build it There are other necessary property settings For more details on the property settings refer to the fo
39. the Open Perspective icon E at the upper right corner of CW Workbench and select Advanced Device Development from the displayed menu 2 Check that the display on the title bar of CW Workbench has been changed to Advanced Device Development 3 Select Help gt Install New Software to install the plug in software BlOnly Wind River gt Product Maintenance is installed in the Start menu Start screen of Windows Reinstall CW Workbench using a permanent license file for CW Workbench MUninstallation process is cancelled in the halfway Use either of the methods given below to complete the uninstallation e Execute the installation destination folder gt maintenance wrInstaller x86 win32 wrlnstaller exe to uninstall Delete the installation destination folder manually 12 TROUBLESHOOTING 107 12 2 CW Workbench Troubleshooting lBlUninstallation process has suddenly stopped before completion Try the uninstallation again Page 43 Uninstallation If CW Workbench still cannot be uninstalled refer to the following troubleshooting K Page 107 Uninstallation process is cancelled in the halfway Startup ECW Workbench does not start when message The install root of your Wind River Workbench installation could not be located appears Cause Corrective action Characters other than alphanumeric characters an At first uninstall CW Workbench then use the following characters for naming the installation and u
40. the automatic start of update programs before installation CW Workbench and CW Sim can be installed at the same time However the permanent license for each of them is required Install CW Workbench and CW Sim in the same installation destination Otherwise CW Workbench and CW Sim may not operate properly When installing CW Workbench and CW Sim separately installation with different license format is not allowed For example when CW Workbench was installed by using the permanent license install CW Sim by using the permanent license as well An overwrite installation of CW Workbench or CW Sim cannot be performed to a personal computer Uninstall it first for re installation Note the following when installing the updated license product Enter the LAC License Authorization Code described on the License Agreement of the updated license product to LAC in the user information 3 INSTALLING CW Workbench CW Sim 3 1 Preparation for Installation While processing one setup exe do not run other setup exe Otherwise the installation may not be completed properly If the installation failed uninstall CW Workbench and run setup exe again For installation on Windows 7 or later the confirmation dialog box of User Account Control appears Click Allow or Yes button to continue the installation Installation using temporary license To install CW Workbench and CW Sim by using a temporary license check whether the personal c
41. the running CW Workbench BIThe displayed contents do not change after patch has been applied Old data is stored in the cache When starting CW Workbench specify clean to the argument How to specify clean 1 Select the shortcut of CW Workbench on the desktop Right click and select Properties from the shortcut menu 2 Entera space at the end of Target on the CW Workbench Properties screen Enter clean after the space and click the OK button Delete clean argument after use because keeping argument clean slows the startup of CW Workbench How to delete clean In the step 2 above delete a space and clean and then click the OK button 12 TROUBLESHOOTING 12 1 Common Troubleshooting 105 BI Wind River gt Product Maintenance does not exist in the Start menu Start screen of Windows The existing CW Workbench and newly installed CW Uninstall CW Workbench as explained below and install CW Workbench in a different folder from Workbench may have the same installation folder the one with the existing CW Workbench Page 107 Uninstallation process is cancelled in the halfway pp BIAn error command not found has occurred and the build is not executed An unsupported compiler has been set to CW Check that any unsupported compilers have not been specified Workbench How to check 1 Select Project gt Properties to display the screen of property 2 Select Buil
42. to be registered The Host ID is correct Please consult your local Mitsubishi representative from which the CW Sim was purchased llSimulator does not start when message Checking License ERROR appears during startup An error has occurred in license file checking during CW Sim startup When using CW Sim with a temporary license 31 days have passed Acquire the permanent license and overwrite the existing temporary license file since CW Sim was installed An invalid license is used The host information registered at the time of Refer to the following section permanent license acquisition is incorrect gt Page 110 Installation Simulator does not start when message Step finished with this error appears during startup An error has occurred in license file checking during CW Sim startup The LAC entered at the time of CW Sim installation is not correct Use the correct LAC and reinstall CW Sim 110 12 TROUBLESHOOTING 12 3 CW Sim Troubleshooting Simulator startup BCW Sim does not start when message Windows cannot find vxsim Make sure you typed the name correctly and then try again is displayed Cause Corrective action CW Workbench and CW Sim were installed in different folders Install CW Workbench and CW Sim in the same folder Virtual network is not enabled in case of during startup of VxWorks network daemon the warning message WARNING subnet external configuration failed can t find a WRTAP net
43. xwindRiverxlicense lic License path C WindRiver license lic 4 5 FLEXIm error 1 359 System Error 2 No such file or directory 5 For further information refer to the Installation and Licensing Guides available at http www windriver com licensing documents ie Displayed NICHE Support information FLEXIm error information 5 System error information 1 Not displayed in some errors 112 13 LICENSE ERRORS 13 1 License Errors Displays an error outline Displays error details solutions and measures to avoid errors Displays information such as a license file name and path information Displays the error number and minor number of a license error cause A number used when an FLEXIm vendor provides support Example FLEXIm error 1 359 Error number 1 Minor number 359 Displays an error number and error text at a license error occurrence 13 3 Main License Error Messages and Recovery Procedures This section shows license errors that may occur during operation of CW Workbench and how to recover from errors Trial period expiration If CW Workbench is used with a temporary license the following message appears after 31 days have passed since the installation y Launching the Wind River Debug Server DFW Backend failed to Wb obtain the license Overall License for the Wind River Workbench Feature has expired Feature WR_WOR
44. 10 C Controller module dedicated function 10 24 CCPU Simulator ss mh 96 S CCPU X In BitEx LL 121 AMENS COPU X In WordEX sacas a we e 121 Sample program 24 36 74 96 COPE Ye TIBI X peace prior do pk iena 122 Sample stub program 000000 23 CCPU Y In WordEx o lt lt 123 Simulation environment LL 20 CCPU Y Out BIitEx 122 Symbol fil8 o o o o oooooooo ooo 24 CCOPU Y Out WordEX ctm ica se a 122 CW CODBUOBEP AIO e sprint 10 T CW Workbench eren 10 iP 10 E A 66 CW Sim Standalone sanaire ach img pes a6 10 Target server unuunu nna 66 D U DEDUG DpSFallO ss uns cd a wedged de i palo ais 7f Updated license product 19 Dedicated function library 10 23 Documentales ic a cde Qe a 36 V E plo PM DL Ern 10 VIVOS PRE hensive acer dos ian le se 10 Eclipse 6 eee eee nnne 10 WN ONS COMX rs acs tahun ene dae qu 36 Existing CW Workbench 10 VxWorks Development Shell 36 VxWorks network daemon 21 F VxWorks image file 24 FTP Server Li 36 W H Wind River Registry for Workbench 3 3 36 m Wind River Workbench 10 OSL ca eer one de a a noo E o ra 66 Installation destination folder 30 Installation key file 10 24 Installation using i
45. 3 Wind River VxWorks 6 9 alla i EA Bb e Development System Vxllorks 6 9 SMP KERNEL WIND version 2 13 Copyright Wind River Systems Inc 1984 2014 CPU Windows 6 1 Processor 2 Memory Size 0x1ff00000 511Mb BSP version 6 9 2 Created Nov 25 2014 16 57 06 ED amp R Policy Mode Deployed WDB Comm Type WDB_COMM PIPE WDB Ready gt ld 1 0 SIMNTgnu_SMP simulation_3 Debug simulation_3 out value 309758104 0x12768898 sp StartSimulation 0 0 0 0 O Task spawned id 0x123a7a80 name t1 value 305822336 Qx123a7a80 sp UserProgram 0 0 0 0 0 0 0 a Task spawned id x123a7a80 name t2 value 305822336 0x123a7a80 9 4 Debugging Tasks The debugging can be performed using the same procedure explaining the connection to C Controller module Start the simulator in advance Refer to the following section gt Page 74 Debugging User Programs 92 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 4 Debugging Tasks 1 0 CONNECTING CW Sim Standalone AND DEBUGGING PROGRAMS This chapter explains how to connect to CW Sim Standalone and debug the programs For details on the available communication route for CW Sim Standalone refer to the following section Page 21 Available communication route for CW Sim CW Sim Standalone Poin tr For program to be debugged select SIMNTgnu_SMP on the Build
46. 5 7 1 Creating New Projects How to add source files 1 Copy the created source file to the current folder of the MESE gt Computer gt Local Dek C gt WindRver workspace UseiProject project to be added on the explorer Organize v _ Open v Burn New folder de updates 4 Name E utilities 1 0 SA cpro d vxworks 6 9 xi E project Ji workbench 33 i gerat _ wrmakefile d workspace al NIDIOLGCI metadata Ent ryWDTInt R12 c i RemoteSystemsTempFiles p _ Sample c di UserProject i e a mea 7n5 Ub martes PDA from the Project Explorer window and right click amp Wind River La Go Into 2 Select the project to which the source file is to be added B Sample c 23 NI gt i Includes Refresh from the shortcut menu d Sample c Open in New Window Copy Ctrl C Paste Ctrl V Delete Delete Source Move Rename F2 Import Export Open Wind River VxWorks 6 9 Development Shell Refresh P E E fs U Sa ge The source file copied in the step 1 is added to the project a S 2 y pas y Vo 4 ab UserProject Wind River VxWorks 6 9 Downloadable Kernel M b Li Build Targets ARMARCH7gnu SMP debug Es Wind River Launches 7 CREATING AND BUILDING PROJECT 7 1 Creating New Projects 99 T 2 Adding Projects In CW Workbench multiple projects can be managed on the same workspace by adding other projects following the
47. 7gnu SMP debug vii tarda amp River Launches Build All Ctrl B 3 x Build Project Ctrl B Ctrl P f E ARMARCH7gnu_SMP f Run Last Build Ctrl B Ctrl L d EntryWDTInt R12 c Build containing Folder Target Ctrl B Ctrl C ef Sample c Compile File Ctrl B Ctrl F Clean Build Options C C Index gt Properties The Properties for project name screen is displayed pe filter text i i zd A E deeem nno 2 Select Build Properties from the tree on the left on the Binary Parser i Build Properties f Build Support and Specs Tools Paths Defines m Libraries Variables i LN a eee screen and click the Tools tab muneris Suffixes c Pepe denne uild output generation ig s e a output is an object gt Validation Generated build output is a build target C Build target can be passed Build spec specific settings Active build spec ARMARCH7 gnu_SMP Z Derived suffix 0 Command echo building ccompilerprefix TOOL_PATH ccarm DebugModeFlags ToolFlags Defines S DEFINES S ADDED CFLAGS Includes S ADDED_INCLUDES o OutFile c InFile Tool Flags amp S CC ARCH SPEC ansi fno zero initialized in bss Wall MD MP mlong calls Debug mode flags Debug mode g fsigned char Non Debug mode 02 fno builtin fsigned char Restore Defaults 3 Select C Compiler from Build tool
48. 8 5 Debugging User Programs This section shows how to debug a user program of C Controller module As an example sample program EntryWDTInt R12 c is used Point For details on sample programs please consult your local Mitsubishi representative Precautions To debug on CW Workbench it is necessary to build the execution module in the Debug mode Page 52 How to set the property WDT main processing Task stan EntryWDTMain Debugging of single task Y output task Task name SmpTask_2 Function name YWord WriteRtnTask The following describes the procedure from downloading the target file up to debugging on C Controller module Connect the C Controller module and CW Workbench before debugging a task Operating procedure mi r3 l i O 9 idismig v o 1 noEntryPoint UserProject out VxWorks6x 192 168 3 3 4 UserProject Wind River V db Build Targets ARMAR Wind River Launches Binaries Debug As Debug Configurations Organize Favorites p Deb S fo co wl Create manage and run configurations E B y Configure launch settings from this dialog type filter text 3 Press the New button to create a configuration of the selected type 3 Attach Target Context B Press the Duplicate button to copy the selected configuration E C C Application 5 E C C Attach to Applicati X Press
49. CTION Thank you for purchasing CW Workbench and CW Sim This manual describes the procedures for operations system configurations and troubleshooting when using CW Workbench and CW Sim Before using the product please read this manual and relevant manuals carefully and develop familiarity with the performance of CW Workbench and CW Sim to handle the product correctly CONTENTS SAFETY PREGAUTONS 2629392 23944 322222209 665 IO 1 CONDITIONS OF USE FOR THE PRODUCT 522 33 d mu oct ird pela 00556 fe Lei 3 INTRODUCTION meeer e AIA 4 RELEVANIMONVAL S EE 9 TERN esoe oes cee e UA E ELLA 10 PART1 FUNDAMENTALS OF CW Workbench CW Sim CHAPTER1 BEFORE USING PRODUCTS 12 1 1 CW Workbench ci roa CR dh eco A AR ARA QE RR C De e ata 12 10 m adr RIE RA e di 12 1 2 CW Sim and CW Sim Standalone ees 13 Ru I STRERRICCHCCHHT 13 1 3 Procedure OVGIVIEW cecamnan es acertar ili 14 N ORDEN CM pi e RAI 14 UE RSA 16 CW Sim Sana alONE opos ow reos ed lidia ei SA oa ae e 17 CHAPTER 2 SYSTEM CONFIGURATION 18 2 1 CONTGUrationis P 00 wm 18 Ai Enchanted pretende Iene alii 18 CW Sim and CW Sim Standalone ee ee eee eee eee eee 20 2 2 Supported MOUU BS io arae ced ies eee LI a 22 2 3 Obera ng EhVIFOHITIe HE uou us coe Roni DH a ates cn beens 6 307098 76 8 8 odas eee ds ee nee 22 2 4 SPECIicalions AREE dat aa QUOI IT eo e a os ra ies 23 Differences from C Controller module
50. CW Sim and CW Sim Standalone support the module shown below R12CCPU V VxWorks 6 9 2 3 Operating Environment The following table shows the operating environment of a personal computer on which CW Workbench CW Sim and CW Sim Standalone can run Personal computer A personal computer on which Windows operates CPU Intel Core 2 Duo 2GHz or higher is recommended Memory requirements 2 GB or more system 1 GB or more 2 GB or more recommended system Hard disk space HDD 4 GB or more Virtual memory 512 MB or more Display Resolution 1024 x 768 pixels or higher Disk drive DVD ROM drive Interface Ethernet 10BASE T 100BASE TX 1000BASE T 23 Microsoft Windows 8 1 Operating System Japanese English 4 Microsoft Windows 8 1 Pro Operating System Japanese English Microsoft Windows 8 1 Enterprise Operating System Japanese English Microsoft Windows 8 Operating System Japanese English 4 Microsoft Windows 8 Pro Operating System Japanese English Microsoft Windows 8 Enterprise Operating System Japanese English Microsoft Windows 7 Professional Operating System Japanese English Microsoft Windows 7 Ultimate Operating System Japanese English Microsoft Windows 7 Enterprise Operating System Japanese English Microsoft Windows XP Professional Operating System SP3 or later Japanese English 9 Operating system y a 1 The following functions cannot be used Application
51. Click the Next button Network Options Specify the network options for the simulator No Network passdev Full Network simnet User Defined Device Network using NAT simnet_nat Protocol Remote Port Local Port la Inet on backplane b Host inet h Inet on ethernet e 7 VxWorks Simulator Miscellaneous Options Set the IP address and default gateway of the virtual network in Other VxWorks simulator options VxWorks simulator output log file d simnet e 192 168 2 1 g 192 168 2 254 Browse Non volatile RAM file Browse VxWorks simulator temporary directory m 8 Click the Finish button VxWorks simulator process priority BelowNormal La Other VxWorks simulator options passed as is d simnet e 192 168 2 1 g 192 168 2 254 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 1 9 3 Starting Simulator 9 mss When the connection to the simulator is established the tree sot slo 615 on the left is displayed on the Remote Systems window and gt Wind River Registries l l gt c the Target Consoles screen is displayed gt HA vxsim0 Wind River VxWorks 6 9 gt HA vxsim1_smp Wind River VxWorks 6 9 4 fi vxsim2 Wind River VxWorks 6 9 4 2 Wind River Target Debugger Wind River VxWork p amp VxWorks 6 9 SIMNT sys 000 amp Wind River Launches gt HA VxWorks6x 192 168 3
52. D BUILDING PROJECT 7 3 Building Project 65 8 CONNECTING AND DEBUGGING C Controller module This chapter explains the settings of target server to establish communication between the host target server and target C Controller module connect disconnect communication and procedure for debugging Host Target device MELSEC iQ R C Controller module Personal computer CW Workbench Eclipse framework Eclipse C C Development Tools Ethernet 8 1 Setting Target Server The following settings are required for CW Workbench to establish connection between target server and C Controller module Setting an IP address for C Controller module Setting a VxWorks image file The files must be ZI VxWorks the same A VxWorks image file Personal computer C Controller module IP address 192 168 3 1 IP address 192 168 3 3 Point The VxWorks image file which is to be set to CW Workbench and the VxWorks image file in the system memory SYSTEMROM OS_IMAGEFILE of C Controller module must be matched If VxWorks image file does not exist in the personal computer or VxWorks image files are not matched acquire the VxWorks image file from C Controller module and set it to CW Workbench 8 CONNECTING AND DEBUGGING C Controller module 66 8 1 Setting Target Server Checking method of VxWorks image file consistency Check that the file name of VxWorks image file stored in C Controller module is the same as that o
53. ER Development System Host Based Shell feet IERI FE Sete tiii tiii EFFI fete fits Sete fete Leff fiii E fief fis fff fff Version 3 3 HIC HH HH HHE HH Copyright c 1995 2013 Wind River Systems Inc C Constructors Destructors Strategy is AUTOMATIC gt 8 CONNECTING AND DEBUGGING C Controller module 1 8 3 Starting Shell T 8 4 Downloading Module for Debugging Download an execution file out onto the C Controller module Downloading a module for debugging means to download an execution file user program onto the memory of C Controller module The downloaded execution file is used for activating a task from Shell 1 Onthe Remote Systems window select the target Y Local Shells A server in which the execution file is to be downloaded vxsim0 Wind River VxWorks 6 9 perio Wind River VxWorks 6 9 Select the target server connected to the C Controller module 4 dd VxWorks6x 192 168 3 3 Wind River VxWorks 6 9 E 4 e Wind River Target Debugger Wind River VxWorks 6 9 for the ta rget server a amp VxWorks 6 9 ARM9 ARM9 9 Kernel Tasks ix 2 Select the execution file to be downloaded from the Ee a e 4 El UserProject Wind River VxWorks 6 9 Downloadable Kernel Module Projec Ry Build Targets ARMARCH7gnu SMP debug amp Wind River Launches x Binaries Includes 4 ARMARCH7gnu SMP
54. F5 Convert Line Delimiters To Li Print Ctrl P Switch Workspace d Restart s Import E Export Properties 1 Sample c UserProject Exit Select Create new projects from an archive file or directory Select an import source type filter text 4 2 General Archive File Build Settings B Combined Workspace Import Existing Projects into Workspace C3 File System Perspectives E Preferences I Wind River Kernel Objects Settings 18 Wind River Target Connections b gt C C gt amp CVS gt Desktop gt amp Install 23 Remote Sucteme Import Projects Select a directory to search for existing Eclipse projects Select root directory Select archive file Projects Copy projects into workspace Working sets l Add project to working sets Working sets Select root directory of the projects to import E de Sample 4 Q12DCCPU V ModeEx 4 de MDtest 4 d DevAccess m DevAccessChanCCIEC I DevAccessChanCCIEF p DevAccessChanCCL d DevAccessChanMNH DevAccessChanQBF Folder DevAccessChanCCIEC 5 Select File Import in CW Workbench The Import screen is displayed 6 Select General gt Existing Projects into Workspace and click the Next button f Select Select root directory and click the Browse bu
55. GBE Family Contro Internet access Local Area Connection 6 WindRiver WRTAP G Disable Status I TT Diagnose Bridge Connections Create Shortcut Delete Rename Properties The Local Area Connection Properties screen is displayed 3 Select Internet Protocol Version 4 TCP IPv4 and click the Properties button amp WindRiver WRTAP This connection uses the following items 4 Realtek Teaming Protocol Driver NDIS 6 20 4 Realtek Vian Protocol Driver NDIS 6 2 4 Realtek NDIS Protocol Driver Intemet Protocol Version 6 TCP IPv6 A Intemet Protocol Version 4 TCP IPv4 i Link Layer Topology Discovery Mapper 1 0 Driver 4 Link Layer Topology Discovery Responder v E Transmission Control Protocol Intemet Protocol The default wide area network protocol that provides communication across diverse interconnected networks S IS S S SI SI XI OK Cancel 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon 87 88 You can get IP settings assigned automatically if your network supports this capability Otherwise you need to ask your network administrator for the appropriate IP settings Obtain an IP address automatically 9 Use the following IP address IP address Subnet mask Default gateway Obtain DNS server address automatically Use
56. ING CW Workbench CW Sim 3 5 Applying Permanent License 37 How to acquire patch 1 Obtaina patch file Please consult your local Mitsubishi representative to obtain a patch file 2 Decompress the obtained file and store it in the updates folder under the installation destination folder of CW Workbench When the installation destination of CW Workbench is C WindRiver the storage destination of the patch will be C WindRiver updates How to apply patch 1 Select Wind River gt Product Maintenance from Windows Start 1 Select All apps on the Start screen or Start gt All Programs Back Search programs and files 2 Select Patch and click the Next button Remove parts of or all installed products About this installation Review your installed products and changes made to them over time O License configuration Review or change your license configuration Wind River Installer 2 6 3 05 3 Check that the patch to be installed has been selected and click the Install button N Select patches to install Y VxMorks 6 9 Patch VXNV6 82998 35 01 KB 35 01 KB 318 49 GB Back Install Cancel 3 INSTALLING CW Workbench CW Sim 38 3 6 Applying Patch N Select patches to install V VeWorks_6 9_Patch_VXWV6 82998 35 01 KB 35 01 KB 318 49 GB 4 Click the Finish b
57. JECT 1 7 2 Adding Projects 6 62 7 3 Building Project Build a project File Edit Source Refactor Navigate Search Run Project Window Help MOv HeSlIRi O viPg i 4HM i Hy H eo o r est PS Proje BATZ a oA samplec X gt Mp Build Targets ARMARCH7gnu SMP New Es Wind River Launches Go Into gt a Includes Open in New Wind EntryWDTInt R12 c Sample c Copy Ctrl C Paste Ctrl V 3 Delete Delete Source gt Move 4 m Rename F2 A Remote Systems 53 2 gig Import N st Epor 5 e Open Wind River VxWorks 6 9 Development Shell b Wind River Registries 5 gt f Local Files NEL E ix File Edit Source Refactor Navigate Search Run Project Window Help gt mri EQecmi 0O 49 4 amp mmidt 9 o B y Pu 4 Ai El e Sample c WS New Es Wind River Laun Go Into gt KM Includes 2 EntryWDTInt_R1 Open in New Window 157 Sample c Copy Ctrl C Paste Ctrl V Delete Source Rename Export Open Wind River VxWorks 6 9 Development Shell Refresh Close Project Close Unrelated Projects Project References gt Build Project Ctrl B Ctrl P Rebuild Project ls You may need to set the include search path for UserProject 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 b
58. KBENCH Expire date 09 dec 2014 License path C XWindRiverflicense zwrsLicense lic FLEXIm error 10 32 For further information refer to the Installation and Licensing Guides available at http www windriver com licensing documents rs es How to recover from the error Acquire a permanent license and overwrite the existing file to use CW Workbench Using an invalid license If there is an error in host information to be registered when a permanent license is acquired the following message appears a License Not Found a Launching the Wind River Debug Server DFW Backend failed to obtain the M license Overall License for the Wind River Workbench Invalid host The hostid of this system does not match the hostid specified in the license file Feature WR_WORKBENCH Hostid DISK SERIAL NUM 2a2a62bc License path C WindRiver license zwrsLicense lic FLEXIm error 9 57 For further information refer to the Installation and Licensing Guides available at http www windriver com licensing documents When DISK is specified for Host Information and a volume serial number other than the one on the C drive is specified for the Host ID this error also occurs Specify a volume serial number on the C drive for the Host ID When there are multiple drives on the personal computer in use do not specify a volume serial number other than the one on the C drive for the Host ID How to re
59. LING CW Workbench CW Sim 5 3 Uninstallation 6 UNINSTALLING CW Sim Standalone This chapter explains how to uninstall CW Sim Standalone 6 1 Uninstallation CW Sim Standalone does not have an uninstaller Delete all files copied to the local folder during installation 6 UNINSTALLING CW Sim Standalone 4 6 1 Uninstallation T MEMO 48 6 UNINSTALLING CW Sim Standalone 6 1 Uninstallation PROGRAMMING AND DEBUGGING This part explains how to create programs and build projects how to connect to C Controller module or CW Sim and how to debug programs 7 CREATING AND BUILDING PROJECT 8 CONNECTING AND DEBUGGING C Controller module 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 10 CONNECTING CW Sim Standalone AND DEBUGGING PROGRAMS 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 49 50 CREATING AND BUILDING PROJECT This chapter explains the project creation and building in CW Workbench Screen configuration of CW Workbench The following shows the screen configuration of CW Workbench The layout of the windows shown below is default status The layout of each window can be changed by dragging with the mouse Menu bar Toolbar gt esa Es E O EntryWDTInt Rize S O39 Debug XN DI FILE NAME EntryliDTInt R12 c E 7 t WES H include lt vxllorks h gt E 4 5 UserProject Wind River Works 6 9 Downloadable K include esto ho o Build Targets amp
60. R SAFETY MANUALS TECHNICAL BULLETINS AND GUIDELINES FOR the PRODUCT Prohibited Application Prohibited Applications include but not limited to the use of the PRODUCT in Nuclear Power Plants and any other power plants operated by Power companies and or any other cases in which the public could be affected if any problem or fault occurs in the PRODUCT Railway companies or Public service purposes and or any other cases in which establishment of a special quality assurance system is required by the Purchaser or End User Aircraft or Aerospace Medical applications Train equipment transport equipment such as Elevator and Escalator Incineration and Fuel devices Vehicles Manned transportation Equipment for Recreation and Amusement and Safety devices handling of Nuclear or Hazardous Materials or Chemicals Mining and Drilling and or other applications where there is a significant risk of injury to the public or property Notwithstanding the above restrictions Mitsubishi may in its sole discretion authorize use of the PRODUCT in one or more of the Prohibited Applications provided that the usage of the PRODUCT is limited only for the specific applications agreed to by Mitsubishi and provided further that no special quality assurance or fail safe redundant or other safety features which exceed the general specifications of the PRODUCTS are required For details please contact the Mitsubishi representative in your region INTRODU
61. RTUP CMD file dose not exist is displayed during startup and the script is not executed change the current directory to the folder containing the script file STARTUP CMD and enter the following command C CCPUSIM CWSIMSA vxsim69 vxsim69 nl exe f C CCPUSIM vxWorks_6_9 SMP d simnet e 192 168 2 1 g 192 168 2 254 p 0 For the arguments of each command refer to the following manual LA Wind River VxWorks Simulator User s Guide 6 9 10 CONNECTING CW Sim Standalone AND DEBUGGING PROGRAMS 10 3 Starting Simulator 95 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM This chapter explains the usage of CW Sim using a sample program 11 1 Features of Sample Program This section explains the features of sample program Configuration of sample program The following information explains and figure shows the sample programs stored on the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD and the system configuration at execution of the sample program The system consists of four simulators and each of which is connected to the virtual network On each simulator C Controller module dedicated functions in the dedicated function library stub CCPU Simulator and user programs using socket communication are running pen rame Legends s Device memory CCPU Simulator Simulator No 2 Function call etre eee eee ee ee ee ee ee ee ee e c r
62. S TERMS AND CONDITIONS AND WARRANT YOU HAVE 9 I ACCEPT the terms of this license agreement IDO NOT ACCEPT the terms of this license agreement Cancel 11 Click the Install button Confirm and Install You are about to install the products listed below If the list is correct click Install gt Wind River Workbench 3 3 for Mitsubishi C Controllers Installation Directory Start Options _ CAWindRiver Desktop shortcuts Disk Space Information Installation Size 2 3 GB 285 66 GB available Start menu entries Download Size 749 22 MB local media Folder name Wind River 1 2 Click the Next button SN Installed content Product Name Internal Version 4 Wind River Workbench 3 3 for Mitsubishi C Controllers 111 00 Documentation for Wind River Workbench 3 3 5 added 3 3 25 0 201312042047 b VxWorks 6 9 4 1 Application Developer added 6 9 4 1 201409011200 b se Wind River GNU Compiler 4 3 3 for Vx Works 6 9 added 4 3 3 0 201105251344 Wind River Setup 2 0 11 added 2 0 11 0 201211061755 b le Wind River Workbench 3 3 5 for VxWorks 6 3 6 9 Enabler Rev 9 added 3 3 25 0 201407151741 b le Wind River Workbench Core 3 3 5 2 added 3 3 25 0 201407151741 32 3 INSTALLING CW Workbench CW Sim 3 4 Installation 13 Click the Finish button Thank you for installing Wind River Workbench 3 3 for Mitsubishi C Con
63. Support and Specs tab of Build Properties in the property setting for a project and build it There are other necessary property settings For more details on the property settings refer to the following section Page 52 How to set the property 10 1 Setting VxWorks Network Daemon Configure the following three settings to use VxWorks network daemon on the simulator Setting Routing and Remote Access service Setting network driver e Setting TCP IP For the setting methods refer to the following section Page 81 Setting VxWorks Network Daemon 10 2 Starting VxWorks Network Daemon This section explains the startup procedure of VxWorks network daemon after CW Sim Standalone is installed to C CCPUSIM Creating VxWorks network configuration file For the creation methods refer to the following section Page 89 Creating VxWorks network configuration file Starting VxWorks network daemon Start the VxWorks network daemon once after the personal computer boots successfully Operating procedure 1 Select All Programs gt Accessory gt Command EX Administrator Command Prompt vxsimnetd exe f CACCPUSIM Samples wxsimnetd conf s C Windows system32 gt cd C CCPUSIM CWSIMSA A Prompt from Windows Start C CCPUSIM CWSIMSA gt uxsimnetd exe f C CCPUSIM Samples vuxsimnetd conf s J 1 For Windows 8 Select All apps on the Start screen The command prompt is started td Debug Shell Execut
64. TTL 64 Reply fron 192 168 3 3 bytes 32 timecime TIL 64 A command prompt is started Reply from 192 168 3 3 bytes 32 time lt ims TTL 64 Reply from 192 168 3 3 bytes 32 time lt ims TTL 64 2 Execute the ping command and check that the C Ping statistics for 192 168 3 3 E s 5 4 i 4 Lost z loss r IRR o inate Deal E ie ciat PAT pa ii Controller module is connected to the network Minimum 8ms Maximum ms Average Ams Specify the IP address of the C Controller module for the argument of ping command The default IP address of a C Controller module is 192 168 3 3 3 Execute an exit command and end the command prompt 8 CONNECTING AND DEBUGGING C Controller module 8 1 Setting Target Server 67 How to set the target server connection 2 st x alels v 4 Ei Local gt Wind River Registries f Local Files TX Local Shells b T8 vxsim0 Wind River VxWorks 6 9 b T8 vxsiml smp Wind River VxWorks 6 9 VOLUN Select Remote System Type System type type filter text am gt General 4 amp VxWorks 6 x ta Wind River VxWorks 6 x Core Dump Connection ta Wind River VxWorks 6 x Simulator Connection HE Wind River VxWorks 6 x Target Server Connection Back Finish Target Server Options Selected processor will be used to connect to your target without double checking against real processor Backend settings Processor ARM9 Select
65. U V Q24DHCCPU VG and C Controller module engineering tool for Q12DCCPU V CW Workbench e For Q24DHCCPU V and Q24DHCCPU VG SW1DND CWWLQ24 E SW1DND CWWLQ24 EZ and SW1DND CWWLQ24 EVZ For Q12DCCPU V SW1DND CWWLQ12 E SW1DND CWWLQ12 EZ and SW1DND CWWLQ12 EVZ A generic term for C Controller module dedicated functions and MELSEC data link functions FUNDAMENTALS OF CW Workbench CW Sim This part explains the features and system configuration of CW Workbench and CW Sim 1 BEFORE USING PRODUCTS 2 SYSTEM CONFIGURATION 11 12 1 BEFORE USING PRODUCTS This chapter explains the overview of CW Workbench CW Sim and CW Sim Standalone 1 1 CW Workbench CW Workbench is a product to develop user programs that operate on C Controller module CW Workbench is an OEM product of Wind River Systems Inc The product has only basic functions required for user program development such as coding building and debugging as a subset product of Wind River Workbench 3 3 Features CW Workbench has the following features Dedicated integrated development environment for C Controller module CW Workbench provides an integrated development environment to perform operations such as project management and editing building and source code debugging Therefore an effective user program for C Controller module can be developed Same specifications as those of Wind River Workbench 3 3 The specifications of CW Workbench regarding diplays a
66. VxAltLib out E SYSTEMROM VxCCPUFunc out 0x8 Module name SYSTEMROM VxCCPUFunc out E SYSTEMROM VxLatch out 0xA Module name SYSTEMROM VxLatch out E SYSTEMROM VxLatchDef out 0x6 Module name SYSTEMROM VxLatchDef out E SYSTEMROM VxMDFunc out 0x2 Module name SYSTEMROM VxMDFunc out E SYSTEMROM VxMDFuncW out 0x7 Module name SYSTEMROM VxMDFuncW out E SYSTEMROM VxMRbfDrv out 0x5 Module name SYSTEMROM VxMRbfDrv out 539 R12CCPU V 01 S04a 0xl Symbol file C WindRiver download OS IMAGEFILE R12CCPU V 01 S04a fs Wind River Launches E Tels 78 Precautions llConnection state of C Controller module Even if the C Controller module is powered OFF the connection is not disconnected without executing Disconnect The C Controller module is connected to the target server automatically when the C Controller module is powered ON again BAn error occurs at Connect The following error message appears if the C Controller module is not running or if the network is not connected with the target server e Step finished with this error Failed to connect to the WDB Target Agent Target Context VxWorks6x 192 168 3 3 8 Ghost PC Target Connect Strategy Wind River VxWorks Target Connect Strategy Connect Step Start Target Server Target Communication Protocol TCP IP Target IP Address 192 168 3 3 Target Port 0x4321 Note The WDB Target Agent in VxWorks 6 9 and later is disabled by default To use host t
67. Workbench and Wind River Workbench O Supported X Unsupported Framework Workbench basic function Ver 3 6 Compiler ARMARCH7gnu_SMP Compiler for C Controller module GCC for ARM Cortex A9 compiler o Jo SIMNTgnu SMP Compiler for VxSim GCC for VxWorks Simulator Windows compiler E Project system and build VxWorks A project used for normal application development Applications system Downloadable Kernel which are executed in the kernel mode of VxWorks 6 x are created Project creation and Module Project management Debugger Target connection A function to establish the communication with C Controller module agent for debugging Wind River VxWorks A simulation function to execute debugging by running the Wind Simulator River VxWorks application on the operating system without the actual devices Download A function to download a file to be debugged to C Controller module O in order to have it ready for debugging Debug operation A function to debug the source code by the operations such as start or stop debugging and step execution Dynamic Printf A function to dynamically insert or cancel the printf statement when debugging the program without adding the printf function to the source code with the similar operation as that of the breakpoint Command line interface Target shell A command line interface which operates on the operating system of C Controller module Runtime analysis tool Memory Analyzer Identifies m
68. Works Utilities Host Windows v E amp 4Works Architecture ARM 2 peru Comp e VxWorks Simulator Host Wind GB Wind River GNU Compiler 43 3 for Works 6 X O r S Uu a O r OS n OWS Q Wind River Setup 2 0 11 E Wind River Workbench 3 3 5 for Works 6 3 6 9 Enabler Rev 9 Wind River Workbench Core 3 3 5 2 CW Sim can be installed without having a license of CW Sim Installation Directory Start Options _ CAWindRiver Y Desktop shortcuts Disk Space Information Installation Size 2 3 GB 285 66 GB available Y Start menu entries Download Size 749 22 MB local media Wind River Cancel 10 Select I ACCEPT the terms of this license agreement and click the Next button By selecting I ACCEPT the terms of this license agreement and clicking Next you consent to the terms of this agreement If you do not wish to be bound by the terms of this agreement click Cancel and do not install this software WIND RIVER OBJECT CODEVXWORKS LICENSE AGREEMENT REV 02 2013 ww The following terms are provided for Wind River Object Code VxWorks platforms Product If you have received any other product you must contact Wind River immediately and return such product to Wind River within thirty 30 days The right to install and use the Product is only granted o
69. al Y gpsDevArea 1024 bytes Input signal X 8192 points 1024 bytes Output signal Y 8192 points CCPU X In BitEx Simulate the read of input signal X in bit 1 point units Page 121 CCPU X In WordEx Simulates the read of input signal X in word 16 point units Page 121 CCPU Y Out BitEx Simulates the write of output signal Y in bit 1 point units Page 122 CCPU Y Out WordEx Simulates the write of output signal Y in word 16 point units Page 122 CCPU Y In BitEx Simulates the read of output signal Y in bit 1 point units Page 122 CCPU Y In WordEx Simulates the read of output signal Y in word 16 point units Page 123 X In BitEx This function simulates the read of input signal from the memory gpsDevArea in bit units llArgument Dummy Normal end Abnormal end I O number error A N E e This function simulates the read of input signal from the memory gpsDevArea in word units llArgument Data storage area pusDataBuf size in word units usSize pusDataBuf usBufSize llReturn value 0 Normal end 203 Abnormal end I O number error 204 Abnormal end I O access size error 210 Abnormal end read area size error APPENDICES APPENDIX 121 Appendix 5 CCPU Simulator C Controller Module Dedicated Functions Stub This function simulates the write of output signal to the memory gpsDevArea in bit units llArgument usData MReturn valu
70. ample Progra si duced rr ies e dra drin A acu dro os HB aba died 98 Preparing sample Progra sE IRE REID ue ees eee RU oS 98 Opening sample program ehh rss 98 TLS BUNGING Pro lech squid Adelante 99 11 4 Starting VxWorks Network Daemon _ i 99 A RA aaa n rea bia 100 11 5 Sening Simulator iii Li alii eee 101 11 7 Executing sample Program sie i arma rasa ACRI Uo a dio e t RR MC e A a i 102 PART4 TROUBLESHOOTING CHAPTER 12 TROUBLESHOOTING 104 12 1 Common Troubleshooting y sei sia se 3 eta c e CRI EU tl E RR D TR ee ee T 104 EROFOUSSCHDHON irene I e ei i 104 Rae sessuale pet RITIRI 104 12 2 CW Workbench Troubleshootihg ee 107 mgro est REI RR O RE AA 107 COMECIVO SCHON se cance tu era os ee Tr 107 12 3 CW Sim TrOUDICSNOOUNRDG sss xau uic x 7mm oa CA C a o AUR Ree Ree Gee e aaa oe RR 109 978 0 east RR a ee 8 e eter det eee ee e ee cle eee rta 109 CONMeCIVG acho ss po me can nbs oo ee ae ee ee ee ee ee we oe Ge eee Oo Gare ep ee ee 110 CHAPTER 13 LICENSE ERRORS 112 4301 LICENSE ENOS o sews ec eet eee E A 112 13 2 License Error Message usais 13cm adobe aed iR de Rc RE it de one Cade ee wee RR A 112 13 3 Main License Error Messages and Recovery Procedures in 113 Tal perio Expirationi ovina 95 3 9 909 E EU 2 99 bota a eee ete Bees eee 113 Using an invalid license 22 bende cok renti 113 Using an installation key file au ucro nananana a 114 APPENDIX 115 Appendix 1 Installa
71. and click the Browse button The Entry Points screen is displayed 5 Select the function to start debugging from Module entry points and click the OK button The function can be selected from the out file specified in the Downloads tab To debug a task created taskSpawn from a function specified to Entry Point selecting Automatically attach spawned Kernel Tasks is required 6 Click the Debug button Debugging is started Initially the status of debugging will be Suspended status during suspension at the start of the function specified to Entry Point 7 Double click the breakpoint on a line where a task operation is to be suspended A breakpoint is inserted 8 CONNECTING AND DEBUGGING C Controller module 8 5 Debugging User Programs 75 76 X N Ma e7 id 4 EntryWDTMain UserProject out VxWorks6x_192 168 3 3 4 ARM 0x57F438 Task Mode 4 94 tEntryWDTMain 0x2158D20 Stopped EntryWDTMain EntryWDTInt_R12 c 56 vxTaskEntry 0x1765d0 pi tEntryWDTMain 0x2158D20 4 sRet CCPU EntryTimerEven if sRet 0 printf CCPU EntryTimerEvent Error sRet Xhd hxH n sRet sRet return ix XU nNEIi 29 amp z i x e 4 EntryWDTMain UserProject out VxMorks6x 192 168 3 3 VxWorks Ke 4 2 ARMI 0580438 Task Mode 4 Sg SmpTask 1 0x199C010 Stopped Step End CCPU EntryTimerEvent 0x4460f48 StatusCheckRtn
72. any inquiries other than MELSEC related products may not be able to be answered 124 MELSEC Functions and specifications of C Controller module For further information and services please consult Specifications and usage of the dedicated function library provided by your local Mitsubishi representative Mitsubishi Electric Corporation Functions and specifications of CW Configurator CW Workbench CW Sim and CW Sim Standalone Functions and specifications of the Mitsubishi products modules and MELSOFT products to be used with C Controller module Operating system Functions and specifications of VxWorks API functions provided by Wind River Systems Inc VxWorks and general inquiries regarding programming related to URL http www windriver com VxWorks Functions and specifications of Wind River Workbench and Tornado Plug in software Plug in software which is to be used with CW Workbench or Wind River Plug in software manufacturer Workbench APPENDICES APPENDIX Appendix 6 Support INDEX A P Activating multiple simulators 95 Permanent License Application Form 24 Additional license product 18 Permanent license file 26 Available communication route for CW Sim CW Sim Product with license 18 o ritirati 21 R C A Replacement of host machine 28 C Controller module 10 RTP ias a o eet ee E A
73. compromised Converting projects may make these incompatible with older Workbench versions 11 Click the Yes button 1 2 Select the imported project and select Project gt Restore from Local History Configure Pro pe rties Run C C Code Analysis J Device Debug Use File Edit Source Properties Alt Enter dppeu g VU WE VAYFO I Du The Properties for project name screen is displayed 4 Build Properties Specify all build properties Build Support ij Targets Specs af Tools E Paths Defines m Libraries Variables Available and enabled build specs 7 ARMARCH4diab 2 Enable All E ARMARCH diabbe Project References ARMARCH4gnu Run Debug Settings ARMARCH4gnube Task Tags ARMARCHSdiab Validation ARMARCHSdiabbe ARMARCH5gnu Rename 13 Select Build Properties from the tree on the left on the screen and select the Build Support and Specs tab or the Specs tab m g E o E m E E ARMARCHSgnube 7 ARMARCH diab Copy E ARMARCH diabbe Dan ARMARCH6gnu ARMARCH6gnube MCF5200diab MCF5400diab MIPS32sfdiab MIPS32sfdiable 14 Click the Import button of Available and enabled build specs 7 MIPS32sfgnu 7 MIPS32sfgnule MIPS64diab Default build spec SH7750gnule y Active bu
74. cos asin atan atan2 cos cosh exp fabs floor fmod log log10 pow sin sinh sqrt tan tanh If any ANSI floating point function other than those listed above is used a symbol error occurs in loading C Controller module dedicated function library The dedicated function library C Controller module dedicated functions MELSEC data link functions cannot be simulated To debug any program containing these functions create a stub or delete the caller Point e The sample stub program is stored on the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD For more information refer to the following manual stored on the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD LA Wind River VxWorks Simulator User s Guide 2 SYSTEM CONFIGURATION 2 2 4 Specifications 3 24 2 5 Contents of DVD ROM CD ROM CW Workbench CW Sim DVD ROM The CW Workbench CW Sim DVD ROM stores the following items Installation execution file An installation file of CW Workbench and CW Sim Permanent License Application Form An application form for acquiring a permanent license _ Installation key file A file to be used as an installation key when an internet is not connected and a permanent license file has not been acquired If CW Workbench is installed using an installation key file Install ARM txt CW Workbench operates with no license images Installation image file An installation image file of CW Workbench CW Sim docs Wind River Wo
75. cover from the error Recheck the Host ID of the personal computer on which CW Workbench is used Bf the Host ID is wrong Apply for license transfer using License Transfer Certification Agreement Form PermanentLicenseApplicationForm xls stored on the DVD ROM The Host ID to enter is as follows Previous License Enter the wrong Host ID registered last time New License Enter a new Host ID to be registered this time Wif the Host ID is correct Please consult your local Mitsubishi representative from which the CW Workbench was purchased 13 LICENSE ERRORS 1 1 3 13 3 Main License Error Messages and Recovery Procedures Using an installation key file When CW Workbench has been installed using an installation key file the following message is displayed at the startup of CW Workbench x Launching the Wind River Debug Server DFW Backend failed to obtain the b license Overall License for the Wind River Workbench Invalid license file syntax Feature WR_WORKBENCH License path C WindRiver license zwrsLicense lic FLEXIm error 2 413 For further information refer to the Installation and Licensing Guides available at http www windriver com licensing documents How to recover from the error Acquire a permanent license and apply the license file to the personal computer 13 LICENSE ERRORS 114 13 3 Main License Error Messages and Recovery Procedures APPENDIX Appendix 1 Installation and Uninstallation
76. cquiring permanent license replacement of host machine A new permanent license is required for a new personal computer after the replacement due to the reason such as crash of a personal computer on which CW Workbench and CW Sim have been installed Reapply the permanent license according to the following instructions to replace the host machine Start When the personal computer operates properly uninstall CW Workbench and CW Sim Page 43 Uninstallation ir Delete the current permanent license file Delete the permanent license file saved as a backup file as well Page 42 Deleting Permanent License ix Acquire a License Transfer Certification Agreement Form on the DVD ROM 3 INSTALLING CW Workbench CW Sim 3 3 Acquiring Reacquiring Permanent License Acquire the host information of the personal E For how to acquire a host information refer to the Permanent computer on which CW Workbench and CW Sim License Application Form sample included with the product are used Fill out the License Transfer Certification lt Enter the information directly on the License Transfer Certifica Agreement Form tion Agreement Form PermanentLicenseApplicationForm xls stored on the DVD ROM Fax the License Transfer Certification Agreement ix Form with your signature to your local Mitsubishi EH representative FAX License Transfer Certification Agreement Will be replied within 5 working days Perma
77. ction Real Time Process RTP Time Process Real Time Process RTP Executes programs in a user space Executes programs in a user space in a user space o Multitasking Uses system functions such as task management inter task communication and event transmission reception POSIX standard interface Uses interface specified for IEEE Std 1003 1 base standard oyen es standardize fori scs to varous dos OO Location Usos DOS campal o sistem ass OO Eror dci nd eprina Pros dog otel OO Sraa daa orea Sharesmemon mutalybwoen processes hae Usos array whch cons cos an a VxMP Uses shared memory that realizes high speed Shared memory object synchronization communication between tasks executed on different CPUs VxFusion Uses dispersion mechanism on different CPUs based on Distributed message queue VxWorks message queue d GOTOO Or Wind River System Viewer River Wind River System Viewer Viewer Uses System Viewer command server of VxWorks Uses System Viewer command server of VxWorks Viewer command server of VxWorks Eee Simulated VxWorks console Uses shell console by VxWorks system tasks Cama Cam O hardware System timer System timer Uses timer generated from core clock used in VxWorks timer Uses timer generated from core clock used in VxWorks from core clock used in VxWorks o o CEE Memory Management Unit Manages virtual memory independent of MMU a
78. ction in which the current step exists Windows used for debugging By checking and changing the values using the window below at Suspend status debugging can be performed efficiently The color of a cell is displayed in yellow if the value has been changed from the previous value by step execution At the Memory Browser window the color of value is displayed in green l Variables window Displays the current values of local variables WES Registers OS Expressions J Memory Browser A t 98 B earn Name Type Value 69 sRet short int gt 2 pusErdnfo short unsigned 0x024C2FBC 4 2 lEvent long int 4 Ox024C2FAC 69 lEvent long int 1 69 IEvent long int 1 69 IEvent long int 500 69 IEvent long int 1 69 ulBufSize long unsigned int xEEEEEEEE Name pusErrInfo Hex 0x024C2FBC Decimal 38547388 Octal 000223027674 Dimmu a AR AAA A 2711 AAAI 2111112111122 l Registers window Displays the current values of registers aN Sf Expressions J Memory Browser 7 t5 ss B amp e lea gt Name Value Description Cc Variables pu Register a amp General General 0x00000000 0x60000013 0x00000000 0x00000036 0x00000000 0x00000000 0x00000000 4 EN NJ pa po r5 20 o o o o o o uu n Name r Hex 0x00000000 Decimal 0 Octal 000000000000 Dt we mt Eeter Te Te Te Te Te Te Te Te Te Te Te Te Te Te Te Te te te Te Te Te Te Te Te Te Te
79. d Properties from the tree on the left on the screen and select the Build Support and Specs tab 3 Check that any unsupported compilers have not been selected for Available and enabled build specs MAn error such as no input files No Such file or No such file or directory has occurred The source file has not been registered in the project to Create a new file with extension of c or cpp or change the file extension to c or cpp Execute be built the build after registering the file to the build project e Creating new project lt Page 50 Creating New Projects e Change of file name Select the file name to be changed Right click and select Rename from the shortcut menu or press F21 BAn error Build target yyyy nnnn partiallmage used in build target yyyy not found has occurred and the build is not executed The file with the same name as the project name has Create a new project and move the source file from the project where an error occurs been renamed Page 50 Creating New Projects When deleting a project in which an error occurs a confirmation message appears Check whether the checkbox is selected or unselected and be sure not to delete the necessary file by mistake Unselected The project is deleted from the workspace The file is left on the hard disk Selected The project is deleted from the hard disk as well as from the workspace The deleted file cannot be recovered BIA bu
80. de de sj sje obe he he hee se ade sje ade afe ape jede afe ode ade afe be eje ofe afe ae de afe he jede ope age ade hehe abe ape age ade ale afe hehe jeje le ae ea ke oie aleak y sRet taskSpawn TASK_NAME_1 PRIORITY 150 e STACK FUNCPTR StatusCheckRtn a 0 0 0 0 0 0 0 0 0 if sRet ERROR printf StatusCheckRtn task start error sRet hd hxH n sRet sRet return GERE EHE EEE E tote ER E sk jeje ke ER EHE EE SIC ACI EACH fe OR ER RCE ACE HCO jeje jejeje HAHA ERA Create and activate a task processing to output the output signal Y Foto toto de e e ee eje sje sje sd sfe be o eese e sb sj de i de eese pee be e dede ee sie i je eje dede sede bei deje ie sees Meee esha sRet taskSpaen TASK NAME 2 PRIORITY 160 e STACK FUNCPTR YWord_WriteRtnTask a 0 0 0 0 0 0 0 0 0 if sRet ERROR printf Ylord WriteRtnTask task start error sRet hd hxH n sRet sRet return i ESSSSSSESSSESSSSSESESESSESSSEST SELES ESSE SEES ESS ESSE ESS ESSESESEESESS SEES ESESESEE f Register timer event of 500ms cycle a i 95999229 2 9 3 2 9 522 2 2 924 2 29 2 9 2 92 9 2 9 2 9 9 9 2 22 3 sRet CCPU_EntryTimerEvent lEvent if sRet printf CCPU EntryTimerEvent Error sRet hd hxH n sRet sRet return ix 4 Check that the target server connected to the debugging target C Controller module is selected in the Launch Context tab
81. e Normal end Abnormal end I O number error This function simulates the write of output signal Y to the memory gpsDevArea in word units llArgument usSize pusDataBuf usBufSize Dummy Fixed to 0 MReturn value 0 Normal end 203 Abnormal end I O number error 204 Abnormal end I O access size error This function simulates the read of output signal from the memory gpsDevArea in bit units llArgument pusData MReturn value Normal end Abnormal end I O number error 122 APPENDICES APPENDIX Appendix 5 CCPU Simulator C Controller Module Dedicated Functions Stub llArgument Data storage area pusDataBuf size in word units usSize pusDataBuf usBufSize MReturn value 0 Normal end 203 Abnormal end I O number error 204 Abnormal end I O access size error 210 Abnormal end read area size error This function simulates the read of output signal from the memory gpsDevArea in word units APPENDICES APPENDIX Appendix 5 CCPU Simulator C Controller Module Dedicated Functions Stub 123 Appendix 6 Support Technical support assistance service regarding C Controller module For technical support assistance service regarding C Controller module refer to the following table If the type to which your inquiry belongs is not sure please consult your local Mitsubishi representative Please note that
82. e apply a permanent license which will be sent later to a personal computer gt Page 37 Applying Permanent License 4 Apply a patch Please consult your local Mitsubishi representative to obtain a patch file K Page 37 Applying Patch 5 Create a project Start CW Workbench Create a project for user program Perform programming gt Page 50 Creating New Projects 6 Build a user program gt Page 62 Building Project 7 Connect with a C Controller module Page 66 Setting Target Server 14 1 BEFORE USING PRODUCTS 1 3 Procedure Overview E Page 72 Downloading Module for Debugging ir s Page 74 Debugging User Programs 1 BEFORE USING PRODUCTS 1 3 Procedure Overview 1 5 CW Sim 1 Acquire a permanent license K Page 27 Acquiring permanent license i 2 Install CW Sim CW Sim is installed at the same time as the installation of CW Workbench Permanent license file Present Install CW Workbench using a permanent license Permanent license file Absent Install CW Workbench using a temporary license Internet connection Present Page 30 Installation 3 Apply a permanent license When installing CW Sim using a temporary license apply a permanent license which will be sent later to a personal computer K Page 37 Applying Permanent License 4 Apply a patch Please consult your local Mitsubishi representative to obtain a patch file
83. e and block number Address2 Building name etc can be left blank E mail E mail address Phone Phone number Zip Postal Code Zip code City City State Province State Country Country stallation using installation key file 1 Select Permanent activation and click the Browse WIND RIVER button Then specify the installation key file Choose your activation type for this instalation Install ARM txt file stored on the DVD ROM Use your existing product activation install bxt file Temporary activation requires License Authorization Code and Internet connection 2 a Click the Next button _ Permanent activation Enter the full path to your product activation file CAInstall_ARM bet 3 Goto the following step 8 Manually enter all installation keys he installatior Click Next to entert allation keys for each product Page 30 Installation procedure Help l lt Back l Next gt l Cancel If CW Workbench is installed by specifying the installation key file it is installed with no license and only the following functions can be used Editor function create edit save search Import export To use all the functions of CW Workbench acquire and apply a permanent license Page 27 Acquiring Reacquiring Permanent License K Page 37 Applying Permanent License 3 INSTALLING CW Workbench CW Sim 3 4 Installation 35 36 Environment and operation a
84. e notice PDF of the third party product used in CW Sim Samples Sample program A sample program for the simulator 2 SYSTEM CONFIGURATION 2 5 Contents of DVD ROM CD ROM INSTALLATION AND UNINSTALLATION This part explains how to install and uninstall CW Workbench CW Sim and CW Sim Standalone 3 INSTALLING CW Workbench CW Sim 4 INSTALLING CW Sim Standalone 5 UNINSTALLING CW Workbench CW Sim 6 UNINSTALLING CW Sim Standalone 25 26 3 INSTALLING CW Workbench CW Sim This chapter explains how to install CW Workbench and CW Sim 3 1 Preparation for Installation Before installing CW Workbench and CW Sim prepare the following items For preparation Description Development environment personal e For the operating specifications of a personal computer refer to Operating Environment L Page 22 Operating computer Environment Set the host name for the personal computer within 2 to 15 alphanumeric characters To install CW Sim prepare a personal computer with CW Workbench installed CW Workbench CW Sim DVD ROM Prepare the DVD ROM included with the product with license SW1DND CWWR E The Permanent License Application Form stored on the DVD ROM is used to apply for the permanent license License Agreement An LAC License Authorization Code described on the License Agreement is required to install the products by using a temporary license An LAC and a product ID described on the License Agreement are
85. e of the personal computer on Set the host name for the personal computer within 2 to 15 which CW Workbench has been installed is set alphanumeric characters with only one character or 16 or more characters or two byte characters or katakana are included Point If the error still persists after taking the corrective actions shown above delete the cache folder and restart CW Workbench It may take time to startup for the first time after the cache folder was deleted Cache folder C Documents and Settings user name workbench 3 3 x xXXXXXXX XXXX User name The user name currently logged on X A value added automatically 108 12 TROUBLESHOOTING 12 2 CW Workbench Troubleshooting BIAn error occurs and the connection fails Failed to Connect to Target when Connect is executed on the Remote Systems window OR the connection status of the Remote Systems is suddenly changed from connected to disconnected Connect has been executed on the Remote Systems window Do not execute Connect on multiple personal computers to one C Controller module at of CW Workbench from multiple personal computers for one C the same time Controller module Connect has been executed on two or more Remote Systems Do not execute Connect from the Remote Systems window of CW Workbench multiple windows of CW Workbench from one personal computer for one times to one C Controller module C Controller module MThe selected Target Connecti
86. e the command prompt as administrator 2 Enterthe following command to change the current directory to the installation folder of CW Sim Standalone e cd C CCPUSIM CWSIMSA vxsimnetd 3 Enterthe following command to start the VxWorks network daemon vxsimnetd exe f C CCPUSIM Samples vxsimnetd conf s 10 CONNECTING CW Sim Standalone AND DEBUGGING PROGRAMS 10 1 Setting VxWorks Network Daemon 93 Poin tr Do not close the command prompt on which VxWorks network daemon is started during simulation Otherwise the VxWorks network daemon will be terminated 10 3 Starting Simulator This section explains how to start the simulator from the command prompt In the Operating procedure as an example the setting of the following virtual network is described IP address 192 168 2 1 Default gateway 192 168 2 254 Operating procedure 1 Select All Programs gt Accessory gt Command EX Administrator Command Prompt C Windows system32 cd C CCPUSIM CUSIMSA Prompt from Windows Start C N CCPUSIM CWUSIMSA gt uxsim69 nl exe f C CCPUSIM uxW orks_6_9 d simnet e 192 168 1 g 192 168 2 254 4 For Windows 8 Select All apps on the Start screen The command prompt is started C NCGPUSIM CUSIMSA gt _ Execute the command prompt as administrator 2 Enterthe following command to change the current directory to the installation folder of CW Sim Standalone e cd C CCPUSIM CWSIMSA vxsim69
87. eir respective companies 128 SH NA 081373ENG B 1505 MODEL R CWWCWS O E MITSUBISHI ELECTRIC CORPORATION HEAD OFFICE TOKYO BUILDING 2 7 3 MARUNOUCHI CHIYODA KU TOKYO 100 8310 JAPAN NAGOYA WORKS 1 14 YADA MINAMI 5 CHOME HIGASHI KU NAGOYA JAPAN When exported from Japan this manual does not require application to the Ministry of Economy Trade and Industry for service transaction permission Specifications subject to change without notice
88. ells gt PE simo Wind Rive Auto Refrsh and select Host Shell from the shortcut menu Properties Alt Enter i 4 E Wind River Target Debugger Wind River VxWorks 6 9 a amp Vx Works 6 9 ARM9 ARM9 etart Host Shell screen is displayed 2 Click the OK button Please select the command line options and press OK to start the host shell Options Execute Tcl expression after intialization e Indicate mode to start either C Tcl Gdb Cmd m Set event poll interval msec default 200 p Startup file of shell commands to execute s Other Options Y Show this dialog before host shell starts Sii santa The Debug Command Shell window is displayed and the El VeWorks6x_192 168 3 3 gli 93 _ Shell starts Checking License OK Connecting host shell to debugger server Connecting host shell to target connection Vxllorkse x 192 168 3 3 OK Detected OS VxWorks 6 9 target plugin unifiedtargetplugin Establishing direct WTX connection with target server Vxllorks6x_192 168 3 307 Loading the c cmd gdb shell interpreters OK FELPE PIPPE FEFE FF AAA titii MA ANAL MA Fiili titii diiit ditit diili ditit titii PIPPE FELIE FEFEFE Fiii ANAL NA FPELIE FEIET GANAS ANAL NA FEFFE FEIER PEPE EE LEELA FEFFE PELLE MMS FILL titii FE gg AMA Fiili FILL AMA FF FEFFE MMM PIE EFE FH TB FILS fees fete WIND RIV
89. emory leaks by monitoring the memory usage Performance Profiler Analyzes bottleneck of tasks by conducting statistical analysis on coding status Data Monitor Analyzes memory leaks by monitoring variables and data structures in real time System Viewer Analyzes task execution order and deadlock by monitoring interrupt task status or CPU utilization etc Code Coverage Checks which code segment is executed during the code testing Analyzer phase Extended functions Extends function by installing plug ins for a third party provided function ie O 11 APPENDICES APPENDIX 8 Appendix 2 Comparison with Wind River Workbench Appendix 3 Function Comparison among CW Sim CW Sim Standalone and VxSim The comparison of functions among CW Sim CW Sim Standalone and VxSim are shown in the following table O Available Unavailable Introduction and Install and uninstall Installs or uninstalls with a wizard netti O Compiler Diab compiler Builds with SIMNTdiab as Wind River compiler s O GNU compiler GNU compiler Builds with SIMNTgnu_SMP as Wind River GNU compiler with Builds with SIMNTgnu_SMP as Wind River GNU compiler SMP as Wind River GNU compiler p T Debug Source code debugging Performs step execution or references and modifies Lp variables Startup Soript startup startup Script startup Execute soript at startup Execute script at startup at startup o ES VxWorks fun
90. er of the STARTUP CMD file for VxWorks simulation temporary directory in the Miscellaneous Options tab For the project to be debugged leave the settings blank Example When the sample program has been saved in C CCPUSIM simulation the settings of each VxWorks simulation temporary directory are as follows e vxsim0 C CCPUSIM simulation simulation_0 e vxsim1 C CCPUSIM simulation simulation_ 1 e vxsim2 C CCPUSIM simulation simulation_ 2 vxsim3 C CCPUSIM simulation simulation_ 3 3 Setthe IP address and default gateway of the virtual network for Other VxWorks simulator options Example When the gateway is 192 168 2 254 the setting of Other VxWorks simulator options is as follows e IP address of vxsim0 No 0 192 168 2 1 d simnet e 192 168 2 1 g 192 168 2 254 IP address of vxsim1 No 1 192 168 2 2 d simnet e 192 168 2 2 g 192 168 2 254 IP address of vxsim2 No 2 192 168 2 3 d simnet e 192 168 2 3 g 192 168 2 254 IP address of vxsim3 No 3 192 168 2 4 d simnet e 192 168 2 4 g 192 168 2 254 4 Click the OK button to complete the settings of CW Sim Point After changing the setting of IP address change the IP address definitions in the sample program as well and rebuild the project 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 1 1 11 6 Setting Simulator 0 11 7 Executing Sample Program Operating procedure 1 Onthe Remote Systems window select
91. er to which the files are copied e When the local folder is CACCPUSIM C CCPUSIM CWSIMSA vxsimnetd 12 TROUBLESHOOTING 111 12 3 CW Sim Troubleshooting 13 LICENSE ERRORS This chapter explains license e rrors that may occur when CW Workbench is started and being used 13 1 License Errors If a license error occurs when CW Workbench is started or being used perform either of the following operations on the license error message Click the Retry button The Click the Cancel button The license check is terminated and CW Workbench continues to operate However some of the CW Workbench functions sh license check is repeated own below will be disabled Project creation Building Target connection Downloading Debugging 13 2 Licens The error message License Not Found shown below appears when a license error occurs Check the error details Window Editor function create edit save and search Importing Exporting e Error Message 1 gt Cannot find license file Launching the Wind River Debug Server DFW Backend failed to obtain the license Overall License for the Wind River Workbench The license files or server network addresses attempted are 2 gt listed below Use LM LICENSE FILE to use a different license file Feature WR WORKBENCH or contact your software provider for a license file 3 Filename C
92. eral 4 23 VxWorks 6 x Ic Wind River VxWorks 6 x Core Dump Connection HE Wind River VxWorks 6 x Simulator Connection te Wind River VxWorks 6 x Target Server Connection O Tm 9 New Connectic gt oa VxWorks Boot parameters Select boot file name 2 Standard simulator Default Enable SMP Enable 64 bit Custom simulator IC CCPUSIM vxWorks 6 9 SMP y Browse q Bypass checksum comparison Processor number 2 Advanced Boot Parameters a amp 90 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 3 Starting Simulator 1 Click on the Remote Systems window The New Connection screen is displayed 2 Select the Wind River VxWorks 6 x Simulator Connection and click the Next button 3 Select Custom simulator under Select boot file name and enter the path to the VxWorks image file and file name The example of a path to the VxWorks image file and file name is as follows e CACCPUSIMWxWorks 6 9 SMP Page 36 Copying VxWorks image symbol files CW Sim 4 Click the Next button 5 Click the Next button VxWorks Simulator Memory Options VxWorks memory size 35 GByte MByte KByte Byte dec Byte hex VxWorks virtual memory size in bytes i O GByte MByte KByte Byte dec Byte hex VxWorks virtual base address VxWorks simulator memory protection level Maximum Custom Minimum Enter intermediate level gt 0 o 6
93. f the VxWorks image file which is to be set to CW Workbench For R12CCPU V ISYSTEMROM OS_IMAGEFILE R12CCPU V_XX 1 XX indicates the upper two digits of the product information 16 digits of C Controller module For the checking methods on the product information 16 digits refer to the following manual LA MELSEC iQ R C Controller Module User s Manual Startup Acquiring method of VxWorks image file Copy a VxWorks image file on the C Controller module to an arbitrary folder on the personal computer using FTP Do not copy the VxWorks image file to a path or a folder that uses two byte characters and katakana A VxWorks image file of C Controller module is stored in SYSTEMROM OS_IMAGEFILE The default user name and password to connect to C Controller module using FTP are as follows User name target Password password If the default user name and password have been changed use the user name and password before the change Checking network connection Check that the C Controller module which is a connection destination of the target server is connected to the personal computer using a ping command Operating procedure 1 Select All Programs gt Accessory Command El C Windows system32 cmd exe Da Prompt from Windows Start C gt ping 192 168 3 3 1 For Windows 8 select All apps on the Start screen Pinging 192 168 3 3 with 32 bytes of data Reply fr 192 168 3 3 bytes 32 time lt ims
94. fter installation The following explains the menus sample programs and others after CW Workbench and CW Sim are installed Menus to be registered Once CW Workbench and CW Sim are installed Wind River is added on Windows Start and the following menus can be selected 1 Select All apps on the Start screen or Start gt All Programs Menu Description CW Workbench 3 3 CW Workbench 3 3 Starts CW Workbench Registry Starts Wind River Registry for Workbench 3 3 When CW Workbench is started Wind River Registry for Workbench 3 3 also starts unless it has been running already The icon is registered on the task tray CW Workbench Debug Mode 3 3 Runs an already created project with debug mode CW Workbench Documentation All Installed Documents Brings up a help browser to display manuals provided by Wind River Systems Inc VxWorks 6 9 VxWorks 6 9 documents Wind River VxWorks Simulator User s Guide 6 9 is registered only when CW Sim has been installed Product Maintenance Uninstalls and updates CW Workbench and applies a patch VxWorks 6 9 and General Accessing Documentation Opens the PDF describing the way to access the manuals provided by Wind River Purpose Technologies Systems Inc FTP Server Starts WFTPD VxWorks COMx Starts HyperTerminal for Telnet connection This menu cannot be used on the operating system such as Windows 7 where HyperTerminal is not installed VxWorks Development
95. ftware can be operated in Eclipse3 6 on public operating environment provided by the plug in software manufacturer Operating procedure Hep 1 Select Help gt Install New Software roy isa Welcome 2 Help Contents Search Dynamic Help Key Assist Ctrl Shift L Tips and Tricks Cheat Sheets Check for Updates Install New Software APPENDICES APPENDIX 1 1 Appendix 1 Installation and Uninstallation of Plug in Software 5 O inst Available Software Select a site or enter the location of a site e X Add Select All Deselect All Details Y Show only the latest versions of available software F Hide items that are already installed Y Group items by category What is already installed E Show only software applicable to target environment Y Contact all update sites during install to find required software Ba e inn Name Local O a Available Software Check the items that you wish to install 5 Work with a hd Add i d erences type filter text Name Version El Pending Select All Deselect All Details V Show only the latest versions of available software E Hide items that are already installed V Group items by category What is already installed E Show only software applicable to target environment V Contact all update sites during install to find required software o Ba we ma Available Softwa
96. get server options Name pixWorks6x_192 168 3 3 Shared I 1 Associated target platform Wind River VxWorks 6 9 Target Server Options Object Path Mappings Target State Refresh Debug Options Backend settings Processor ARMI Select Target name or address 192 168 3 3 v C Kernel image File path from target if available 9 File CAWindRiver download OS IMAGEFILEXRI2CCPU V 01 S10a v Browse J Bypass checksum comparison Adwanced target server options V Verbose target server output Options R D WindRiver workspace RW Bt 3 y Command Line tgtsvr V R Di WindRiver workspace RW Bt 3 c C WindRivervdownloadXOS IMAGEFILE AR12CCPU 4_01 Si0a 192 168 3 3 Check that the settings are configured as shown in the following table Processor ARM9 Backend wdbrpc Target name or address 192 168 3 3 If the IP address of the C Controller module is default Kernel image Set the VxWorks image file in File Do not change the Advanced target server options setting 8 CONNECTING AND DEBUGGING C Controller module 8 2 Connecting and Disconnecting Communication 8 3 Starting Shell Start up a Shell from the target server connected to C Controller module 1 Selectthe target server connected to the C Controller Reset Target i HostShell module on the Remote Systems window Right click Target Tools TX Local Sh
97. h may occur when using CW Workbench or CW Sim and their troubleshooting 12 TROUBLESHOOTING 13 LICENSE ERRORS 103 12 TROUBLESHOOTING This chapter explains the cause s of error s which may occur during the use of CW Workbench and CW Sim with their respective corrective action s 12 1 Common Troubleshooting Error description The following table shows the common errors which may occur on CW Workbench and CW Sim Installation Page 104 The installation process has stopped halfway or has terminated suddenly before completion Installation temporary Page 105 An error message appears and installation does not proceed further in case of LAC and User information is provided license and clicked Next button License Page 105 Not aware of usage of the acquired permanent license file Page 105 Not aware of the method for deleting permanent license file Startup Page 105 CW Workbench does not start when message Workspace in use or cannot be created choose a different one appears Page 105 The displayed contents do not change after patch has been applied Page 106 Wind River gt Product Maintenance does not exist in the Start menu Start screen of Windows Building Page 106 An error command not found has occurred and the build is not executed Page 106 An error such as no input files No Such file or No such file or directory has occurred Page 106 An error Build target yyyy nnnn partiallmage used in b
98. he simulator communicate via the virtual network of the simulator or Ethernet The following information with figure explains the communication routes available for applications running on the simulator llBetween the simulators on the same personal computer The route 1 in the figure below llBetween the simulator and the other application on the same personal computer m The route 2 in the figure below llBetween the simulator and other applications on a different personal computer The route 3 in the figure below Windows application 1 VxWorks network daemon Host connection driver Ethernet X l Windows Simulator application 2 Item Description VxWorks network daemon A software vxsimnetd to establish the virtual network between the simulators Host connection driver A software that is a gateway to connect the virtual network established using the VxWorks network daemon to Ethernet Poi oint The specifications of the sample program stored on the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD are as follows Four programs are simulated on a single personal computer A program communicates with other programs via the virtual network Simulate the dedicated function library called from programs by executing the function in the stub CCPU Simulator c E Page 96 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 2 SYSTEM CONFIGURATION 21 2 1 Configurations 22 2 2 Supported Modules CW Workbench
99. icense C Controller module Permanent Xa Permanent license file ii inn Application Ethernet Form User program debugging CW Configurator CW Workbench CW Workbench SW1DND RCCPU E User program creation and building SW1DND CWWR E Additional license product Permanent Ya Permanent license file EU License T Application C Controller module Form Ethernet CW Workbench SW1DND CWWR EV gt CW Workbench E ORC User program creation and building CW Workbench SW1DND CWWR E 1 8 2 SYSTEM CONFIGURATION 2 1 Configurations Updated license product C Controller module C Controller module Q12DCCPU V Q24DHCCPU V R12CCPU V Ethernet User program debugging User program debugging Permanent Permanent license file ES License 4 Application Form CW Configurator CW Workbench SW1DND RCCPU E OITSDOPIC User program creation and building CW Workbench SW1DND CWWLQ12 E X SW1DND CWWR E SW1DND CWWR EVZ SW1DND CWWLQ24 E 1 A permanent license is required to install CW Workbench 2 Install SW1DND CWWR E in a different folder from the one with SW1DND CWWLQ12 E SW1DND CWWLQ24 E Note that SW1DND CWWLQ12 E SW1DND CWWLQ24 E and SW1DND CWWR E cannot be run at the same time Poin tr If the CPUs which are to be used after update are not described in Target CPU of the Permanent License Application Form please consul
100. ied device number 1 No 2 Y device with the ON notified device number 2 No 3 Y device with the ON notified device number 3 3 Transfer the ON notification received in the step 2 to the next simulator 4 Repeat the step 2 and step 3 These operations turn the Y devices ON and OFF repeatedly Operation of sample program For the operation of the sample program refer to the following figure Inverse Yn Inverse Y n 1 Notify n using socket communication Detect X number n which is turned ON by Shell gpsDevArea Input signal X Turn Xn ON o adas NENNEN Output signal 1920s Duisn U KRON 19205 Duisn u KHON Y n 1 Notify n using socket Xn Y n 3 Inverse Y n 3 Inverse Y n 2 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 11 1 Features of Sample Program 97 98 Preparing sample program Copy the sample program stored on the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD to a local folder For the storage destination of the sample program refer to the following section gt Page 24 Contents of DVD ROM CD ROM Copy destination local folder CACCPUSIM Opening sample program Operating procedure Select a workspace CW Workbench stores your projects in a folder called a workspace Choose a workspace folder to use for this session Note The workspace directory must be writable and should be located on fast local storage
101. ild error xxx sh syntax error near unexpected token yyy_partiallmage Debug Objects nnn xxx sh cannot execute binary file Makefile xxx missing separator Stop or yy o command not found No such file or directory has occurred A character that cannot be used is included in the source Remove the following symbols that cannot be used from the file name shown in nnn in the error file name message and from the source file name added to the project amp two byte characters katakana Remove the following symbols that cannot be used on Windows for file names ss du lt gt WT he out file is not created The build is terminated with a message Generation of makefiles started The source file name contains Remove from the source file name 106 12 TROUBLESHOOTING 12 1 Common Troubleshooting 12 2 CW Workbench Troubleshooting Error description The errors that may occur when using CW Workbench are shown below Category Problem Reference Installation Page 107 The install menu of the plug in software cannot be found Page 107 Only Wind River gt Product Maintenance is installed in the Start menu Start screen of Windows Uninstallation Page 107 Uninstallation process is cancelled in the halfway Page 108 Uninstallation process has suddenly stopped before completion Startup Page 108 CW Workbench does not start when message The install root of your Wind River Workbe
102. ild spec SH7750gnule y V Debug mode The message shown on the left is displayed o All build properties have to be saved before this operation Continue anyway 15 Click the OK button ca 7 CREATING AND BUILDING PROJECT 60 7 2 Adding Projects The Import Build Settings screen is displayed Import build settings from an existing project or defaults to project DevAccessChanCCIEC DH Select project or default settings to import build settings from 16 Select Default settings Wind River VxWorks 6 9 and click the Finish button Update makefile template Import build settings Import build settings from O Default settings Wind River WAWorks 6 9 J E UserProject Wind River Works 6 9 Downloadable Kernel Module Project Overwrite all existing build settings 5 Import specific build specs Y Clear overridden build settings on folder and file level O cina en 1 7 Click the Disable All button si 18 Select ARMARCH7gnu_SMP and click the OK Ce Se i am ip quM mame e most The import of the project created in the existing CW Workbench is completed Set the property as necessary Page 52 How to set the property Default build spec ARMARCH7gnu y Pesada spec SIMNTgnu y Q OK Cancel 7 CREATING AND BUILDING PRO
103. ild support cHe Gene Managed build makefiles generated by the IDE External File mos n Disabled Project Info Project References Build command makeprefix make no print directory Refactoring History Run Debug Setting Task Tags x Validati Variables Available and enabled build specs 7 ARMARCH7gnu Enable All Disable All E SIMNTgnu SMP New Import Rename Copy Delete Default build spec ARMARCH7gnu_SMP y Default debug mode fas specified in preferences a Active build spec ARMARCHIgnu SMP M Y Debug mode Restore Defaults Apply O m bobas type filter text Build Properties rw Resource ui Binary Parser Build Properties Builders Specify all build properties 2 Build Support and Specs Tools 5 Paths Defines BA Libraries Variables Build tool C Compiler aj New Rename Copy l Delete Suffixes c Build output generation Generated build output is an object Generated build output is a build target Build target can be passed Build spec specific settings Active build spec ARMARCH7 gnu_SMP Derived suffix Command echo building ccompilerprefix S TOOL PATH ccarm DebugModeFlags ToolFlags Defines DEFINES S ADDED_CFLAGS Includes ADDED_INCLUDES o OutFile c InFile ansi fno zero initialized in bss Wall MD Debug mode flags Debug mode g fsigned char
104. ing CW Sim installation The causes of the license error and their corrective actions are shown below The specified file is not a license file for CW Sim Check the license file and apply the license file for CW Sim A license file for a different product such as CW Workbench has been specified CW Sim has been already installed Uninstall CW Workbench and CW Sim to delete the license files and then reinstall CW Workbench and CW Sim An invalid license is used Check the host information registered at the time of permanent license acquisition The host information registered at the time of permanent license and correct the Host ID if incorrect acquisition is incorrect MAC is used as a host information for permanent license application Check the Host ID of the personal computer on which CW Sim is actually used and correct the Host ID if incorrect When DISK is used as the host information for permanent license Specify the volume serial number of the C drive as Host ID application a volume serial number other than the C drive has been specified as Host ID How to correct Host ID Apply for license transfer using License Transfer Certification Agreement Form PermanentLicenseApplicationForm xls stored on the DVD ROM Page 27 Acquiring Reacquiring Permanent License The Host ID is incorrect Fill the following Host ID Current license The wrong Host ID registered previously New license The correct Host ID
105. int Pattern any character any string lt end of pattern Module entry points Q vxAltLib out Qf vxCCPUFunc out gt Y VxMDFuncW out gt f VxLatchDef out b VxMRbfDrv out gt ECMPL out gt Y PCQLib out vxMDFunc out 510 UserProject out 4 Downloads a 8f UserProject out 4 EntryWDTMain StatusCheckRtn WDTIntHookRtn YWord WriteRtnTask VXSTART TEXT ri FDARAF orem m X amp Getting Started void StatusCheckRtn Processing to output the output signal Y void Yilord_WriteRtnTask WOT interrupt handler routine void WDTIntHookRtn e f RARA AAA AAA AA a abe 34e koe ie joke sje ale ahe ke 0e 38e ee ae he 386 ahe ale ke ale ke abe abe 38e ahe ale ade abe be ee ale ae afe Be 38e ale ale ale abe Be ahe ale ale ae afe ahe ae ale ale ale ale eae ale MODULE EntryliDTMain ABSTRACT WDT Main processing FUNCTION Task Initialization NOTE None RETURN None CREATE 2014 10 09 MITSUBISHI ELECTRIC CORPORATION UPDATE f AEREE EE RE ele ke oko ke ke sk ke a e ke ke e jeje ehe oj ke joe of eoe kkk void EntrylDTMain short sRet fa ae eae ae ke he she eee se ae ae ke ke ke eee ke ke ke he eoe ae oe ahe ke hehe ale ahe ahe obe he ke ale ae abe ae eae ale ae je he be eae ae obe abe ahe ke ee oe ae ake se ahe ae afe eae ale sleale ef Create and activate a task monitoring Module Status y ff RANA spese se ke ke afe a
106. llowing section Page 52 How to set the property 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 80 9 1 Setting VxWorks Network Daemon Configure the following three settings to use VxWorks network daemon on the simulator Setting Routing and Remote Access service Setting network driver e Setting TCP IP The procedure shown below with the screens are of Windows 7 it may differ depending on the operating system Setting Routing and Remote Access service 1 Select any of the following For Windows 8 or later All apps gt Control Panel System and Security gt Administrative Tools gt Services on the Start screen of Windows For Windows 7 Control Panel gt System and Security gt Administrative Tools gt Services from the Start menu of Windows e For Windows XP Control Panel gt Performance and Maintenance gt Administrative Tools Services from the Start menu of Windows 2 Double click Routing and Remote Access The Routing and Remote Access properties screen is Routing and Remote Access Properties Local Computer General Log On Recovery Dependencies displayed Service name RemoteAccess Display name Routing and Remote Access 3 Select Automatic for Startup type and click the Apply button Description Offers routing services to businesses in local area s and wide area network environments T 4 Click the Start bu
107. m to ensure that the entire system will always operate safely 1 Changing data in the running C Controller module from the connected personal computer 2 Changing the operating status 3 Operating from a personal computer Especially in the case of a control from an external device to a remote C Controller module immediate action cannot be taken for a problem on the C Controller module due to a communication failure To prevent this configure an interlock circuit in a user program and determine corrective actions to be taken between the external device and C Controller module in case of a communication failure Startup and Maintenance Precautions NWARNING When handling external devices and performing the following operations configure an interlock circuit in a user program to ensure that the entire system will always operate safely 1 Changing data of the running C Controller module from the connected personal computer 2 Changing the operating status 3 Operating from a personal computer Especially in the case of a control from an external device to a remote C Controller module immediate action cannot be taken for a problem on the C Controller module due to a communication failure To prevent this configure an interlock circuit in a user program and determine corrective actions to be taken between the external device and C Controller module in case of a communication failure Startup and Maintenance Precautions NCAUTION
108. n is displayed 3 Click the Next button Welcome to the Add Hardware Wizard This wizard helps you install driver software to support older devices that do not support Plug and Play and which are not automatically recognized by Windows You should only use this wizard if you are an advanced user or you have been directed here by technical support A If your hardware came with an installation CD it is recommended that you click Cancel to close this wizard and use the manufacturer s CD to install this hardware To continue click Next 89 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon 4 Select Install the hardware that manually select from a list Advanced and click the Next button The wizard can help you install other hardware The wizard can search for other hardware and automatically install it for you Or if you know exactly which hardware model you want to install you can select it from a list What do you want the wizard to do Search for and install the hardware automatically Recommended Install the hardware that I manually select from a list Advanced 5 Select Network adapters and click the Next button From the list below select the type of hardware you are installing If you do not see the hardware category you want click Show All Devices Common hardware types Modems b d Multi port serial adapters ii Portable Devices Y
109. n the condition that you also referred to herein as Customer agree to the following terms If you do not agree to the terms stated herein then Wind River and its licensors are unwilling to license the Product to you in which case you must return the Product to Wind River within thirty 30 days If you have signed an executed agreement for the Product you received the terms of such executed agreement shall solely govern your use of the Product Otherwise I If you have purchased a perpetual based license the terms of the Object Code License and Distribution Agreement Appendix A apply II if you have purchased a subscription based license the terms of the Software Enterprise License Agreement Appendix B apply III If you obtained an evaluation license the terms of the Product Evaluation License Agreement Appendix C apply If you initially receive an evaluation license and convert to a commercial license then the terms of the applicable commercial license Appendix A or Appendix B depending on the type of license you purchased shall be binding in all respects on you without the need for further action THE SOFTWARE AND ACCOMPANYING DOCUMENTATION ARE PROTECTED BY UNITED STATES COPYRIGHT LAW AND INTERNATIONAL TREATY UNAUTHORIZED USE REPRODUCTION OR DISTRIBUTION IS SUBJECT TO CIVIL AND CRIMINAL PENALTIES BY CLICKING ON THE I ACCEPT BUTTON YOU ACKNOWLEDGE THAT YOU HAVE READ THIS AGREEMENT UNDERSTAND IT AND AGREE TO BE BOUND BY IT
110. nch installation could not be located appears License Page 108 An error message License Not Found appears when CW Workbench is started or being operated Target connection Page 108 CW Workbench cannot be connected to C Controller module Page 109 An error occurs and the connection fails Failed to Connect to Target when Connect is executed on the Remote Systems window OR the connection status of the Remote Systems is suddenly changed from connected to disconnected Page 109 The selected Target Connection settings are not imported Page 109 The screen to select Target platform appears when configuring the target server connection setting Downloading Page 109 The out file failed to download on C Controller module Page 109 The out file sometimes cannot be downloaded to C Controller module Corrective action The cause s of errors and their respective corrective action s are explained below Installation lBIThe install menu of the plug in software cannot be found Select Help gt Install New Software to install the plug in software If Install New Software cannot be found CW Workbench is in the Basic Device Development display mode Change the current display mode to Advanced Device Development The display mode of CW Workbench is displayed on the title bar How to change the display mode Operating procedure 1 Select Window gt Open Perspective gt Advanced Device Development Or click
111. nd operations for the function are same as Wind River Workbench 3 9 Windows supported operating system of personal computer CW Workbench is supported by Windows XP Windows 7 and Windows 8 Some 64 bit version operating systems are also supported For more details refer to the following section K Page 22 Operating Environment Extended functions using plug in software The third party plug in software can be easily added which allows functions to be easily extended 1 BEFORE USING PRODUCTS 1 1 CW Workbench 1 2 CW Sim and CW Sim Standalone CW Sim and CW Sim Standalone are products which allows to simulate SW programs of VxWorks on a personal computer CW Sim is used as an add on to CW Workbench CW Sim Standalone is a runtime environment that enables the VxWorks simulation function on a personal computer on which CW Workbench has not been installed CW Sim and CW Sim Standalone are an OEM products of Wind River Systems Inc The product has only basic functions VxSim required for simulation as a subset product of Wind River Workbench 3 3 The screen display and operations of the common functions are all the same as those for Wind River Workbench Features CW Sim CW Sim Standalone has the following features e VxWorks system can be simulated without C Controller module The program quality and device safety can be improved before actual operations t can be used for debugging of a system consisting of more than
112. nderscore or a hyphen have been used for the or reinstallation of CW Workbench destination folder folder name in which CW Workbench is installed e Alphanumeric characters A space cannot be used Underscore hyphen License BAn error message License Not Found appears when CW Workbench is started or being operated An error has occurred with the license file being used for CW Workbench Page 112 LICENSE ERRORS Target connection HCW Workbench cannot be connected to C Controller module Log Console The VxWorks image file of C Controller module Match the VxWorks image files to be used between C Controller A message Differences for module is not the same as that of CW Workbench module and CW Workbench XXXXXXX segment s address gt Page 66 Setting Target Server appears A message Failed to Connect to C Controller module is not connected to the CW Check the following status Target appears Workbench network or the IP address setting is The power supply for the C Controller module is ON wrong The C Controller module is operating properly No error has occurred The Ethernet cable connector connecting the personal computer to the C Controller module is fully inserted into the Ethernet port The Ethernet cable is connected In addition the LEDs for each Ethernet port turn ON P addresses of the personal computer and the C Controller module have been set properly Others The host nam
113. nent MAIL license file A permanent license file will be e mailed DI Install CW Workbench and CW Sim on the new personal computer using the new permanent license Page 30 Installation Completed Poin tr If the License Agreement has been lost and the Product ID is unknown consult your local Mitsubishi representative with the following information which was filled in on the Permanent License Application Form Company name department name and name of the representative person E mail address e Target CPU 3 INSTALLING CW Workbench CW Sim 29 3 3 Acquiring Reacquiring Permanent License 30 3 4 Installation This section explains the installation procedure and operation method of CW Workbench and CW Sim The procedure shown below with the screens are of Windows 7 it may differ depending on the operating system Installation procedure Select the Wind River install location IC NwindRiver Browse tee WIND RIVER 3 INSTALLING CW Workbench CW Sim 3 4 Installation 1 Insert the CW Workbench CW Sim DVD ROM into the DVD drive to start the installer If the installer is not started automatically double click setup exe in the DVD ROM to run the installer For the contents of the DVD ROM refer to the following section Page 24 Contents of DVD ROM CD ROM 2 Enteran installation destination folder name click the OK button An installation destination folder can also be
114. ng of multiple tasks lt sss pia o XAR seb ACE e ed POR RR eed eed owe oe ee EIA RAT inte CHAPTER9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon es Setting Routing and Remote Access service ele Selina Ne WOM GIVEN es dana qe exer dro serca oia rare ini ale 9 2 Starting VxWorks Network Daemon 0 o ooocococcc ehh Creating VxWorks network configuration file n a aa aaaea Starting up VxWorks network daemon a 9 3 Starting SImilll BEOT 2 2a o da car ER DE di i ode A ode o oe a A 9 4 DebUggingiTasKs curia a A mia rid ri 92 CHAPTER 10 CONNECTING CW Sim Standalone AND DEBUGGING PROGRAMS 93 10 1 Setting VxWorks Network Daemon 00 cece es 93 10 2 Starting VxWorks Network Daemon 0 00 ccc ees 93 Creating VxWorks network configuration file 222i 93 Starting VxWorks network daemon E 62 04 acd made mien ADR ERE HERE 54600056 0555466406G002 260554 93 10 3 Starting Simulator aci dedo do aC e E RE Uk ee ee E 94 CHAPTER 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 96 111 Features of Sample PFOSEAID s erase a nR apatia pere ee Rm EURO e e pi 96 Configuration of sample PIOgiam saca wx uc Ea enni IE LE P dura US Gur Hoes es 96 Operation of sample program sele sha haw gue Ue Wa ee ene E pa tea awe ek eed dmt 97 11 2 U hzing S
115. nstallation key file 35 Installation with a temporary license 34 L Ornella 26 License Agreement 26 License Authorization Code 26 M MELSEC data link function 10 24 O Operating system o o o ooooooooo 22 125 MEMO 126 REVISIONS The manual number is given on the bottom left of the back cover February 2015 SH NA 081373ENG A First edition May 2015 SH NA 081373ENG B MAdded or modified parts Section 7 2 Japanese manual number SH 081372 B This manual confers no industrial property rights of any other kind nor does it confer any patent licenses Mitsubishi Electric Corporation cannot be held responsible for any problems involving industrial property rights which may occur as a result of using the contents noted in this manual 2015 MITSUBISHI ELECTRIC CORPORATION 127 TRADEMARKS Microsoft Windows and Windows XP are registered trademarks or trademarks of Microsoft Corporation in the United States Japan and other countries Intel Pentium and Celeron are either registered trademarks or trademarks of Intel Corporation in the United States and other countries Ethernet is a trademark of Xerox Corp VxWorks and VxSim are either trademarks or registered trademarks of Wind River Systems Inc in the United States All other company names and product names used in this manual are either trademarks or registered trademarks of th
116. ntroller module 8 amp gBxioi Name noEntryPoint UserProject out VXWorks6x 192 168 3 3 88 Launch Context gt 5 Downloads 2 Projects to Build ES Common Vorks Kernel Task noEntryPoint UserProject out VxWorks Kernel Task Download Options Launch Context 4 amp New S o gt 4 E amp default localhost vxsim0 Wind River VxWorks 6 9 te vxsimi_smp Wind River VxWorks 6 9 V fa VxWorks6x_192 168 3 3 Wind River VxWorks 6 9 gt Advanced ah w n pply Revert Filter matched 2 of 2 items O 72 8 CONNECTING AND DEBUGGING C Controller module 8 4 Downloading Module for Debugging int The following screen is displayed during or after the second operation Select the starting method Launch configuration and click the OK button Choose Action Workbench has found one or more existing launch configurations that match your selection What do you want to do Launch the selected launch configuration Edit the selected launch configuration Edit a duplicate of the selected launch configuration Create a new launch configuration Matching VxWorks Kernel Task Launch Configurations noEntryPoint UserProject out VxWorks6x_192 168 3 3 See Target Management Launch Configurations for additional settings O Co J conce 8 CONNECTING AND DEBUGGING C Controller module 8 4 Downloading Module for Debugging 73
117. of Plug in Software This section explains how to install and uninstall the plug in software an extended function of CW Workbench Point For details on the plug in software functions refer to the Wind River Workbench document provided by Wind River Systems Inc Help gt Help Contents gt Eclipse Platform Eclipse Workbench Basics gt Tasks Updating and installing software Installation The following shows the installation procedure for the plug in software Before installing the plug in software ensure that CW Workbench is in the Advanced Device Development mode m Advanced Device Development CW Workbench File Edit Navigate Search Run Project Target M If Basic Device Development is displayed on the title bar change it to Advanced Device Development by any of the following methods e Select Window gt Open Perspective gt Advanced Device Development e Click the Open Perspective icon E at the upper right corner of CW Workbench and select Advanced Device Developmeni from the displayed menu Precautions The installation method of the plug in software explained in this section is a general installation method using Eclipse3 6 Follow the instructions provided by plug in software manufactures For details on how to use the plug in software installed contact the plug in software manufacturer e f the installed plug in software does not operate properly check if the plug in so
118. oject_par window if d dirname LiserPro building UserProject partialImage Debug UserProject partialIm age o if d dirname UserProject Debug UserProject out J then mkdir p dirname UserPraject l buildina peestroleciADebual Jserfrofeciioui a s n UserProject Wind River VxWorks 6 8 Downloadable Kernel Module Project 62M of 156M T 7 1 Creating New Projects Create a new project How to create a new project 1 Select Wind River gt CW Workbench 3 3 gt CW Workbench 3 3 from Windows Start 1 Select All apps on the Start screen or Start gt All Programs The Workspace Launcher screen is displayed 2 Entera folderof save destination of workspace to Workspace and click the OK button A save destination can be also selected from the tree by Select a workspace CW Workbench stores your projects in a folder called a workspace Workspace AUTRES E Note The workspace directory must be writable and should be located on fast local storage E Use this as the default and do not ask again clicking the Browse button 7 CREATING AND BUILDING PROJECT 7 1 Creating New Projects Edit Navigate Search Run Project Window Help New Alt Shift N fi Wind River Workbench Project Open File 1 Project Close Ctri W Build Target Save Ctrl S GS Folder re Save As 3 File from Template Ref
119. omputer can be connected to the Internet since a temporary license file is acquired via the Internet In addition check the IP address and port number which are acquired to be set during the installation if the personal computer is connected to the Internet via a proxy server Once CW Workbench and CW Sim are installed by using a temporary license they operate for 31 days for trial Apply the issued regular license by acquiring a permanent license K Page 27 Acquiring Reacquiring Permanent License If CW Workbench and CW Sim are used with the temporary license for more than 31 days a license error message appears They continue to operate by clicking the Cancel button however the project creation compiling building and debug functions cannot be used y n License error message e Launching the Wind River Debug Server DFW Backend failed to Error text Feature has expire d S67 obtain the license Overall License for the Wind River Workbench i Error code 10 Feature has expired Feature WR_WORKBENCH Expire date 09 dec 2014 License path C WindRiver license zwrsLicense lic FLEXIm error 10 32 For further information refer to the Installation and Licensing Guides available at http www windriver com licensing documents e ei 3 3 Acquiring Reacquiring Permanent License A permanent license is required to use CW Workbench and CW Sim for unlimited duration Acquiring permanent license
120. on settings are not imported Import operation was performed with the multiple Target Import the Target Connection settings individually those are not imported Connection settings selected MThe screen to select Target platform appears when configuring the target server connection setting The existing CW Workbench and newly installed CW Workbench Uninstall CW Workbench as explained below and install CW Workbench in a different may have the same installation folder folder from the one with the existing CW Workbench Page 107 Uninstallation process is cancelled in the halfway The out file failed to download on C Controller module Unavailable characters or symbols are used for the path of the Specify the out file or file name in which the following characters or symbols are not specified out file or file name included and download it again Displayed message Unavailable characters and symbols lt gt space two byte characters Problem Occurred message katakana Launch step finished with this error File not found WThe out file sometimes cannot be downloaded to C Controller module A two byte character or katakana is included in the path of Remove the two byte characters or katakana from the path of VxWorks image file VxWorks image file specified in the target server setting Page 66 Setting Target Server 12 3 CW Sim Troubleshooting Error description The
121. onal computer in use is connected to the Internet Use the Back button and go back to the Installer Online Update via a proxy server Settings screen Then select Connect to internet using a proxy server and configure the proxy server setting Unable to read repository at The personal computer could not connect to Internet Check if the personal computer can connect to Internet and install the products on the personal computer connected to the Internet When the personal computer is connected via a proxy server take corrective actions shown with the error message Unknown Host Unable connect to repository 1 Only when CW Sim is used BINot aware of usage of the acquired permanent license file Store the acquired permanent license file in the license folder of personal computer on which CW Workbench is installed Page 37 Applying Permanent License BINot aware of the method for deleting permanent license file Delete all the files in the license folder of personal computer on which CW Workbench is installed Page 42 Deleting Permanent License Startup HCW Workbench does not start when message Workspace in use or cannot be created choose a different one appears The Workspace folder specified during the startup of CW Click the OK button and select a different folder on the displayed Workspace folder Workbench is being used by other instance of CW specification screen Workbench Terminate
122. onfiguration and check the out file to be downloaded in the Downloads tab The out file of the project which is selected in the step 1 has been registered If the out file is not registered click the Add button and specify the out file to be downloaded Create manage and run configurations Select the launch context for executing the launch operations amp xiani Name EntryWDTMain UserProject out VXWorks x 192 168 3 3 type filter text H8 Launch Context gt 3 Downloads 2 Projects to Build Ey Source ES Common Attach Target Context E C C Application VxWorks Kernel Task Options E C C Attach to Applicati lu E C C Postmortem Debut Launch Context a NE E e P E C C Remote Applicatioi E Y default localhost Launch Control VB vxsim0 Wind River VxWorks 6 9 E Remote Application te vxsiml_smp Wind River VxWorks 6 9 BB Target Communication Fr V F VxWorks6x_192 168 3 3 Wind River VxWorks 6 9 4 O VxWorks Kernel Task noEntryPoint UserPro VxWorks Real Time Proces u v General Entry Point EntryWDTMain Arguments Advanced Debug Y Break on Entry Attach Host Shell e shConfig LINE EDIT MODE emacs Arguments m r Filter matched 11 of 11 items o em Select Entry Point Please select an entry po
123. ools enable the WDB Target Agent To solve this problem do the following Enable the WDB Target Agent Make sure that the VxWorks image includes the enabled WDB configured for the back end type you are using Add 0x400 to the VxWorks boot flags Check that the target is switched on and is reachable through the network from your host Check that the connection properties contain the correct settings necessary to reach the target x If the error shown above occurs check the following The C Controller module is powered ON and is running properly The target server can be connected to the C Controller module Poin tr Select the connected target server to use the Host Shell For how to start the Shell refer to the following section Page 71 Starting Shell For details on Shell select the following menu Help gt Help Contents gt Wind River Documentation gt Workbench 3 3 gt Wind River Workbench Host Shell User s Guide 3 3 8 CONNECTING AND DEBUGGING C Controller module 8 2 Connecting and Disconnecting Communication 69 70 How to check connection settings If the target server cannot be connected to the C Controller module follow the instructions below to check and change the connection setting Window Select the target server on the Remote Systems window Right click and select Properties from the shortcut menu Target Server Options Review and customize the tar
124. plan to use on your target If you are uncertain you may select all of them SM ARM Select all Deselect all 4 Click the Next button When the personal computer is connected to the Internet via a proxy server select the Connect to internet using proxy server and configure the proxy server set for the Internet connection 5 Click the Next button 6 When the permanent license file is acquired select Permanent activation and click the Browse button Then select the permanent license file of the product to be installed from the tree If the permanent license file has not been acquired perform any of the following procedures For environment where Internet connection is available gt Page 34 Installation with a temporary license For environment where Internet connection is not available Page 35 Installation using installation key file 7 Click the Next button 8 Then select ARM and click the Next button 3 INSTALLING CW Workbench CW Sim 1 3 4 Installation 3 9 Check that all the items are selected and click the Next button If no installation of CW Sim is required then unselect the 4 V 4 Documentation for Wind River Workbench 3 3 5 y Ge VxWorks 6 9 4 1 Application Developer 7 GB WaWorks Multiprocessing Simulator SMP AMP Host Windows fi g t Y 7 E amp 4Works Simulator Host Windows O OWI n I e z v E amp 4
125. projects in which the imported project exists Check the folders in which a user program is created on the imported project Precautions Wif the build result has an error Error information source file name line number and error details is displayed in red on the Build Console window Double click the column in which source file name and line number are displayed in red to jump to the corresponding error location in the source file Modify and rebuild source codes until all the error information red is cleared Wif an error command not found occurs Unsupported compiler may be used Check that ARMARCH7gnu SMP is selected in the Build Support and Specs tab of Build Properties Do not select the items other than ARMARCH7gnu_SMP 7 CREATING AND BUILDING PROJECT 7 3 Building Project 63 Setting optimization option The following describes how to set an optimization option that prioritizes the processing speed Restriction Set an optimization option when using in Non Debug mode Using in Debug mode may result in improper debugging Qperaling procedure 1 Selecta project to which the optimization option is to be file Edt Source Refactor Navigate Search Run set and select Project gt Properties mM F3 HR amp v O i9 nt C B so me ENTE gt E UserProject Wind River VxWorks 6 9 Downloadabi iiic gt Mp Build Targets ARMARCH
126. r Workbench 3 3 5 for Works 6 3 6 9 Enabler Rev 9 gt V 4p Wind River Workbench Core 3 3 5 2 TW Wess oii S M CCo If the argument is added in the step 5 select all the items only patch may lead to improper operation The message shown on the left is displayed o Are you sure you want to remove the selected products 9 Click the Yes button 10 Click the Finish button 4 4 5 UNINSTALLING CW Workbench CW Sim 5 3 Uninstallation Poin tr Click the Kill button if the screen shown below appears in the step 8 Running processes are blockin e remove operation Running processes are blocking the remove operation The follow i ing processes must be ended before the installer can continue rocess Environment after uninstallation Even when CW Workbench and CW Sim are uninstalled some folders and files are not deleted Those folders and files are not deleted or removed as it will speed up the installer startup during the re installation of CW Workbench and CW Sim The non removed folders and files can be deleted directly from explorer if those are not required Data not to be deleted Some files folders including Workspace folders and image files under the path of installation destination folder gt 5 UNINSTALLING CW Workbench CW Sim 4 5 3 Uninstallation 5 MEMO 46 5 UNINSTAL
127. rchitecture MMU of CPUs Virtual disc support Simulates disc block devices lo Jo Time stamp driver Displays time axis using Wind River System Viewer et Real time clock Manages the updates of the time and calendar lo Jo Virtual network Links to virtual network and external network by network daemon 1 CW Sim is also uninstalled by uninstalling CW Workbench OTIO APPENDICES APPENDIX 1 1 9 Appendix 3 Function Comparison among CW Sim CW Sim Standalone and VxSim Appendix 4 List of VxWorks Components Differences between C Controller module and CW Sim This section shows the components of which operations run differently on CW Sim and CW Sim Standalone among VxWorks components implemented on C Controller module INCLUDE_PASSFS INCLUDE_VIRTUAL_DISK Addition direct access to host filesystem VxSim virtual disk to emulate a VxWorks disk driver For all VxWorks components implemented on C Controller module refer to the following manual MELSEC iQ R C Controller Module User s Manual Application 12 APPENDICES APPENDIX 0 Appendix 4 List of VxWorks Components Differences between C Controller module and CW Sim Appendix 9 CCPU_Simulator C Controller Module Dedicated Functions Stub This section explains the stub provided in the sample program This function performs the simulation by using the variable in the sample program gpsDevArea instead of accessing to actual input signal X and output sign
128. rdware device and click the Next S button From the list below select an installed hardware device then click Next to check properties or troubleshoot a problem you might be having 5 Gotothe step 4 in the following section To add hardware not shown in the list click Add a new hardware device 3 Page 82 Windows 7 or ater Installed hardware amp USB Root Hub USB Root Hub USB Root Hub USB Composite Device USB Composite Device AAA OY 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon Setting TCP IP 1 Select any of the following For Windows 8 or later All apps gt Control Panel View network status and tasks gt Change adapter settings on the Start screen of Windows For Windows 7 Control Panel gt View network status and tasks gt Change adapter settings from the Start menu of Windows For Windows XP Control Panel gt Network and Internet Connections gt Network Connections from the Start menu of Windows 2 Right click the local area connection with device name E gt control Panel gt Network and intemet gt Network Connections WindRiver WRTAP and select Properties from the shortcut menu Organize v Disable this network device Diagnose this connection Rename this connection Change Name Device Name Connectivity Incoming Connections Local Area Connection Realtek PCle
129. re Check the items that you wish to install 5m s mammm 3 000 Linux Tools 000 Mobile and Device Development 000 Modeling 000 Programming Languages 000 SOA Development 000 Testing 000 Web XML Java EE and OSGi Enterprise Development Select All Deselect All 3 items selected Details m DE V Show only the latest versions of available software 7 Hide items that are already installed V Group items by category What is already installed O Show only software applicable to target environment V Contact all update sites during install to find required software Em Ez APPENDICES APPENDIX 116 Appendix 1 Installation and Uninstallation of Plug in Software 2 Click the Add button on the Install screen 3 Enter information for Name and Location field Click the OK button A path of website from which the plug in software can be downloaded is added An Archive file downloaded from the web site can be also selected for the Location field by clicking the Archive button 4 The information of the software package that can be installed from the added Location is acquired Pending is displayed as shown on the left while the information is being acquired After the completion of acquiring the information of the software package that can be installed software package names are displayed 5 Select a software package to be installed and click the Next button
130. res Pages that users often browse can be bookmarked e Manual EPUB PDF Print book e Manual EPUB PDF Print book e Manual EPUB PDF e Manual EPUB PDF e Manual EPUB PDF e Manual refers to the Mitsubishi FA electronic book manuals that can be browsed using a dedicated tool 10 TERMS Unless otherwise specified this manual uses the following terms Term CW Configurator CW Workbench CW Sim CW Sim Standalone C Controller module C Controller module dedicated function Eclipse MELSEC data link function R12CCPU V RTP VxSim VxWorks Wind River Workbench Windows 7 Windows 7 or later Windows 8 Windows 8 1 Windows 8 or later Windows XP Installation key file Existing CW Workbench Dedicated function library Description A generic product name for model names SWnDND RCCPU n indicates version An abbreviation for C Controller module engineering tool CW Workbench An abbreviation for VxWorks simulator that can operate and debug the C Controller module programs on a personal computer with CW Workbench installed without connecting to the actual machine target An abbreviation for VxWorks simulator that is operable on a personal computer without CW Workbench installed A generic term for MELSEC iQ R series C Controller module A dedicated function library offered by C Controller module It controls C Controller module An open source integrated development environment
131. resh F5 Convert Line Delimiters To F3 Example Print Ctrl P Fj Other Ctrl N ny Target Operating System Select the target operating system for the project k Fini New Wind River TES Build Type o Select the build type for the project Build type Dowr Description Creates a munched downloadable image which can be dynamically linked to the operating system at run time and executes in kernel memory space in kernel mode Setup information Resulting project type Downloadable Kernel Module Project Uses build tool Linker e ane a New Wind River Workbench Project rede Project Create a new project with the specified data o Project name UserProject Location Create project in workspace 5 Create project at external location gt Create project in workspace with content at external location y CAWindRiver workspace UserProject Browse o Point f CW Workbench is started 3 Select File gt New gt Wind River Workbench Project The New Wind River Workbench Project screen is displayed 4 Select Wind River VxWorks 6 9 for Target operating system and click the Next button 5 Select Downloadable Kernel Module for Build type and click the Next button 6 Entera project name for Project name and click the Finish button The project is added to the Project Explorer window If any of the following
132. rkbench manuals Relevant manuals of VxWorks Simulator and Wind River Workbench 3 3 PDF VxWorks Simulator manuals manual CW Workbench CW Sim Operating Manual of MELSEC iQ R CW Workbench CW Sim e Manual Manual e Manual Viewer Installation execution file setup exe An installation file of the browsing tool for e Manual Vrd party license notices OS vxworks 6 9 pdf A license notice PDF of the third party product used in CW Workbench and Communication protocols mipc 2 2 pdf CW Sim Compiler wrcompiler 5 9 1 pdf Installer installer 2 5 pdf src CW Workbench open source file An open source file of CW Workbench include C Controller module dedicated function A header file of dedicated function library CCPUFunc h MELSEC data link function MDFunc h WxWorks vxWorks 6 9 SMP A VxWorks image file and a symbol file vxWorks 6 9 SMP sym Samples Execution file script file batch file A sample program for simulator 1 The VxWorks image file contains Telnet and FTP services To access these services use the following account Account s can be added by using the loginUserAda function User name target Password password CW Sim Standalone CD ROM The CW Sim Standalone CD ROM stores the following items CWSIMSA Execution file An execution file of CW Sim Standalone readme txt How to acquire CW Workbench CW Sim Operating Manual is described 3rd_party_licensor_notices OS vxworks 6 9 pdf A licens
133. selected from the tree view by clicking the Browse button The following characters can be used for an installation destination folder name e Alphanumeric characters Space cannot be used Hyphen e Underscore The product cannot be installed properly if characters other than those described above are used for a folder name When installing CW Sim separately note that the same folder as the CW Workbench installation destination must be selected 3 Click the Next button Choose online update settings Check for and apply installer updates installer restarts if necessary C Check online for the latest Wind River product updates Disabled for this product Connect to the Internet using a proxy server N Install now or create a local download Choose whether to install your Wind River products right away orto copy the product contents to this host and perform the installation later Click Help below for details 9 Install Local download copy media to host our existing product activation install bxt file ion requires License Authorization Code and Internet connection our product activation file Manually enter all installation keys Click Next to enter the installation keys for each product Target Architectures Select one or more target architectures corresponding to processors you
134. startup in the Windows compatible mode Fast user switching Remote desktop Large fonts detailed setting in the Display Properties DPI setting other than 10096 2 Toinstall uninstall CW Workbench CW Sim log on as a user with administrative privileges 3 TCP IP is required to be installed 4 Windows Touch cannot be used 5 Windows XP Mode cannot be used 6 64 bit version is not supported 2 SYSTEM CONFIGURATION 2 2 Supported Modules 2 4 Specifications Supported host operating system gt Page 22 Operating Environment Supported C Controller module R12CCPU V Project creation and management None None Building GNU compiler SIMNTgnu SMP None Debugger Debugging execution restart None None Debugging execution forced stop Breakpoints Step execution Variables structure variables reference and editing Register value reference and editing e Memory block reference and editing Target connection agent Dynamic Printf License format Node locked Node locked Runtime Document Wind River Workbench 3 3 Help document Wind River VxWorks Simulator Help document Differences from C Controller module The differences between CW Sim CW Sim Standalone and C Controller module that should be considered in user program development are as follows Floating point function The hardware floating point function is not supported Use the following ANSI floating point function BlAvailable ANSI floating point functions a
135. t c RemoteSystemsTempFiles x LJ ctdt o 4 di UserProject UserProject out 4 jj ARMARCH7gnu_SMP 4 UserProject Ji Debug gt de UserProject partiallmage 7 CREATING AND BUILDING PROJECT 7 3 Building Project 1 Selectthe project name to be built on the Project Explorer window and right click gt Refresh from the shortcut menu 2 Select the project name to be built on the Project Explorer window and right click gt Rebuild Project from the shortcut menu 3 Ifthe message shown on the left appears click the Continue button The build process is displayed on the Build Console window Once the build is completed Build Finished is displayed Check if there is an error information red on the Build Console window After the build is completed execution file user program to be used in a C Controller module is created A file name of the user program is project name out If an error occurs during the build a user program is not created Point Folders when a user program is to be created after the build is completed normally are as follows e In Debug mode Workspace folder Project name folder ARMARCH7gnu SMPWProject name folder Debug In Non Debug mode Workspace folder Project name folder ARMARCH7gnu SMPWProject name folder NonDebug When a user program is created on the imported project the folders above may differ depending on the configurations of folders and
136. t to the personal computer that was specified for Host Information on the Permanent License Application Form by following the procedure below Start End CW Workbench if it is open Copy the acquired permanent license file to the license folder of CW Workbench Start CW Workbench i Completed I The license folder is in the following path when CW Workbench is installed without changing the folder of the installation destination C WindRiver license E p WindRiver wind EC docs 5 enu E e jre License file 5 Note Do not store the license file in folders other than the one specified above when applying the license file to a personal computer 1 For updated license product when more than one permanent license files have been acquired overwrite all of the files 3 6 X Applying Patch This section explains how to apply a patch released for CW Workbench and CW Sim The procedure shown below with the screens are of Windows 7 it may differ depending on the operating system Point Log on as a user with administrative privileges when applying a patch to CW Workbench and CW Sim e Terminate CW Workbench and CW Sim before applying a patch Do not stop the processing during patch application When applying a patch on Windows 7 or later the confirmation dialog box of User Account Control appears Click Allow or Yes button to continue the application of the patch 3 INSTALL
137. t your local Mitsubishi representative 2 SYSTEM CONFIGURATION 1 2 1 Configurations 9 CW Sim and CW Sim Standalone The simulation environment of CW Sim is established by installing CW Workbench CW Sim on a personal computer The simulation environment of CW Sim Standalone is established using the execution file of CW Sim Standalone and VxWorks image symbol files Programs running on the simulator can be interlocked with superior server microcomputer device and C Controller module via Ethernet CW Sim simulation environment z _ Permanent P Copy an execution file of VxWorks image license file x i symbol file and user program IE Application E M Form CW Sim Standalone simulation environment CW Workbench CW Sim m SW1DND CWWR EVZ CW Workbench E DND CWSIMR EZ CW Sim Standalone User program creation and building SW1DNC CWSIMSAR E Execution file Ethernet A ES pas T LS n Lm IA lm E NI mi Di si L L Superior server Microcomputer C Controller module device 1 The execution file of CW Sim Standalone can be copied from CW Sim Standalone CD ROM SW1DNC CWSIMSAR ECD 2 The VxWorks image symbol files can be copied from the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD 3 The permanent licenses are required for each of CW Workbench and CW Sim 20 2 SYSTEM CONFIGURATION 2 1 Configurations Available communication route for CW Sim CW Sim Standalone Windows applications running on t
138. te CW Workbench before uninstalling Uninstall the product in Product Maintenance The product cannot be uninstalled from Add or Remove Programs in the Control Panel Do not stop the uninstallation processing If the processing has been stopped uninstall the product again If the uninstallation processing failed after the uninstallation processing has been stopped reinstall the product and uninstall the product again 1 gt Page 107 Uninstallation process is cancelled in the halfway For uninstallation on Windows 7 or later the confirmation dialog box of User Account Control appears Click Allow or Yes button to continue the uninstallation 1 For Windows 8 Uninstall a program 5 2 Deleting Permanent License To delete the current permanent license for replacement of a host machine delete it according to the following procedure Start End CW Workbench if it is open Delete the permanent license file from the 7 The license folder is in the following path when CW Workbench is installed license folder of CW Workbench completely without changing the folder of the installation destination Delete the permanent license file saved as a C WindRiver license backup file as well m Sod E 3 WindRiver wind ey E iy docs Recycle bin 5 enu oc a co License file v ip ire c Completed 5 UNINSTALLING CW Workbench CW Sim 5 1 Preparation for Uninstallation
139. ted by adding the argument above and uninstalling CW Workbench again Target location x86 win32 Target Installer exe margs Dallow patch removal trud Start in C WindRiver Shortcut key None Run Normal window z Comment Open Eie Location 6 Select Wind River gt Product Maintenance from Windows Start Product Maintenance CW Workbench 3 3 de Documentation d VxWorks 6 9 and General Purpose Te Wind River 4 Back 5 UNINSTALLING CW Workbench CW Sim 4 5 3 Uninstallation 3 7 Select Remove and click the Next button CW Workbench CW Sim of this product is uninstalled The g em existing CW Workbench CW Sim is not uninstalled Patch N Apply patches individual fixes for individual problems e Remove parts of or all installed products About this installation Review your installed products and changes made to them over time License configuration N Review and change your license configuration 8 Check that items to be uninstalled have been selected and click the Remove button enn Uninstallation is started gt K Documentation for Wind River Workbench 3 3 5 b a WaWorks 6 9 4 1 Application Developer gt V amp Wind River GNU Compiler 4 3 3 for Works 6 9 LI LI LI W Win ive Sep A including patch for uninstallation Note that uninstallation of gt V Ap Wind Rive
140. the Delete button to remove the selected configuration E C C Postmortem Debut 2 Press the Filter button to configure filtering options E C C Remote Applicatioi Launch Control Edit or view an existing configuration by selecting it amp amp Remote Application E Target Communication Fr Configure launch perspective settings from the Perspectives preference page 4 Qp ViWorks Kernel Task o noEntryPoint UserPro O Vx Works Real Time Proces i Create manage and run configurations Launch Context Please enter or select an Entry Point CE X E Name noEntryPoint UserProject out VxWorks6x_192 168 33 type filter text TI Launch Context 2 Downloads gt Projects to Build Ey Source E Common Attach Target Context E C C Application E C C Attach to Applicati E C C Postmortem Debut E C C Remote Applicatioi Downloads v File Reload Options Add E UserProject ARMARCH7gnu_SMP UserProject Debug ua O 8 CONNECTING AND DEBUGGING C Controller module 8 5 Debugging User Programs 1 Onthe Project Explorer window select a project to be debugged Select Debug Configurations in the pull down list of on the toolbar Debug Configurations screen is displayed 2 Double click VxWorks Kernel Task in the tree on the left on the screen A new debug configuration is created under VxWorks Kernel Task 3 Select the created debug c
141. the following DNS server addresses Preferred DNS server Alternate DNS server Validate settings upon exit 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 9 1 Setting VxWorks Network Daemon The Internet Protocol Version 4 TCP IPv4 Properties screen is displayed 4 Select Use the following IP address and set IP address and Subnet mask 5 Click the OK button 9 2 Starting VxWorks Network Daemon This section explains the startup procedure of VxWorks network daemon after CW Workbench and CW Sim are installed to C WindRiver Creating VxWorks network configuration file Create a text file vxsimnetd conf in CACCPUSIM Content of vxsimnetd conf is as follows SUBNET_START sub2 SUBNET_ADDRESS 192 168 2 0 SUBNET_EXTERNAL yes SUBNET_EXTPROMISC yes y Modify the contents of vxsimnetd conf as necessary by referring the following document and checking the contents LA WindRiver VxWorks Simulator User s Guide Poin tr A sample of vxsimnetd conf is stored in the folder Samples English on the CW Workbench CW Sim DVD ROM SW1DND CWWR EDVD Starting up VxWorks network daemon Start VxWorks network daemon once after the personal computer boots successfully Operating procedure gt 1 Select All Programs gt Accessory i Command E Administrator Command Prompt vxsimnetd exe f CACCPUSIMvxsimnetd conf s C Windows system32 gt cd C WindRiver vxworks 6 9 host x86
142. the following message appears Click the Yes button O Existing project description files in this workspace have to be converted to the new WE Workbench format If these files are not converted some functionality may be compromised Converting projects may make these incompatible with older Workbench versions Convert now 7 CREATING AND BUILDING PROJECT 7 2 Adding Projects 9 Importing projects created in the existing CW Workbench Operating procedure 1 Select any of the following For Windows 8 or later All apps gt Control Panel gt Appearance and Personalization gt Folder Options on the Start screen of Windows For Windows 7 Control Panel gt Appearance and Personalization gt Folder Options from the Start menu of Windows e For Windows XP Control Panel gt Appearance and Themes gt Folder Options from the Start menu of Windows The Folder Options screen is displayed General View Search Folder views 2 Select Show hidden files folders and drives in the You can apply the view such as Details or Icons that ES you are using for this folder to all folders of this type View tab under Hidden files and folders in Files and only to Folders Folders and click the OK button Advanced settings Display file icon on thumbnails Display file size information in folder tips Display the full path in the title bar Classic theme onl
143. the simulators vxsimO to vxsim3 and click to startup CW Sim Startup CW Sim in the following order e vxsim3 No 3 e vxsim2 No 2 e vxsim1 No 1 e vxsim0 No 0 2 Execute the X On function on the Target Consoles screen of the simulator vxsimO to run the sample programs For example when X On 10 is entered X10 turns ON and Y device turns ON OFF ON OFF status of Y devices is displayed on the Target Consoles screen of the simulators vxsim1 to vxsim3 as follows eu ON e 0 OFF e Not displayed Ba vsim3 OF m Ba vsimze Ba vsimier m Ba vin i fp vsimeon o 52 Ba vxsim0 ace 11111111111 Vxllorks 6 9 SMP 11111111111 111111111111 CPU Windows 6 cessor 0 Memory Size 0x1ff00000 511Mb BSP version 6 9 0 Created Nov 25 2014 16 57 06 ED amp R Policy Mode Deployed WDB Comm Type WDB COMM PIPE WDB Ready KERNEL WIND version 2 13 11111 11111 11111 Copyright Wind River Systems Inc 1984 2014 ro P 1 gt ld 1 0 SIMNTgnu SMP simulation O Debug simulation 0 out 3 vxsim2 Ni 22 vxsimi ia Bi vxsimo Ol value 309758104 0x12768898 lo vasim 20 i Le Cia Ba vxsimo Y11 of the simulator vxsim1 to vxsim3 turns ON OFF 1 2 11 USAGE EXAMPLE OF CW Sim USING SAMPLE PROGRAM 0 11 7 Executing Sample Program TROUBLESHOOTING This part explains the errors whic
144. tion and Uninstallation of Plug in Software 0 ooooocoooncoona o 115 ll A 115 UNS ION sposi de o Dd eee palio tieni 117 Appendix 2 Comparison with Wind River Workbench o oococcococccc ees 118 Appendix 3 Function Comparison among CW Sim CW Sim Standalone and VxSim 119 CONTENTS RELEVANT MANUALS CW Workbench CW Sim Operating Manual SH 081373ENG this manual MELSEC Q R C Controller Module User s Manual Startup SH 081367ENG MELSEC Q R C Controller Module User s Manual Application SH 081369ENG MELSEC Q R C Controller Module Programming Manual SH 081371ENG CW Configurator Operating Manual SH 081382ENG Point Explains the system configuration specifications functions and troubleshooting of CW Workbench CW Sim Explains the performance specifications module startup procedure and troubleshooting of C Controller module Explains the functions devices and parameters of C Controller module Explains the programming specifications and dedicated functions of C Controller module Explains the system configuration parameter settings and operation methods for the online function of CW Configurator e Manual has the following features Required information can be cross searched in multiple manuals Other manuals can be accessed from the links in the manual The hardware specifications of each part can be found from the product figu
145. to install the plug in software Uninstallation The following shows the uninstallation procedure for the plug in software 1 Select Help About CW Workbench to display 09 9 E gt 9 9 GB About CW Workbench screen Click the Installation Details button Wind River Installation Details Installation Details 2 Selectthe Installed Software tab and select the S os Installed Software Installation History Features Plug ins Configuration softwa re packages to be deleted a Name Version Id 3 G Graphical Editing Framework Draw2d 3 8 1 201209080207 org eclipse draw2d featur Click the U ninstal I button b QR Graphical Editing Framework GEF 3 8 1 201209080207 org eclipse gef feature gr a Q Jubula 1 2 2 201209040912 org eclipse jubula feature l I I 52 EclipseLink JPA 2 4 1420121003 ad org eclipse persistence jp The plug In softwa re IS uninstalled E Jubula Launch Support for Eclipse RCP 1 2 2 201209040912 org eclipsejubula feature gt Q Jubula Launch Support for Java Swing 1 2 2 201209040912 org eclipsejubula feature _ 4 n Eclipse functional UI testing environment Update i Uninstall j Properties APPENDICES APPENDIX 1 1 Appendix 1 Installation and Uninstallation of Plug in Software 7 Appendix 2 Comparison with Wind River Workbench The following table shows the specification comparison between CW
146. tput Syntax 4 Types Integral Diagnostics Lint type filter text MEM Resource Binary Parser gt Build Properties Builders gt C C General External File Project Info Project References Run Debug Settings Task Tags p Validation Optimization Enable optimization Enable standard speed optimizations W Enable maximum speed optimizations g Emphasize space reduction over speed requires one of the above Optimized code generation Inline functions with less than 1 nodes Maximum size of a loop for unrolling 20 nodes g Loop strength reduction and elimination of iteration variables Combine an instruction that copies one register into another E Generate position independent code Gor Reorder instructions to eliminate execution stalls g Don t keep the frame pointer in a register for functions that don t need one 4 Stack 9 Accumulate arguments on the stack for several function calls and pop them all at once Pop the arguments to each function call as soon as that function returns 4 Unroll loops If number of iterations can be determined at compile time or upon entry to the loop Always Never arcs EN En a Build Properties z ba Specify all build properties amp Build Support and Specs Tools Paths Defines Bi Libraries Variables Build tool C Compiler New
147. trollers Readme information is available in your installation at C WindRiver readme index html V View the Readme in a browser e The screen shown below may appear after clicking the OK button in the step 2 Even if the Cancel button is clicked then also the operation will not cancel Preparing installer 3 INSTALLING CW Workbench CW Sim 3 4 Installation 33 34 Choose your activation type for this installation Use your existing product activation install bt file Temporary activation requires License Authorization Code and Internet connection Permanent activation Enter the full path to your product activation file Manually enter all installation keys Click Next to enterthe installation keys for each product Choose a host ID to identify the computer on which you Host Name fakikaku PC Selection HostID Type e Ethernet Adapter e A Disk Serial Number Note Host IDs are a way to uniquely identify computers If your computer has multiple network adapters for example wired and wireless select your hard disk serial number as your host ID instead Enter your contact information and License Authorization Code LAC Note Required fields are marked with an asterisk LAC User Name s Company Address1 Address2 E mail Phone Zip Postal Code
148. tton Path to executable CAWindows System32 svchost exe netsvcs 5 When the Service status becomes Start click the OK button Startup type Automatic x Help me configure service startup options Service status Started Start Stop Pause Resume You can specify the start parameters that apply when you start the service from here 9 CONNECTING CW Sim AND DEBUGGING PROGRAMS 1 9 1 Setting VxWorks Network Daemon 8 Setting network driver Windows 7 or later 1 Selecteitherofthe following For Windows 8 or later All apps gt Control Panel Hardware and Sound gt Device Manager on the Start screen of Windows For Windows 7 Control Panel gt Hardware and Sound gt Device Manager from the Start menu of Windows The Device Manager screen is displayed E y En an iem em 2 Select Network adapters and select Action gt Add Add legacy hardware legacy hardware Properties Help gt tx Human Interface Devices gt Eg IDE ATA ATAPI controllers b e Jungo gt D Keyboards gt A Mice and other pointing devices gt M Monitors gt Network adapters gt 19 Ports COM amp LPT gt a Processors gt A Sound video and game controllers gt Ill System devices gt Universal Serial Bus controllers Add a legacy non Plug and Play device to the computer The Add Hardware scree
149. tton The Browse For Folder screen is displayed 8 Select the folder in which the project to be imported is stored and click the OK button 7 CREATING AND BUILDING PROJECT 7 2 Adding Projects 59 A list of the projects stored in the folder including subfolders specified in Select root directory is displayed in Projects Import Projects Select a directory to search for existing Eclipse projects 9 Select root directory CAMELSECACCPUANCCPUTo o SampleXQ12DC E 9 Check that the project to be imported is selected and click the Finish button Select archive file Projects Y DevAccessChanCCIEC CAMELSECICCPUACCPUTOON Sampler Q Select All Deselect All 4 n D E Copy projects into workspace Working sets E Add project to working sets 10 if the message shown on the left appears click the OK button Some projects reference a target platform that is not installed A missing target A platform can mean for example that an expected compiler version is not available This may not be relevant if reproducible builds are not needed Projects missing woworks 6 4 mapped to vxworks 6 9 DevAccessChanCCIEC The message shown on the left is displayed C Existing project description files in this workspace have to be converted to the new Workbench format If these files are not converted some functionality may be
150. uild To proceed without generating the include search path click Continue Generate Includes Cancel Tasks 48 Terminal E Build C zm Sja zB 1308 2 8870 if d UserProject partiallmage then cd UserProject partiallmage rm rf Debug fi if d dirname UserProject_partiallmage Debug Objects UserProject EntryWDTInt_R12 0 then mkdir p dirname UserProject partiallmage Debug Ob building UserProject partiallmage Debug Objects UserProject EntryWDTInt R12 o if d dirname UserProject partiallmage Debug Objects UserProject Sample o then mkdir p dirname UserProject partiallmage Debug Objects User building UserProject partiallmage Debug Objects UserProject Sample o a if d dirname UserProject_partiallmage Debug UserProject_partiallmage o J then mkdir p dirname UserProject building UserProject partiallmage Debug UserProject partiallmage o if d dirname UserProject Debug UserProject out then mkdir p dirname UserProject Debug UserProject out fi echo building UserProject Debuc building UserProject Debug UserProject out make built targets of C WindRiver workspace UserProject ARMARCH7gnu SMP Build Finished in Project UserProject 2014 12 25 11 59 49 Elapsed Time 00 03 T m r Ui gt Computer LocalDisk C WindRiver workspace Us Organize v _ Open Burn New folder 3 workspace Name b d metadata i _ ctd
151. uild target yyyy not found has occurred and the build is not executed Page 106 A build error xxx sh syntax error near unexpected token yyy_partiallmage Debug Objects nnn xxx sh cannot execute binary file Makefile xxx missing separator Stop or yy o command not found No such file or directory has occurred Page 106 The out file is not created The build is terminated with a message Generation of makefiles started Corrective action The cause s of errors and their respective corrective action s are explained below Installation BIThe installation process has stopped halfway or has terminated suddenly before completion Characters other than alphanumeric characters an Use the following characters for naming the installation and or reinstallation of CW Workbench underscore or a hyphen is used for the folder destination folder name of the installation destination Alphanumeric characters A space cannot be used Underscore hyphen 104 12 TROUBLESHOOTING 12 1 Common Troubleshooting Installation temporary license BAn error message appears and installation does not proceed further in case of LAC and User information is provided and clicked Next button HTTP Server Bad Gateway The access target HTTP server is not responding Wait for a while and try to install the products again properly If the problem still remains install the products another day Unknown Host The pers
152. utton If the patch to be installed is not displayed check if the storage destination of the patch file is correct Patch file storage destination Install folder of CW Workbench updates 3 INSTALLING CW Workbench CW Sim 39 3 6 Applying Patch 40 4 INSTALLING CW Sim Standalone This chapter explains how to install CW Sim Standalone For the considerations on installation refer to the following section Page 26 4 1 Preparation for Installation Before using CW Sim Standalone prepare the following items Development environment personal For information on the operating specifications of a personal computer refer to the section for operating computer environment Page 22 Operating Environment Set the host name for the personal computer within 2 to 15 alphanumeric characters CW Sim Standalone CD ROM e Prepare the CD ROM included with the product with license SW1DNC CWSIMSAR E 4 2 Installation The installer is not supplied with CW Sim Standalone Copy CWSIMSA and Samples folders from the CD ROM to the local folder Ex Copy destination local folder CACCPUSIM 4 INSTALLING CW Sim Standalone 4 1 Preparation for Installation MEMO 4 INSTALLING CW Sim Standalone 41 4 2 Installation 42 D UNINSTALLING CW Workbench CW Sim This chapter explains how to uninstall CW Workbench CW Sim 5 1 Preparation for Uninstallation Log on as a user with administrative privileges Termina
153. utton Open File screen is displayed 5 Select the VxWorks image file and click the Open button Specify the corresponding VxWorks image file as C Controller module 6 Click the Finish button The connection with the C Controller module is started 8 2 Connecting and Disconnecting Communication After setting the target server connect disconnect the communication with C Controller module with any of the following operations e Select the added target server and click 5 4 e Select the added target server and right click and select Connect Disconnect from the shortcut menu After the server is connected to C Controller module successfully at Connect Connected Target server running is displayed at the bottom of the main window After the target server is disconnected from C Controller module successfully at Disconnect Unconnected is displayed at the bottom of the main window H Rem ote Systems 3 AE NW f TX Local Shells HA vxsim0 Wind River VxWorks 6 9 18 vxsiml smp Wind River VxWorks 6 9 4 ta VxWorks x 192 168 3 3 Wind River VxWorks 6 9 4 a Wind River Target Debugger Wind River VxWorks 6 9 4 amp VxWorks 6 9 ARM9 ARMO Kernel Tasks Real Time Processes E SYSTEMROM Easysocket ECMPL out 0x4 Module name SYSTEMROM Easysocket ECMPL out ft SYSTEMROM Easysocket PCQLib out 0x3 Module name SYSTEMROM Easysocket PCQLib out E SYSTEMROM VxAltLib out 0x9 Module name SYSTEMROM
154. work connection to use or the error message SC OpenSCManager FAILED 5 Access denied appears Execute commands on the command prompt as an administrator To execute commands as an administrator start the command prompt by following the procedure below Operating procedure 1 Select Start gt All Programs gt Accessory 1 For Windows 8 Select All apps on the Start screen 2 Right click Command Prompt and select Run as administrator from the shortcut menu llCommunication with the simulator cannot be established When the Windows Firewall is enabled and communicate with VxSim Network Daemon is not allowed a timeout may occur To allow the communication refer to the following manual LA CW Configurator Operating Manual To allow the communication with VxSim Network Daemon according to the setting procedure in the above manual click the n 1 Browse button on the Add a Program screen to select vxsimnetd exe 1 For Windows 8 or later Apps is displayed instead When using other software with a firewall function refer to the manual for the software used and allow the communication with VxSim Network Daemon Point When the installation destination of CW Workbench and CW Sim is C WindRiver the folder for vxsimnetd exe is stored in the following destination e C WindRiver vxworks 6 9 host x86 win32 bin For CW Sim Standalone the folder is stored in the local fold
155. written in Java A dedicated function library offered by C Controller module It is used to access other CPU modules as a connection target via network or in a multiple CPU system An abbreviation for R12CCPU V C Controller module An abbreviation for Real Time Process Project that is one of the project types of Wind River s Workbench A technology capable of executing user application in user space A generic term for the VxWorks simulator functions of Wind River Workbench A product name for the real time operating system manufactured by Wind River Systems Inc A generic term for Wind River Workbench manufactured by Wind River Systems Inc A generic term for Microsoft Windows 7 Professional Operating System Microsoft Windows 7 Ultimate Operating System and Microsoft Windows 7 Enterprise Operating System A generic term for Windows 7 Windows 8 and Windows 8 1 A generic term for Microsoft Windows 8 Operating System Microsoft Windows 8 Pro Operating System and Microsoft Windows 8 Enterprise Operating System A generic term for Microsoft Windows 8 1 Operating System Microsoft Windows 8 1 Pro Operating System and Microsoft Windows 8 1 Enterprise Operating System A generic term for Windows 8 and Windows 8 1 A generic term for Microsoft Windows XP Professional Operating System A file to install CW Workbench CW Sim with no license It is stored on the DVD ROM of CW Workbench CW Sim A generic term for Q24DHCCP
156. y m Hidden files and folders Dont show hidden files folders or drives E Hide empty drives in the Computer folder Hide extensions for known file types Hide protected operating system files Recommended Launch folder windows in a separate process Restore previous folder windows at logon Show drive letters v EKNE 1 lt 3 Select the wrproject file in the import target project project folder on the explorer Right click and select Property Avrmakefile from the shortcut menu wrproject DewAccessChanCCIEC_ModeEx c Makefile The wrproject Properties screen is displayed General Security Details Previous Versions 4 Unselect Hidden and click the OK button project Type of file WAPROJECT File wrproject Opens with amp Windows Shell Commor Location CAMELSECACCPUACCPUT ool 5 ample Q12DCCPL Size 421 KB 431 550 bytes Size on disk 424 KB 434 176 bytes Created Today February 03 2015 1 minute ago Modified Friday July 12 2013 5 51 50 PM Accessed Today February 03 2015 1 minute ago Attributes Read only iHidderi ok J Cae ww 7 CREATING AND BUILDING PROJECT 50 7 2 Adding Projects File Edit Source Refactor Navigate Search F New Alt Shift N Open File Close Ctrl W Save Ctrl S Save As Refresh
157. yWDTInt_R12 c 56 vxTaskEntry 0A765d0 pl tEntryWDTMain 0x2158P20 4 Uy YWord_WriteRtnTask UserHroject out VxWorks x 192 168 3 3 VxWorks Kerne 4 Gf ARMO 0x57F438 Task Mode 0x196A858 Stopped YWord_WriteRtnTlask EntryWDTInt_R12 c 215 vxTaskEntry 0x1765d0 pal tYWord_WriteRtnTask 0 The task 1 function is in the current status The source code display shown on the left is changed to the selected function Dynamic Printf This function is used to insert or cancel the printf statement dynamically during debugging of program there is no need to add printf function to the source code and the operation is similar to that of the breakpoint 1 Open the source file to be debug in the Editor window 2 Selectthe left edge part taskSpawn TASK NAME 1 Dynamic printf from the shortcut menu Es PRTORTTY 1520 Toggle Breakpoint Ctri Shift B Add Breakpoint Ctrl Double Click ha Disable Breakpoint Shift Double Click 0 Breakpoint Properties ET Add Dynamic printf Breakpoints y Tracepoints b fttt Breakpoint Types a Gn tn Annatatinn Ctrl 1 ix Dynamic printf Properties screen is displayed 3 Enter the statement to be displayed during debugging the program at Printf It has the same text format as the argument to be written in the printf function Click the OK button Dynamic printf Location and Arguments e Select debug
Download Pdf Manuals
Related Search
Related Contents
037 21 - MicroLux D Interrupteur crépusculaire digital Sleeping Satellites – Nursing Cluster through Critical Eclipses VEGASWING serie 60 ed elaboratori Manual / Bedienungsanleitung Proline Series Mode d'emploi Copyright © All rights reserved.
Failed to retrieve file