Omron CS Series Operator's Manual

Omron CS Series Operator's Manual

Cx-simulator
Hide thumbs Also See for CS Series:
Table of Contents

Advertisement

Cat. No. W366-E1-03
CS/CJ Series
WS02-SIMC1-E
CX-Simulator
Ver. 1.3
OPERATION MANUAL
AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CS Series and is the answer not in the manual?

Questions and answers

Summary of Contents for Omron CS Series

  • Page 1 Cat. No. W366-E1-03 CS/CJ Series WS02-SIMC1-E CX-Simulator Ver. 1.3 OPERATION MANUAL AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 2 CS/CJ Series WS02-SIMC1-E CX-Simulator Ver. 1.3 Operation Manual Revised May 2002 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 3 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 4 OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is constantly striving to improve its high-quality products, the information contained in this manual is subject to change with- out notice.
  • Page 5 COM port on the computer are also possible. NT Link (1:N Mode) Possible In Ver.1.1, communications with OMRON’s Programmable Terminal (PT) connected to a COM port on the computer via NT Link are possible. Multipoint Data Collection Tool Added Time-series I/O memory data acquired from the actual PLC can be saved as a Data Replay File (CSV format).
  • Page 6 Simplified System Exit Processing When the system is exited while the CX-Simulator is connected, a confirma- tion dialog box will appear and, upon confirmation, the CX-Simulator will be disconnected and the system shut down. Version 1.3 The following functions have been added to the CX-Simulator with the upgrade from Version 1.2 to Version 1.3.
  • Page 7: Table Of Contents

    TABLE OF CONTENTS PRECAUTIONS..............xiii 1 Intended Audience......................... xiv 2 General Precautions........................xiv 3 Safety Precautions ......................... xiv 4 Application Precautions ......................... xv SECTION 1 Introduction ................1 What Is the CX-Simulator? ....................... 2 Features............................. 8 Convenient Functions......................12 Applicable PLC models and Computers ................. 13 Checking the Product Package....................
  • Page 8 SECTION 7 Connection with Application Programs....... 145 Outline of Connection ......................146 Connection with Application Programs ................147 SECTION 8 Debugging Using Virtual External Inputs......153 Outline of Virtual External Input Function ................154 Debugging Using Virtual External inputs ................155 Generating Virtual External Inputs ..................
  • Page 9 CS/CJ-series PLCs. CX-Server V1.2 W362 Provides information on how to use the CX- User Manual Server, a middleware package allowing other software to access OMRON’s auto- mation devices. SYSMAC CS1-series W336 Describes the use of Serial Communica- CS1W-SCB21/41,CS1W-SCU21...
  • Page 10 About this Manual, Continued This manual contains the following sections. Section 1 introduces the special features and functions of the CX-Simulator and a comparison be- tween SYSMAC CS/CJ-series PLCs Section 2 provides the information on how to setup the CX-Simulator. Section 3 describes the basic operation of the CX-Simulator.
  • Page 11 Notation This manual describes operation items as follows: Notation Examples "[ ]" indicates a menu name, key, dialog box name, or button name. However, in some cases where it is obviously a menu name, [ ] is not attached. Example: [File] menu, [Tab] key, [Search] dialog box, [OK] button "|"...
  • Page 12: Precautions

    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 13: Intended Audience

    WARNING fied purpose and under the specified conditions, especially in applications that can directly or indirectly affect human life. You must consult with your OMRON representative before applying a PLC System to the above- mentioned applications. Safety Precautions The CX-Simulator simulates PLC operation. However, there are some dif-...
  • Page 14: Application Precautions

    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 system may be activated.
  • Page 15 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 16: Introduction

    SECTION 1 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......................4 1-1-4 Summary of CX-Simulator Functions (Comparisons with Actual PLC)......5 1-2 Features............................8 1-2-1 Features..........................8 1-3 Convenient Functions........................
  • Page 17: What Is The Cx-Simulator

    Section 1-1 What Is the CX-Simulator? 1-1 What Is the CX-Simulator? 1-1-1 Summary The CX-Simulator emulates the operation of CS/CJ-series CPU Unit 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 18: Software Configuration Of Cx-Simulator

    Section 1-1 What Is the CX-Simulator? 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 19: Basic Block Diagram

    Section 1-1 What Is the CX-Simulator? Item Contents For virtual external Virtual Ex- Data Replay Read data in sequence from Command log file, Data I/O functions ternal Input Tool Trace file, and Data Replay file, and issue FINS com- Tool mands to the Ladder Engine to regenerate input data.
  • Page 20: Summary Of Cx-Simulator Functions (Comparisons With Actual Plc)

    Section 1-1 What Is the CX-Simulator? 1-1-4 Summary of CX-Simulator Functions (Comparisons with Actual PLC) Item Actual PLC CX-Programmer CPU Unit (CS/CJ-series) Virtual CPU Unit (CS/CJ-series) Hardware system configuration Basic I/O unit Virtual Basic No opera- I/O Unit tions (*1). Registered Special I/O unit Virtual Special...
  • Page 21 Section 1-1 What Is the CX-Simulator? Item Actual PLC CX-Programmer CPU Unit (CS/CJ-series) Virtual CPU Unit (CS/CJ-series) CPU Unit basic Operating mode Program mode Stop functions Monitor mode and Run Continuous execution of scan mode Minimum Cycle Time Logical cycle time: Substitute cycle time for set value.
  • Page 22 Section 1-1 What Is the CX-Simulator? Item Actual PLC CX-Programmer CPU Unit (CS/CJ-series) Virtual CPU Unit (CS/CJ-series) 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...
  • Page 23: Features

    Section 1-2 Features 1-2 Features Using the CX-Simulator with the following features can reduce man-days for program debugging. 1-2-1 Features Possible to simulate operation of the Virtual CPU Unit on the computer. The CX-Simulator simulates operation of the SYSMAC CS/CJ-series CPU Unit.
  • Page 24 Section 1-2 Features 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 Simulator Communi- Unit...
  • Page 25 Section 1-2 Features The CX-Simulator can send/receive FINS commands to nodes (the CPU Unit Send/receive FINS com- itself, application programs using FinsGateway, or the CPU Unit for Fins- mands to nodes in the com- Gateway) in the computer using network communications instructions in the puter CPU Unit.
  • Page 26 Section 1-2 Features Implement virtual external inputs using various methods. The CX-Simulator can generate/replay virtual external inputs using various methods to verify program operation. Save the history of manual input operation (e.g. I/O set/reset by the CX- Replay input operation us- Programmer and change of DM PVs) and settings by application programs, ing the command log as a command log file.
  • Page 27: Convenient Functions

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

    Section 1-4 Applicable PLC models and Computers 1-4 Applicable PLC models and Computers 1-4-1 Applicable PLC models The CX-Simulator supports the following PLC (Programmable Controller) models. Series CPU Unit Model CS1H-CPU67/66/65/64/63 CS1G-CPU45/44/43/42 CS1H-CPU67H/66H/65H/64H/63H CS1G-CPU45H/44H/43H/42H CJ1M-CPU23/22/13/12 CJ1H-CPU66H/65H CJ1G-CPU45H/44H/43H/42H CJ1G-CPU45/44 1-4-2 Computer Item Conditions Computer...
  • Page 29: Required Memory Capacity

    Section 1-4 Applicable PLC models and Computers 1-4-3 Required Memory Capacity Required memory capacity for the CX-Simulator does not depend on the pro- gram capacity to be developed. Care must be taken, however, when using with the CX-Programmer. The table below shows the relation of CS/CJ-series CPU Unit models and the memory capacity.
  • Page 30: Checking The Product Package

    Section 1-5 Checking the Product Package Checking the Product Package Check the content of the CX-Simulator product package. The CX-Simulator Model Model Setup disk Version WS02-SIMC1-E CD-ROM Ver 1.3 The CX-Simulator consists of the following items. The CX-Simulator Product Package WS02-SIMC1-E ·...
  • Page 31: Operation List Arranged By Purpose

    Section 1-6 Operation List Arranged by Purpose 1-6 Operation List Arranged by Purpose The following lists show the operation for each purpose. 1-6-1 Setting Operation Environment Purpose Menu or Button to select Connect the CX-Simulator Debug Console | File Menu | Work CX-Simulator |Connect Simu- lator Disconnect the CX-Simulator Debug Console | File Menu |Work CX-Simulator | Disconnect...
  • Page 32: Monitor The Status

    Section 1-6 Operation List Arranged by Purpose 1-6-4 Monitor the Status Objective Menu or Button to select Display messages System Status | Message Display Display alarms System Status | Alarm Display Display cycle time details System Status | Detail Display each status of the task Debug Console | Task Control 1-6-5 Set Serial Communications Settings Objective...
  • Page 33: Comparison Of The Cx-Simulator And Sysmac Cs/Cj-Series Plcs

    Section 1-7 Comparison of the CX-Simulator and SYSMAC CS/CJ–series PLCs 1-7 Comparison of CX-Simulator and SYSMAC CS/CJ-series PLCs In the CX-Simulator, the part implementing PLC functions (CS/CJ CPU Unit and Communications Unit) is called the Ladder Engine. The following list compares SYSMAC CS/CJ-series PLC with and the Ladder Engine of the CX-Simulator.
  • Page 34 Section 1-7 Comparison of the CX-Simulator and SYSMAC CS/CJ–series PLCs Item CS/CJ-series PLC CX-Simulator Data I/O Area CIO 0000 to CIO 0319 Not allocated actually even if the Areas Area unit is set. Special CIO 2000 to CIO 2959 Only Serial Communications Units I/O Unit and Network Communications Area...
  • Page 35 Section 1-7 Comparison of the CX-Simulator and SYSMAC CS/CJ–series PLCs Item CS/CJ-series PLC CX-Simulator Data Areas Index Registers IR0 to IR15 Same as CS/CJ-series PLC. Data Registers DR0 to DR15 Same as CS/CJ-series PLC. Arithmetic Flags Condition Flags: Same as CS/CJ-series PLC. (The (such as RE and In the CS/CJ-series CPU Unit these Flags are Programming Console can not be...
  • Page 36 Section 1-7 Comparison of the CX-Simulator and SYSMAC CS/CJ–series PLCs Item CS/CJ-series PLC CX-Simulator Instructions Sequence Input Equivalent Sequence Output Equivalent Sequence Control Equivalent Timer/Counter Equivalent Comparison Equivalent Data Movement Equivalent Data Shift Equivalent Incre- Equivalent ment/Decrement Symbol Math Equivalent Conversion Equivalent Logic...
  • Page 37 Section 1-7 Comparison of the CX-Simulator and SYSMAC CS/CJ–series PLCs Item CS/CJ-series PLC CX-Simulator I/O comment storage In the CS/CJ-series PLCs, I/O comments can Same as CS/CJ-series PLC. (The be stored in Memory Cards as I/O comment destination is the hard disk of the files.
  • Page 38 Section 1-7 Comparison of the CX-Simulator and SYSMAC CS/CJ–series PLCs Item CS/CJ-series PLC CX-Simulator Startup mode The CS/CJ-series CPU Unit will start in Only "PRCH: Switch Setting on PROGRAM mode if the Startup Mode is set in Programming Console" (default the PLC Setup to PRCH: Switch Setting on setting) (Will start in PROGRAM Programming Console (default setting) and the...
  • Page 39 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 40: Setup

    SECTION 2 Setup 2-1 Installing and Uninstalling ......................26 2-1-1 Installing ......................... 26 2-1-2 Uninstalling........................31 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 41: Installing And Uninstalling

    Section 2-1 Installing and Uninstalling 2-1 Installing and Uninstalling 2-1-1 Installing Installing the CX-Simulator in Windows NT 4.0 must be performed by a user Note with the administrator rights. If FinsGateway version 2 or higher is already installed when installing the CX- Simulator, do not uninstall FinsGateway.
  • Page 42 Section 2-1 Installing and Uninstalling 3. Click [Next] to display the [License Agreement] dialog box. AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 43 Section 2-1 Installing and Uninstalling 4. After reading the License Agreement carefully, click [Yes] if you agree with all of the provisions. The following dialog box will be displayed. 5. Input User name, Company name, and Serial number. The serial number can be found on the user registration card.
  • Page 44 Section 2-1 Installing and Uninstalling Input the serial number in 16-digit figures only, excluding “-“s and spaces. Note Inputting an incorrect serial number here will disable further install operation. 7. The [Setup Type] dialog box will be displayed. Select one of the following and click the [Next] button. [1.
  • Page 45 Section 2-1 Installing and Uninstalling Specify the destination folder and then click [Next] to display the [Select Pro- gram Folder] dialog box. AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 46: Basic Operation

    Section 2-1 Installing and Uninstalling 9. Input [Program Folders] (the group name registered to Start Menu) and click [Next]. A group of the CX-Simulator files will be automatically copied to the specified folder by the install program. After copying is completed, the following dialog box will be displayed.
  • Page 47 5. Click the [OK] button after uninstalling is completed to return to the [Add/Remove Programs Properties] dialog box. 6. Select "OMRON FinsGateway" in the [Add/Remove Programs Properties] dialog box and perform the procedures 3 through 5 to uninstall the Fins- Gateway.
  • Page 48 SECTION 3 Basic Operation 3-1 Starting Methods for the CX-Simulator ..................34 3-2 Starting and Going Online from the CX-Programmer..............35 3-2-1 Basic Window......................... 36 3-2-2 Pop-up Menu ........................36 3-2-3 Disconnecting the CX-Simulator from the CX-Programmer .......... 37 3-2-4 Exiting the CX-Simulator from the CX-Programmer ............. 37 3-2-5 Going Online with the CX-Simulator Already Started from CX-Simulator Menus..
  • Page 49: Starting Methods For The Cx-Simulator

    Section 3-1 Starting Methods for the CX-Simulator 3-1 Starting Methods for the CX-Simulator There are two different methods that can be used to start the CX-Simulator. Method 1: Starting and Going Online from the CX-Programmer Select [Simulator Online Connection] from the [PLC] menu. Method 2: Starting from the CX-Simulator Menus The CX-Simulator can be started separately from the CX-Simulator menus.
  • Page 50: Starting And Going Online From The Cx-Programmer

    Section 3-2 Starting and Going Online from the CX-Programmer 3-2 Starting and Going Online from the CX-Programmer When using CX-Programmer version 3.0 or higher, the CX-Simulator can be started and placed online from the CX-Programmer. As soon as online status is reached, program transfer operations to the CX-Simulator can be per- formed.
  • Page 51: Basic Window

    Section 3-2 Starting and Going Online from the CX-Programmer 2. Select [PLC] | [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 52: Disconnecting The Cx-Simulator From The Cx-Programmer

    Section 3-2 Starting and Going Online from the CX-Programmer Name Function IO Condition Starts the I/O Condition Operation Tool. Refer to I/O Condition under 3-9-5 [Replay] Menu for details. Data Replay Sets Data Replay and starts the Data Replay Tool. Refer to Data Re- play under 3-9-5 [Replay] Menu for details.
  • Page 53: Starting And Exiting From Cx-Simulator Menus

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

    Section 3-3 Starting and Exiting from CX-Simulator Menus 4. Selecting [Create a new PLC] allows to input necessary parameters for the simulation using the PLC setup wizard. Selecting [Open an existing PLC] enables to simulate the PLC with the parameters input so far. 5.
  • Page 55: Outline Of Operation Procedure

    Section 3-4 Outline of Operation Procedure 3-4 Outline of Operation Procedure When using with the CX-Programmer, use the CX-Simulator in the following procedure. 3-4-1 Method 1: Starting and Going Online from the CX-Programmer (CX-Programmer Version 3.0 or Higher) 1. CX-Programmer Start 1,2,3…...
  • Page 56: Method 2: Starting From The Cx-Simulator Menus

    Section 3-4 Outline of Operation Procedure Display the contents of serial/network communications to debug with actual communications. Refer to 5 Debugging Serial Communications and 6 Debugging Network Communications. 6. Debugging by Virtual External Inputs 6-1 Generating Virtual External Inputs Create data/program for virtual external inputs. Refer to 8-3 Generating Virtual External Inputs.
  • Page 57 Section 3-4 Outline of Operation Procedure 5. Connecting with CX-Programmer CX-Programmer Version 3.0 a) Select [Automatically Transfer Program to Simulator] on the [PLCs] tab under [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.
  • Page 58 Section 3-4 Outline of Operation Procedure 10. Monitor/ Debug 10-1 Monitor Monitor I/O bit status and PV. 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.
  • Page 59: Creating A New Plc

    Section 3-5 Creating a New PLC 3-5 Creating a New PLC This section explains the data for the CX-Simulator to work with and the initial setting. 3-5-1 PLC Setup Wizard When starting the CX-Simulator, input either of “Create a new PLC” or “Open an existing PLCs”...
  • Page 60 Section 3-5 Creating a New PLC 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 61 Section 3-5 Creating a New PLC · PLC Type Selection 4. Clicking the [Next(N)>] button will display the [Register PLC Unit] window. Reregister the Unit number instead of I/O Table setting performed in the CX-Programmer. This registration is for calculating the cycle time influ- enced by each unit, not for actual operation.
  • Page 62 Section 3-5 Creating a New PLC · If the CPU Bus Unit or the Special I/O Unit is registered, the input dialog box for a Unit number or Machine number will be displayed as shown be- low. Input Unit number for the CPU Bus Unit and Machine number for the Spe- cial I/O Unit.
  • Page 63 Section 3-5 Creating a New PLC 6. Select the network communications unit requiring setting and press the [Edit] button to display the [Register Network Communications] window. 7. Set the node address and communications operation settings as required. Note The detail settings of local FINS address and communications settings are explained in 6.Debugging Network Communications.
  • Page 64 Section 3-5 Creating a New PLC 10. Select the serial port requiring setting and press [Edit] button to display the [Serial Port Settings] window shown below. 11. Set Comm. Settings, COM port name, and Enable COM port log as re- quired.
  • Page 65 Section 3-5 Creating a New PLC 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 66: Open Existing Plc

    Section 3-5 Creating a New PLC 15. Clicking the [Connect] button in the [Work CX-Simulator] window will dis- play the network set to CX-Programmer and its FINS address in the [Guide to Connect]. Set for the CX-programmer as guided. Note The details of [Work CX-Simulator] setting will be explained in 3-8 Connecting to the CX-Programmer.
  • Page 67: 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. 3-5-3 Folder Used in CX-Simulator The CX-Simulator creates folders for data used by each PLC created (PLC data folder).
  • Page 68 Section 3-5 Creating a New PLC PLC data folder Contain data files peculiar to each PLC used by the CX-Simulator. The fol- lowing files are contained as data files. File Type Extension Contents PLC Model Setting File PLC model and registered unit setting file Break Condition Setting File I/O break condition setting data file Command Log Setting File...
  • Page 69: Each Part Of The Windows

    Section 3-6 Each Part of the Windows 3-6 Each Part of the Windows This section explains each part of the windows in the CX-Simulator. 3-6-1 Basic Windows Arrangement Work CX-Simulator (for connecting CX- Programmer) System Status Setting (for status display) CX-Simulator Debug Console (for running) The basic operation of the CX-Simulator is performed in the [CX-Simulator...
  • Page 70: Basic Windows Transition

    Section 3-6 Each Part of the Windows 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. Transition of System Status Setting Transition of Debug Console Window Window...
  • Page 71: System Status Setting Window

    Section 3-7 System Status Setting Window 3-7 System Status Setting Window 3-7-1 System Status Setting Window The [System Status Setting] window performs PLC model selection, the Lad- der Engine status display, cycle time display, UM set/display, network com- munications set, Serial communications set, and others. Transition of System Status Setting Window System Status Setting...
  • Page 72 Section 3-7 System Status Setting Window Names and Functions PLC model Status display LED Cycle time display Operation mode UM settings display Setting menu dis- play button Message display button Alarm display button Outline/detail status display button Name Function PLC Model Display the PLC /CPU model currently set.
  • Page 73 Section 3-7 System Status Setting Window Status Display LED Display Status Condition CS/CJ-series PLC CX-Simulator Lit (Green) Green Executing programs in RUN/ MONITOR mode. Blink (Green) Mode error in system downloading (Not used) Not lit White Error stop in the PROGRAM mode. ERR/ARM Lit (Red) Fatal error/Non-fatal error/Ladder...
  • Page 74 Section 3-7 System Status Setting Window 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. Name Function Time...
  • Page 75: Setting Menu Of System Status Setting

    Section 3-7 System Status Setting Window 3-7-2 Setting Menu of System Status Setting Selecting the [Settings] button in the [System Status Setting] window will dis- play the [Settings] menu. The [Settings] menu sets operation environment for the CX-Simulator. The [Settings] menu provides the following eight items to set various operation environments.
  • Page 76: Um Settings

    Section 3-7 System Status Setting Window 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 En- gine.
  • Page 77 Section 3-7 System Status Setting Window 1. Selecting [UM Settings] in the [System Status Setting] | [Settings] menu 1,2,3… will display the [UM Settings] window. UM Access Enable Set the UM for downloading/uploading and · editing online by the CX-Programmer. UM Execution Enable Set whether to execute programs on the UM ·...
  • Page 78: Plc Clock Settings

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

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

    Section 3-7 System Status Setting Window Note Invalid [Enable online edit when Scan Replay/Step Run] makes impossible to use the Scan Replay function. Also, online editing during Step Run automati- cally enters PROGRAM mode. (When valid, Scan Replay will automatically be performed.) Invalid [Enable online edit when Scan Replay/Step Run] improves the process speed of one scan than when valid.
  • Page 81: Alarm Display

    Section 3-7 System Status Setting Window Serial/Network communications instructions Instruction Func. Message SEND Occurrence time (cycle counter): Instruction (Data length) [FINS mes- sage] RECV Occurrence time (cycle counter): Instruction (Data length) [FINS mes- sage] CMND Occurrence time (cycle counter): Instruction (Data length) [FINS mes- sage] Occurrence time (cycle counter): Instruction (Data length) [Send data] Occurrence time (cycle counter): Instruction...
  • Page 82: Connecting To The Cx-Programmer Version 2.1 Or Lower

    Section 3-8 Connecting to the CX-Programmer Version 2.1 or Lower 3-8 Connecting to the CX-Programmer Version 2.1 or Lower The CX-Programmer is connected to the Virtual CPU Unit in the Ladder En- gine via FinsGateway. Therefore, the Virtual Communications Unit of Fins- Gateway must be started with the [Connect] operation to connect the CX- Programmer with the Virtual CPU Unit.
  • Page 83: Work Cx-Simulator Window

    Section 3-8 Connecting to the CX-Programmer Version 2.1 or Lower 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 Communications path (Unit) CX-Simulator...
  • Page 84: How To Connect With Cx-Programmer

    Section 3-8 Connecting to the CX-Programmer Version 2.1 or Lower Disconnect Exit the FinsGateway Communications Unit · started when connecting to the CX-Simulator and return to the status before the startup. Disconnecting the CX-Simulator will bring the CX-Simulator to the following. The FinsGateway Communications Unit ·...
  • Page 85 Section 3-8 Connecting to the CX-Programmer Version 2.1 or Lower 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. 4.
  • Page 86 Section 3-8 Connecting to the CX-Programmer Version 2.1 or Lower 5. Change the settings of [Network] and [Node] for [FINS Destination Ad- dress] to the network address and the node address for the FINS address displayed in the Guide to Connect. The routing table for FinsGateway must be changed if the Network ad- ·...
  • Page 87: Debug Console Window

    Section 3-9 Debug Console Window 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 Step run display Task control I/O break condition...
  • Page 88 Section 3-9 Debug Console Window Names and Functions Title bar Toolbar Main menu Name Function Title bar The title is displayed. Main menu Select a menu. Toolbar Click an icon to select a function. Icons on the Toolbar Icons for Execution Operation Name Function Execute Scan continuously.
  • Page 89: Menu List Of Cx-Simulator Debug Console

    Section 3-9 Debug Console Window 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." Save all Save the I/O memory of the Ladder En- gine and the present settings of the De-...
  • Page 90: Outline Of Basic Operation For Debug Console Menu

    Section 3-9 Debug Console Window 3-9-3 Outline of Basic Operation for Debug Console Menu This section explains the following basic menu operation of the CX-Simulator. File Read All Save All Work CX-Simulator Console Display Setting Exit Replay I/O Condition Operation Data Replay Command Log Command Log...
  • Page 91: File] Menu

    Section 3-9 Debug Console Window 3-9-4 [File] Menu This section explains how to operate the sub-menus in the [File] menu. [Read all] Open the [Save all] file. 1. Select [Read all] in the [File] menu. 1,2,3… Look in The PLC data folder will be displayed in default. Spec- ·...
  • Page 92 Section 3-9 Debug Console Window [Save All] Create the Save-all file. 1. Selecting the [Save all] in the [File] will display the following dialog box. 1,2,3… Save in The PLC data folder will be displayed in default. Spec- · ify the folder after pressing the dropdown list to save into the other drive or folder.
  • Page 93 Section 3-9 Debug Console Window [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.
  • Page 94 Section 3-9 Debug Console Window [Exit system] Exit from the CX-Simulator. 1. Select [Exit system] in [File] to display the exit message. 1,2,3… · Yes Disconnect the CX-Simulator to exit the application · No Close the dialog box to cancel exiting the CX-Simulator. 2.
  • Page 95: Replay] Menu

    Section 3-9 Debug Console Window 3-9-5 [Replay] Menu This section explains how to operate the sub-menu of the [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.
  • Page 96 Section 3-9 Debug Console Window Cycle Count Dis- Display the cycle increase after starting monitoring. · play When in asynchronous process, display the count of monitoring operation. Destination Model Display the model name of connecting destination in · Name the title. File Open Input the execution file using Browse.
  • Page 97 Section 3-9 Debug Console Window In the Configuration window, the IO Condition Equation is set. The IO Condi- Configuration Window 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 98 Section 3-9 Debug Console Window Registered Condition Condition Describe the Conditional Equation to register in the I/O · Condition equation. Insert the contents set in the Insert Equation, insert by Logical Operator button, and paste from the clip board are possible. DEL button Delete the contents of the Con- ·...
  • Page 99 Section 3-9 Debug Console Window Word Conditional Set the Word Conditional Equation to be inserted to · Equation the Conditional Equation/Output Equation. Value Selection Select which is the value of · Conditional Equation, fixed (up- per) or I/O memory (lower). Type Select the I/O memory type.
  • Page 100 Section 3-9 Debug Console Window [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 replayed.
  • Page 101 Section 3-9 Debug Console Window Data Replay Tool reads the data in the specified input file and set them in Data Replay Tool sequence as the virtual external input to the Ladder Engine. Replay data Display the replay file set in the [Data Replay Settings] ·...
  • Page 102 Section 3-9 Debug Console Window [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 103 Section 3-9 Debug Console Window FINS Address Filters Registration List Display the FINS address selectable as the FINS ad- · dress filter. The [All local nodes] shows all FINS ad- dresses in the computer. Usually specify the [All local nodes] as the filter (registered as the initial value and can not be deleted).
  • Page 104: Help] Menu

    Section 3-9 Debug Console Window 3-9-6 [Help] Menu This section explains how to operate the sub-menu of the [Help] menu. [Help Contents] Display the Help Contents of the CX-Simulator. Select [Help Contents] in the [Help] menu to display the [Help Contents] dia- log box.
  • Page 105: Step Run] Window

    Section 3-9 Debug Console Window 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 Main Menu Address Start Point display...
  • Page 106 Section 3-9 Debug Console Window Menu List of the Step Run Window Main Menu Submenu Shortcut Function File Close Close the Step Run window. Edit Copy Copy the contents of the task being dis- played to the clipboard. Go to Jump to the specified program address.
  • Page 107: 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 108: I/O Break Condition Settings Window

    Section 3-9 Debug Console Window Contents of Menu Name Function Tasks Display the task menu. Help Display the information on Help and the version. Menu List of [Step Run] Window Main Menu Submenu Shortcut Function Tasks Cyclic tasks Run Mode Turn the selected cyclic task into the execution mode.
  • Page 109 Section 3-9 Debug Console Window Names and Functions Break conditional OR LIST equation display OR item select AND LIST AND item selection [Update] button AND item delete OR item add AND item add OR item delete Condition setting save [OK] button Condition settings read [Cancel] button...
  • Page 110 Section 3-9 Debug Console Window 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 type condition select Bit condition...
  • Page 111 Section 3-9 Debug Console Window Word Condition Area Name Area Type Address Range CIO Area 0 to 6143 Work Area 0 to 511 Holding Are 0 to 511 Auxiliary Area 0 to 959 DM Area 0 to 32767 EM Area E0_0 to E0_32767 and EC_0 to EC_32767 Timer Area (TIM)
  • Page 112: Debugging Programs

    SECTION 4 Debugging Programs 4-1 Debugging Using the CX-Programmer ..................98 4-2 Debugging Operation........................99 4-2-1 CS/CJ-series PLC's Modes and Execution Mode ............99 4-2-2 Scan Run........................100 4-2-3 Step Run ........................100 4-2-4 Stop ( ) ........................101 4-2-5 Pause ( ) ........................102 4-2-6 Other Operation ......................
  • Page 113: Debugging Using The Cx-Programmer

    Section 4-1 Debugging Using the CX-Programmer 4-1 Debugging Using the CX-Programmer Debugging using the CX-Programmer can be performed in the same opera- tion as the CS/CJ-series PLC because the CX-Simulator implements equiva- lent functions as the CS/CJ-series PLC. This section shows the differences with the actual CS/CJ-series PLC and no- tices when operating the CX-Simulator from the CX-Programmer.
  • Page 114: Debugging Operation

    Section 4-2 Debugging Operation 4-2 Debugging Operation The Ladder Engine has the execution mode for operating from the [CX- Simulator Debug Console] as well as the modes in the CS/CJ-series PLC. Changing the execution mode from the [CX-Simulator Debug Console] allows more detailed debugging.
  • Page 115: Scan Run

    Section 4-2 Debugging Operation 4-2-2 Scan Run The Scan Run executes the program from overseeing processing to periph- eral servicing in a single scan (cycle). There are three types of Scan Run: [Scan Run], [Continuous Scan Run], and [Continuous Run]. Overseeing processing Computing processing I/O refresh...
  • Page 116: Stop ( )

    Section 4-2 Debugging Operation Overseeing processing Computing processing 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 117: Pause ( )

    Section 4-2 Debugging Operation 4-2-5 Pause ( ) Pause pauses executing the ladder diagram. The situation is also the same when the execution of the ladder program is stopping in Scan Run, Step Run, a break point, or an I/O break condition. While pausing, the peripheral servicing is performed.
  • Page 118: Step Run And Break

    Section 4-3 Step Run and Break 4-3 Step Run and Break The Step Run allows to debug by step, which was impossible in debugging using an actual CS/CJ PLC. In addition, combining execution with a break/start point specified, and break with I/O memory conditions (I/O break conditions) specified will allow closer debugging.
  • Page 119: Break Point

    Section 4-3 Step Run and Break 4-3-3 Break Point The break point is where the program execution is paused. Specifying a break point will automatically stop the program execution at the specified point. As an example of break point, the following introduces the case where moni- toring the IR value used between FOR and NEXT.
  • Page 120: Start Point Setting

    Section 4-3 Step Run and Break 4-3-4 Start Point Setting Setting a start point enables to specify an instruction to be executed next by the program. Start Point Setting A start point can be set only in the Program mode. The program is executed from the start point when an execution is operated from the Debug Console or the mode is changed to the Monitor mode by the CX-Programmer.
  • Page 121: I/O Break Condition Setting

    Section 4-3 Step Run and Break Executing Only Specific Rung (Partial Execution) When debugging only a specific rung, set a start point at the top of the rung and a break point at the top of the next rung (shown by the hatching in the diagram) to execute the specified range of the rung.
  • Page 122 Section 4-3 Step Run and Break I/O Break Condition 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.
  • Page 123 Section 4-3 Step Run and Break Register IO Break Condition Here shows the registration procedure for I/O break condition. 1. Display [Register IO Break Condition] by [CX-Simulator Debug Console] | 1,2,3… [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.
  • Page 124 Section 4-3 Step Run and Break Condition Combination The I/O break condition expression can be set by combining conditions (Turn on check boxes for conditions registered in AND LIST or OR LIST). The I/O break condition expression is configured by combining [AND LIST] (Condi- tions are combined with AND operators) and [OR LIST] (Conditions are com- bined with OR operators) with logical operators (AND/OR).
  • Page 125 Section 4-3 Step Run and Break Operation when I/O Break Condition Met Continuous Run with I/O break condition set is executed in the diagram be- low. I/O break condition holds when the content of DM00000 that is incre- mented by one-second pulse becomes equal to or greater than #7FFF while both values of IO0.0 and H1.15 are ON, and the ladder diagram execution breaks.
  • Page 126: Task Debugging

    Section 4-4 Task Debugging 4-4 Task Debugging One of the functions added in CS/CJ-series PLCs is a concept of "task." This section explains debugging a task using the CX-Simulator. 4-4-1 Execution Time and Count of Task Execution Time and Count of Task The [Task Control] window monitors execution time and count of each task.
  • Page 127: Executing Tasks Individually

    Section 4-4 Task Debugging 4-4-3 Executing Tasks Individually [Task Control] displays the execution status of cyclic tasks and interrupt tasks and executes the tasks. Change Execution Status of Cyclic Tasks Selecting an execution status (enabled/wait) of a task in the pop-up menu al- lows to change the status.
  • Page 128: Precautions When Debugging Task

    Section 4-4 Task Debugging 4-4-4 Precautions when Debugging Task Display Task in Program Area for Debugging 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].
  • Page 129 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 130: Debugging Serial Communications

    SECTION 5 Debugging Serial Communications 5-1 Outline of Serial Communications .................... 116 5-2 Serial Communications Settings....................119 5-3 Serial Communications Connection ..................123 5-3-1 Access from External Devices via Serial Communications .......... 123 5-3-2 Access to External Device Using Serial Communications..........124 5-3-3 Precautions in Using Serial Communications ...............
  • Page 131: Outline Of Serial Communications

    Section 5-1 Outline of Serial Communications 5-1 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 132 Section 5-1 Outline of Serial Communications 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 per- formed. For the Serial Communications Board/Unit, if the Serial Communications mode of System Setup is No-protocol, communications can not be per- formed.
  • Page 133 Section 5-1 Outline of Serial Communications Refer to 2-3 I/O Memory Allocations in SYSMAC CS/CJ Series Serial Com- Note munications Boards/Unit Operation Manual for the details of Serial Communi- cations Boards/Unit settings. Communications Settings for Serial Communications When using serial communications instructions in a program, communications Communications Settings settings for each port number to be used can be specified.
  • Page 134: Serial Communications Settings

    Section 5-2 Serial Communications Settings 5-2 Serial Communications Settings Note If necessary Serial Communications Units have already been registered, go to Procedure 5. 3. Add Serial Communications Unit 1,2,3… Add necessary Serial Communications Units in [Status] | [Settings] | [Register PLC Unit]. Select Communications Unit or Inner Board in the Unit Selection List and click Serial Communications Unit or Serial Communications Board, and then press the [<<] key to register to the Registered PLC Unit List.
  • Page 135 Section 5-2 Serial Communications Settings 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 136 Section 5-2 Serial Communications Settings 9. Communications Settings of Serial Port Settings Select Serial Port Settings from the combo boxes of Communications Set- tings according to the purpose of debugging. The followings can be se- lected. Communications Contents Settings port port log name Communications are not proc-...
  • Page 137 Section 5-2 Serial Communications Settings 12. Exit Serial Communications settings window Repeat the procedures 5 to 9 as required. Press the [OK] button when completed. 13. System setup for serial communications When an actual PLC performs serial communications, it is necessary to set communications parameters to the PLC’s I/O memory areas.
  • Page 138: Serial Communications Connection

    5-3-1 Access from External Devices via Serial Communications Access by Programmable Terminal (PT) Serial connection of OMRON’s Programmable Terminal (PT) via NT Link al- lows to debug a ladder program that processes data input to the CX- Simulator from PT and creates data for PT display.
  • Page 139: Access To External Device Using Serial Communications

    Section 5-3 Serial Communications Connection 5-3-2 Access to External Device Using Serial Communications Slave initiation via Host Link (FINS communications) When performing FINS communications via Host Link by a ladder program, external communications from a computer are not restricted, which is differ- ent from the case of FINS communications for a network (communications via a Network Communications Unit).
  • Page 140 Section 5-3 Serial Communications Connection When Serial Communications on the CX-Simulator Become Disabled When Serial Communications on the CX-Simulator become disabled, for ex- ample, 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 [Con- nect] again AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 141: Connecting Pt Via Nt Link

    Section 5-4 Connecting PT via NT Link 5-4 Connecting PT via NT Link The diagram below illustrates how to connect OMRON’s Programmable Ter- minal (PT) via NT Link. 1. Set to NT Link (1:N) the communications protocol setting for the Ladder 1,2,3…...
  • Page 142: Examples Of Serial Communications Debugging

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

    Section 5-5 Examples of Serial Communications Debugging 5-5-2 Debugging by Message Display The following items can be confirmed in debugging by message display. Confirmation item Confirmation contents If the setting is "Message A message will be displayed when executing a Send Enabled"? send instruction.
  • Page 144 Section 5-5 Examples of Serial Communications Debugging The whole data in the file is read for a single receive operation. For send op- eration, send data is appended at the end of the file. Use a commercial text editor or a binary editor to edit a Serial Data File. Note Read the whole data in the input (receive) file when the file update time changes, which is regarded as a receive operation.
  • Page 145 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 146: Debugging Network Communications

    SECTION 6 Debugging Network Communications 6-1 Outline of Network Communications..................132 6-2 Network Communications Settings ................... 135 6-3 Network Connection ......................... 138 6-3-1 Send FINS Commands to the External Devices via Network Communications ... 138 6-3-2 Receive FINS Commands from the External Devices via Network Communications.. 138 6-3-3 Precautions when Using Network Communications .............
  • Page 147: Outline Of Network Communications

    Section 6-1 Outline of Network Communications 6-1 Outline of Network Communications This section explains the outline of the network communications. Introduction The CX-Simulator can debug network communications by: (1) send/receive FINS commands to the application program (the CPU Unit itself, an applica- tion program using FinsGateway, or the CPU Unit of FinsGateway) or (2) screen display of send messages.
  • Page 148 Section 6-1 Outline of Network Communications Supported Protocols and Units The CX-Simulator supports only FINS communications for network communi- cations and does not support the other communications (e.g. socket commu- nications of the Ethernet Unit). The following virtual Network Communications Units can be used in the CX-Simulator.
  • Page 149 Section 6-1 Outline of Network Communications Communications Settings of Network communications When using network communications instructions in a program, the Com- Communications Settings of munications Settings can be specified for each Unit to be used. The following Network Communications settings are provided as the Communications Settings of network communi- cations instructions.
  • Page 150: Network Communications Setting

    Section 6-2 Network Communications Setting 6-2 Network Communications Settings Note If the necessary Network Communications Units are registered, proceed to the procedure 5. 1. Adding Network Communications Units: Add Network Communications 1,2,3… 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 151 Section 6-2 Network Communications Setting 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 152 Section 6-2 Network Communications Setting 7. The Node Address Setting: Set the node address within the local FINS address for the 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.
  • Page 153: Network Connection

    Section 6-3 Network Connection 6-3 Network Connection 6-3-1 Send FINS Commands to the External Devices via Network Com- munications FINS commands by the Network Communications instruction of the CX- Simulator can not be sent to the outside of the computer due to the CX- Simulator's restrictions.
  • Page 154: Example Of Debugging Network Communications

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

    Section 6-4 Example of Debugging Network Communications 6-4-2 Debugging with Display Messages Debugging with Display Messages allows to confirm the send data format of the SEND/RECV/CMND instruction and the ports to be used. The samples of Display Messages when debugging network communications are shown below.
  • Page 156 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 al- The CX-Programmer User · lows to check the values if the CPU Unit of FinsGateway is set as the destination.
  • Page 157 Section 6-4 Example of Debugging Network Communications Refer to FinsGateway Version2 RUNTIME Operation Manual for FinsGate- Note way data link setting. Refer to the operation manuals attached to the hard- ware 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 158: Available Fins Commands

    Section 6-5 Available FINS Commands 6-5 Available FINS Commands 6-5-1 The List of Available FINS Commands Type Command Name Function code I/O Memory MEMORY AREA READ Reads consecutive data from the I/O memory Area Ac- area. cess MEMORY AREA WRITE Writes consecutive data to the I/O memory area.
  • Page 159: Restrictions On Fins Commands

    Section 6-5 Available FINS Commands Type Command Name Function code File MEMORY AREA FILE Transfers or compares data between the I/O Memory TRANSFER memory area and file memory. PARAMETER AREA FILE Transfers or compares data between the pa- TRANSFER rameter area and file memory. PROGRAM AREA FILE Transfers or compares data between the program TRANSFER...
  • Page 160 SECTION 7 Connection with Application Programs 7-1 Outline of Connection ....................... 146 7-1-1 What is Connection with Application? ................. 146 7-2 Connection with Application Programs ..................147 7-2-1 Connection Methods..................... 147 7-2-2 Coexist in the Same Computer..................147 7-2-3 Connection via Network ....................149 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 161: Outline Of Connection

    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. When using an application program, the CX-Simulator, and the CX-...
  • Page 162: Connection With Application Programs

    Section 7-2 Connection with Application Programs 7-2 Connection with Application Programs 7-2-1 Connection Methods There are two methods for connecting the CX-Simulator with application pro- grams as follows: Coexist in the same com- An application program using FinsGateway · puter for communications.
  • Page 163 Section 7-2 Connection with Application Programs · If the FINS address set by the application program can not be changed, [Disconnect the Simulator] and then change the node address of the net- work communications unit in the [System Status] | [Settings] | [Network Communications Settings] window.
  • Page 164: Connection Via Network

    Section 7-2 Connection with Application Programs 7-2-3 Connection via Network This section describes how to connect an application program on another computer to the Ladder Engine via network (Ethernet). Computer FinsGateway Ladder Engine Ethernet When connecting via network, the routing table must be set for FinsGateway Note and the relay network table for the Ladder Engine because two communica- tions lines are required for the computer with the CX-Simulator...
  • Page 165 Section 7-2 Connection with Application Programs 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, · change the node address of the network communications unit in the [System Status] | [Settings] | [Network Communications Settings] window.
  • Page 166 Section 7-2 Connection with Application Programs 7. Set the relay network table for the Ladder Engine. 8. Set the Run mode of the Ladder Engine to [Continuous Run] in the [De- bug Console] window. 9. Execute the application program to check its operation. The relay network table will be deleted when [Disconnect].
  • Page 167 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 168: Debugging Using Virtual External Inputs

    SECTION 8 Debugging Using Virtual External Inputs 8-1 Outline of Virtual External Input Function ................154 8-1-1 Outline of Virtual External Input Function ..............154 8-2 Debugging Using Virtual External Inputs ................. 155 8-2-1 Outline of Debugging Using Virtual External Inputs............ 155 8-3 Generating Virtual External Inputs ...................
  • Page 169: Outline Of Virtual External Input Function

    Section 8-1 Outline of Virtual External Input Function 8-1 Outline of Virtual External Input Function 8-1-1 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 170: Debugging Using Virtual External Inputs

    Section 8-2 Debugging Using Virtual External Inputs 8-2 Debugging Using Virtual External Inputs 8-2-1 Outline of Debugging Using Virtual External Inputs 1. Considering debugging items. 1,2,3… Decide debugging items using virtual external inputs. 2. Considering debugging methods Decide debugging methods using virtual external inputs. Decide the gen- eration method of the virtual external input data according to the debug- ging contents.
  • Page 171 Section 8-2 Debugging Using Virtual External Inputs Generating Virtual External Inputs Setting data Contents Command log Static setting with a data Perform necessary operation from the CX- file Programmer and save its history to a file. Data trace Static setting with a data Read the contents of data trace from the file actual CS/CJ-series CPU Unit by the CX-...
  • Page 172 Section 8-2 Debugging Using Virtual External Inputs 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 file(.cdt) file (.csv) tion set- program for (.flg) tings debugging...
  • Page 173: Generating Virtual External Inputs

    Section 8-3 Generating Virtual External Inputs 8-3 Generating Virtual External Inputs 8-3-1 Command Log The Command Log File (.flg) contains the operation history (actually the communications commands history of FINS communications) such as read/write of I/O memory areas and force-set/reset executed by the CX- Programmer.
  • Page 174 Section 8-3 Generating Virtual External Inputs 5. Click the [Set All] button if selecting all items registered in the FINS ad- dress/command filter. Click the [Clear All] if clearing all check items. 6. Selecting the [OK] button will cause the settings valid. Command Log Save Start/Exit Set the “Command Log Save Start”...
  • Page 175 Section 8-3 Generating Virtual External Inputs 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 Not possible Transfer IOM area Possible...
  • Page 176 Section 8-3 Generating Virtual External Inputs Read IOM area FINS Command Replay possible Read CIO Area bits Not possible Read Work Area bits Not possible Read Hold Area bits Not possible Read Auxiliary Area bits Not possible Read CIO Area words Not possible Read Work Area words Not possible...
  • Page 177: Data Trace File

    Section 8-3 Generating Virtual External Inputs 8-3-2 Data Trace File The time-series data (Data Trace File) of I/O memory area acquired from an actual PLC can be replayed on the Ladder Engine using the Data Replay Tool. Note Refer to 8-4 Running by Virtual External Inputs for replaying by Data Replay Tool.
  • Page 178: Data Replay File (Csv-Format Text File)

    Section 8-3 Generating Virtual External Inputs 8-3-3 Data Replay File (CSV-format text file) The CSV-format text file (Data Replay File (.csv)) created by a commercial spreadsheet software can be replayed on the Ladder Engine using the Data Replay Tool. Besides, the execution result of the Ladder Engine can be saved in the Data Replay file as the values of I/O memory areas.
  • Page 179 Section 8-3 Generating Virtual External Inputs Word Area name Area type Address range I/O Area (CIO) 0 to 6143 Work Area (WR) 0 to 511 Hold Area (HR) 0 to 511 Auxiliary Area (AR) 0 to 959 Data Memory (DM) 0 to 32767 Extended Data Memory Area E0_0 to E0_32767, EC_0 to...
  • Page 180: Multipoint Data Collection Tool

    Setting for Multipoint Data Collection In order to acquire and save multipoint data from an actual PLC, after clicking the [Start] button on the task bar, select [Program] | [Omron] | [CX-Simulator] | [Multipoint Data Collection Tool]. AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 181 Section 8-3 Generating Virtual External Inputs 1. Select [Program] | [Omron] | [CX-Simulator] | [Multipoint Data Collection 1,2,3… 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 182 Section 8-3 Generating Virtual External Inputs 2. Select [File] | [Set Communications] to set [Device Type] to be connected and [Network Type]. Always select the CS/CJ Series for [Device Type]. 3. Click the [New] button to display the [Set Address] dialog box. Input ar- bitrary word data in the form of [Start Address]-[End Address], followed by the OK button.
  • Page 183: Messages Displayed In The Error History

    Section 8-3 Generating Virtual External Inputs 9. Clicking the [Stop] button will stop the data sampling to save the sampled data in the file. Note When the sampling count from the sampling start exceeds 65,535, the file is automatically divided. In this case, the name of second sampling data save file is the specified file name with “2”...
  • Page 184 Section 8-3 Generating Virtual External Inputs Procedure for Setting I/O Condition Expressions This section explains the testing procedure using the I/O Condition Tool. 1. Select [IO Condition] in the [CX-Simulator Debug Console] | [Replay ] 1,2,3… menu to display the [Run] window of the I/O Condition Tool. 2.
  • Page 185 Section 8-3 Generating Virtual External Inputs 5. When registering multiple logic expressions to the condition expression, insert logic operators between logic expressions (Click the [or] or [and] button.). 6. Repeat 4 and 5 until completing the condition expression. Directly editing the condition expression is also possible.
  • Page 186: Ladder Program For Debugging

    Section 8-3 Generating Virtual External Inputs 8-3-7 Ladder Program for Debugging The CX-Simulator can run a ladder program for debugging on the program area for debugging (UM2) besides the program area for applications (UM1), dynamically creating input data for virtual external inputs. The program area for debugging is independent of that for applications, sharing the I/O memory area with for applications.
  • Page 187: Running By Virtual External Inputs

    Section 8-4 Running by Virtual External Inputs 8-4 Running by Virtual External Inputs 8-4-1 Running by Virtual External Inputs How to Run by Virtual External Inputs Perform running by virtual external inputs in the following 3 methods. 1. By Data Replay Tool 2.
  • Page 188 Section 8-4 Running by Virtual External Inputs Command log CX-Programmer Commercial (Ladder Engine) spreadsheet, etc. Data Trace Re- cording Tool Command log Data Trace Data Replay file (.flg) file (.cdt) file (.csv) Replay file Data Replay Tool FINS command Ladder Engine Data Replay file (.csv) Output file...
  • Page 189 Section 8-4 Running by Virtual External Inputs The following data files can be specified as an input data file. Input Data File Replay file Replay method Command log file(.flg) Read in sequence the history of operation (Com- mand log) performed to the Ladder Engine saved in the file and issue commands again to the Ladder Engine.
  • Page 190 Section 8-4 Running by Virtual External Inputs How to Run the Data Replay Tool Starting the Data Replay Tool This section explains the testing procedure using the Data Replay Tool. 1. Select [Data Replay] in the [CX-Simulator Debug Console] | [Replay] to 1,2,3…...
  • Page 191: Replay Using The I/O Condition Tool

    Section 8-4 Running by Virtual External Inputs Clicking the [Pause] button in the [Run] window will pause the data replay. Pausing the Data Replay Also, the following conditions of the Ladder Engine will pause the replay. Tool Conditions of the Synchronous/Asynchronous How to clear Ladder Engine...
  • Page 192 Section 8-4 Running by Virtual External Inputs The following example shows the timing from when the I/O Condition expres- Example for Operation Tim- sions hold to when the values registered in the output expressions are set, if ing of the I/O Condition Ex- the delay time is 200 ms.
  • Page 193: How To Replay Using The Program Area For Debugging

    Section 8-4 Running by Virtual External Inputs The I/O Condition Tool pauses in the following conditions of the Ladder En- Pausing the I/O Condition gine. Tool Conditions of the Synchronous/Asynchronous How to clear Ladder Engine Program/Run mode Synchronous/Asynchronous Scan Run for Synchronous and Continuous Run (Monitor mode) for Asynchronous.
  • Page 194 Section 8-4 Running by Virtual External Inputs 2. Select [Debugger program area (UM2)] in [UM Access Enable] followed by clicking the [OK] button. 3. After confirming that the CX-Simulator is connected in the [Work CX- Simulator] window, download the ladder program from the CX- Programmer.
  • Page 195: Checking The Result

    Section 8-5 Checking the Result 8-5 Checking the Result 8-5-1 Checking by Time Chart Monitor of the CX-Programmer The results from virtual external inputs can be checked by the time chart monitor or the data trace of the CX-Programmer. Displaying the data of virtual external inputs and its results simultaneously allows to confirm the operation results and timing of the ladder program.
  • Page 196: Checking With Graphing By Excel Using The Data Replay File

    Section 8-5 Checking the Result 8-5-2 Checking with Graphing by Excel Using the Data Replay File Using the output file of the Data Replay Tool allows checking the data. The Data Replay File output by the Data Replay Tool is a CSV-format text file, thus enabling to check with graphing by reading it to spreadsheet software such as MS-Excel.
  • Page 197 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 198: Cpu Unit Operation

    SECTION 9 CPU Unit Operation 9-1 CPU Unit Operation........................184 9-1-1 General Flow ........................ 184 9-1-2 Startup (Initial) Process ....................185 9-1-3 Overseeing Processing....................186 9-1-4 Computing Process ....................... 186 9-1-5 Details of I/O Refresh and Peripheral Servicing............187 9-2 Cycle Time and Time........................ 188 9-2-1 Cycle Time ........................
  • Page 199: Cpu Unit Operation

    Section 9-1 CPU Unit Operation 9-1 CPU Unit Operation 9-1-1 General Flow The CPU Unit operation of the Ladder Engine flows as follows (excluding when Step Run). Startup · Initialize I/O memory · Clear I/O memory area area/System work and check the user area memory area (UM) Startup (Initial) process...
  • Page 200: Startup (Initial) Process

    Section 9-1 CPU Unit Operation 9-1-2 Startup (Initial) Process The following Startup (Initial) process is performed once when start-up, changing the configuration of the Ladder Engine, reset, or changing the oper- ating mode (between Run/Monitor and Program). · Clear the non-hold-type area in the I/O memory areas Processed as follows depending on IOM Hold Bit and PLC Setup (setting for Hold/Non-hold of IOM Hold Bit when startup).
  • Page 201: Overseeing Processing

    Section 9-1 CPU Unit Operation 9-1-3 Overseeing Processing Back up I/O Memory Areas for re-execution of scan as the CX-Simulator's own process. The I/O Memory Areas to be backed-up are as follows. Name Word Address Remarks CIO area CIO0000 to CIO6143 W000 to W511 H000 to H511 A000 to A959...
  • Page 202: Details Of I/O Refresh And Peripheral Servicing

    Section 9-1 CPU Unit Operation 9-1-5 Details of I/O Refresh and Peripheral Servicing Type of Service CS/CJ-series PLC CX-Simulator Contents Target Unit Group I/O refresh The data in the pre- Basic I/O Unit I/O refresh is not exe- allocated area is ex- (including C200H High-density cuted because external changed within the...
  • Page 203: Cycle Time And Time

    Section 9-2 Cycle Time and Time 9-2 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.
  • Page 204 Section 9-2 Cycle Time and Time 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. In calculating the virtual cycle time, the followings are different from that of Calculating Virtual Cycle the CS/CJ-series PLC.
  • Page 205 Section 9-2 Cycle Time and Time I/O refresh time is calculated statically. For Units with variable I/O refresh time I/O Refresh Time for Typical depending on the status, typical values are used. (e.g. The I/O refresh time Special I/O Units for the Position Control Unit (C200H-NC413) is 2.2 ms.) Type Unit name...
  • Page 206 Section 9-2 Cycle Time and Time In virtual cycle time, the standard processing time (virtual time) for the in- Time Elapse in Virtual Cycle struction is added each time one instruction of the program is executed. Time One step One step One step One step execute...
  • Page 207 Section 9-2 Cycle Time and Time The time elapse when Step Run will be as follows. One step Wait One step Wait One step Wait One step execute execute execute execute Virtual Time Instruction execution time Process Enabling Minimum Cycle Time will set either the calculated value of the vir- Minimum Cycle Time tual cycle time or the specified Minimum Cycle Time, whichever is greater, as the virtual cycle time.
  • Page 208 Section 9-2 Cycle Time and Time In calculating the computer cycle time, the followings are different from that Calculating Computer Cycle of the CS/CJ-series CPU Unit. Time Process name Process Contents Processing time and Fluctuation factors (1) Overseeing Proc- Back up the I/O memory areas Time for I/O memory areas back- essing (2) Computing Process...
  • Page 209: Maximum Cpu Occupancy And Execution Time

    Section 9-2 Cycle Time and Time For Step Run and Scan Run, time elapse during pausing is included in the computer cycle time. One step Wait One step Wait One step Wait One step execute execute execute execute Time Note: The dashed line shows the time elapse in the virtual cy-...
  • Page 210: Differences With Cs/Cj Series

    Section 9-2 Cycle Time and Time 9-2-3 Differences with CS/CJ Series The clock of the Ladder Engine is the same as that of the computer when Built-in Clock Function startup. However, it will not synchronize with the clock of the computer be- cause it advances according to the virtual cycle time.
  • Page 211: I/O Memory Allocation

    Section 9-3 I/O Memory Allocation 9-3 I/O Memory Allocation 9-3-1 PLC Setup Settings Item CS/CJ-series PLC CX-Simulator Settings Function Settings Function 00: 8 ms Basic I/O Unit Input Sets the input response time (ON Not used. 10: 0 ms Response Time response time = OFF response 11: 0.5 ms time) for CS/CJ-series Basic I/O...
  • Page 212 Section 9-3 I/O Memory Allocation Item CS/CJ-series PLC CX-Simulator Settings Function Settings Function Detect Interrupt Task 0: Detect 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...
  • Page 213 Section 9-3 I/O Memory Allocation Item CS/CJ-series PLC CX-Simulator Settings Function Settings Function Periph- Communi- 00: 9,600 Settings 00 and 06 through 0A Not used. eral Port cations rate 01: 300 are valid when the communica- Settings (bps) 02: 600 tions mode is set to peripheral 03: 1,200 bus.
  • Page 214 Section 9-3 I/O Memory Allocation Item CS/CJ-series PLC CX-Simulator Settings Function Settings Function RS-232C Baud rate 00: 9,600 Settings 00 and 06 through 0A Same as Port Set- (bps) 01: 300 are valid when the communica- CS/CJ- tings 02: 600 tions mode is set to peripheral series PLC.
  • Page 215 Section 9-3 I/O Memory Allocation Item CS/CJ-series PLC CX-Simulator Settings Function Settings Function Instruction Error Op- 0: Continue This setting determines whether Same as eration 1: Stop instruction errors (instruction CS/CJ- processing errors (ER) and illegal series PLC. Default: 0 access errors (AER)) are treated as non-fatal or fatal errors.
  • Page 216: Auxiliary Area (Read-Only Area)

    Section 9-3 I/O Memory Allocation Item CS/CJ-series PLC CX-Simulator Settings Function Settings Function Special I/O Unit Cyclic 0: Enabled These settings determine Not used. Refreshing 1: Disabled whether data will be exchanged between the specified Unit and Units 0 to 95 Default: 0 the Special I/O Unit’s allocated words (10 words/Unit) during...
  • Page 217 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A100 to Error Log When an error has occurred, the Error code Same as A199 Area error code, error contents, and CS/CJ-series error’s time and date are stored Error con- PLC.
  • Page 218 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A200 A20011 First Cycle ON for one cycle after PLC op- ON for the Same as Flag eration begins (after the mode is first cycle CS/CJ-series switched from PROGRAM to PLC.
  • Page 219 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A203 to Communi- These words contain the com- Non-zero: Same as A210 cations Port pletion codes for the corre- Error code CS/CJ-series Completion sponding port numbers when PLC.
  • Page 220 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A295 A29508 Instruction This flag and the Error Flag (ER) 1: Error Same as Processing will be turned ON when an in- Flag CS/CJ-series Error Flag struction processing error has PLC.
  • Page 221 Section 9-3 I/O Memory Allocation Address Name 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...
  • Page 222 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A295 A29511 No END ON when there isn’t an 1: No END Same as Error Flag END(001) instruction in each 0: Normal CS/CJ-series program within a task. condition PLC.
  • Page 223 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A299 Program (A294 contains the task number Left 4 digits Same as Address of the task where program exe- of the pro- CS/CJ-series Where cution was stopped.) gram ad- PLC.
  • Page 224 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A343 A34300 Memory Indicates the type of Memory 0: None Set as Memory 4:Flash Card Type Card, if any, installed. Card is always A34302 4: Flash installed.
  • Page 225 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A344 EM File Contains the starting bank num- 0000 to Same as Memory ber of EM file memory (bank 000C Hex CS/CJ-series Starting number of the first formatted PLC.
  • Page 226 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A360 to A36001 Executed The flag corresponding to the 1: That FAL Same as A391 FAL Num- specified FAL number will be was exe- CS/CJ-series A39115 ber Flags...
  • Page 227 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A392 A39212 Peripheral ON when a communications 1: Error Not used. Port Com- error has occurred at the periph- munica- eral port. (Not valid in peripheral 0: No error tions Error bus mode or NT Link mode.)
  • Page 228 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A400 Error code When a non-fatal error (user- Error code Same as defined FALS(006) or system CS/CJ-series error) or a fatal error (user- PLC. defined FALS(007) or system error) occurs, the 4-digit hexa- decimal error code is written to...
  • Page 229 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A401 A40110 I/O Set ting ON when an Input Unit has been 1: Error Not used. Error Flag installed in an Output Unit’s slot 0: No error (Fatal error) or vice versa, so the Input and...
  • Page 230 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A402 A40202 Special I/O ON when an installed Special I/O 1: Setting Not used. Unit Setting Unit does not match the Special error de- Error Flag I/O Unit registered in the I/O ta- tected...
  • Page 231 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A402 A40207 CS/CJ- ON when an error occurs in a 1: Error in Not used. series CPU data exchange between the CPU one or Bus Unit Unit and a CS/CJ-series CPU more Units...
  • Page 232 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A402 A40213 Interrupt ON when the Detect Interrupt 1: Interrupt Not used. Task Error Task Errors setting in the PLC task error Flag Setup is set to “Detect” and an 0: No error (Non-fatal interrupt task is executed for...
  • Page 233 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A403 A40309 Memory ON when automatic transfer at 1: Error Same as Card Start- startup has been selected and an 0: No error CS/CJ-series up Transfer error occurs during automatic PLC.
  • Page 234 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A407 A40700 Too Many The 6 possible causes of the Too 0000 to Not used. I/O Points, Many I/O Points Error are listed 1FFF A40712 Details below.
  • Page 235 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A408 A40800 Basic I/O When an error has occurred in a 00 to 09 Not used. Unit Error, Basic I/O Unit (including C200H hexadeci- A40807 Slot Num- Group-2 High-density I/O Units...
  • Page 236 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A417 A41700 CS/CJ- When an error occurs in a data 1: Error Not used. series CPU exchange between the CPU Unit 0: No error A41715 Bus Unit and a CS/CJ-series CPU Bus...
  • Page 237 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A426 A42600 Interrupt When A40213 is ON, the content Task num- Not used. Task Error, of these bits depends upon the ber: A42611 Task Num- status of A42615 (the Interrupt 000 to 0FF Task Error Cause Flag).
  • Page 238: Auxiliary Area (Read/Write Area)

    Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A440 Max. Inter- Contains the Maximum Interrupt 0000 to Same as rupt Task Task Processing Time in units of FFFF CS/CJ-series Processing 0.1 ms. hexadeci- PLC.
  • Page 239 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A500 A50014 Error Log Turn this bit ON to reset the Error 0à1: Clear Same as Not reset Reset Bit Log Pointer (A300) to 00. CS/CJ-series in the The contents of the Error Log...
  • Page 240 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A508 A50812 Trace ON when sampling of a region of 1: Trace Same as Completed trace memory has been com- completed CS/CJ-series Flag pleted during execution of a 0: Not PLC.
  • Page 241 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A512 to Power In- These words contain the time at See Func- Same as A513 terruption which the power was interrupted. tion col- CS/CJ-series Time The contents are updated every umn.
  • Page 242 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A527 A52700 Online Ed- The Online Editing Disable Bit Same as When iting Dis- (A52709) is valid only when this A52709 CS/CJ-series valid, on- A52707 able Bit byte contains 5A.
  • Page 243 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A600 to Macro Area When MCRO(099) is executed, it Input data: Same as A603 Input copies the input data from the 4 words CS/CJ-series Words specified source words (input PLC.
  • Page 244 Section 9-3 I/O Memory Allocation Address Name CS/CJ-series PLC CX-Simulator Words Bits Function Settings Function Settings A620 A62100 Communi- The corresponding flag will be 1: Chang- Not used. cations ON when the settings for that A63515 Units 0 to port are being changed. 0: Not 15, Ports 1 The flag will be turned ON when...
  • Page 245: Other Functions

    Section 9-4 Other Functions 9-4 Other Functions 9-4-1 Differences in CX-Programmer Operation I/O Table The Ladder Engine, unlike actual PLCs, does not use the I/O tables. Thus the operation related to I/O tables in the CX-Programmer can not be used. If I/O tables are downloaded from the CX-Programmer, the tables will be set to the Ladder Engine.
  • Page 246: Troubleshooting

    SECTION 10 Troubleshooting 10-1 Error Processing........................232 10-1-1 CX-Programmer ......................232 10-1-2 Debugger and Ladder Engine ..................232 10-1-3 I/O Condition Tool ..................... 234 10-1-4 Data Replay Tool......................235 10-1-5 Data Trace Recording Tool ..................236 10-2 Alarms and Remedies ......................237 10-3 Other Tips for Troubleshooting ....................
  • Page 247: Error Processing

    Section 10-1 Error Processing 10-1 Error Processing 10-1-1 CX-Programmer For the details of errors and remedies when operating the CX-Simulator from the CX-Programmer, refer to the CX-Programmer User manual. 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.
  • Page 248 Section 10-1 Error Processing Symptoms Causes Remedies Failed to start FinsGateway. Wrong execution Re-install the CX-Programmer and the CX-Server, or FinsGateway may have been environment. FinsGateway. installed incorrectly or the set- tings are invalid. Failed to start I/O Condition Tool. Poor resource for 1.
  • Page 249: I/O Condition Tool

    Section 10-1 Error Processing 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 250: Data Replay Tool

    Section 10-1 Error Processing 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 251: Data Trace Recording Tool

    Section 10-1 Error Processing Symptoms Causes Remedies The specified output file could The file does not Specify a Data Replay file or a template file of a cor- not be generated from the tem- exist or has a rect format. plate file.
  • Page 252: Alarms And Remedies

    Section 10-2 Alarms and Remedies 10-2 Alarms and Remedies The following table shows possible alarms and their remedies when executing the CX-Simulator. Remove the alarm causes referring to the remedies. Alarms Causes Remedies A fatal error occurred on CX- Windows system call Exit some application programs and try again.
  • Page 253 Section 10-2 Alarms and Remedies Alarms Causes Remedies Lower the frequency of starting interrupt tasks. Failed to start the interrupt task Too high frequency (Task No. -- ) of starting interrupt tasks. Failed to write command log to the Short disk space, Increase the disk space or change the destination for file.
  • Page 254: Other Tips For Troubleshooting

    Section 10-3 Other Tips for Troubleshooting 10-3 Other Tips for Troubleshooting 10-3-1 Connection Impossible from CX-Programmer The CX-Simulator is disconnected. Connect to the CX-Simulator. Connection to the CX-Simulator does not end normally. Duplicate FINS address? Check the FINS addresses for each unit in the [Network Communications Settings] and that for the communications unit of FinsGateway displayed in the [Work CX-Simulator] window to dissolve the duplication.
  • Page 255: If Network Communications Can Not Be Performed

    Section 10-3 Other Tips for Troubleshooting A timeout occurs in communications. Clicking the [Settings] button of [Change PLC] | [Network Type] will display the [Network Settings]. Change the [Response Timeout] so that it is greater than the average com- puter cycle time. 10-3-2 If Network Communications Can Not Be Performed Normal connection from the CX-Programmer is not possible.
  • Page 256: A Cycle Time Error Occurs

    Section 10-3 Other Tips for Troubleshooting 10-3-4 A Cycle Time Error Occurs Even a short program sometimes causes a cycle time error. A cycle time error can occur if a program is started running in the computer cycle time mode by the CX-Simulator on the computer with a low memory ca- pacity or with a lot of application programs activated.
  • Page 257 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 258: Appendix

    Appendix How to Use Data Trace Recording Tool Outline of Data Trace Recording Tool The Data Trace Recording Tool is a tool for automatically creating multiple Data Trace files, by setting only once, instead of saving values of I/O memory areas of an actual PLC to a Data Trace file (.cdt) through manual operation using the time chart monitoring or the data tracing of the CX-Programmer.
  • Page 259 Appendix How to Use Data Trace Recording Tool Data trace start Read Data trace start Data trace start flag Trace trigger flag Trace trigger monitor flag ON while execut- ing trace flag ON when com- pleting trace flag Sampling Missed Saved data Saved data data...
  • Page 260 Appendix How to Use Data Trace Recording Tool Explanation for Each Part of the Window Names and Functions Target PLC to Trace Sampling Area Sampling interval Abort Value Trace Data Record file Trace Status Options button Write settings Start button button Read settings Exit button...
  • Page 261 Appendix How to Use Data Trace Recording Tool Item Description Limit of values Trace status Display the Trace Status while tracing data. Elapsed The time elapsed after execution started in the unit of hour/minute/second (e.g. 1 hour 10 minutes 30 seconds). Trace number Number of traced samples.
  • Page 262 Appendix How to Use Data Trace Recording Tool The dialog box for editing the sampling address 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.
  • Page 263 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. Select the Data Trace Recording Tool from [Start] | [Program] | [Omron] 1,2,3… | [CX-Simulator] to display the execution window of the Data Trace Re- cording Tool.
  • Page 264 Appendix How to Use Data Trace Recording Tool 2. Confirm the FINS address (network/node address) for the target PLC is correctly set. 3. Set the sampling area. Click the [Edit] button to add/correct the sampling address. Click the [Edit] button on the Bit Address side for the bit address and on the Word Address side for the word address.
  • Page 265 Appendix How to Use Data Trace Recording Tool 10. Set options. The following settings are available. Add saving Add data to the existing file. · Multiple Saving Divide and save the data to multiple files when the · number of sampling data exceeds the limit of the Data Trace file (.cdt).
  • Page 266 Unit, refer to the manual attached to the RUNTIME version of the Fins- Gateway. Setting the Serial Communications Unit 1. Select the FinsGateway Service Manager in [Start] | [Program] | [Omron] | 1,2,3… [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.
  • Page 267 Appendix How to Use Data Trace Recording Tool Network Setting button 3. Click the [Network Setting] button to display the [FinsGateway Network Navigator] window. AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 268 Appendix How to Use Data Trace Recording Tool 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 269 Appendix How to Use Data Trace Recording Tool 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. AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 270: 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-03 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 271 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 272 Tel: (31)2356-81-300/Fax: (31)2356-81-388 OMRON ELECTRONICS, INC. 1 East Commerce Drive, Schaumburg, IL 60173 U.S.A. Tel: (1)847-843-7900/Fax: (1)847-843-8568 OMRON ASIA PACIFIC PTE. LTD. 83 Clemenceau Avenue, #11-01, UE Square, Singapore 239920 Tel: (65)6835-3011/Fax: (65)6835-2711 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 273 Authorized Distributor: Printed in Japan Cat. No. W366-E1-03 Note: Specifications subject to change without notice. AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...
  • Page 274 AUDIN - 8, avenue de la malle - 51370 Saint Brice Courcelles - Tel : 03.26.04.20.21 - Fax : 03.26.04.28.20 - Web : http: www.audin.fr - Email : info@audin.fr...

Table of Contents