Omron SYSMAC CV Series Operation Manual

Omron SYSMAC CV Series Operation Manual

Host link system, unit
Hide thumbs Also See for SYSMAC CV Series:
Table of Contents

Advertisement

Cat. No. W205-E1-04
SYSMAC CV-series
CV500/CV1000/CV2000/CVM1
Programmable Controllers

Advertisement

Table of Contents
loading

Summary of Contents for Omron SYSMAC CV Series

  • Page 1 Cat. No. W205-E1-04 SYSMAC CV-series CV500/CV1000/CV2000/CVM1 Programmable Controllers...
  • Page 2 SYSMAC CV-series CV500/CV1000/CV2000/CVM1 Programmable Controllers Operation Manual: Host Link System, CV500-LK201 Host Link Unit Revised May 2002...
  • Page 3 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 without notice.
  • Page 4: Table Of Contents

    TABLE OF CONTENTS SECTION 1 Introduction ........Overview .
  • Page 5 TABLE OF CONTENTS 5-19 SV CHANGE 1 ............5-20 SV CHANGE 2 .
  • Page 6 About this Manual: This manual describes the host interface built into the SYSMAC CV-series Programmable Controllers (PCs), and CVM1, and the CV500-LK201 Host Link Unit. The host interface provided by the CPU is func- tionally the same as the interface provided in the CV500-LK201 Host Link Units. This manual is designed to accommodate users of either interface type and the user should not feel that both types of interfaces are required to run a fully operational Host Link System.
  • Page 7 Four Appendices provide information on standard models, specifications, and Host Link Unit memory allocations. Sample programs which include commands for the host computer are also provided. WARNING Failure to read and understand the information provided in this manual may result in personal injury or death, damage to the product, or product failure.
  • Page 8: Introduction

    SECTION 1 Introduction This section provides an overview of the operation, features, and technical specifications of the Host Link System. It also describes the types of system configuration available for the Host Link System using either RS-422 or RS-232C connections. Overview .
  • Page 9: Overview

    Section 1-1 Overview Overview 1-1-1 Communications The Host Link System is an optimum and economical communications method for any size of FA system. The Host Link System can incorporate one or more host computers interconnected to one or more PCs. A Host Link System allows a host computer to monitor the operating status and data areas of the PCs and to control PC operation through transfers of data and programs.
  • Page 10 Section 1-1 Overview Double-check System All communications are subject to a parity check and frame check sequence (FCS) to help eliminate almost all transmission data errors. Two Communications Ports The Host Link Unit incorporates two communications ports: a 25-pin RS-232C port and a 9-pin RS-232C or RS-422 (selectable) port.
  • Page 11 Section 1-1 Overview 1-1-4 Differences between C-series and CVM1/CV-series Host Links This section lists the differences between C-series and CVM1/CV-series Host Links. Use this information as reference when converting from the C Series to the CVM1/CV Series. Frame Size when Dividing Transmissions into Multiple Frames Item C-series Host Links CVM1/CV-series Host Links...
  • Page 12: System Configuration

    Section 1-2 System Configuration 1-1-5 New/Improved Commands for the CPU Host Interface New C-mode commands have been added for the CPU Host Interface and the functionality of existing commands has been improved as follows: New Commands • RL/WL: Read and write commands for the CIO Area. •...
  • Page 13 Interfaces Note The cable connecting the Optical Interface and the connector on the PC (for con- version between 25 pins and 9 pins) is not available from OMRON. Link Adapters The host computer and PC can be connected via an optical fiber cable and two 3G2A9-AL004-E (or 3G2A9-AL004-PE) Link Adapters.
  • Page 14 Section 1-2 System Configuration 1-2-2 RS-422 RS-422 lines can be used to connected up to 32 PCs to the same host computer. Transmission Distance The maximum transmission distance varies with the method in which a host computer and PCs are connected. There are two connection methods available: via RS-232C wire cable and via optical fiber cable.
  • Page 15: Communications Specifications

    Section 1-3 Communications Specifications with 3G2A9-AL002-E or 3G2A9-AL002-PE Link Adapters, the 3G2A9-AL004-E or 3G2A9-AL004-PE Link Adapter would be replaced with a 3G2A9-AL004-E or 3G2A9-AL004-PE Link Adapter then 3G2A9-AL004-E 3G2A9-AL004-PE Link Adapters would be inserted before each PC to convert back to wire cable. The maximum transmission distance varies with the Link Adapter and the kind of optical fiber cable as follows: Cable 3G2A9-AL002-PE...
  • Page 16: Gateway Function

    Section 1-4 Gateway Function Gateway Function A host computer in a Host Link System can communicate with CV-series PCs or IBM PC/AT or compatible computers on other networks through the Host Link System. Communications are possible to up to two networks away from the local Host Link System (three including the local Host Link System).
  • Page 17: Switch Settings And Communications Parameters

    SECTION 2 Switch Settings and Communications Parameters This section provides information on setting the switches that control communications parameters for the CPU. These switches can be also be set to use the communications parameters specified in the PC Setup in the CPU. In addition, this sec- tion provides information on the Host Link Unit switches setting and CPU Bus Unit System Setup parameters that control communications.
  • Page 18: Cpu Settings And Parameters

    Section 2-1 CPU Settings and Parameters CPU Settings and Parameters 2-1-1 Interface-related Components on CPU The following illustration shows the various parts of a CV-series CPU that are related to a Host Link System. Details on the operation of these parts are pro- vided later in the manual.
  • Page 19: Host Link Unit Settings And Parameters

    Section 2-2 Host Link Unit Settings and Parameters 2. The cable connecting to the host interface is not available from OMRON. Refer to Section 3 Installation and prepare an appropriate cable. 3. For setting the termination resistance of the pin 6, refer to Section 3 Installa- tion.
  • Page 20: Host Link Unit Components

    5 V is not supplied to communications port 1. DIP switch Basic operations of the Unit are set here. Terminator switch Connects termination resistance for RS-422 communications. Bottom Disconnects termination resistance. Note Cables for the connectors (ports 1 and 2) are not available from OMRON.
  • Page 21 Section 2-2 Host Link Unit Settings and Parameters Indicators The status of the Host Link Unit can be determined using the status of the indica- tors on the Host Link Unit. ERC1 ERC2 Indicator Color Status Meaning Green The Host Link Unit is normal. Not lit The Host Link Unit has an error.
  • Page 22 Section 2-2 Host Link Unit Settings and Parameters Rotary Switch Settings The Host Link Unit provides rotary switches on the front panel used to set the Host Link Unit’s unit number and node number for identification in the Host Link System.
  • Page 23 Section 2-2 Host Link Unit Settings and Parameters 2. Each node number must be unique in the same Host Link System. 3. The node number of the Host Link Unit’s communications port 1 is fixed to 4. The node number of the CPU’s host interface is set in the PC Setup. (In the PC Setup, the node number of the host interface is called the “unit #.”) DIP Switch Settings Pins 1 through 6 on Host Link Unit’s DIP switch are used to control certain com-...
  • Page 24: Cpu Bus Unit System Setup

    Section 2-2 Host Link Unit Settings and Parameters 1995.) The settings for those with a lot number of “jj65” or smaller (manufac- tured in and before June 1995) are as follows: Stop Bits: Baud Rate: 2400 bps. Switch Setting Procedure Switch Settings for The setting procedure for the DIP switch is as follows for port 1 (25 pins): Communications Port 1...
  • Page 25 Section 2-2 Host Link Unit Settings and Parameters 5. Select “CPU Bus Setting.” The following menu will be displayed. 6. Select “CPU Bus Unit System Setup.” The following screen will appear. 7. Press F10 and then input the unit number of the Host Link Unit. The default value will be displayed if no other value has been input.
  • Page 26 Section 2-2 Host Link Unit Settings and Parameters Settings for The setting of communications port 1 are as follows: Communications Port 1 +0 byte Baud rate Parity Parity 9600 bps Even number 1200 bps Odd number 2400 bps 4800 bps 9600 bps 19200 bps Stop bits...
  • Page 27 Section 2-2 Host Link Unit Settings and Parameters Setting of Communications The setting of communications port 2 is as follows: Port 2 +10 byte Baud rate Parity Parity 9600 bps Even number 1200 bps Odd number 2400 bps 4800 bps 9600 bps 19200 bps Stop bits...
  • Page 28 Section 2-2 Host Link Unit Settings and Parameters Host Link Unit System Use the following procedure to set the CPU Bus Unit System Setup for the Host Setting Procedure Link Unit. 1, 2, 3... 1. Set the baud rate, number of stop bits, parity, and data length as required. 2.
  • Page 29 Section 2-2 Host Link Unit Settings and Parameters The following flowcharts illustrates the above procedure. Set the baud rate, number of stop bits, par- ity, and data length. What is to be connected? Programmable Terminal Host computer Select the full duplex Does the Host Link Unit communications send commands to the...
  • Page 30: Installation

    SECTION 3 Installation This section describes how to connect the Host Link Unit, host link interfaces, Link Adapters, and host computer. Refer to Section 1 Introduction for details on the system configuration. Refer to the CV-series PC Installation Guide for general instal- lation procedures and precautions.
  • Page 31: Host Link Unit Dimensions

    Section 3-1 Host Link Unit Dimensions Host Link Unit Dimensions All dimensions are in millimeters in the following diagram of the CV500-LK201 Host Link Unit. For the CPU dimensions and general installation procedures, refer to the CV-series PC Installation Guide. 34.5...
  • Page 32: Mounting The Host Link Unit

    Section 3-3 Connection Cables for the Host Link Unit Mounting the Host Link Unit Mounting Position Up to four CV500-LK201 Host Link Units can be mounted to any of the slots on a CV-series CPU Rack or Expansion CPU Rack except when the CVM1-BC103 or CVM1-BC053 Backplane is used.
  • Page 33: Rs-232C Connections

    Section 3-4 RS-232C Connections To connect to a host computer, you will need to prepare a full-duplex or half-du- plex cable according to the information starting on page 35. Communications Port 2 Port 1 supports either RS-232C or RS-422 connections. RS-232C connections are described in the next subsection and RS-422 connections are described be- Connection Cable ginning on page 31.
  • Page 34: Host Link Unit Connections

    1. Ground the FG terminals of both the PC and the host computer to a a resis- tance of 100 Ω or less. For details refer to the CV-series PC Installation Guide and your host computer manual. 2. The following Connector and Connector Hood (both OMRON) are provided with the CPU. Connector...
  • Page 35 Section 3-4 RS-232C Connections Host Link Unit Host Link Unit Signal Symbol Direction of signal connector pin no. connector pin no. Input Output Signal ground SG (GND) Detect carrier data CD (DCD) 5 V for optical interface Data terminal ready ER (DTR) Communications Port 2 Electrical characteristics: Conforming to EIA RS-232C...
  • Page 36: Connections

    Section 3-5 RS-422 Connections Line Connections The following diagram shows the connections between the host computer and the Host Link Unit. When RS-232C cable is used, a host computer can be con- nected to only one PC. Host Pin number Host computer Link 25-pin...
  • Page 37 1. Ground the FG terminals of both the PC and the host computer to a a resis- tance of 100 Ω or less. For details refer to the CV-series PC Installation Guide and your host computer manual. 2. The following Connector and Connector Hood (both OMRON) are provided with the CPU. Connector...
  • Page 38: Host Link Unit Connections

    Section 3-5 RS-422 Connections Connect the frame ground to the shield at the connections to the PCs and at either end of the connections between Link Adapters. An example is shown below. CV-series PC CV-series PC CV-series PC Host computer RS-232C (15 m max.) RS-422...
  • Page 39 Section 3-5 RS-422 Connections Line Connections The following diagram shows the connections between a Host Link Unit and a 3G2A9-AL004 Link Adapter. When RS-422 cable is used, multiple PCs can be connected to one host computer by wiring through Link Adapters (see illustra- tion on page 35).
  • Page 40: 1-To-1 Connection Examples

    Section 3-6 1-to-1 Connection Examples Connecting Shield to FG Connect the frame ground to the shield at the connections to the PCs and at ei- ther end of the connections between Link Adapters. An example is shown below. CV-series PC CV-series PC CV-series PC Host computer...
  • Page 41 Section 3-6 1-to-1 Connection Examples Half Duplex The following diagram shows 1-to-1 host link connections using communica- tions port 1 in half duplex. Half-duplex communications must be set using the Host Link Unit’s CPU Bus Unit System Setup. Host Link Unit Host computer Signal name...
  • Page 42: Host Link Unit Connection To Pt

    2. The CTS selector of the Host Link Unit must be turned ON (fixed to 0 V). 3-6-2 Host Link Unit Connection to PT The diagrams below show 1-to-1 host link connections using OMRON’s NT20M or NT600M PTs and the Host Link Unit via the PT’s NT600M-LK201 Host Link Interface Unit.
  • Page 43: Optical Interface Connections

    Section 3-7 Optical Interface Connections Connections via The following diagram shows the connections via communications port 2. Communications Port 2 Port 2 Host Link Interface Unit Signal name number number Connector hood SD (TXD) RD (RXD) RS-232C RS-232C RS (RTS) interface interface CS (CTS)
  • Page 44: Connections To Optical Module

    Section 3-7 Optical Interface Connections 3-7-2 Connections to Optical Module The connection method of the optical interface varies with the communications port. Communications Port 1 It is possible to connect an Optical Module directly to communications port 1. By turning on the 5-V power supply switch of the Host Link Unit, 5 V is supplied to pin (25-pin connector) 14 of the communications port 1 so that no AC Adapter is required for the com- munications port 1.
  • Page 45: 1-To-N Connection Example

    Section 3-8 1-to-N Connection Example Note It is not necessary to connect these terminals before connecting the host com- puter to the Host Link Unit as long as the CTS selector is turned ON. 1-to-N Connection Example The following diagrams show connections between the Host Link Unit and Link Adapters and between the Link Adapters and host computer.
  • Page 46 Section 3-8 1-to-N Connection Example Cable Lengths and Termination Resistance When connecting more than one PC to a host computer using RS-422, but sure to keep cable lengths within limits and to set termination resistance on the proper Units as described below. Kind of Cable Use shielded twisted-pair cable and separate the cables from other signal lines.
  • Page 47: Wiring

    Section 3-9 Wiring Wiring Use the following procedures to wire RS-232C and RS-422 cables. Connect the shield to the frame ground (FG, the connector hood at the PC) on the connector for the PC in all Systems and to one end of each line con- necting two Link Adapters in RS-422 Systems.
  • Page 48: Soldering

    Section 3-9 Wiring Wrap electrician’s tape over the top and end of the the cut sheath. Electrician’s tape 3-9-3 Soldering Use the following procedure when soldering connectors. 1, 2, 3... 1. Place heat-shrinking tubes over all wires. Be sure the tubes are far enough away from the end so as not to interfere with the soldering.
  • Page 49: Hood Assembly

    Section 3-9 Wiring 3-9-4 Hood Assembly Assemble the hood as shown in the following diagram. Boot Ç Ç Ç Ç Aluminum foil tape Hood (FG) connected Hood (FG) not connected to to shield shield 3-9-5 Recommended Cables and Connectors Recommended Cable The following cables are recommended for connecting the host computer and the Host Link Unit.
  • Page 50: Cable Lengths

    Section 3-9 Wiring Cable Lengths 3-9-7 Wire Cables RS-232C cable 15 m max. Total length of RS-422 cable 500 m max. Length of each RS-422 branch 10 m max. Optical Fiber Cables Cable Units with “P” in suffix Units without “P” in suffix 20 m Connection impossible 200 m...
  • Page 51: Communications

    SECTION 4 Communications This section describes both the test methods used to check communications and the specifications of the commands that are used for communications control and timing. For communications in CV (FINS) mode, refer to FINS Command Reference Manual. Initial Communications Test .
  • Page 52: Initial Communications Test

    Section 4-1 Initial Communications Test Initial Communications Test Prior to actual communications between the PC(s) and host computer, check the system by following the steps listed below. 1. Check the settings of the DIP switches and selectors. 1, 2, 3... 2.
  • Page 53: Wrap Communications Test

    Section 4-2 Wrap Communications Test Program 10 CLOSE 1 20 CLS 30 ON ERROR GOTO 300 Open RS-232C 40 OPEN ”COM:E72” FOR OUTPUT AS #1 ..50 ’∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗∗ 60 ∗KEYIN Test data input 70 INPUT ”TEST DATA INPUT -----”, TD$ Creation of Unit no.
  • Page 54: Connector Wiring

    Section 4-2 Wrap Communications Test Wrap Communications Test at Communications Port 2 Setting 3 (see note) Note Pin 3 need not be set if the test is executed using RS-422. 4. Specify either RS-232C or RS-422 when executing the test at communica- tions port 2.
  • Page 55: Test Contents

    Section 4-2 Wrap Communications Test Communications Port 2 Using RS-232C Using RS-422 Pin no. Signal Pin no. Signal 4-2-2 Test Contents The wrap communications test is executed at the communications port desig- nated on the DIP switch. By wiring the connector as shown in the previous dia- grams, data is looped back.
  • Page 56: C-Mode Commands

    Section 4-3 C-mode Commands The result of the test for each communications speed is recorded at words 16 to 20 in the portion of the CPU Bus Unit Area allocated to the Host Link Unit in the PC. The following is an example of the contents of the record at a baud rate of 1,200 bps.
  • Page 57: Communications Protocol

    Section 4-3 C-mode Commands Caution The node number assigned to a Host Link Unit on a Host Link System network is called the “unit number” for the PC in the PC Setup and in the header portions of command formats in the CV-series PC Operation Manual: Host Interface. When coding commands for the Host Link Unit, be sure to use the node number and not the unit number.
  • Page 58: Blocks Over 131 Characters Long

    Section 4-3 C-mode Commands Node Number The block format includes a node number so that the host computer can identify the Unit that the host computer is communicating with. If the Unit is a CPU, the node number set in the PC Setup must be used (the node number is called the unit number in the PC Setup).
  • Page 59: Right To Send

    Section 4-3 C-mode Commands 4-3-4 Right to Send The terminator in a command block transferred by the host computer enables the PC to send a response. Command block Node No. Host Computer Header Text Terminator Right to send transferred Node No. Header Text Terminator...
  • Page 60: Frame Checksum (Fcs) Calculation

    Section 4-3 C-mode Commands 4-3-5 Frame Checksum (FCS) Calculation The frame checksum is an 8-bit value converted into two ASCII characters. The 8-bit value is the result of an EXCLUSIVE OR sequentially performed between each character in a transmission, from the first character in the frame to the last character of the text in that frame.
  • Page 61: Sending Commands To Host Computers

    Section 4-4 Sending Commands to Host Computers Sending Commands to Host Computers Unlike the host interface on the CPU, a Host Link Unit has the right to start com- munications. This means that the PC can send commands (i.e., SEND(192), RECV(193), and CMND(194) instructions) to the host computer.
  • Page 62: Command Format Received By Host Computers

    Section 4-4 Sending Commands to Host Computers 3. The control data set is different from usual control data when commands (SEND(192), RECV(193), CMND(194) instructions) are sent by the PC. For program examples that include commands for the host computer, refer to Appendix D Sample Programs Including Commands for Host Computer.
  • Page 63: Response Format Sent By Host Computer

    Section 4-4 Sending Commands to Host Computers Automatically set by the CPU for SEND(192), RECV(193), and CMND(194) instructions. 4-4-4 Response Format Sent by Host Computer When a CV-mode command is received by the host computer, the host comput- er must return a response in the following format. Node no.
  • Page 64 Section 4-4 Sending Commands to Host Computers SEND(192) Instruction The SEND(192) instruction enables the memory area data in the local PC to be sent to the host computer. When the SEND(192) instruction is executed, the CV-mode command “MEMORY AREA WRITE” (command code 0102) is sent to the host computer in the following command block format.
  • Page 65 Section 4-4 Sending Commands to Host Computers 9. Response monitor time: Set the response monitor time if the response des- ignation is set to OFF. The setting range of each control data item is as follows: Item Range No. of words transferred 0001 to 0100 (1 to 256 words) Host Link Unit 00 or 01: Communications port 1...
  • Page 66 Section 4-4 Sending Commands to Host Computers Before executing the RECV(193) instruction, it is necessary to set the following control data beginning with the first control data word. Word C + 0 No. of words to be transferred C + 1 Host Link Unit Communications port no.
  • Page 67 Section 4-4 Sending Commands to Host Computers CMND(194) Instruction The CMND(194) instruction enables the Host Link Unit to control the host com- puter using CV-mode commands and responses. When the CMND(194) instruction is executed, the CV-mode command set with the control data will be sent to the host computer in the following command block format.
  • Page 68: Communications Timing

    Section 4-5 Communications Timing 6. Destination unit address: Set the destination unit address of the Host Link Unit that is connected to the host computer. 7. Response designation: Usually set this bit to 0 (OFF). If no response is re- quired, set this bit to 1 (ON).
  • Page 69 Section 4-5 Communications Timing Full-duplex The following timing charts show the transmission timing in full-duplex commu- nications in which the host computer is sending data. Communications Response required Command Response Host computer Host Link Unit Command Response Execution possible flag Reception of command End of reception Response not required...
  • Page 70 Section 4-5 Communications Timing computer is required, the execution possible flag will turn ON when the com- mand to the host computer is delivered from the PC to the Host Link Unit. The following timing charts show the transmission timing in full-duplex commu- nications in which the host computer is waiting to send a response after the host computer transmitted data.
  • Page 71 Section 4-5 Communications Timing Half-duplex The following timing charts show the transmission timing in half-duplex commu- nications in which the host computer is sending data. Communications Response required Command Response Host computer Command Response Host Link Unit Execution possible flag Reception of command End of reception Response not required...
  • Page 72 Section 4-5 Communications Timing Link Unit completes transmitting the response. If no response from the host computer is required, the execution possible flag will turn ON when the com- mand to the host computer is delivered from the PC to the Host Link Unit. The following timing charts show the transmission timing in half-duplex commu- nications in which the host computer is waiting to send a response after the host computer transmitted data.
  • Page 73 Section 4-5 Communications Timing has received the Xon code from the host computer (refer to (2) in the above tim- ing chart). Data transmission from Host Computer Data Succeeding data Host computer Host Link Unit Xoff When the host computer receives an Xoff code from the Host Link Unit, the host computer stops transmitting data (refer to the above (1)) and when the host com- puter receives an Xon code from the Host Link Unit, the host computer resumes transmitting the data.
  • Page 74 Section 4-5 Communications Timing 4. *2 is the time between CD signal detection and data transmission interrup- tion, which changes with the baud rate as follows: Baud rate (bps) Maximum time (ms) 1,200 20.0 2,400 11.0 4,800 9,600 19,200 1. The RS signal is OFF when no data is transmitted. 1, 2, 3...
  • Page 75: C-Mode Commands

    SECTION 5 C-mode Commands This section provides details on all C-mode commands. For basic information on C-mode communications, refer to 4-3 C-mode Commands. C-mode Command List ........... . CIO AREA READ .
  • Page 76: C-Mode Command List

    Section 5-1 C-mode Command List C-mode Command List The following tables lists all of the C-mode commands supported by Host Link Unit. The CPU supports all the following commands except the I/O REGISTER and the INITIALIZE commands. These two commands are not supported by the host interface.
  • Page 77: Cio Area Read

    Section 5-3 LINK AREA READ Header Name PC mode Page code MONITOR DEBUG PROGRAM Undefined Command Error (response only) INITIALIZE (command only) Valid Valid Valid Valid Note 1. The I/O REGISTER command (QQ) can be used only for CPUs of version 1 or later or for Host Link Units.
  • Page 78: Holding Area Read

    Section 5-5 PV READ Parameters Beginning word (command): Specify in BCD the address of first word to be read from Link Area as an offset from CIO 1000. The setting can be between 0000 and 0063. No. of words (command): Specify in BCD the number of words to read from the CIO Area between 0001 and 0064.
  • Page 79: Tc Status Read

    Section 5-7 DM AREA READ Parameters Beginning timer/counter (command): Specify in BCD the address of the first timer to be read from the Timer Area (0000 through 0511 for the CV500 or CVM1-CPU01-E and 0000 through 1023 for the CV1000, CV2000, or CVM1-CPU11-E) or counter in the Counter Area (2048 through 2559 for the CV500 or CVM1-CPU01-E and 2048 through 3071 for the CV1000, CV2000, or CVM1-CPU11-E).
  • Page 80: Auxiliary Area Read

    Section 5-9 DM AREA READ (FIXED) Response Format x 10 x 10 x 16 x 16 x 16 x 16 x 16 x 16 Unit no. Header code Response Data from beginning word Terminator code Data Parameters Beginning word (command): Specify in BCD the address of the first word to be read from the DM Area (0000 through 8191 for the the CV500 or CVM1-CPU01-E and 0000 through 9999 for the CV1000, CV2000, or CVM1-CPU11-E).
  • Page 81: Cio Area Write

    Section 5-11 LINK AREA WRITE Response Format x 10 x 10 x 16 x 16 x 16 x 16 x 16 x 16 Unit no. Header code Response Data from beginning word Terminator code Data Parameters Data (response): The data of the eight words will be read in the hexadecimal. 5-10 CIO AREA WRITE Writes data to the CIO area starting from the specified word.
  • Page 82: Holding Area Write

    Section 5-13 PV WRITE Parameters Beginning word (command): Specify in BCD the address of first word to be written in the Link Area as an offset from CIO 1000. The setting can be between 0000 and 0063. Data (command): Specify the data to be written in hexadecimal. Note The boundary of the data area must not be exceeded.
  • Page 83: Dm Area Write

    Section 5-15 AUXILIARY AREA WRITE Parameters Beginning timer/counter (command): Specify in BCD the address of the first timer to be written to in the Timer Area (0000 through 0511 for the CV500 or CVM1-CPU01-E and 0000 through 1023 for the CV1000, CV2000, or CVM1-CPU11-E) or counter to be written to in the Counter Area (2048 through 2559 for the CV500 or CVM1-CPU01-E and 2048 through 3071 for the CV1000, CV2000, or CVM1-CPU11-E).
  • Page 84: Sv Read 1

    Section 5-16 SV READ 1 Response Format x 10 x 10 x 16 x 16 Unit no. Header Response Terminator code code Parameters Beginning word (command): Specify in BCD the address of the first word to be written to in the Auxiliary Area (0000 through 0255). Data (command): Specify the data to be written in hexadecimal.
  • Page 85: Sv Read 2

    Section 5-17 SV READ 2 Parameters Timer/Counter instruction (command): Specify in four letters the instruction used to create the timer/counter (see below). Timer/Counter number (command): Specify the timer/counter number used to define the timer/counter. Timer/Counter instruction Instruction Timer/Counter number HIGH-SPEED TIMER 000 to 0511 WAIT (TMHW<015>) (CVM1-CPU01-EV2...
  • Page 86 Section 5-17 SV READ 2 Parameters Address (command): Specify the address from which to start searching for the timer/counter instruction in four digits of BCD. Timer/Counter instruction (command): Specify in four letters the instruction used to create the timer/counter (see below). Timer/Counter number (command): Specify the timer/counter number used to define the timer/counter.
  • Page 87: Sv Read 3

    Section 5-18 SV READ 3 5-18 SV READ 3 Finds the specified timer or counter instruction in the program (main program area) starting from the specified address and reads the constant SV in 4-digit BCD or reads the address of the word containing the SV. This command can be used to start reading past 10K words of program memory, i.e., 6-digit addresses.
  • Page 88 Section 5-19 SV CHANGE 1 Operand (response): Specifies whether a constant or word was used to define the timer/counter and, if a word was used, specifies the data area of the word (see below). New SV (response): The SV of the specified instruction in BCD or the address of the word used for the SV.
  • Page 89: Sv Change 1

    Section 5-20 SV CHANGE 2 Response Format x 10 x 10 x 16 x 16 Unit no. Header Response Terminator code code Parameters Timer/Counter instruction (command): Specify in four letters the instruction used to create the timer/counter (see below). Timer/Counter number (command): Specify the timer/counter number used to define the timer/counter.
  • Page 90 Section 5-20 SV CHANGE 2 Response Format x 10 x 10 x 16 x 16 Unit no. Header Response Terminator code code Parameters Address (command): Specify the address from which to start searching for the timer/counter instruction in four digits of BCD. Timer/Counter instruction (command): Specify in four letters the instruction used to create the timer/counter (see below).
  • Page 91: Sv Change 3

    Section 5-21 SV CHANGE 3 Operand (command): Specifies whether to use a constant or word to change the SV of the timer/counter and, if a word is used, specifies the data area of the word (see below). New SV (command): Specifies the constant or address to change the SV to in BCD.
  • Page 92 Section 5-21 SV CHANGE 3 Response Format x 10 x 10 x 16 x 16 Unit no. Header Response Terminator code code Parameters Address (command): Specify the address from which to start searching for the timer/counter instruction in six digits of BCD. Timer/Counter instruction (command): Specify in four letters the instruction used to create the timer/counter (see below).
  • Page 93: Status Read

    Section 5-22 STATUS READ Operand (command): Specifies whether to use a constant or word to change the SV of the timer/counter and, if a word is used, specifies the data area of the word (see below). New SV (command): Specifies the constant or address to change the SV to in BCD.
  • Page 94: Status Write

    Section 5-23 STATUS WRITE Parameters Status data (response): The status consists of two bytes. The leftmost byte is for the PC’s operating mode and the rightmost byte is for the size of the program area and DM. x 16 x 16 Leftmost byte 15 14 13 12 Mode...
  • Page 95: Error Read

    Section 5-24 ERROR READ 5-24 ERROR READ Reads and clears errors in the PC. Also checks whether previous errors have been cleared. Command Format x 10 x 10 x 10 x 10 Unit no. Header Read Terminator code code Response Format x 10 x 10 x 16...
  • Page 96: Forced Set

    Section 5-26 FORCED RESET 5-25 FORCED SET Force-sets a bit in the CIO Area or a Completion Flag in the Timer, or Counter Area. Bits/flags forced ON with FORCED SET will remain ON until the FORCED SET/RESET CANCEL command is executed. Command Format x 10 x 10...
  • Page 97: Forced Set/Reset Cancel

    Section 5-27 FORCED SET/RESET CANCEL Response Format x 10 x 10 x 16 x 16 Unit no. Header Response Terminator code code Parameters Data area, word, bit (command format): Specify in four characters the CIO, Timer, or Counter Area to be force-reset. Specify in BCD the word (four digits) and the bit to be force-reset (2 digits).
  • Page 98: Pc Model Read

    Section 5-30 PROGRAM READ 5-28 PC MODEL READ Reads the model of the PC. Command Format x 10 x 10 Unit no. Header Terminator code Response Format x 10 x 10 x 16 x 16 x 16 x 16 Unit no. Header Response PC model...
  • Page 99: Program Write

    Section 5-33 I/O REGISTER Response Format x 10 x 10 x 16 x 16 x 16 x 16 Unit no. Header Response 1 byte Terminator code code Program Parameter Program (response): The program data will be as large as the memory size regardless of the size of the program.
  • Page 100 Section 5-33 I/O REGISTER 5-33-1 Registering Words/Bits The following command is used to register words and/or bits to be read out. Words/bits can be registered in the CIO, AR, TIM, CNT, and/or DM Areas Command Format OP1 OP2 OP3 OP4 X10 OR1 OR2 Node no.
  • Page 101 Section 5-33 I/O REGISTER 3. The relevant instructions are TIM, TIMH, TTIM, TIMW, and TMHW. 4. The relevant instructions are CNT, CNTR, and CNTW. 5. Values in parentheses apply to CV1000, CV2000, CVM1-CPU11, and CVM1-CPU21 models. Delimiter (command): By inserting delimiter codes, it is possible to designate up to 128 words and/or bits.
  • Page 102: Abort

    Section 5-36 INITIALIZE 5-34 ABORT Aborts the process being performed by the PC and enables reception of the next command. There is no response. Command Format x 10 x 10 Unit no. Header Terminator code Note The PC requires 100 ms between reception of the ABORT command and the following command.
  • Page 103: Maintenance And Troubleshooting

    SECTION 6 Maintenance and Troubleshooting This section provides information on maintenance and troubleshooting for the Host Link System. For the troubleshooting of the CPU, refer to the CV-series PC Operation Manual: Ladder Diagrams. Maintenance ............. Indicators .
  • Page 104 2. After replacing a defected Host Link Unit with a new one, make sure that the new Unit works properly. 3. When sending a defected Host Link Unit to your OMRON representative, describe the defective condition in detail and attach the description to the Host Link Unit.
  • Page 105 Section 6-2 Indicators Indicators When the Host Link Unit has an error, the cause of the error can be determined from the Host Link Unit’s indicators. The following table lists errors that can occur with the Host Link Unit and probable causes of the errors. Indicator Probable cause Possible correction...
  • Page 106 Section 6-2 Indicators Indicator Probable cause Possible correction ERC2 indicator is lit. The node number setting is wrong Set the node number correctly and (the node number is not between 0 to restart the PC. 31). A break was detected or a parity error, Send correct data.
  • Page 107 C-mode Response Codes Section 6-3 Indicator Probable cause Possible correction SD indicator is lit but RD indicator is The communications path selector Select the communications path not lit. setting (RS-232C or RS-422) is wrong correctly. while communications port 2 is being used.
  • Page 108: Cv-Mode Response Codes

    CV-mode Response Codes Section 6-4 Response Description code Execution is impossible due to PC’s CPU error. (Turn the PC off and on.) The designated memory does not exist. (Turn the CPU off and mount the memory.) The protect switch of the designated memory unit is turned on. (Turn the protect switch off.) These are the same errors as listed above, but Parity error in transmit data the error was discovered and communications...
  • Page 109 CV-mode Response Codes Section 6-4 Responses with Network Communications Node no. Header GCNT Command code Response code Data (1,076 characters) Terminator Response Code Format The bit format of the response code is shown below. 15 14 13 12 Main code Subcode 1: Non-fatal error occurred.
  • Page 110 CV-mode Response Codes Section 6-4 Main Description Sub- Meaning code code Write not possible The specified area is read-only or is write-protected via the key switch, the PROGRAM AREA PROTECT command, or the PC Setup. The specified area is protected. The corresponding data does not exist.
  • Page 111 CV-mode Response Codes Section 6-4 Relaying Errors A relaying error occurs when a command from the Host Link Unit is not able to reach the destination node. There are basically three types of relaying errors: when data is not passed from one Link Unit to another, when data is not passed from a Link Unit to another Unit (e.g., a CPU), and when the destination node or relaying node does not exist.
  • Page 112 Appendix A Standard Models The following tables list some of the OMRON products related to the host interface and Host Link Unit. Refer to the CV-series PC Installation Guide for a general list of CV-series products. Host Link Unit Name...
  • Page 113 M in the model number (replacing the box: j). Connecting Cable RS-422 and RS-232C connecting cables are not sold by OMRON and must be provided by the user. Plastic-clad Optical Fiber Cable Link Adapters with the suffix -P in the model number can be extended up to 200 m by using plastic-clad opti- cal fiber cable.
  • Page 114 Appendix A Standard Models All Plastic Optical-Fiber Cable (APF) Link Adapters with the suffix -P in the model number can be extended up to 20 m. The optical connector for the 3G5A2-PF002 must supplied by the user. Name Specifications Model Cable only, 5 to 100 m in multiples of 5 m, or multiples of Plastic Optical Fiber Cable 3G5A2-PF002...
  • Page 115 Appendix A Standard Models H-PCF Optical Fiber Cords and Cables with Connectors The following diagram illustrates the model number for cables with connectors. tension members and power lines are provided in the cable. Half-lock connectors use the S3200-COCF2511 and are compatible with C200H SYS- MAC LINK or SYSMAC NET Link Unit connectors.
  • Page 116 Appendix A Standard Models Optical Power Tester Head Unit Name Model SYSMAC NET: CV500-SNT31 S3200-CAT2002 SYSMAC LINK: CV500-SLK11 S3200-CAT2702 SYSMAC BUS/2: CV500-RM211/RT211 SYSMAC BUS: 3G2A5-RM001-(P)EV1 S3200-CAT2822 3G2A5-RT001/RT002-(P)EV1 SYSMAC NET: S3200-LSU03-01E S3200-CAT3202 FIT10-IF401...
  • Page 117: B Specifications

    Appendix B Specifications Host Interface Specifications Communications method Four-wire, half duplex Synchronization method Start-stop, 1 or 2 stop bits (set in PC Setup) Baud rate 1200/2400/4800/9600/19200 bps (set in PC Setup) Transmitted code 7- or 8-bit ASCII (set in PC Setup) Error detection Vertical parity, even/odd/none (set in PC Setup), FCS (frame check sequence) Interface...
  • Page 118 Appendix B Specifications Link Adapters The following tables gives the specifications for Link Adapters suitable for use In Host Link Systems. Refer to the Link Adapter Manual for details). Link Adapter Connection Supply Operating Power Weight voltage voltage range consump- tion 3G2A9-AL001 Not required...
  • Page 119: C Host Link Unit Memory Area Allocations

    Appendix C Host Link Unit Memory Area Allocations Auxiliary Area Address Bit(s) Name Function A001 00 to 15 CPU Bus Unit Restart Turn a bit ON and OFF to restart the CPU Bus Unit. The bit numbers Bits correspond to the unit numbers. A015 00 to15 CPU Bus Service...
  • Page 120 Appendix C Host Link Unit Memory Area Allocations CPU Bus Unit Area The status data area of the Host Link Unit is allocated in PC memory according to the unit number as shown in the following table. Each Unit is allocated 25 words. Unit no.
  • Page 121 Appendix C Host Link Unit Memory Area Allocations Details of Status Data Area The bit configuration of each word in the Status Data Area is shown in the following diagrams. Unit Setting Error Flags Word: 1500 + (25 x unit number) + 0 15 14 13 12 1: System Setup switch error 1: Port 1 System Setup error...
  • Page 122 Appendix C Host Link Unit Memory Area Allocations Contents of CPU Bus Unit System Setup for Port 1 Word: 1500 + (25 x unit number) + 2 to 4 15 14 13 12 Data retries (0: no; 1: yes) Baud rate Communications method (0: full duplex;...
  • Page 123 Appendix C Host Link Unit Memory Area Allocations Contents of CPU Bus Unit System Setup for Port 2 Word: 1500 + (25 x unit number) + 7 to 8 15 14 13 12 Baud rate Unit No. 14 13 Data retries (0: no; 1: yes) 9,600 Communications method (0: full duplex;...
  • Page 124 Appendix C Host Link Unit Memory Area Allocations Number of Errors at Port 2 Word: 1500 + (25 x unit number) + 14 15 14 13 12 1: FCS error Number of errors at port 2 1: Invalid data 1: Overrun error 1: Framing error 1: Parity error 1: Break...
  • Page 125 Appendix D Sample Programs Including Commands for Host Computer Program Example 1: Data Transfer to Host Computer (SEND) In this example, the SEND instruction enables the designated word data of the PC to be displayed on the screen of the host computer after the word data is transferred to the host computer. Ladder Program for PC When bit 0000 is ON, the 10-word data of CIO words 100 to 109 is transferred to the host computer connected to port 1 of the Host Link Unit of unit address 10, node 0, network address 0.
  • Page 126: D Sample Programs Including Commands For Host Computer

    Appendix D Sample Programs Including Commands for Host Computer :’Array declaration of the reception data. 110 DIM CHDATA$(300) :’Opens the port. 120 OPEN ”COM:E73” AS #1 130 ’***************************************** Main processing 140 ’********** ********** 150 ’***************************************** :’Data reception via the PC line. 160 INPUT #1,COMMAND$ :’Checks the FCS.
  • Page 127 Appendix D Sample Programs Including Commands for Host Computer Program Example 2: Data Reading from Host Computer (RECV) In this example, the RECV instruction enables the designated PC data to be read and stored in the DM area. Ladder Program for PC When bit 0000 is ON, 6-word data is read from the host computer connected to port 1 of the Host Link Unit of unit address 10, node 0, network address 0 and stored in and after DM 00100.
  • Page 128 Appendix D Sample Programs Including Commands for Host Computer :’Data reception via the PC line. 190 INPUT #1,COMMAND$ :’Checks the FCS. 200 T$=LEFT$(COMMAND$,LEN(COMMAND$)–3) 210 GOSUB *FCS 220 IF FCS$<>MID$(COMMAND$,LEN(COMMAND$)–2,2) THEN ENDCODE$=”1004”:GOTO *RE- SPONSE :’Checks the command code. 240 CMNDCODE$=MID$(COMMAND$,27,4) 250 IF CMNDCODE$<>”0101” THEN ENDCODE$=”0401”:GOTO *RESPONSE 260 FOR I=0 TO VAL(”&H”+MID$(COMMAND$,39,4))–1 :’Set the data to be read.
  • Page 129: Glossary

    Glossary address A number used to identify the location of data or programming instructions in memory or to identify the location of a network or a Unit in a network. advanced instruction An instruction input with a function code that handles data processing opera- tions within ladder diagrams, as opposed to a basic instruction, which makes up the fundamental portion of a ladder diagram.
  • Page 130 Glossary hexadecimal digit. Binary data in memory is thus often expressed in hexadeci- mal for convenience. binary-coded decimal A system used to represent numbers so that every four binary bits is numerically equivalent to one decimal digit. The smallest piece of information that can be represented on a computer. A bit has the value of either zero or one, corresponding to the electrical signals ON and OFF.
  • Page 131 Glossary common data Data that is stored in memory in a PC and that is shared by other PCs in the same system. Each PC has a specified section(s) of the area allocated to it. Each PC writes to the section(s) allocated to it and reads the sections allocated to the oth- er PCs with which it shares the common data.
  • Page 132 Glossary data link area A common data area established through a data link. data link table A table of settings kept in memory that specifies what words are to be part of a data link for all PCs involved in the link. data register A storage location in memory used to hold data.
  • Page 133 Glossary special control lead connected to the EEPROM chip and can be done without having to remove the EEPROM chip from the device in which it is mounted. electrical noise Random variations of one or more electrical characteristics, such as voltage, current, and data, that might interfere with the normal operation of a device.
  • Page 134 Glossary An acronym for Graphic Programming Console. A programming device with advanced programming and debugging capabilities Graphic Programming Console to facilitate PC operation. A Graphic Programming Console is provided with a large display onto which ladder-diagram programs can be written directly in lad- der-diagram symbols for input into the PC without conversion to mnemonic form.
  • Page 135 Glossary I/O response time The time required for an output signal to be sent from the PC in response to an input signal received from an external device. I/O Terminal A Remote I/O Unit connected in a Wired Remote I/O System to provide a limited number of I/O points at one location.
  • Page 136 Glossary IOM (Area) A collective memory area containing all of the memory areas that can be ac- cessed by bit, including timer and counter Completion Flags. The IOM Area in- cludes all memory area memory addresses between 0000 and 0FFF. An acronym for Japanese Industrial Standards.
  • Page 137 Glossary most-significant (bit/word) See leftmost (bit/word). nesting Programming one loop within another loop, programming a call to a subroutine within another subroutine, or programming an IF–ELSE programming section within another IF–ELSE section. Network Service Board A device with an interface to connect devices other than PCs to a SYSMAC NET Link System.
  • Page 138 Glossary operand The values designated as the data to be used for an instruction. An operand can be input as a constant expressing the actual numeric value to be used or as an address to express the location in memory of the data to be used. operating error An error that occurs during actual PC operation as opposed to an initialization error and that occurs before actual operations can begin.
  • Page 139 Glossary Peripheral Device Devices connected to a PC System to aid in system operation. Peripheral de- vices include printers, programming devices, external storage media, etc. peripheral servicing Processing signals to and from peripheral devices, including refreshing, com- munications processing, interrupts, etc. PID Unit A Unit designed for PID control.
  • Page 140 Glossary rack number A number assigned to a Rack according to the order that it is connected to the CPU Rack, with the CPU Rack generally being rack number 0. Rack PC A PC that is composed of Units mounted to one or more Racks. This configura- tion is the most flexible, and most large PCs are Rack PCs.
  • Page 141 Glossary be changed. However, the program or data can be read as many times as de- sired. routing table Tables of setting that specify what networks a device is a member of and what nodes must be passed through to reach other specific networks. See local net- work table and relay network table.
  • Page 142 Unit In OMRON PC terminology, the word Unit is capitalized to indicate any product sold for a PC System. Though most of the names of these products end with the word Unit, not all do, e.g., a Remote Terminal is referred to in a collective sense...
  • Page 143 Glossary unit address A number used to control network communications. Unit addresses are com- puted for Units in various ways, e.g., 10 hex is added to the unit number to deter- mine the unit address for a CPU Bus Unit. unit number A number assigned to some Link Units, Special I/O Units, and CPU Bus Units to facilitate identification when assigning words or other operating parameters.
  • Page 144: Index

    Index FORCED SET/RESET CANCEL, 93 HOLDING AREA READ, 74 HOLDING AREA WRITE, 78 AC Adapter, 5 I/O REGISTER, 95 I/O TABLE GENERATE, 95 assembly tool, 112 INITIALIZE, 98 Auxiliary Area, 117 LINK AREA READ, 73 reading contents of Auxiliary Area words, 76 LINK AREA WRITE, 77 writing to Auxiliary Area words, 79 list, 72...
  • Page 145 Index CPU Bus Unit, System Setup, 18, 120, 121 CPU Bus Unit Area, 118 ladder-diagram instructions, 59 CTS control, 17 Link Adapters, 5, 7, 34, 44, 109 current consumption, 27 as Optical Interfaces in RS-232C communications, 6 CV Support Software, ix Link Area reading contents of Link Area words, 73 CVSS, ix...
  • Page 146 Index port 2 specifications, 115 communications parameters, 17, 21 communications, 8 CTS control, 17 SSS, ix Port Status, 121 Status Data Area, 118 power interruptions, 104 switches node number, 16 program rotary, 16 reading the contents of the PC program memory, 94 unit number, 16 writing to the PC program memory, 95 synchronization method, 8, 116...
  • Page 147: 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. W205-E1-04 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.

Table of Contents