Table of Contents

Advertisement

Quick Links

Cat. No. W366-E1-10
SYSMAC
WS02-SIMC1-E
CX-Simulator Ver. 1.9
OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron WS02-SIMC1-E - V1.9 REV 12-2009

  • Page 1 Cat. No. W366-E1-10 SYSMAC WS02-SIMC1-E CX-Simulator Ver. 1.9 OPERATION MANUAL...
  • Page 3 SYSMAC WS02-SIMC1-E CX-Simulator Ver. 1.9 Operation Manual Revised December 2009...
  • Page 4  OMRON, 2008 All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form, or by any means, mechanical, electronic, photocopying, recording, or otherwise, without the prior written permission of OMRON.
  • Page 5 About Upgrades: Version 1.1 The following functions have been added to the CX-Simulator with the upgrade from Version 1.0 to Version 1.1. Actual Serial Communications Possible In Ver.1.0, the contents of messages sent by serial communications instruc- tions are displayed on the computer screen. In Ver.1.1, actual serial com- munications to an external serial communications device connected to a COM port on the computer are also possible.
  • Page 6 New Units in the CS and CJ Series are also supported for PLC Unit registra- tion. Version 1.5 The changes that have been made from version 1.4 to version 1.5 of the CX-Simulator to enable support of new CPU Unit models are explained here. New PLCs Supported CX-Simulator version 1.5 supports the following new CPU Units.
  • Page 7 Precautions CX-Simulator version 1.5 can simulate the operations of a CS/CJ-series CPU Unit with version 3.0 on a personal computer. The simulation, however, operates differently from the actual CS/CJ-series CPU Unit with unit version 3.0 in the system.
  • Page 8 Refer to the operation manual for CX-Designer version 2.0 or higher for de- tails. Version 1.8 The changes that have been made from version 1.7 to version 1.8 of the CX-Simulator to enable support of new functions are explained here. New PLCs Supported CX-Simulator version 1.8 supports the following new CPU Units.
  • Page 9 Version 1.94 The changes that have been made from version 1.9 to version 1.94 of the CX-Simulator to enable support of new functions are explained here. Support for Windows 7 Note This upgrade accompanies the upgrade of CX-One version 3.2 to CX-One...
  • Page 10 CP1H CPU Units. Notation of Unit Versions on Products The unit version is given to the right of the lot number on the nameplate of the products for which unit versions are being managed, as shown below. CS/CJ/CP-series CPU Unit...
  • Page 11 In the IO Table Window, right-click and select Unit Manufacturing informa- tion - CPU Unit. The following Unit Manufacturing information Dialog Box will be displayed Unit version Use the above display to confirm the unit version of the CPU Unit connected online.
  • Page 12 These labels can be attached to the front of previous CPU Units to differentiate between CPU Units of different unit versions. Unit Version Notation In this manual, the unit version of a CPU Unit is given as shown in the following table. CPU Units on which no unit version is...
  • Page 13 CP-series Unit Versions and Supported Functions Unit version 1.0 or 1.1 of the CP-series CP1H/CP1L CPU Units is equivalent to unit version 3.0 of the CS/CJ-series CPU Units. Functions added for unit version 4.0 or later of the CS/CJ-series CPU Units...
  • Page 14 Function Support by Unit Version The following tables show the functions supported by the CX-Programmer and CX-Simulator depending on the unit version of the CPU Unit. Refer to 1-1-4 Summary of CX-Simulator Functions (Comparisons with Actual PLC) and 1-6 Comparison of CX-Simulator and SYSMAC CS/CJ-series PLCs for compari- sons between CX-Simulator functions and the actual PLC.
  • Page 15 Unit version 4.0 or Other unit versions later Online editing of function blocks Note: This function cannot be used for simulations on the CX-Simulator. Input-output variables in function blocks Text strings in function blocks New application Number-Text String Conversion Instructions:...
  • Page 16 • Functions Supported for Unit Version 3.0 or Later The following tables list the functions added for unit version 3.0 and supported by the CX-Programmer. CX-Programmer version 5.0 or higher and CX-Simulator version 1.5 or higher are required to use these functions.
  • Page 17 • Functions Supported for Unit Version 2.0 or Later The following tables list the functions added for unit version 2.0 and supported by the CX-Programmer. CX-Programmer version 4.0 or higher and CX-Simulator version 1.4 or higher are required to use these functions.
  • Page 18 Connecting Online to PLCs via NS-series PTs OK for up to 64 Setting First Slot Words groups Automatic Transfers at Power ON without a Pa- rameter File Automatic Detection of I/O Allocation Method for Automatic Transfer at Power ON Operation Start/End Times...
  • Page 19 Downloading and Uploading Individual Tasks Improved Read Protection Using Pass- words Write Protection from FINS Commands Sent to CPU Units via Networks Online Network Connections without I/O --- (Supported if --- (Supported Tables I/O tables are if I/O tables...
  • Page 20 Functions Supported by Unit Version for CP-series CPU Units Functions Supported by Unit Version 1.0 and 1.1 Functionality is the same as that for CS/CJ-series CPU Units with unit ver- sion 3.0. The functionality added for CS/CJ-series CPU Unit unit version 4.0 is not supported.
  • Page 21 Note 1: As shown above, there is no need to upgrade the CX-Programmer ver- sion as long as the functions added newer unit versions are not used. CX-Programmer version 7.0 or higher is required to use functions added for unit version 4.0. Additional functions are supported if CX-Programmer version 7.2 or higher is used.
  • Page 22 Device Type Setting The unit version does not affect the setting made for the device type on the CX-Programmer. Select the device type as shown in the following table re- gardless of the unit version of the CPU Unit. Series...
  • Page 23 CPU Unit to a previous unit version. After the above message is displayed, a compiling error will be displayed on the Compile Tab Page in the Output Window. An attempt was to download a Check the settings in the PLC...
  • Page 25: Table Of Contents

    3-5 Creating a New PLC............................... 48 3-6 Each Part of the Windows ............................58 3-7 System Status Setting Window ..........................60 3-8 Connecting to the CX-Programmer Version 2.1 or Lower ..................71 3-9 Debug Console Window ............................76 SECTION 4 DEBUGGING PROGRAMS..................
  • Page 26 7-2 Connection with Application Programs ....................... 151 SECTION 8 DEBUGGING USING VIRTUAL EXTERNAL INPUTS........157 8-1 Outline of Virtual External Input Function ......................158 8-2 Debugging Using Virtual External Inputs......................159 8-3 Generating Virtual External Inputs ........................162 8-4 Running by Virtual External Inputs ........................176 8-5 Checking the Result..............................
  • Page 27 This manual describes operating procedures of the CX-Simulator for SYSMAC CS/CJ/CP/NSJ-series Programmable Controllers (PLCs). Please read this manual and all related manuals listed in the following table and be sure you understand the information provided before attempting to operate the CX-Simulator.
  • Page 28 Please read each section in its entirety and be sure you understand the information provided in the section and related sections before attempting any of the procedures or operations given.
  • Page 29 Section 8 provides information on how to debug using virtual external inputs. Section 9 describes operations of the CPU Unit including cycle times and I/O Memory allocation. Section 10 provides information on errors and alarms that occur during the operation along with the remedies.
  • Page 30 xxxi...
  • Page 31 Warranty and Limitations of Liability WARRANTY (1) The warranty period for the Software is one year from either the date of purchase or the date on which the Software is delivered to the specified location. (2) If the User discovers a defect in the Software (i.e., substantial non-conformity with the manual), and returns it to OMRON within the above warranty period, OMRON will replace the Software without charge by offering media or downloading services from the Internet.
  • Page 32 Application Considerations SUITABILITY FOR USE THE USER SHALL NOT USE THE SOFTWARE FOR A PURPOSE THAT IS NOT DESCRIBED IN THE ATTACHED USER MANUAL. xxxiii...
  • Page 33 The license fee of the Software does not include service costs, such as dispatching technical staff. ERRORS AND OMISSIONS The information in this manual has been carefully checked and is believed to be accurate; however, no responsi- bility is assumed for clerical, typographical, or proofreading errors, or omissions.
  • Page 34 Example: • "[Ctrl] + [S]" indicates "press [S] key with the [Ctrl] key held down." • "[Ctrl] + [Shift] + [L]" indicates "press the [L] key with the [Ctrl] and [Shift] keys held down." About Operation Examples This manual describes operation and settings assuming that the target PLC is a CS/CJ-series PLC and the Programming Device is the CX-Programmer.
  • Page 35 xxxvi...
  • Page 36: Precautions

    This section provides general precautions for using the Programmable Controller (PLC) and related devices. The information contained in this section is important for the safe and reliable application of the Programmable Controller. You must read this section and understand the information contained before attempting to set up or operate a PLC system.
  • Page 37: Intended Audience

    Unit and keep this manual close at hand for reference during operation. It is extremely important that a PLC and all PLC Units be used for the speci- WARNING fied purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life.
  • Page 38: Application Precautions

    Application Precautions Observe the following precautions when using the CX-Simulator. • Confirm the destination is the CX-Simulator when the CX-Simulator is con- nected online with the CX-Programmer or other applications. When the CX-Simulator is disabled or not connected to the Simulator, the actual sys- tem may be activated.
  • Page 40: Introduction

    1-1 What Is the CX-Simulator? ......................2 1-1-1 Summary .......................... 2 1-1-2 Software Configuration of CX-Simulator ................ 3 1-1-3 Basic Block Diagram......................5 1-1-4 Summary of CX-Simulator Functions (Comparisons with Actual PLC) ......6 1-2 Features............................9 1-2-1 Features ..........................9 1-3 Convenient Functions ......................... 13 1-4 Applicable PLC models and Computers..................
  • Page 41: What Is The Cx-Simulator

    1-1-1 Summary The CX-Simulator emulates the operation of the CS/CJ/CP-series CPU Unit (see note 1) or the Controller Section of the NSJ Controller (see note 2) to the computer, providing an equivalent development environment to that of an actual PLC system only with software. Furthermore, various debugging func- tions and tools that are not available in the actual PLC allow more effective development and debugging.
  • Page 42: Software Configuration Of Cx-Simulator

    External inputs generation 1-1-2 Software Configuration of CX-Simulator The CX-Simulator consists of the Ladder Engine, which is composed of the virtual CPU Unit and other units (default: only the Simulator Communications Unit), the FinsGateway (version 2 or higher) Virtual Communications Unit, the Debugger, and the Virtual External Input Tool.
  • Page 43 Connect Simulator Communications Unit in the Ladder Engine with FinsGateway ver- sion 2 or higher) sion 2 or higher. Two types are available: Virtual Controller Link Unit and Virtual Ethernet Unit. The CX-Programmer also performs FINS communications with the Lad- Virtual Communi- der Engine via the Virtual Communications Unit.
  • Page 44: Basic Block Diagram

    Possible to generate long-term data. Multipoint Possible to acquire trace data of more than 50 words from Data Collec- an actual PLC and to input to the Ladder Engine using the tion Tool Data Replay Tool. For network com- FinsGate-...
  • Page 45: Summary Of Cx-Simulator Functions (Comparisons With Actual Plc)

    What Is the CX-Simulator? Section 1-1 1-1-4 Summary of CX-Simulator Functions (Comparisons with Actual PLC) Item Actual PLC CX-Simulator Hardware CPU Unit Virtual CPU Unit (CS/CJ-series) (CS/CJ/CP-series) System configuration Basic I/O unit Virtual Basic No opera- I/O Unit tions (*1).
  • Page 46 Continuous Step Run (repeat address exe- cution at regular intervals) Block Run (Start point, break point, and I/O break conditions can be set.) Scan Replay (Return to the start point of the scan when pausing.) Operation when power Reset turns ON...
  • Page 47 Operation of Network com- Available (Ethernet Unit, Available (Simulator Communications Unit, each unit munications unit Controller Link Unit) Ethernet Unit, and Controller Link Unit) Serial Commu- Available Available (Using SYSMAC WAY Host Link nications System, NT Link, or No-protocol) Board/Unit...
  • Page 48: Features

    CX-Simulator version 1.3, the CX-Simulator can be started and placed online from the CX-Programmer. Calculate the virtual cycle An estimated cycle time for operation on the actual PLC can be obtained as a time virtual cycle time, which is different from an elapsed time on the computer. Use it as a tentative time for operation on the actual PLC.
  • Page 49 Features Section 1-2 COM port on the computer, (2) screen display of send messages, or (3) in- put/output from/to a file. Computer RS-232C External Serial Communications Server Debugger: Screen display serial com- port munications FinsGateway device Virtual Communications Unit Files...
  • Page 50 Gateway) in the computer using network communications instructions in the CPU Unit. This capability enables debugging of network communications with the CPU Unit itself or the CPU Unit for FinsGateway as the tentative commu- nications target. Computer Application programs...
  • Page 51 CX-Programmer and change of DM PVs) and settings by application pro- grams, as a command log file. The saved data can be used instead of the input to the Ladder Engine by replaying using the data replay function as required.
  • Page 52: Convenient Functions

    1-3 Convenient Functions The CX-Simulator provides the following convenient functions. Monitor IR/DR By Step Run, the contents of IR/DR for each task during ladder diagram exe- cution can be monitored with the CX-Programmer SV monitoring, which has been difficult to debug.
  • Page 53: Applicable Plc Models And Computers

    CP-series PLCs unless otherwise specified. When performing simula- tions for a CP-series PLC, use the instructions for the CS/CJ-series PLC. Unit version 1.0 or 1.1 of the CP-series CPU Units is equivalent to unit version 3.0 of the CS/CJ-series CPU Units. Functions added for unit version 4.0 or later of the CS/CJ-series CPU Units are not supported by...
  • Page 54: Computer

    Applicable PLC models and Computers Section 1-4 1-4-2 Computer The installation procedure for the independent CD-ROM is provided here. Refer to the CX-One Setup Manual (W463, provided with the CX-One) for the installation procedure for the CX-One. Cat. No. Model...
  • Page 55: Operation List Arranged By Purpose

    Debug Console | File Menu |Work CX-Simulator | Disconnect Simulator Create a new PLC Select System Status | Setting | Select PLC | Create a new PLC Open existing PLC Select System Status | Setting | Select PLC | Open existing PLC...
  • Page 56: Monitor The Status

    Debug Console | Replay Menu | Command Log | View Log Set I/O Condition Debug Console | Replay Menu | I/O Condition | File Menu | Set Execute I/O Condition Debug Console | Replay Menu | I/O Condition | Start...
  • Page 57: Comparison Of Cx-Simulator And Sysmac Cs/Cj-Series Plcs

    There is mode vs. (where the cycle time is extended up to 90 ms per one no limit for the maximum extension time CX-Simulator: cycle).
  • Page 58 D30000 to D31599 are used by CPU Bus Units, and D32000 to D32099 are used by Inner Boards. The Error Log is stored in A100 to A199 and the PLC Setup is stored in the Parameter Area (not a part of I/O Memory).
  • Page 59 If an operand requiring multiple words is speci- Same as shown at left. multiple words fied at the end of an area so that there are not enough words left in the area for the operand, the instruction can be executed and the Error Flag will not turn ON.
  • Page 60 Equivalent (With the CX-Simulator, however, even if the time in the PLC is adjusted with the DATE instruction, it will be automatically corrected to the time in the computer at the end of the cycle in which the DATE instruction is executed.)
  • Page 61 TIM/TIMH (Timer No. 2,048 to 4,095), TTIM, TIML, MTIM, and FPD will not operate normally when the cycle time is 100 ms or longer. Make sure that the cycle time is different from that of the CS/CJ/CP-series CPU Unit if set as the computer cycle time.
  • Page 62 If an interrupt occurs during Host Link servicing, Interrupt is prohibited during pe- Remote I/O servicing, Special I/O Unit servicing, ripheral servicing and execution of or execution of an instruction, that process will be an instruction. stopped immediately and the task will be exe- cuted instead.
  • Page 63 Comparison of the CX-Simulator and SYSMAC CS/CJ-series PLCs Section 1-6...
  • Page 64: Setup

    SECTION 2 Setup 2-1 Installing and Uninstalling the Software ..................26 2-1-1 Required Software......................26 2-1-2 Preparations ........................26 2-1-3 Precautions ........................27 2-1-4 Installing the CX-Simulator ................... 28 2-1-5 Uninstalling the CX-Simulator..................34...
  • Page 65: Installing And Uninstalling The Software

    CX-One, install only the CX-Simulator and NOT the CX-Server. (A message will be displayed if the version is lower.) If a version of CX-Server that is lower than the version with the CX-One is installed, the CX-One will not op-...
  • Page 66: Precautions

    Close all programs running on Windows before starting the installation • procedure. Do not stop the setup process in the middle. Copied files may remain in the • installation directory. Do not turn OFF or reset the computer in the middle of the installation •...
  • Page 67: Installing The Cx-Simulator

    Start - Settings - Control Panel - System. The service pack will be displayed under System on the General Tab Page of the System Properties Dialog Box. If a service pack is not displayed, no service pack has been installed. Refer to Microsoft’s website for service pack installation methods.
  • Page 68 4. The License Agreement Dialog Box will be displayed. Read the license agreement completely and if you accept all of the terms, select the I accept the terms of the license agreement Option and click the Next Button. 5. The User Information Dialog Box will be displayed.
  • Page 69 Installing and Uninstalling the Software Section 2-1 The default names registered in the computer will be entered for the user name and company name. Enter the license number and click the Next Button. The license number is given on the Software License/Registration Card provided with the product.
  • Page 70 FinsGateway must be installed in advance. Note Even with one of the set-ups above selected, it is still possible to start-up and make an online connection from CX-Programmer, and to conduct serial communications using the serial port of the computer.
  • Page 71 Section 2-1 Installing and Uninstalling the Software Designate the location to add a new shortcut to the program folder of the Start menu. Then click the Next Button. 9. The Ready to Install the Program Dialog Box will be displayed.
  • Page 72 If it is necessary to restart the computer, the following dialog box will be displayed. Click the Finish Button. If a check mark has been entered in the Yes, I want to restart my computer now Option, the computer will be restarted.
  • Page 73: Uninstalling The Cx-Simulator

    Installing and Uninstalling the Software Section 2-1 11. After the computer has been restarted, a Read me file will be displayed. 2-1-5 Uninstalling the CX-Simulator Use the following procedure to uninstall the CX-Simulator from a computer. 1,2,3… 1. Select Start - Settings - Control Panel - Add/Remove Applications*.
  • Page 74 Section 2-1 Installing and Uninstalling the Software 5. When the uninstallation is complete, the following dialog box will be dis- played. Click the Finish Button.
  • Page 75 Installing and Uninstalling the Software Section 2-1...
  • Page 76: Basic Operation

    3-2-3 Disconnecting the CX-Simulator from the CX-Programmer ......... 41 3-2-4 Exiting the CX-Simulator from the CX-Programmer ............ 41 3-2-5 Going Online with the CX-Simulator Already Started from CX-Simulator Menus ..41 3-3 Starting and Exiting from CX-Simulator Menus ................ 42 3-3-1 Starting CX-Simulator....................
  • Page 77: Starting Methods For The Cx-Simulator

    Simulator Connections Window, and an online connection is made from the CX-Programmer. Note Method 1 can be used to make an online connection for a CX-Simulator al- ready started using the CX-Simulator menus for method 2. The differences between these two methods are listed in the following table.
  • Page 78: Starting And Going Online From The Cx-Programmer

    Note The CX-Simulator must be started from the CX-Simulator menus (see 3-3 Start and Exit) to use a computer serial port from the CX-Simulator or to per- form communications via a FinsGateway network from the CX-Simulator. The procedure used to start the CX-Simulator from the CX-Programmer and create an online connection is described below.
  • Page 79: Basic Window

    2. Select [Simulation] | [Simulator Online Connection] from the main menus. The CX-Simulator will be started automatically for the PLC model specified in the selected project and an online connect will be made unrelated to the communications settings in the current project.
  • Page 80: Disconnecting The Cx-Simulator From The Cx-Programmer

    CX-Simulator menus. To do this, the CX-Simulator Communications Unit must be the Controller Link. 1,2,3… 1. Open a project on the CX-Programmer and set the PLC model to the same model as the one used to start the CX-Simulator. 2. Select [Simulation] | [Simulator Online Connection] from the main menus of the CX-Programmer.
  • Page 81: Starting And Exiting From Cx-Simulator Menus

    Ladder Engine. 3-3-1 Starting CX-Simulator The following shows the CX-Simulator’s startup procedure. 1,2,3… 3. After clicking the [Start] button on the task bar, select [program] | [Omron] | [CX-One] | [CX-Simulator] as shown below. (If installed in the CX-Simulator group.) [Select PLC] of the CX-Simulator setup wizard will be displayed as shown below.
  • Page 82: Exiting Cx-Simulator

    The following shows how to exit the CX-Simulator. Select [Exit system] from [File] of the Debug Console to exit the CX-Simulator. Note Refer to [Exit system] of 3-9 Debug Console Window for the details of the operation when [Exit system].
  • Page 83: Outline Of Operation Procedure

    [Tools] | [Options]. b) Select [Simulator Online Connection] from the [Simulation] menu. c) Click the [OK] button on the dialog box for the program transfer option. Refer to 3-2 Starting and Going Online from the CX-Programmer. 4. Trial Run...
  • Page 84: Method 2: Starting From The Cx-Simulator Menus

    Refer to 8-4 Running by Virtual External Inputs. 6-3 Check Results Check the results of the virtual run by the time chart monitor or spreadsheet software. Refer to 8-5 Checking the Result 7.
  • Page 85 [Tool] | [Option]. b) Select [Simulator Online Connection] from the [PLC] menu. c) Click the [OK] button on the dialog box for the program transfer option. Refer to 3-2 Starting and Going Online from the CX-Programmer. CX-Programmer Version 2.1 Exiting the PLC Setup wizard will start the Ladder Engine according to the setting.
  • Page 86 Execute force-set/reset, trace, online edit, and others. 10-2 Program Check by Break Set break points and I/O break conditions in the ladder diagram as required and stop the program step by step to monitor the contents of I/O memory. Refer to 4-3 Step Run and Break.
  • Page 87: Creating A New Plc

    PLCs” first in the PLC setup wizard. When using the CX-Simulator for the first time, the PLC/CPU model and others must be set in the “Create a new PLC.” The following shows the procedure for “Create a new PLC” in the PLC setup wizard.
  • Page 88 2. Selecting [Create a new PLC (PLC Setup Wizard)] and clicking the [OK] button will display the [PLC Data folder Settings] window. Here input the name of the new PLC data folder. Selecting the folder is also possible by clicking the [Browse] button.
  • Page 89 Selecting the required group in the list will display the Units corresponding to the group. • Select the group from [Unit Selection List], select the unit to be added, and press the [<<] button to add a unit. • Select the unit to be deleted from [Registered PLC Unit List] and press the...
  • Page 90 I/O Unit. Unit number or Machine number will be converted to Unit address and displayed in the [Registered PLC Unit List]. • If a unit is added, the typical I/O refresh interval for each unit will be added to the logical I/O refresh interval.
  • Page 91 8. Click the [OK] button. Exit the [Register Network Communications] window and return to the [Network communications settings] window. 9. Repeat the operation from 6 to 8 as required for each unit. After completing all settings, click the [Next(N)>] button to display the [Serial Communica- tions Settings] window.
  • Page 92 11. Set Comm. Settings, COM port name, and Enable COM port log as re- quired. Note The detail of [Serial Port Settings] will be explained in 5.Debugging Serial Communications. 12. Click the [OK] button to exit the [Serial Port Settings] window and return to the [Serial Communications Settings] window.
  • Page 93 Creating a New PLC Section 3-5 13. Exit the Serial communications window Repeat the operation from 10 to 12 as required. After completing all settings, click [Next(N)>] button to display the [Contents List] window. • Contents 14. Pressing the [Complete] button after confirming the contents of the [PLC Setup] wizard will exit the [PLC Setup] wizard.
  • Page 94: Open Existing Plc

    Opening the existing PLC enables to use the same setting any times. 1,2,3… 1. Selecting [Select PLC] in the PLC Setup wizard or in the [Settings] of Sys- tem Status Setting when starting the CX-Simulator will display the [Select PLC] dialog box.
  • Page 95: Folder Used In Cx-Simulator

    Section 3-5 Creating a New PLC Note When creating a new PLC or opening an existing PLC, the settings so far will be discarded. Save the data before these operations if the settings so far or the program downloaded to the Ladder Engine are needed.
  • Page 96 CS/CJ/CP-series CPU Unit. Note 1. If the hard disk capacity of the computer is smaller than that of the file memory, file write may fail. 2. Refer to Section 5 File Memory Functions of CS/CJ Series Programming Manual for the details on the file memory functions.
  • Page 97: Each Part Of The Windows

    [CX-Simulator Debug Console] window executes operation for the Ladder Engine. The [System Status Setting] window displays the status of the Ladder Engine and sets for the Ladder Engine. Note: Only the [Debug Console] window will be displayed when the CX-Simulator is started from the CX-Programmer.
  • Page 98: Basic Windows Transition

    Each Part of the Windows Section 3-6 3-6-2 Basic Windows Transition The following shows the basic windows transition of the CX-Simulator. There are two transitions: One from the [CX-Simulator Debug Console] window and the other from the [System Status Setting] window.
  • Page 99: System Status Setting Window

    Section 3-7 3-7 System Status Setting Window 3-7-1 System Status Setting Window The [System Status Setting] window performs PLC model selection, the Ladder Engine status display, cycle time display, UM set/display, network communications set, Serial communications set, and others. Transition of System Status Setting...
  • Page 100 Operation Mode Display the operation mode (RUN, MONITOR, or PROGRAM) of the Ladder Engine UM Settings Display Display the UM area able to be accessed by the Ladder Engine and the object name. Setting Menu Display Display the setting menu.
  • Page 101 Setting Menu Pressing the [Settings] Menu button displays the setting menu. Name Function Select PLC Create a new PLC (the PLC Setting wizard) and select an existing PLC. Register PLC Unit Set the unit mounting to PLC. Network comms settings Set for the Network Communications Unit.
  • Page 102 System Status Setting Window Section 3-7 Outline/Detail Status Display Change Pressing the Outline/Detail Status Display button switches the [System Status Setting] window display between Outline and Detail. Outline display mode Detail display mode Displayed Items in the Detail Status Display.
  • Page 103: Setting Menu Of System Status Setting

    Note Changing the node address of the communications unit in the [Network Communications Setting] will restart the Ladder Engine. Restarting the Ladder Engine will clear the I/O memory areas according to the PLC Setup and read the Autoexec file automatically.
  • Page 104: Um Settings

    System Status Setting Window Section 3-7 Note Refer to 3-5 Creating a New PLC for the operation in the [Register PLC Unit] window. 2. Click the [OK] button when the unit registration is completed. Changing the Unit configuration will display the Restart message of the Ladder Engine.
  • Page 105 Save the current settings and exit the window. • Cancel Discard the current settings and exit the win- • dow. 2. Click the [OK] button when UM setting is completed. Note Refer to 8 Debugging Using Virtual External Inputs for how to use the UM2.
  • Page 106: Plc Clock Settings

    The [PLC Clock Settings] window allows to set the clock-related PLC opera- tion. 1,2,3… 1. Selecting [PLC Clock Settings] in the [System Status Setting] | [Settings] menu will display the [PLC Clock Settings] window. Cycle Time Mode Settings Specify in which mode to display when moni- •...
  • Page 107: Plc Operation Settings

    3-7-6 PLC Operation Settings The [PLC Operation Settings] window allows to set for PLC operation. 1,2,3… 1. Selecting [PLC Operation Settings] in the [System Status Setting] | [Set- tings] menu will display [PLC Operation Settings] window. Replay from the top of the Set whether or not to enable online edit when •...
  • Page 108: Initializing Plc

    Instruction Func. No. Message Occurrence time (cycle counter): Instruction(Message No.)[Display data] Occurrence time (cycle counter): Instruction(FAL No.)[Display data] FALS Occurrence time (cycle counter): Instruction(FAL No.)[Display data] Note The same message (cycle counter and the message No. are the same) is not displayed.
  • Page 109: Alarm Display

    Start an alarm display application program to display the alarm history. In default, the event viewer will be started for Windows 2000. Note Refer to each online help, etc. for how to use the event viewer, memo pad, or an alarm display application program.
  • Page 110: Connecting To The Cx-Programmer Version 2.1 Or Lower

    Ladder Engine This section describes the procedure for connecting the CX-Programmer ver- sion 2.1 or lower with the CPU Unit in the Ladder Engine of the CX-Simulator. Application programs other than the CX-Programmer can be connected in the similar way.
  • Page 111: Work Cx-Simulator Window

    Connecting to the CX-Programmer Version 2.1 or Lower Section 3-8 3-8-1 Work CX-Simulator Window Names and Functions Connect to the CX-Simulator Communications path (Unit) Disconnect the CX-Simulator Communications path (Unit) Network address Close Communications path (Unit) Node address Guide to Connect...
  • Page 112: How To Connect With Cx-Programmer

    This section explains how to connect the CX-Simulator with the CX-Programmer. 1,2,3… 1. Start the CX-Simulator and select a PLC data folder needed for debugging application programs. The windows for [Work CX-Simulator], [CX-Simulator Debug Console], and [System Status Setting] are displayed.
  • Page 113 Connecting to the CX-Programmer Version 2.1 or Lower Section 3-8 3. Register the FINS address displayed in the Guide to Connect to the CX-Programmer. Double-click the PLC name in the Project Tree of the CX-Programmer to display the [Change PLC] window.
  • Page 114 FinsGateway setting tool, etc. Changing the unit address may cause the [Connect] operation to fail. 2. Do not set items to the local network table when setting the routing table to the CX-Simulator. The local network table will automatically be changed when [Connect] is executed.
  • Page 115: Debug Console Window

    Debug Console Window Section 3-9 3-9 Debug Console Window 3-9-1 Debug Console Window In the Debug Console window, various debugging operations (e.g. Step Run and Scan Run for the Ladder Engine) are performed. Transition of Debug Console Window Debug Console...
  • Page 116 Process each step of the mnemonic codes. Continuous Step Execute Step Run at a fixed interval continuously. Scan Run Execute a ladder diagram for a single scan. If Scan Run is executed during Step Run, the program will be executed to its end. Continuous Scan Execute Scan Run at a fixed interval continuously.
  • Page 117: Menu List Of Cx-Simulator Debug Console

    Debug Console Window Section 3-9 3-9-2 Menu List of CX-Simulator Debug Console The following shows the function list of the main menu and submenu in the [CX-Simulator Debug Console]. Main Menu Submenu Shortcut Function File Read all Read the settings "saved all."...
  • Page 118: Outline Of Basic Operation For Debug Console Menu

    Stop Help Setting Contents View Log Help Index About Note The menus above may grayed-out depending on the function selected. The gray-displayed menu can not be used during the function execution. The following explains the basic operation by the menu.
  • Page 119: File] Menu

    2. Select the Save-all file and then click [Open] button. Note In [Read all], the Debugger Setting File (.dbg) will be specified. Actually, how- ever, the I/O memory file (.dat) that has the same name as the Debugger Setting File (+ serial number) will also be read.
  • Page 120 • 2. Select a drive and folder for Save-all 3. Input a file name in the [File name] box or select a file name from the list. 4. Click the [Save] button to save the Save-all file. Note The file will be saved in the format specified with the file type even when it is specified with an extension.
  • Page 121 Section 3-9 [Console Display Settings] Console Display Settings sets for the CX-Simulator display. Select Icon Size Select the icon size for the CX-Simulator Debug Con- • sole, which will be reflected at the next startup. Event Action Set for the event action. Checking [Show a viewer •...
  • Page 122 Disconnect the CX-Simulator to exit the application • No Close the dialog box to cancel exiting the CX-Simulator. 2. Clicking the [Yes] button will display the dialog box for saving the Debugger setting. 3. Clicking the [Yes] button will save the current setting to exit the CX-Simulator.
  • Page 123: Replay] Menu

    [IO Condition] Start the IO Condition tool to display the [Run] window (the startup window for this tool). Note Refer to 8 Debugging Using Virtual External Inputs for the details of the I/O Condition tool. IO condition file Input the name of the execution file for I/O Condition.
  • Page 124 File Open Input the execution file using Browse. • Start Monitor the I/O Condition whose execution flag is D in • the set execution file. Not selectable if the execution file is not input. Stop Stop I/O condition monitoring. Not selectable unless •...
  • Page 125 Section 3-9 Configuration Window In the Configuration window, the IO Condition Equation is set. The IO Condi- tion Equation consists of the logical equation (the conditional equation) com- bining I/O memory conditions to be monitored, the delay time from when the conditional equation holds till when the output equation is executed, and the settings to the I/O memory to be executed after the delay time elapses.
  • Page 126 Insert the contents set in the • Insert Equation to the Condi- tional Equation. Delay time Input the delay time (unit: ms) to be registered to the • I/O condition Equation. Describe the Output Equation to be registered in the Output •...
  • Page 127 Copy the specified lines to the clipboard. The data on • the clipboard can be used in the commercial spread sheet software. Insert copied lines Insert the data on the clipboard to the currently speci- • fied line. The line data is evaluated when inserting. Help Menu Help Contents Display Help Contents for Windows.
  • Page 128 Debug Console Window Section 3-9 [Data Replay] Start the [Data Replay Settings] window and then Data Replay Tool using the set file. Replay file Input the file name to be replayed by Data Replay • Tool. The Command Log file (.flg), the data trace data file (.cdt), and the data replay file (.csv) can be re-...
  • Page 129 Debug Console Window Section 3-9 Data Replay Tool Data Replay Tool reads the data in the specified input file and set them in sequence as the virtual external input to the Ladder Engine. Replay data Display the replay file set in the [Data Replay Settings] •...
  • Page 130 Debug Console Window Section 3-9 [Command log] | [Stop] Exit the Command Log. Can not be selected if the Command Log has not been started. [Command log] | [Configuration] Set the Command log. The Command log saves the CX-Programmer com- mands with FINS commands.
  • Page 131 Note Refer to 8-3 Generating Virtual External Inputs for the details of the Command Log setting. [Command log] | [View Log] Display the contents of the saved Command Log. Display the content of the file set as the log file in the Command log Setting with the Memo Pad (OS stan- dard).
  • Page 132: Help] Menu

    [Help Index] Search for the topic in the online help using the keyword. Select [Help Index] in the [Help] menu to display the [Help Index] dialog box. [About] Select [About] in the [Help] menu to display the version information for the CX-Simulator.
  • Page 133: Step Run] Window

    Debug Console Window Section 3-9 3-9-7 [Step Run] Window The Step Run window displays the content of the program area for application programs(UM1) by the task in mnemonic codes and allows to monitor the step transition. Names and Functions Task Selection...
  • Page 134 Step Run with interlocked) non-execution for IL, JMP, FOR/BREAK, etc. Note 1. In the Step window, the lower part of the table has a priority in display. 2. Refer to 4-3 Step Run and Break for the details of Step Run.
  • Page 135: Task Control Window

    Section 3-9 Debug Console Window 3-9-8 Task Control Window The Task Control window displays the status of the task in the program area for application programs (UM1). Names and Functions Change task Main menu display Task type Monitor button display Task No.
  • Page 136: I/O Break Condition Settings Window

    Close the Task Control window. Note 1. Block execution of task sets a start point at the top of the task and a break point at the bottom (END line), and operates in the same way as Step Run. 2. Refer to 4-4 Task Debugging for the details of Task Control.
  • Page 137 Update the I/O break condition setting expression in the window with the present configuration of AND LIST and OR LIST. AND LIST AND item selection Select the conditions registered in AND LIST with check boxes. AND item add Add conditions set in [Register I/O Break Condition] to AND LIST.
  • Page 138 Debug Console Window Section 3-9 Register IO Break Condition Window The Register IO Break Condition window sets conditions to be registered to AND LIST or OR LIST in the I/O Break Settings window. Bit condition area Bit condition or word...
  • Page 139 0 to 32767 EM Area E0_0 to E0_32767 and EC_0 to EC_32767 Timer Area (TIM) 0 to 4095 Counter Area (CNT) C 0 to 4095 Note Refer to 4-3 Step Run and Break for the details of I/O break condition.
  • Page 140: Debugging Programs

    SECTION 4 Debugging Programs 4-1 Debugging Using the CX-Programmer ..................102 4-2 Debugging Operation........................ 103 4-2-1 CS/CJ/CP-series PLC's Modes and Execution Mode........... 103 4-2-2 Scan Run ........................104 4-2-3 Step Run ........................104 4-2-4 Stop ( ) ........................105 4-2-5 Pause ( ) ........................106 4-2-6 Other Operation......................
  • Page 141: Debugging Using The Cx-Programmer

    Monitoring Monitoring is possible even during a scan when in Step Run. Force Set/Reset and Set/Reset Bits Force Set/Reset and Set/Reset Bits are possible even during a scan when in Step Run. Change the present value of a Changing the present value of a word is possible even word.
  • Page 142: Debugging Operation

    Scan Replay Reset Follow the settings. Note The Ladder Engine runs in the Monitor mode. A Run operation turns the mode to Monitor even when the mode is changed to Run from the CX-Programmer. Mode Change from CX-Programmer Changing the mode from the CX-Programmer will change the execution mode of the Ladder Engine as follows.
  • Page 143: Scan Run

    Continuous Scan Run repeats Scan Run at a fixed interval. The minimum cycle time function of PLC fixes the time from the cycle start time to the next start time. In Continuous Scan Run, on the other hand, fixes the time from the cycle end time to the next start time.
  • Page 144: Stop ( )

    Single step run Pause I/O refresh Peripheral servicing There are two types of Step Run: [Single Step Run] and [Continuous Step Run]. Step Run ( ) The Step Run executes a program by step. Executing Single Step Run during Continuous Run or Scan run will pause the program at the top.
  • Page 145: Pause ( )

    The Scan Replay returns all of the status including values changed by the program execution to that of the scan start. As long as it is within a scan, monitoring can be done with conditions changed any times. Reset ( The Reset simulates the process in the Ladder Engine when from power in- terruption to power on.
  • Page 146: Step Run And Break

    Timer, Clock Pulses, etc. do not operate during pausing. However, only the time clocks the actual time if set as "computer cycle time." If set as " virtual cycle time", the time stays unchanged during pausing because the time ac- cumulates the virtual cycle time.
  • Page 147: Break Point

    Following diagram shows an example of IR usage extracted from the sample in 6-2 Index Registers of CS/CJ Series Programming Manual(W394). Setting a break pointer within the FOR to NEXT loop (the hatched part in the diagram) enables to check the change of IR within the FOR to NEXT loop.
  • Page 148: Start Point Setting

    Step Run. Start Point Location If a start point is set halfway in the rung, the previous value of power flow turns OFF (false) forcibly regardless of the present value. For example, setting a...
  • Page 149: I/O Break Condition Setting

    [Task Control], Step Run will be executed with a start point set at the top of the task and a break point at the bottom of the task automatically. (While the program is being executed, an interrupt will occur at the timings: when a task execution flag is set for a Cyclic Task and when the interruption occurs for an interrupt task.)
  • Page 150 The I/O break condition is expressed with the following elements for both I/O Condition and Word Condition. <Target I/O memory area >(<Condition operator >)(<Value >) Element Content Target I/O memory area Specify the target I/O memory area in its type and address. Condition operator For Word Condition, a condition operator exists. Value...
  • Page 151 1,2,3… 1. Display [Register IO Break Condition] by [CX-Simulator Debug Console] | [IO Break Condition] and click the [Add] in the list (AND LIST/OR LIST) for registering I/O break condition to register I/O break condition. Display the [Register IO Break Condition] window.
  • Page 152 (IO0.0=ON and H1.15=ON) and (DM0>=#7FFF or A401.08=ON) A maximum of 64 items can be registered in AND LIST and OR LIST respec- tively. Also, a maximum of 64 combinations of logic expressions can be cre- ated for both the lists together.
  • Page 153 For example, if the break occurs when the DM00000 count is completed (Shown by the left arrow in the above diagram), the I/O break line is displayed on the next line in the [Step Run] window and the program pauses.
  • Page 154: Task Debugging

    When using the C200H Special I/O Unit or the SYSMAC BUS Remote I/O Unit, the execution time of the interrupt task must not exceed 10 ms. If an interrupt task is executed for more than 10 ms during refreshing, an interrupt task error will occur ("Executed for more than 10 ms"...
  • Page 155: Executing Tasks Individually

    Selecting an execution status (enabled/wait) of a task in the pop-up menu al- lows to change the status. The setting is reflected in the next cycle for Scan Run, in the same cycle if the task is to be executed after the currently executed task for Step Run, or in the next cycle if the task has already been executed.
  • Page 156: Precautions When Debugging Task

    No tasks other than ones used in the program area for applications are dis- played in the [Task Control]. Interrupt Factor for Interrupt Task The interrupt factor for an interrupt task is identified by the task number if the task is started in the [Task Control]. Interrupt factor...
  • Page 157 Task Debugging Section 4-4...
  • Page 158: Debugging Serial Communications

    5-1 Outline of Serial Communications.................... 120 5-2 Serial Communications Settings ....................123 5-3 Serial Communications Connection ..................127 5-3-1 Access from External Devices via Serial Communications ......... 127 5-3-2 Access to External Device Using Serial Communications........... 128 5-3-3 Precautions in Using Serial Communications .............. 128 5-4 Connecting PT via NT Link .....................
  • Page 159: Outline Of Serial Communications

    This section explains how to perform serial communications. Introduction The CX-Simulator can debugs serial communications using (1) actual com- munications to an external serial communications device using a COM port on the computer,(2) screen display of send messages, or (3) input/output from/to a file.
  • Page 160 Outline of Serial Communications Section 5-1 Note For the RS-232C port on the CPU Unit, if a protocol not supported by the CX-Simulator in the PLC Setup settings is set, communications can not be performed. For the Serial Communications Board/Unit, if the Serial Communications mode of System Setup is No-protocol, communications can not be performed.
  • Page 161 Possible to communicate in Host Link (SYSMAC WAY), tions NT Link, or No-protocol via a COM port on the computer. Operations of Auxiliary Area The table below shows differences in operation of Status Area and Auxiliary Area when set as communications are not actually performed (“-“/”Messages”). Instruction...
  • Page 162: Serial Communications Settings

    Serial Communications Unit or Serial Communications Board, and then press the [<<] key to register to the Registered PLC Unit List. Note Adding Units is not required when using the RS-232C port of the CPU Unit. It is required only if using Serial Communications Board/Unit.
  • Page 163 Serial Communications Settings Section 5-2 5. Press the [OK] button to return to the [Register PLC Unit] and to register the Unit to the Registered PLC Unit List. 6. Press the [OK] button to register the Serial Communications Unit. 7. Serial Communications Settings Selecting [Status] | [Settings] | [Serial comms.
  • Page 164 10. Setting a COM port name Specify a COM port to perform actual serial communications. A COM port name (COM 1 to COM 4) can be selected in the list, and also can be input directly for an additional COM port on the computer.
  • Page 165 4-2 Setup Area Allocations in CS/CJ Series Serial Commu- nications Boards/Unit Operation Manual (W336). Note When using the RS-232C port (Port 2) on the CPU Unit, if a protocol not sup- ported by the CX-Simulator is set in PLC Setup, communications cannot be...
  • Page 166: Serial Communications Connection

    10 in default) when performing FINS communications via Host Link. Note A connection cable for PLC can not be used because the pin arrangement of the serial port for an IBM PC/AT or compatible computer is different from that of a PLC.
  • Page 167: Access To External Device Using Serial Communications

    Using Programmable Terminal via NT Link Even when connecting a PT via NT Link, the Programming Console function and Device Monitoring function are not available. In addition, use a PT with a version of NT31/631-V2 or higher. When connecting a PT with the previous version, select Host Link as the communications protocol.
  • Page 168 When Serial Communications on the CX-Simulator Become Disabled When Serial Communications on the CX-Simulator become disabled, for example, when the RS-232C Port Error Flag (A39204) in the Auxiliary area turns ON while executing serial communications on the CX-Simulator, either press [Reset] button in the [Debug Console], or once [Disconnect] and then...
  • Page 169: Connecting Pt Via Nt Link

    PT, set as Protocol: NT Link (1:N), Unit No.: 0, Communications speed: Standard. Note If a COM port used by the PT’s support tool overlaps with the one used by the CX-Simulator, downloading may fail in the [Connect] status. After [Discon- nect], download by the support tool.
  • Page 170: Examples Of Serial Communications Debugging

    5-5 Examples of Serial Communications Debugging 5-5-1 Procedure for Debugging Serial Communications Instructions 1,2,3… 1. Set the communications settings of serial communications to "-" to debug the portions unrelated to serial communications. Display the [Serial Comm. Setting] window by [Status] | [Settings] | [Serial Comm.
  • Page 171: Debugging By Message Display

    Serial Data File (Write for send and read for receive). Serial Data File The Serial Data File is a data file individually allocated to each COM port on the computer. Folder : PLC data folder\LOG •...
  • Page 172 4. Save the input (receive) file. (The file’s update time will change, and be considered as a received file.) 5. All the data in the file is stored in the reception buffer of the virtual PLC. 6. Input is completed.
  • Page 173 Examples of Serial Communications Debugging Section 5-5 7. Copy the data file created in procedure 6 in the input file (COM port name In.txt). 8. Changing in the file update time causes automatic reception of data from the input file.
  • Page 174: Debugging Network Communications

    6-2 Network Communications Settings ..................139 6-3 Network Connection......................... 142 6-3-1 Send FINS Commands to the External Devices via Network Communications ..142 6-3-2 Receive FINS Commands from the External Devices via Network Communications. 142 6-3-3 Precautions when Using Network Communications ............ 142 6-4 Example of Debugging Network Communications ..............
  • Page 175: Outline Of Network Communications

    However, the destination of the FINS commands is only the CPU Unit itself, an application program using FinsGateway, or the CPU Unit of FinsGateway. Thus debugging network communications is pos- sible with the CPU Unit itself or the CPU Unit of FinsGateway as a tentative destination. Computer...
  • Page 176 1. The Simulator Communications Unit is the CX-Simulator's own commu- nications unit supporting only FINS communications. When the Controller Link Unit or Ethernet Unit is not used, this unit will be used (default). 2. This unit is a virtual unit for maintaining the compatibility with CS/CJ/CP-series PLCs.
  • Page 177 Although setting by browsing can be done, it is not used by the CX-Simulator. Unit Setting for Ethernet Unit Setting the software switch for the Ethernet Unit can not be performed. Al- though setting by browsing can be done, it is not used by the CX-Simulator.
  • Page 178: Network Communications Settings

    Units with [System Status] | [Settings] | [Register PLC Unit]. Select the Communications Unit in the Unit Selection List, click the Con- troller Link Unit or Ethernet Unit, and press the [<<] key to add to the Unit Selection List.
  • Page 179 Network Communications Setting Section 6-2 Note Set the Unit number so as not to overlap with the one of another CPU Bus Unit. The Unit number of the Virtual Communications Unit is set to "15" in default. 3. Press the [OK] button to return to the [Register PLC Unit] window and register the Unit in the Unit Registration List.
  • Page 180 Network Communications Unit. The network address and the unit address can not be changed. Note Set the node address so as not to overlap with the one of other Communica- tions Unit or FinsGateway Virtual Communications Unit. [Connect to the CX-Simulator] will fail if overlapped.
  • Page 181: Network Connection

    Doing so may disable an access from external devices depending on the set- ting contents of the own network table. Even when the file saved by the other PLC is read, a similar trouble may occur depending on the setting contents of the PLC routing table.
  • Page 182: Example Of Debugging Network Communications

    Section 6-4 6-4 Example of Debugging Network Communications 6-4-1 Outline of Debugging Network Communications Instructions 1,2,3… 1. Set the Communications settings as "-" to debug a part unrelated to the network. Select [System status] | [Settings] | [Network Communications Set- •...
  • Page 183: Debugging With Display Messages

    Restrictions when CPU Unit of FinsGateway Is Specified When the CPU Unit of FinsGateway is specified, there will be restrictions caused by the differences of I/O memory. The I/O memory areas of the CPU Unit of FinsGateway that can be specified by a SEND/RECV instruction are shown below.
  • Page 184 C+2: D00302 Machine No. = 00 C+3: D00303 C+4: D00304 Setting and Checking Values Use the following tools to set and check the values for the CPU Unit of Fins- Gateway. Using an OMRON easy monitoring tool The CX-Programmer User •...
  • Page 185 Note Refer to FinsGateway Version2 RUNTIME Operation Manual for FinsGate- way data link setting. Refer to the operation manuals attached to the hardware such as Controller Link support board for data link function itself. Refer to Section 5 FinsServer Series Common Functions Cyclic Server of FinsServer Series Handbook attached to FSV-Comm or DataFlowNavi for Access for the Cyclic Server of FinsServer Series.
  • Page 186: Available Fins Commands

    FILE MEMORY FORMAT Formats file memory. FILE DELETE Deletes the specified files from file memory. FILE COPY Copies a file within file memory or between two file memory devices in a system. FILE NAME CHANGE Changes a file name.
  • Page 187: Restrictions On Fins Commands

    In the CX-Simulator, the file device of the CS/CJ-series PLC is virtually allo- cated to the part of the hard disk in the computer. Thus, " Formatting the File Device" will not actually format the file. If a folder allocated as a file memory...
  • Page 188: Connection With Application Programs

    SECTION 7 Connection with Application Programs 7-1 Outline of Connection....................... 150 7-1-1 What is Connection with Application? ................ 150 7-2 Connection with Application Programs..................151 7-2-1 Connection Methods..................... 151 7-2-2 Coexist in the Same Computer ..................151 7-2-3 Connection via Network....................153...
  • Page 189: Outline Of Connection

    PLC to debug them using the CX-Simulator. 7-1-1 What is Connection with Application? The CX-Simulator can debug application programs that perform communica- tions with OMRON's PLC (e.g. a monitor program and a data collection pro- gram) without an actual PLC connected, only on a computer. Note...
  • Page 190: Connection With Application Programs

    Communi- cations Unit 1,2,3… 1. Start the CX-Simulator and select a PLC data folder required in debugging an application program to display the windows of [CX-Simulator Debug Console], [System Status], and [Work CX-Simulator]. 2. Click the [Connect] button in the [Work CX-Simulator] window.
  • Page 191 Connection with Application Programs Section 7-2 • If the FINS address set by the application program can not be changed, [Disconnect the Simulator] and then change the node address of the network communications unit in the [System Status] | [Settings] | [Network Commu- nications Settings] window.
  • Page 192: Connection Via Network

    3. Clicking the [Target Comm. Unit] drop-down list in the [Work CX-Simulator] window will display the list of usable communications units of FinsGateway. Select Controller Link Unit in the list. 4. Click the [Connect] button to display the FINS address of the Ladder En- gine in the [Guide to Connect].
  • Page 193 Connection with Application Programs Section 7-2 5. Set the FINS address displayed in the [Guide to Connect] to the target FINS address of the application program. If the node address set by the application program can not be changed, •...
  • Page 194 Section 3 of the CX-Integrator Operation Manual (W464). 7. Set the relay network table for the Ladder Engine. 8. Set the Run mode of the Ladder Engine to [Continuous Run] in the [Debug Console] window. 9. Execute the application program to check its operation.
  • Page 195 Connection with Application Programs Section 7-2...
  • Page 196: Debugging Using Virtual External Inputs

    8-4-4 How to Replay Using the Program Area for Debugging..........182 8-5 Checking the Result........................184 8-5-1 Checking by Time Chart Monitor of the CX-Programmer .......... 184 8-5-2 Checking with Graphing by Excel Using the Data Replay File ........185...
  • Page 197: Outline Of Virtual External Input Function

    After completing static debugging, it is necessary to debug a program as- suming external inputs such as a sensor in the actual running. In the conventional debugging, it used to be necessary to give actual inputs from switches or tools assuming sensor inputs, motor outputs, or others and to visually check the outputs, requiring a lot of man-days.
  • Page 198: Debugging Using Virtual External Inputs

    Refer to 8-4 Running by Virtual External Inputs. 5. Checking the result Check the result caused the program execution. The time chart monitor- ing, the data tracing, and the Data Replay file of the CX-Programmer can be used to check. Refer to 8-5 Checking the Result.
  • Page 199 CX-Programmer's time chart monitoring and the display function of data trace. Data Replay File/Table and Output the result as a file (CSV format) while Data Replay and read it to a Graph display commercial spreadsheet software to check it as tables and graphs.
  • Page 200 Debugging Using Virtual External Inputs Section 8-2 Generating virtual external inputs Commercial tool Ladder Engine CX-Programmer I/O Condition Tool Ladder Engine (Spreadsheet, etc.) Command Data trace Data Replay I/O Condi- Ladder log file (.flg) file(.cdt) file (.csv) tion settings program for...
  • Page 201: Generating Virtual External Inputs

    [Command log] to display the [Command Log Settings] window. 2. Specify the file name for saving the log file. Key-in the name to the text box for the log file name or click the [Browse] button to input from the file dialog box.
  • Page 202 [Delete] button of the FINS command filter. Note At least one FINS address/command filter must be set respectively to create the command log. An error will not occur in the Data Replay Tool even if a filter that can not be replayed is set.
  • Page 203 Generating Virtual External Inputs Section 8-3 List of Usable FINS Command Filters and Data Replay Possible/Not possible Access IOM area FINS Command Replay possible Read IOM area Not possible Write IOM area Possible Write all IOM area Possible Read complex IOM areas...
  • Page 204 Current EM Bank No. Possible Write Index Register PV Possible Write Data Register PV Possible MR: Main, SR: Sub, PM: Parameter Note If Replay is not possible, the I/O memory areas do not change although send/receive of data is executed when Replay.
  • Page 205: Data Trace File

    Note 1. All data of the Data Trace File is regarded as data for input, fed to the Ladder Engine. When setting for I/O memory areas that will be sampled in the CX-Programmer, make sure they can be used as inputs.
  • Page 206: Data Replay File (Csv-Format Text File)

    A Data Replay File is an indefinite-length CSV-format text file containing a parameter line (1st line) and data lines (2nd line and after). Creator's ID, Data category, I/O address 1, I/O address 2, …, I/O address n <CR><LF> Date and time, Cycle counter, Value 1, Value 2, …, Value n <CR><LF>...
  • Page 207 It is convenient to create the data for input of the Data Replay File using spreadsheet software such as MS-Excel as follows: Note It is not required to input date and time data when using a Data Replay File as inputs.
  • Page 208: Multipoint Data Collection Tool

    Generating Virtual External Inputs Section 8-3 If a file output by the Data Replay Tool exists, specifying the I/O memory as an output file can be omitted by specifying the file as an output template when starting the Data Replay Tool. Specifying a template file by the Data Replay Tool will copy the I/O memory specification (parameter line) of the template file to the output file as is.
  • Page 209 Generating Virtual External Inputs Section 8-3 1,2,3… 1. Select [Program] | [Omron] | [CX-Simulator] | [Multipoint Data Collection Tool] to display the Multipoint Data Collection Tool dialog box. Address List An address to be sampled is displayed. • An address to be sampled is registered in the •...
  • Page 210 CX-Simulator. Note If this option is not checked, the data will be saved to the file with the esti- mated cycle count calculated from the actual PLC’s average cycle time when starting sampling and the sampling interval set in the Multipoint Data Collec- tion Tool.
  • Page 211: Messages Displayed In The Error History

    In this case, the name of second sampling data save file is the specified file name with “2” appended at the end of it. (e.g. “sam- ple2.csv” for “sample”) Further, when the sampling count for the second save file exceeds 65,535, “3”...
  • Page 212 Note Refer to 4-3-5 I/O Break Condition Setting for the setting method of logical expressions. 4. Click the [<<] button on the side of condition expressions to add the set logic expression to the condition expression.
  • Page 213 [and] as a logic operator. If other operators are used, the I/O Condition expression will cause an error ("E"). 9. Click the [<<] button on the side of the output expressions to add the set logic expression to the output expressions.
  • Page 214: Ladder Program For Debugging

    Ladder program for debugging I/O memory area Input Output Note Refer to 9 CPU Unit Operation for the operation of the program areas for applications/debugging. Restrictions when Using Program Area for Debugging Not possible to overlap with Do not overlap the task number with that of ladder program for applications. If the program area for the task number overlaps, the task in the UM2 will not be executed.
  • Page 215: Running By Virtual External Inputs

    The [Data Replay Tool] reads the data of the specified replay file (Command log file, Data Trace file, or Data Replay file) and set the data to the Ladder Engine in sequence. Furthermore, the changes caused by setting of the data...
  • Page 216 Running by Virtual External Inputs Section 8-4 Command log CX-Programmer Commercial (Ladder Engine) spreadsheet, etc. Data Trace Re- cording Tool Command log Data Trace file Data Replay file (.flg) (.cdt) file (.csv) Replay file Data Replay Tool FINS command Ladder Engine Data Replay file (.csv)
  • Page 217 Output Data File The Output Data File is a text file of the same format as the Data Replay File (.csv). The data to be output to the file must be registered in advance at the 1st line (parameter line) of the Data Replay File.
  • Page 218 Running by Virtual External Inputs Section 8-4 How to Run the Data Replay Tool Starting the Data Replay Tool This section explains the testing procedure using the Data Replay Tool. 1,2,3… 1. Select [Data Replay] in the [CX-Simulator Debug Console] | [Replay] to display the [Data Replay Settings] window.
  • Page 219: Replay Using The I/O Condition Tool

    Running by Virtual External Inputs Section 8-4 Pausing the Data Replay Tool Clicking the [Pause] button in the [Run] window will pause the data replay. Also, the following conditions of the Ladder Engine will pause the replay. Conditions of the...
  • Page 220 2. Input "IO condition file" to the execution file. Browsing files using the [Browse] button or [Open] in the [File] menu is also possible. 3. Check the target FINS address. Usually there is no need to change it because the FINS address for the Ladder Engine is set in default.
  • Page 221: How To Replay Using The Program Area For Debugging

    Scan Run Condition Note When the computer cycle time is 10 ms or more, hold of conditions may fail to be caught. In this case, use in the virtual cycle time. Note Do not perform Continuous Run (in the Monitor mode) or Continuous Scan Run while synchronizing the I/O Condition Tool.
  • Page 222 Ladder Engine to Monitor from the CX-Programmer will start running using virtual external inputs. Note The CX-Simulator can not debug a ladder program in the program area for debugging. Before downloading the ladder program to the program area for...
  • Page 223: Checking The Result

    Note Refer to the Data Trace/Time Chart Monitoring of CHAPTER 4 - Reference of PART 1: CX-Programmer in the CX-Programmer Operation Manual (W446)
  • Page 224: Checking With Graphing By Excel Using The Data Replay File

    MS-Excel. The following shows an example of the Data Replay file being read to MS-Excel and graphed. Graphing Note Refer to the online help, etc. for how to read a CSV file to MS-Excel and to graph it.
  • Page 225 Checking the Result Section 8-5...
  • Page 226: Cpu Unit Operation

    9-1-2 Startup (Initial) Process ....................189 9-1-3 Overseeing Processing ....................190 9-1-4 Computing Process....................... 190 9-1-5 Details of I/O Refresh and Peripheral Servicing ............191 9-2 Cycle Time and Time........................ 192 9-2-1 Cycle Time ........................192 9-2-2 Maximum CPU Occupancy and Execution Time ............198 9-2-3 Differences with CS/CJ/CP Series ................
  • Page 227: Cpu Unit Operation

    The CX-Simulator does not execute peripheral servicing excluding for the network communications Peripheral servicing unit, the Serial Communications Boards/Unit, and file service. Note Refer to 9-2 Cycle Time and Time for the computer cycle time and the virtual cycle time.
  • Page 228: Startup (Initial) Process

    • Automatically executed if the program for automatic execution (Autoexec file) exists in the file memory. • Self-diagnosis (UM area check) Note Refer to 9-2 I/O Memory Areas of CS/CJ Series Operation Manual for the startup process for I/O memory areas.
  • Page 229: Overseeing Processing

    (UM1) and program area for debugging (UM2) respectively. The execution order is UM1 to UM2. Setting Enable/Disable of UM in [System Status] | [Settings] | [UM Setting] will disable either UM1 or UM2 so as to execute only one (Disabling both is not possible.). Note The computing time for the program area for debugging (UM2) is not reflected in the virtual cycle time.
  • Page 230: Details Of I/O Refresh And Peripheral Servicing

    1. The peripheral servicing is not reflected in the virtual cycle time. The computer time required for processing is added for the computer cycle time. 2. For the computer cycle time, short computing process time of a ladder program may cause the cycle time and the execution time to be 0.0 ms.
  • Page 231: Cycle Time And Time

    The CX-Simulator has its own expansion for the cycle time and the time. 9-2-1 Cycle Time The CX-Simulator has two modes of cycle time: the virtual cycle time and the computer cycle time. Select from the cycle time mode in the [System Status] | [Settings] | [PLC Clock Settings] dialog box (Default: the computer cycle time).
  • Page 232 Section 9-2 Virtual Cycle Time The cycle time of the CX-Simulator is set as "virtual cycle time" in default. The virtual cycle time is given by converting the time required for the Ladder Engine to operate one cycle to the actual PLC cycle time.
  • Page 233 I/O Refresh Time for Typical I/O refresh time is calculated statically. For Units with variable I/O refresh time Special I/O Units depending on the status, typical values are used. (e.g. The I/O refresh time for the Position Control Unit (C200H-NC413) is 2.2 ms.) Type...
  • Page 234 UM1 is added as the virtual time, and not in UM2. In the virtual cycle time, based on the virtual time, the time elapse on the computer does not agree with that on the Ladder Engine. Also, the clock will not advance in the Program mode, where instructions are not executed.
  • Page 235 Minimum Cycle Time is set. Major Error Factors in the Virtual Cycle Time and Actual CS/CJ/CP-series CPU Unit's Cycle Time Process Item Error factor/Error range...
  • Page 236 The computer cycle time may greatly fluctuate depending on the execution environment such as file access and memory swapping. Time Elapse in Computer The time elapse when Continuous Run in the computer cycle time is the same Cycle Time as that on the computer.
  • Page 237: Maximum Cpu Occupancy And Execution Time

    When Minimum Cycle Time is enabled in the computer cycle time, the Ladder Engine gets the scan to wait till the specified cycle time completes. If the CPU occupancy is larger than the set value then, the CPU occupancy overrides the Minimum Cycle Time to set the wait time.
  • Page 238: Differences With Cs/Cj/Cp Series

    9-2-3 Differences with CS/CJ/CP Series Built-in Clock Function The clock of the Ladder Engine is the same as that of the computer when startup. However, it will not synchronize with the clock of the computer be- cause it advances according to the virtual cycle time. So if synchronization is required, operate the CX-Simulator in the computer cycle time.
  • Page 239: I/O Memory Allocation

    = OFF response 11: 0.5 ms time) for CS/CJ-series Basic I/O 12: 1 ms Rack 0 to 7, Slot 0 to 9 Units. The default Setting is 8 ms 13: 2 ms and the setting range is 0 ms to...
  • Page 240 This setting determines whether Not used. Error 1: Do not detect interrupt task errors are detected. If this setting is set to 0 and an Default: 0 interrupt task error is detected, the Interrupt Task Error Flag (A40213) will be turned ON.
  • Page 241 Link Mode Default: 00 host link. Maximum 0 to 7 This setting determines the high- Unit Num- est unit number of PT that can be ber in NT Default: 0 connected to the PLC in NT Link Link Mode mode. RS-232C...
  • Page 242 Same as Mode only when the start code is en- CS/CJ-series Default: 00 abled (1) in bits 12 to 15 of 165. PLC. 00 to FF End code: Set this end code only Same as when the end code is enabled (1)
  • Page 243 Watch Cy- 001 to FA0: 10 to This setting is valid only when bit Same as cle Time 40,000 ms 15 of 209 is set to 1. The Cycle CS/CJ-series Setting (10-ms units) Time Too Long Flag (A40108) will PLC.
  • Page 244: Auxiliary Area (Read-Only Area)

    Units 0 to 95 Default: 0 the Special I/O Unit’s allocated words (10 words/Unit) during cyclic refreshing for Special I/O Units. 9-3-2 Auxiliary Area (Read-only Area) A000 to A447: Read-only Area, A448 to A959: Read/Write Area Address Name CS/CJ-series PLC CX-Simulator Words Bits...
  • Page 245 2) Error contents (bits 0 to 15) Seconds: 3) Minutes (bits 8 to 15), 00 to 59, Seconds (bits 0 to 7) 4) Day of month (bits 8 to 15), Hours (bits 0 to 7) Minutes: 5) Year (bits 8 to 15), 00 to 59,...
  • Page 246 (port busy) tion condition to prevent the in- structions from being executed simultaneously. (The flag for a given port is turned OFF while a network instruction with that port number is being executed.)
  • Page 247 7. (All of these flags are turned OFF at the start of program execution and the flag for a given port is turned OFF when a network in- struction with that port number is executed.) A220 to...
  • Page 248 These words contain the present 0 to Same as Cycle Time cycle time in 8-digit hexadecimal FFFFFFFF: CS/CJ-series A265 with the leftmost 4 digits in A265 PLC. and the rightmost 4 digits in 0 to A264. 429,496,72 9.5ms A266 Present...
  • Page 249 DM/EM BCD error. (This error occurs when the content of an indirectly addressed DM or EM word is not BCD al- though BCD mode has been selected.) CPU Unit operation will stop and the ERR/ ALM indicator will light when this flag goes ON.
  • Page 250 CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A295 A29510 Illegal Ac- This flag and the Access Error 1: Illegal Same as cess Error Flag (AER) will be turned ON access CS/CJ-series Flag when an illegal access error has occurred PLC.
  • Page 251 (The task number where the error occurred will be stored in A294 and the program address will be stored in A298 and A299.) A29512 Task Error ON when a task error has oc- 1: Error Same as Flag curred. The following conditions CS/CJ-series generate a task error.
  • Page 252 CS/CJ-series to indicate the location where the PLC. next error record will be recorded as an offset from the beginning of the Error Log Area (A100 to A199). The Error Log Pointer can be cleared to 00 by turning A50014 (the Error Log Reset Bit) from OFF to ON.
  • Page 253 CX-Simulator Words Bits Function Settings Function Settings A315 A31504 System ON when an error has been de- 0: No error Not used Work Error tected in the work memory for 1: Error Flag online editing. (Non-fatal While this flag is ON, online ed- Error Flag) iting is disabled.
  • Page 254 4:Flash Card Type Card, if any, installed. Card is always A34302 4: Flash installed. A34306 EM File ON when a format error occurs in 1: Format Same as Memory the first EM bank allocated for file error CS/CJ-series Format memory.
  • Page 255 Same as A354 dar/Clock Unit’s internal clock data in BCD. tween Virtual CS/CJ-se- Area The clock can be set from a Pro- Clock and ries PLC. gramming Device such as a Pro- Computer gramming Console, with the Clock de- DATE(735) instruction, or with a...
  • Page 256 PLC. executed. Bits A36001 to A39115 correspond to FAL 0: That FAL numbers 001 to 511. wasn’t exe- The flag will be turned OFF cuted when the error is cleared. A385 A38506 File Deleted The system deleted the re- 1: File de- Not used.
  • Page 257 A39307 Communica- municating with a PT in NT link 0: Not PLC. tions Flag mode. communi- Bits 0 to 7 correspond to units 0 cating to 7. A39308 RS-232C The corresponding bit will be ON 1: Priority Not used. Port PT Pri-...
  • Page 258 PLC. (Fatal error) toring time). CPU Unit operation 1: Cycle will stop and the ERR/ALM indi- time over cator on the front of the CPU Unit max. will light. This flag will be turned OFF when the error is cleared.
  • Page 259 A294 and the program address will be stored in A298 and A299. The type of program error that occurred will be stored in bits 8 to 15 of A295. Refer to the CX-Programmer Operation Manual (W446).
  • Page 260 Settings A401 A40115 Memory ON when an error occurred in 1: Error Same as Error Flag memory or there was an error in 0: No error CS/CJ-series (Fatal error) automatic transfer from the PLC. Memory Card when the power was turned ON.
  • Page 261 I/O table. The error) CPU Unit will continue operating and the ERR/ALM indicator on the front of the CPU Unit will flash. The unit number of the Unit where the setting error occurred is written to A427.
  • Page 262 Unit self). The CPU Unit will continue oper- ating and the ERR/ALM indicator on the front of the CPU Unit will flash. The CS/CJ-series CPU Bus Unit where the error occurred will stop operating and the unit number of the Unit where the data exchange error occurred is indicated in A417.
  • Page 263 10 ms during I/O re- freshing of a C200H Special I/O Unit or a SYSMAC BUS I/O Unit. This flag will also be turned ON if an attempt is made to refresh a Special I/O Unit’s I/O from an interrupt task with IORF(097) while the Unit’s I/O is being re-...
  • Page 264 Programming Console. The CPU Unit will continue oper- ating and the ERR/ALM indicator on the front of the CPU Unit will flash. (A406 will be cleared when the cause of the error is eliminated.)
  • Page 265 A40712 Details below. The 3-digit binary value in hexadeci- A40713 to A40715 indicates the cause of the error (values 0 to 5 correspond to causes 1 to 6, below). The 13-bit binary value in A40700 to A40712 indicates the details: the excessive value or the dupli- cated unit number.
  • Page 266 Words Bits Function Settings Function Settings A408 A40800 Basic I/O Unit When an error has occurred in a 00 to 09 Not used. Error, Slot Basic I/O Unit (including C200H hexadecimal A40807 Number Group-2 High-density I/O Units (Slots 0 to 9)
  • Page 267 ON and the bit in A417 corre- sponding to the unit number of the Unit where the error occurred is turned ON. Bits 00 to 15 cor- respond to unit numbers 0 to F. The CPU Unit will continue oper-...
  • Page 268 Error Flag) is ON, this flag indi- refreshing Flag cates the cause of the error. 0: Interrupt A42615 will be ON if a Special I/O task exe- Unit was refreshed from the in- cuted over terrupt task while it was already 10 ms being refreshed.
  • Page 269: Auxiliary Area (Read/Write Area)

    Max. Proc- processing time. Hexadecimal hexadeci- PLC. essing values 8000 to 80FF correspond Time to task numbers 00 to FF. Bit 15 is turned ON when an interrupt has occurred. (This value is cleared when PLC operation begins.) A442 A44211...
  • Page 270 (This bit is automatically reset to 0 after the Error Log Pointer is reset.) A50015 Output OFF Turn this bit ON to turn OFF all Not used. outputs from Basic I/O Units and Special I/O Units. A501...
  • Page 271 ON. OFF when the trace is com- 0: Not trac- PLC. pleted. ing (not sampling) A50814 Trace Start Turn this bit from OFF to ON to 1: Trace Same as establish the trigger condition. trigger con- CS/CJ-series The offset indicated by the delay dition es- PLC.
  • Page 272 CS/CJ-series terruptions the power was first turned ON. hexadeci- PLC. The data is stored in binary. To reset this value, overwrite the current value with 0000. (This word is not cleared at start-up, but it is cleared when the Memory Corruption Detected Flag (A39511) goes ON.)
  • Page 273 (These flags are not valid in pe- ripheral bus mode and only bit 5 is valid in NT Link mode.) Bits 0 and 1: Not used. Bit 2: ON when there was a parity error. Bit 3: ON when there was a framing error.
  • Page 274 OFF by an event is- sued from the Serial Communi- cations Unit after the settings have been changed. It is also possible for the user to A62001 Port 1 indicate a change in serial port A62002 Port 2...
  • Page 275 Changing sued from the Serial Communi- Flag cations Unit after the settings have been changed. It is also possible for the user to indicate a change in serial port settings by turning these flags A636 Communi- The corresponding flag will be 1: Chang- Not used.
  • Page 276: Other Functions

    The directory allocated to the hard disk as the EM file memory is limited by the capacity set in the PLC setup, and the one as the Memory Card is not (actually limited by the hard disk space).
  • Page 277 Other Functions Section 9-4...
  • Page 278: Troubleshooting

    10-3 Other Tips for Troubleshooting ....................247 10-3-1 Connection Impossible from CX-Programmer............247 10-3-2 If Network Communications Can Not Be Performed..........248 10-3-3 A Compare Error Occurs when Editing Online............248 10-3-4 A Cycle Time Error Occurs..................249 10-3-5 Others ......................... 249...
  • Page 279: Error Processing

    CX-Programmer, refer to the CX-Programmer User manual (W446). 10-1-2 Debugger and Ladder Engine If an error occurs while operating the CX-Simulator, the error contents will be displayed in the dialog box. Remove the error causes referring to the reme- dies.
  • Page 280 CX-Simulator and try again. 2. Uninstall and then reinstall the CX-Simulator. Failed to start the Alarms display Wrong environ- The event viewer is not working for Windows NT and application. ment for the the memo pad for Windows95/98. Change the OS Alarms display settings so as to work.
  • Page 281: I/O Condition Tool

    Error Processing Section 10-1 10-1-3 I/O Condition Tool If an error occurs while operating the I/O Condition Tool, the error contents will be displayed in the dialog box. Remove the error causes referring to the remedies. Symptoms Causes Remedies Communication error (received Wrong address 1.
  • Page 282: Data Replay Tool

    Error Processing Section 10-1 10-1-4 Data Replay Tool If an error occurs while operating the Data Replay Tool, the error contents will be displayed in the dialog box. Remove the error causes referring to the remedies. Symptoms Causes Remedies A communications timeout oc- A timeout oc- 1.
  • Page 283: Data Trace Recording Tool

    PLC. Operation exit. while data replay- ing. 10-1-5 Data Trace Recording Tool If an error occurs while operating the Data Trace Recording Tool, the error contents will be displayed in the dialog box. Remove the error causes referring to the remedies. Symptoms...
  • Page 284: Alarms And Remedies

    What: -- An attempt was made to operate a Wrong destination Set "0" to the FINS unit address for the destination of the FINS that was not for CPU Unit. address of the FINS application that sent the FINS command.
  • Page 285 No. -- ) of starting interrupt tasks. Failed to write command log to the Short disk space, etc Increase the disk space or change the destination for cre- file. ating the log file. FINS operation was canceled. Wrong routing in- 1.
  • Page 286: Other Tips For Troubleshooting

    Settings] and that for the communications unit of FinsGateway displayed in the [Work CX-Simulator] window to dissolve the duplication. The network LED for the system status does not change in color al- though the connection to the CX-Simulator ended normally.
  • Page 287: If Network Communications Can Not Be Performed

    10-3-3 A Compare Error Occurs when Editing Online. Check the UM's access destination in the [System Status] window. A compare error will occur if an attempt is made to edit online the UM that is different from the one downloaded from the CX-Programmer.
  • Page 288: A Cycle Time Error Occurs

    When in Step Run and Scan Run, etc., a gap can occur between the time of the Ladder Engine and that of the computer even when executing in the com- puter cycle time.
  • Page 289 Other Tips for Troubleshooting Section 10-3...
  • Page 290: Appendix

    327,767 samples per one file (Data Trace file: .cdt) Restrictions by the Trace Memory The data to be saved by the data tracing is temporarily stored in the trace memory of the PLC (Up to 2,000 samples are stored in the trace memory.).
  • Page 291 3. A PLC connected via Host Link 4. The Ladder Engine (works as synchronous process.). Note The Data Trace Recording Tool, assuming that FinsGateway is used, the RUNTIME version of FinsGateway is required separately when using with Ethernet or Host Link.
  • Page 292 [Edit]: Edit bit/word addresses in the Sampling Address Setting Number of words: 0 to 6 window. Set at least one to either of bits or words within the range on the right. Sampling interval Set the sampling conditions with the radio button.
  • Page 293 OK button Cancel button Add Recording If the file specified by the Trace Data Record File exists, the data will be ap- pended to the file. Divide Recording Specify whether the sampling data is to be saved to one file or multiple files.
  • Page 294 Sampling address Cancel Sampling address Enter the sampling address to be registered. OK button Register the sampling address to close the dialog box. Cancel button Close the dialog box without registering the sampling address. Area and Address Range Possible to Specify...
  • Page 295 Service Manager is started and the communications unit of the network where CPU_UNIT and the target PLC are connected is servicing. Staring Procedure 1,2,3… 1. Select the Data Trace Recording Tool from [Start] | [Program] | [Omron] | [CX-Simulator] to display the execution window of the Data Trace Re- cording Tool.
  • Page 296 Word Address side for the word address. The [Sampling Ad- dress Editing] window will be displayed. 4. Click the list of [Bit address] and key-in the address of the I/O memory area to be saved. 5. Click the [OK] button when the inputting is completed to return to the execution window.
  • Page 297 MS-DOS command prompt, etc. with the setting file (.ini) specified that has been saved by the [Add Recording] button, as well as from [Start] | [Execute by Specifying File Name]. If a setting file is specified when starting, the [Data Trace Recording Tool] will automatically start the data trace.
  • Page 298 1. Select the FinsGateway Service Manager in [Start] | [Program] | [Omron] | [FinsGateway]. If it is being activated, right-click the FinsGateway Service Manager in the icon tray and select the setting from the pop-up menu. The FinsGateway Service Manager will be displayed.
  • Page 299 How to Use Data Trace Recording Tool Appendix Network Setting button 3. Click the [Network Setting] button to display the [FinsGateway Network Navigator] window.
  • Page 300 4. Select the "SerialUnit" network in the list of available networks and click the [Property] button to display the "SerialUnit" property. 5. Select the node tab and click the property button to display the [Add/ Edit Serial Node] dialog box.
  • Page 301 How to Use Data Trace Recording Tool Appendix 7. Click the [Close] button to display the following message box. Selecting "Yes" to return to the [Network setting] window. 8. Click the [Exit] button to return to the FinsGateway Service Manager.
  • Page 302: Revision History

    Revision History A manual revision code appears as a suffix to the catalog number on the front cover of the manual. Cat. No. W366-E1-10 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 303 Date Revised content November 2005 Contents revised to reflect the upgrade from Version 1.4 to Version 1.5, and from Version 1.5 to Version 1.6, including the following changes: Added information on CP Series throughout manual. Page v: Added information on DANGER and WARNING indications.

This manual is also suitable for:

Sysmac ws02-simc1-eCx-simulator 1.9

Table of Contents