Omron SYSMAC CS1W-SCB41-V1 Operation Manual

Omron SYSMAC CS1W-SCB41-V1 Operation Manual

Sysmac cs series; sysmac cj series. serial communications boards and serial communications units
Table of Contents

Advertisement

Cat. No. W336-E1-09
SYSMAC
CS/CJ Series
CS1W-SCB@@-V1
Serial Communications Boards
CS1W-SCU@@-V1 and
CJ1W-SCU@@-V1
Serial Communications Units

OPERATION MANUAL

Advertisement

Table of Contents
loading

Summary of Contents for Omron SYSMAC CS1W-SCB41-V1

  • Page 1: Operation Manual

    Cat. No. W336-E1-09 SYSMAC CS/CJ Series CS1W-SCB@@-V1 Serial Communications Boards CS1W-SCU@@-V1 and CJ1W-SCU@@-V1 Serial Communications Units OPERATION MANUAL...
  • Page 2 SYSMAC CS/CJ Series Serial Communications Boards and Serial Communications Units Operation Manual Revised February 2008...
  • Page 4 OMRON. No patent liability is assumed with respect to the use of the information contained herein. Moreover, because OMRON is con- stantly striving to improve its high-quality products, the information contained in this manual is subject to change without notice.
  • Page 6 TABLE OF CONTENTS PRECAUTIONS ........xvii Intended Audience .
  • Page 7: Table Of Contents

    TABLE OF CONTENTS SECTION 5 Using Protocol Macros ......145 Overview of the Protocol Macro Functions........Setup Area Allocations .
  • Page 8 TABLE OF CONTENTS SECTION 10 Loopback Test........303 10-1 Executing Loopback Tests .
  • Page 10: About This Manual

    CS1W-SCB@@-V1, CS1W-SCU@@-V1, and Boards to perform serial communications with CJ1W-SCU@@-V1 external devices, including the usage of standard Serial Communications Boards and system protocols for OMRON products. Serial Communications Unit Operation Manual (this manual) SYSMAC CS/CJ-series W341 Provides information on how to program and operate CQM1H-PRO-E1, CQM1-PRO01-E, CS/CJ-series PLCs using a Programming Console.
  • Page 11 About this Manual, Continued This manual contains the following sections. Section 1 introduces the hardware and software functions of the Serial Communications Boards and the Serial Communications Units, including the communications modes, system configurations, and specifications. Section 2 describes the components of the Serial Communications Boards and the Serial Communi- cations Units, the settings required for operation, and the memory allocated in the I/O memory of the CPU Unit for controlling and monitoring communications.
  • Page 12 WHETHER SUCH CLAIM IS BASED ON CONTRACT, WARRANTY, NEGLIGENCE, OR STRICT LIABILITY. In no event shall the responsibility of OMRON for any act exceed the individual price of the product on which liability is asserted. IN NO EVENT SHALL OMRON BE RESPONSIBLE FOR WARRANTY, REPAIR, OR OTHER CLAIMS...
  • Page 13 Application Considerations SUITABILITY FOR USE OMRON shall not be responsible for conformity with any standards, codes, or regulations that apply to the combination of products in the customer's application or use of the products. At the customer's request, OMRON will provide applicable third party certification documents identifying ratings and limitations of use that apply to the products.
  • Page 14 Performance data given in this manual is provided as a guide for the user in determining suitability and does not constitute a warranty. It may represent the result of OMRON's test conditions, and the users must correlate it to actual application requirements. Actual performance is subject to the OMRON Warranty and Limitations of Liability.
  • Page 16 PRECAUTIONS This section provides general precautions for using the CS/CJ-series Serial Communications Boards and Units. The information contained in this section is important for the safe and reliable application of Programmable Controllers. You must read this section and understand the information contained before attempting to set up or operate a PLC system.
  • Page 17: Intended Audience

    It is extremely important that a PLC and all PLC Units be used for the speci- 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 appli- cations.
  • Page 18: Operating Environment Precautions

    Operating Environment Precautions being turned OFF. As a countermeasure for such problems, external safety measures must be provided to ensure safety in the system. !WARNING Do not attempt to take any Unit apart while the power is being supplied. Doing so may result in electric shock.
  • Page 19: Application Precautions

    Application Precautions Application Precautions Observe the following precautions when using the PLC System. !WARNING Always heed these precautions. Failure to abide by the following precautions could lead to serious or possibly fatal injury. • Always connect to a ground of 100 Ω or less when installing the Units. Not connecting to a ground of 100 Ω...
  • Page 20 Application Precautions • Be sure that the Bus Connection Unit and other items with locking devices are properly locked into place. Improper locking may result in malfunction. • Check the user program for proper execution before actually running it on the Unit.
  • Page 21: Conformance To Ec Directives

    Applicable Directives • EMC Directives • Low Voltage Directive Concepts EMC Directives OMRON devices that comply with EC Directives also conform to the related EMC standards so that they can be more easily built into other devices or the xxii...
  • Page 22: Conformance To Ec Directives

    EMC-related performance of the OMRON devices that comply with EC Direc- tives will vary depending on the configuration, wiring, and other conditions of the equipment or control panel on which the OMRON devices are installed. The customer must, therefore, perform the final check to confirm that devices and the overall machine conform to EMC standards.
  • Page 23: Ems Measures For Serial Communications Units

    Unit Versions of CS/CJ-series Serial Communications Boards/Units Recommended Ferrite Cores The following ferrite core (data line noise filter) is recommended: 0443-164151 by Fair-Rite Products Corp. Low impedance, 25 MHz: 90 Ω , 100 MHz: 160 Ω Recommended Mounting Method Mount the core on one turn of the communications cable, as shown in the fol- lowing illustration.
  • Page 24 Unit Versions of CS/CJ-series Serial Communications Boards/Units Example: CS1W-SCB21-V1 CS-series Serial Communications Board Nameplate Unit version 1.3 CS1W-SCB21-V1 SERIAL COMMUNICATION BOARD Lot No. 051020 Ver.1.3 OMRON Corporation MADE IN JAPAN • Serial Communications Units Example: CS1W-SCU21-V1 CS-series Nameplate Serial Communications Unit CS1W-SCU21-V1 SERIAL COMMUNICATION UNIT Unit version 1.3...
  • Page 25 Unit Versions of CS/CJ-series Serial Communications Boards/Units The unit version is displayed. Example: In this Unit Manufacturing Information Dialog Box, unit version 1.3 is displayed. Use this dialog box to confirm the unit version of the Serial Com- munications Unit that is connected online. 3.
  • Page 26 Unit Versions of CS/CJ-series Serial Communications Boards/Units Function Support by Unit Version Product Earlier version Unit version 1.2 Unit version 1.3 (pre-ver. 1.2) CS Series Serial Communica- CS1W-SCB21-V1 CS1W-SCB21-V1 (Same CS1W-SCB21-V1 (Same tions Boards as pre-ver. 1.2) as pre-ver. 1.2) CS1W-SCB41-V1 CS1W-SCB41-V1 (Same CS1W-SCB41-V1 (Same...
  • Page 27: Functions Added In The Unit Version 1.3 Upgrade

    Functions Added in the Unit Version 1.3 Upgrade Functions Added in the Unit Version 1.3 Upgrade Functions Added in Version Upgrade The following table provides a comparison between the functions provided in the upgrade to unit version 1.3 or later of CS1W-SCB@@-V1 Serial Communi- cations Boards and CS1W-SCU@@-V1, CJ1W-SCU@@-V1 Serial Communi- cations Units, and the functionality of earlier versions.
  • Page 28 Functions Added in the Unit Version 1.2 Upgrade Functions Added in Version Upgrade The following table provides a comparison between the functions provided in the upgrade to unit version 1.2 or later of CS1W-SCB@@-V1 Serial Communi- cations Boards and CS1W-SCU@@-V1, CJ1W-SCU@@-V1 Serial Communi- cations Units, and the functionality of earlier versions.
  • Page 29 Functions Added in the Unit Version 1.2 Upgrade Item Earlier versions Unit version 1.2 or later (pre-Ver.1.2) Enhanced Link word specification data On-request I/O Continuous I/O refreshing (selected in DM Area protocol exchange timing refreshing only settings) is supported in addition to the on-request macro func- (request to refresh I/O refreshing available in earlier models.
  • Page 30: Introduction

    SECTION 1 Introduction This section introduces the hardware and software functions of the Serial Communications Boards and the Serial Communications Units, including the communications modes, system configurations, and specifications. Using this Manual ..........Overview .
  • Page 31: Using This Manual

    Troubleshooting and maintenance Section 11 Troubleshooting and Maintenance The contents of standard system protocols and Appendix A to Appendix N connection methods to OMRON components Details on Host Link communications (including SYSMAC CS/CJ-series ladder diagram programming for slave-initiated CS1G/H-CPU@@-E, CS1W-SCB21/41,...
  • Page 32: Overview

    Section 1-2 Overview Overview This section gives an overview of the Serial Communications Boards and the Serial Communications Unit. 1-2-1 Serial Communications Boards Serial Communications Boards are Inner Boards for the CS-series PLCs. One Board can be installed in the Inner Board slot of a CPU Unit. Two serial ports are provided for connecting host computers, Programmable Terminals (PTs), general-purpose external devices, and Programming Devices (excluding Pro- gramming Consoles).
  • Page 33: Serial Communications Units

    A serial communications mode for the Serial Gateway is also provided, enabling connection with the following devices. Modbus-RTU-compatible device (e.g., Inverter) Modbus-ASCII-compatible device (e.g., Servo) PLC (Host Link) CompoWay/F- compatible OMRON FINS message component Serial Communi- cations Board with unit version 1.2 or later CPU Unit Protocol...
  • Page 34 Section 1-2 Overview CS1W-SCU21-V1 CS1W-SCU31-V1 (Two RS-232C ports) (Two RS-422A/485 ports) RS-232C port RS-422A/485 port RS-232C port RS-422A/485 port CJ Series Serial Communications Unit PA205R POWER SYSMAC SCU41 CJ1G-CPU 44 ERR/ALM TER1 PROGRAMMABLE PRPHL CONTROLLER COMM TERM OPEN UNIT WIRE MCPWR BUSY PORT1...
  • Page 35 A serial communications mode for the Serial Gateway is also provided, enabling connection with the following devices. Modbus-RTU-compatible device (e.g., Inverter) Modbus-ASCII-compatible device (e.g., Servo) PLC (Host Link) CompoWay/F- compatible FINS message OMRON Serial Communi- component cations Unit with unit version 1.2 or CPU Unit later Protocol conversion FINS message...
  • Page 36: Protocol Overview

    Protocol Overview Section 1-3 Note *The CS-series Serial Communications Boards/Units without the “-V1” suffix do not support this Simple Backup Function, but the CJ1W-SCU21/41 does support this function even though the model number lacks the “-V1” suffix. Protocol Overview A Serial Communications Board is an Inner Board for CS-series CPU Units that provides RS-232C and/or RS-422A/485 serial ports.
  • Page 37: Host Link Mode

    Section 1-3 Protocol Overview 2. A 1:1 NT Link is not supported. 3. No-protocol mode can be used with CS/CJ-series CPU Units with Unit Ver. 3.0 or later only. A connection example for each serial communications mode is shown in the following sections for a Serial Communications Unit.
  • Page 38: Protocol Macros

    PMCR(260) instruction in the CPU Unit. Standard system protocols for exchanging data with OMRON devices (such as Temperature Controllers, Intelligent Signal Processors, Bar Code Readers, and Modems) are provided as a standard feature in the Serial Communica- tions Boards, the Serial Communications Unit, and the CX-Protocol.
  • Page 39: 1:N Nt Links

    Section 1-3 Protocol Overview The following additional functions are supported for unit Ver. 1.2 or later. • Serial Gateway can be executed during protocol macro execution. • An new I/O refresh method is provided for constant data conversion of link words. •...
  • Page 40: Loopback Test

    Serial FINS Gateway CompoWay/F (See note.) Note: Or Modbus-RTU CompoWay (See note.) commands or Modbus ASCII commands CompoWay-compatible OMRON component, Modbus-RTU-, or Modbus ASCII-compatible device FINS Host Link FINS CX-Programmer or other Programming Device for Network using CX-Server as a...
  • Page 41: Modbus-Rtu Slave Mode

    Features Section 1-4 Note Serial Communications Boards send/receive data using TXD(236)/RXD(235) instructions. Serial Communications Units send/receive data using TXDU(256)/RXDU(255) instructions. E.g., Execute data transmission E.g., TXDU Serial Communications Unit Text CR+LF No-protocol Note: Start code and end code can be specified. General-purpose external device 1-3-7 Modbus-RTU Slave Mode...
  • Page 42 Section 1-4 Features Computer Monitoring and Host Link communications enable the host computer to monitor or control Control of PLCs PLC operations and to read and write I/O memory in the PLCs. FINS Commands for In addition to C-series (Host Link) commands, FINS commands are also sup- ported.
  • Page 43 Features Section 1-4 Bridge SEND(090), Host Link Ethernet Network RECV(098), CMND(490) Controller Link Network Controller Link Network Gateway Protocol Macros The main features of the protocol macro functions are described below. For details, refer to the CX-Protocol Operation Manual (W344). Wide Range of Communications are possible with virtually any general-purpose external Communications...
  • Page 44 Section 1-4 Features immediately after the send operation is completed. Therefore, if there was a rapid response from the remote device, for example, the data received between data sending and the completion of the send operation could not be accessed as receive data by the next receive operation. Support for the full-duplex transmissions enables all the data received in a sequence to be accessed.
  • Page 45: System Configurations

    Section 1-5 System Configurations System Configurations This section explains the system configuration supported by each serial com- munications mode. Host Link Communications PLC: Connection configuration Required Connected Possible com- Com- devices serial mand flow puter port/Remarks CS1W-SCB21- Port 1 or 2 Host computer Connection to Serial Communications Board.
  • Page 46 System Configurations Section 1-5 PLC: Connection configuration Required Connected Possible com- Com- devices serial mand flow puter port/Remarks CS1W-SCB21- Port 1 or 2 Host computer Connection to Serial Communications Board. to PLC Note 3. Note 2. Port: (RS-422A/485 RS-232C CS1W-SCB41- Port 1 section: 4-wire): NT-AL001-E...
  • Page 47 Section 1-5 System Configurations PLC: Connection configuration Required Connected Possible com- Com- devices serial mand flow puter port/Remarks Host Any Serial Port 1 or 2 Host computer Connection to Serial Communications Board or Serial Communications Unit computer Communica- to PLC: tions Board or FINS Network...
  • Page 48 Section 1-5 System Configurations Protocol Macros, Serial Gateway, No-protocol, or Modbus-RTU Slave PLC: Connection configuration Required Connected serial External devices port/Remarks device CS1W-SCB21- Port 1 or 2 Connection of a Serial Communications Board to a device with an RS-232C or RS-422A/485 port. Port: RS-232C CS1W-SCB41-...
  • Page 49 Section 1-5 System Configurations PLC: Connection configuration Required Connected serial External devices port/Remarks device Connection of a Serial Communications Unit to a device with an RS- CS1W-SCU31- Port 1 or 2 232C or RS-422A/485 port Port: RS- 422A/ 485 CJ1W-SCU31- Port 1 or 2 Note 2.
  • Page 50 System Configurations Section 1-5 PLC: Connection configuration Required Connected serial External devices port/Remarks device CS1W-SCB21- Port 1 or 2 Connection of a Serial Communications Board to devices with RS-232C or RS-422A/485 ports Port: RS- 232C CS1W-SCB41- Port 1 RS-422A/485 interface Note 3.
  • Page 51 System Configurations Section 1-5 PLC: Connection configuration Required Connected serial External devices port/Remarks device Connection of a Serial Communications Board to devices with RS- CS1W-SCB41- Port 2 232C or RS422A/485 ports Port: RS- 422A/485 NT-AL001-E Converts between RS-422A/485 interface Converting Link RS-232C and Adapter RS-422A/485...
  • Page 52: Specifications

    4. Branch lines must be a maximum of 10 m long. NT Link Communications NT Link communications are used to connect an OMRON Programmable Controller (PLC) and Programmable Terminal (PT). Up to 8 PTs can be con- nected to one PLC. For details on the system configuration, refer to the user’s manual for the PT.
  • Page 53 Specifications Section 1-6 Device name Serial Communications Boards Serial Communications Unit Applicable Backplanes None CPU Backplanes: CS1W- BC103/BC083/BC053/BC033/BC023 CS Expansion Backplanes: CS1W-BI103/BI083/BI053/BI033 Current consumption (See note.) 280 mA + x 360 mA + x 290 mA + x 400 mA Weight 100 g max.
  • Page 54: General Specifications

    Section 1-6 Specifications CJ Series Device name Serial Communications Unit Classification CPU Bus Unit Model number CJ1W-SCU21-V1 CJ1W-SCU31-V1 CJ1W-SCU41-V1 Serial ports Port 1 RS-232C RS-422A/485 RS-422A/485 Port 2 RS-232C RS-422A/485 RS-232C Protocol Port 1 Host Link, protocol macro, NT Link, or loopback test can be selected for each port.
  • Page 55: Protocol Specifications

    Section 1-6 Specifications 1-6-3 Protocol Specifications Host Link Specifications Item Description Communications mode Half-duplex (Full-duplex for slave-initiated communications) Synchronous mode Start-stop synchronization (asynchronous mode) Baud rate (see note 1) RS-232C port and RS-422A/485 ports: 1,200/2,400/4,800/9,600/19,200/38,400/57,600/115,200 bps Default setting: 9,600 bps Communications RS-232C port: 15 m max.
  • Page 56 Specifications Section 1-6 Protocol Macro Function Specifications Item Description Number of protocols 20 max. Can be created and registered with the Protocol Support Tool (CX-Protocol). Number of sequences 1,000 max. Per protocol Number of 60 max. sequences Number of mes- 300 max.
  • Page 57 Section 1-6 Specifications Item Description Sequence contents Number of steps 16 max. (step common per sequence parameters) Transmission con- X-on/X-off flow, RS/CS flow, delimiter control, or contention control, and trol parameters modem control can be selected. Response notifica- Scan notification or interrupt notification (i.e., writing the receive data in tion method (oper- the I/O memory area specified in the 4th operand of the PMCR(260) and)
  • Page 58 Section 1-6 Specifications Item Description Step contents Commands Send only (SEND), receive only (RECV), send and receive (SEND&RECV), wait (WAIT), reception buffer clear (FLUSH), ER-ON (OPEN), or ER-OFF (CLOSE) Repeat counter 1 to 255 times Retry count 0 to 9 (Only when the command is SEND&RECV) Send wait time 0.01 to 0.99 s, 0.1 to 9.9 s, 1 to 99 s, or 1 to 99 minutes...
  • Page 59 Section 1-6 Specifications Item Description Message unit Con- ASCII data, hexadecimal data, or control code contents Header and stant terminator data attributes Con- ASCII data, hexadecimal data, or control code (with an address, no control Data stant code is possible) attributes of Vari- No conversion, conversion to ASCII data, or conversion to hexadecimal data...
  • Page 60 Section 1-6 Specifications Item Description Message unit Vari- Linear expres- aN + b a: 0 to 1000; b: 1 to 1000 contents Data ables sion including N: Repeat counter value attributes of repeat counter addresses Wild card Can be received regardless of and data in the length (only in receive mes- send/receive...
  • Page 61 Section 1-6 Specifications Item Description Converted format • CompoWay/F commands • Modbus-RTU commands • Modbus-ASCII commands • Host Link FINS commands Enabled serial com- Serial Gateway mode or protocol macro mode munications mode Queuing functions Up to five FINS commands can be converted and then queued for processing.
  • Page 62 Section 1-6 Specifications No-protocol Specifications Item Description Communications Full-duplex mode Baud rate RS-232C port and RS-422A/485 ports: 1,200/2,400/4,800/9,600/19,200/38,400/57,600 bps Default setting: 9,600 bps Messages (commu- Set either of the following types in the Setup Area in the allo- nications frame cation DM Area.
  • Page 63 Section 1-6 Specifications Modbus-RTU Specifications Item Description Mode Modbus-RTU slave mode (See note.) Baud rate 1,200/2,400/4,800/9,600/19,200/38,400/57,600/115,200 bps Default: 19,200 bps Data length 8 bits Parity Odd, even, or none Default: Even Stop bits Odd or even parity:1 bit No parity: 2 bits Address setting 1 to 247 (broadcasting: 0) range...
  • Page 64: Comparison To Previous Products

    Section 1-7 Comparison to Previous Products Comparison to Previous Products The following tables show a comparison between the CS/CJ-series Serial Communications Boards and Unit and the C200HX/HG/HE Communications Boards and Host Link Units. Item C200HX/HG/HE Model Boards C200HW- CS1W-SCB21-V1/SCB41- None COM02/COM03/COM04- E/COM05-E/COM06-E Serial Communications...
  • Page 65 Section 1-7 Comparison to Previous Products Item C200HX/HG/HE Serial Boards Host Link Supported. (See note 1.) Supported. (1:1 Host Link communications can be selected com- communica- when using Unit Ver. 1.2 or later, which enables reuse of muni- tions host programs created using the C200H, C1000H, or cations C2000H Series.) modes...
  • Page 66 Section 1-7 Comparison to Previous Products Item C200HX/HG/HE Baud rate Host Link 19,200 bps max. 115,200 bps max. communica- tions Protocol 19,200 bps max. 38,400 bps max. (57,600 bps max. for Unit Ver. 1.2 or later) macros NT Link Standard NT Link Standard NT Link, high-speed NT Link (See note 2.) (1:N mode) No-protocol...
  • Page 67 Section 1-7 Comparison to Previous Products Protocol Macro Comparison Item C200HX/HG/HE CS/CJ Transmission mode Half-duplex Half or full-duplex Commands Send only: SEND, receive only: Send only: SEND, receive only: RECV, or send and receive: RECV, send and receive: SEND SEND and RECEIVE and RECEIVE, wait: WAIT, clear reception buffer: FLUSH, ER-ON: OPEN, and ER-OFF:...
  • Page 68 Section 1-7 Comparison to Previous Products Item C200HX/HG/HE CS/CJ Reception buffer clearing Half-duplex Before executing sequences. Before executing sequences. timing Before executing RECV After executing SEND processing. processing. Upon FLUSH command execution. Full-duplex None Before executing sequences. Upon FLUSH command execution.
  • Page 69 Section 1-7 Comparison to Previous Products Item C200HX/HG/HE CS/CJ Send/receive messages Reception length No check. The length of data set in the expected reception message will be fetched from the recep- tion buffer as the message. Error check codes No LRC2 or SUM1 checks. LRC2 and SUM1 supported.
  • Page 70: Selecting The Serial Communications Mode

    Reference • Host computer • Communications Communicating Host computer (Host computer:PLC Host Link = 1:1 or 1:N) Commands Reference using an OMRON C-mode commands Manual (W342) protocol Command or FINS commands • Section 4 Using Host interpretation Link Communications by PLC...
  • Page 71: Basic Operating Procedure

    PLC, the Peripheral Bus can be used Manual (W342) by connecting to the ports on the CPU Unit. This is faster than using Host Link commu- nications. • OMRON • Section 8 Using 1:N High-speed 1:N NT Link NT Links...
  • Page 72: Explanation Of Procedure

    Section 1-9 Basic Operating Procedure • Restart the Board by turning ON the Inner Board Restart Bit (A60800) or restart the Unit turning ON one of the CPU Bus Unit Restart Bits (A50100 to A50115, where the bit number corresponds to the unit number).
  • Page 73 Basic Operating Procedure Section 1-9 First word in Setup Area allocated in DM Area: First word allocated in the CIO Area: m = D30000 + 100 × unit number n = CIO 1500 + 25 × unit number (20 words are used beginning from m, (all words are used beginning with n) 10 words for each port) Unit No.
  • Page 74 Section 1-9 Basic Operating Procedure 2. Install the Serial Communications Board. CS-series Serial Communications Unit 1,2,3... 1. Catch the hook on the top of the back of the Unit on the Backplane, and then rotate the Unit downward to mount it. Hook Backplane 2.
  • Page 75 Section 1-9 Basic Operating Procedure CJ-series Serial Communications Unit 1,2,3... 1. Align the connectors properly and then press in on the Unit to connect it. Connector PA205 R POWER SYSMAC SCU41 CJ1G-CP U44 ERR/ALM TER1 PROGRAMMAB LE PRPHL CONTROLLER COMM TERM OPEN UNIT...
  • Page 76 Basic Operating Procedure Section 1-9 When an RS-422A/485 port is used, the following setting is required. • TERM: Terminating resistance ON/OFF switch OFF: Terminating resistance OFF Terminating resistance ON • WIRE: 2-wire or 4-wire selector switch 2: 2-wire; 4: 4-wire TERM WIRE Connection Example for Host Link Communications...
  • Page 77 Section 1-9 Basic Operating Procedure Creating I/O Tables for I/O tables must be created for Serial Communications Units. Create the I/O Serial Communications table using a Programming Device, such as a Programming Console or CX- Programmer. Units Setting the Setup Area in Set the serial communications mode and the communications specifications the DM Area for the Board or Unit.
  • Page 78 Section 1-9 Basic Operating Procedure Board Unit Setting Meaning (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32008 D32018 m + 8 m + 18 Half-duplex D32009 D32019 m + 9 m + 19 15 to 00 00C8 hex Maximum number of bytes in protocol macro send/receive data: 200 bytes...
  • Page 79 Section 1-9 Basic Operating Procedure 2. Set the allocated Software Switches. n = 1500 + 25 × unit number Board Unit Function (CS Series only) (CS/CJ Series) 1900 Port 2 Serial Gateway Prohibit Switch (protocol mac- ros) 0: Serial Gateway not prohibited 1: Serial Gateway prohibited Port 1 Serial Gateway Prohibit Switch (protocol mac-...
  • Page 80 Section 1-9 Basic Operating Procedure Modbus-RTU Slave Mode The following example is for the default (standard) communications condi- tions, with the Modbus slave address set to 1 and the default allocation areas for Coils, Input Registers, and Holding Registers. m = D30000 + 100 × unit number Board Unit Setting...
  • Page 81 Section 1-9 Basic Operating Procedure Inner Board Restart Bit and CPU Communications Board/Unit Port Settings Bus Unit Restart Bits Change Bits Board A60800 Unit number Port 1 Port 2 Units A50100 (Unit No. 0) Board A63601 A63602 A50101 (Unit No. 1) Units Unit No.
  • Page 82 Section 1-9 Basic Operating Procedure received data and return responses. An example is provided below for SEND(090). Programming to return responses. Serial Communications Host computer Board/Unit SEND(090), RECV(098), CMND(490) Command CPU Unit SEND(090) can be used to send data from the PLC to a host computer. If the input condition turns ON when the Communications Port Enabled Flag is ON, 10 words of data from CIO 0100 to CIO 0109 will be sent to the host computer connected to port 1 on the Serial Communications Unit with network address...
  • Page 83 Section 1-9 Basic Operating Procedure Refer to information on the 3rd operand of PMCR(260) in Appendix B CompoWay/F Master Protocol and set the number of send data words in S, and set the send data starting in S+1. 2. Coding PMCR(260) Example: The following example shows how to use a Serial Communications Board to read the present value for a K3N-series Digital Panel Meter using the...
  • Page 84 Section 1-9 Basic Operating Procedure Executing User-created Protocols CX-Protocol Use the CX-Protocol to create protocols. Board or Unit PMCR(260) CPU Unit External device Section references in the following procedure refer to the CX-Protocol Opera- tion Manual (W344). 1,2,3... 1. For details on designing protocols, see Section 4 and Section 5. a.
  • Page 85 Section 1-9 Basic Operating Procedure Protocol Macro Communications Port Executing Flag Enabled Flag for Port 7 Input condition 191915 A20207 Communications port 7 and serial port 2 PMCR(260) Destination unit address E1: Serial Communications Board #72E1 #0064 Sequence No. 100 First word of send data D00000 First storage word for receive data...
  • Page 86 Section 1-9 Basic Operating Procedure System Configuration Example CX-Programmer Ver. 5.0 or later Serial Communications Board/Unit with unit Ver. 1.2 or later (Select SCU (Unit 0 to 15) in the UNIT field.) Network type: Select [PLC2]. Set the relay PLC. (Select in the Change PLC Dialog Box.) Serial Gateway function PLC name: PLC2...
  • Page 87 Section 1-9 Basic Operating Procedure The Serial Communications port address is automatically calculated. Select the Unit. Select the port. Select this option. Enter the unit number for the actual Host Link (values are incremented by 1 automatically). Note When using the CX-Programmer, enter the actual Host Link unit number. Do not add 1 to the value.
  • Page 88 Section 1-9 Basic Operating Procedure Modbus-RTU Slave Mode Modbus-RTU commands are sent from the host computer to the PLC. Programming to send commands and receive responses. Host computer Serial Communications Board/Unit Command The host computer must be programmed to send the Modbus-RTU com- mands and receive responses.
  • Page 89 Section 1-9 Basic Operating Procedure...
  • Page 90: Initial Settings And I/O Memory Allocations

    SECTION 2 Initial Settings and I/O Memory Allocations This section describes the components of the Serial Communications Boards and the Serial Communications Units, the settings required for operation, and the memory allocated in the I/O memory of the CPU Unit for controlling and monitoring communications.
  • Page 91: Component Names And Functions

    Section 2-1 Component Names and Functions Component Names and Functions 2-1-1 Serial Communications Boards (CS Series Only) CS1W-SCB41-V1 CS1W-SCB21-V1 Indicators COMM1 COMM1 COMM2 COMM2 Port 1 RS-232C PORT1 PORT1 Terminating resistance switch ON TERM 4 WIRE 2-wire or 4-wire switch Port 2 RS-232C PORT2...
  • Page 92 Section 2-1 Component Names and Functions Error Information. Refer to Inner Board Error Information under 2-3-3 Related Auxiliary Area Bits. For actions required when an error occurs, refer to Section 11 Troubleshooting and Maintenance. RS-232C Ports Protocol Host Link Protocol macro 1:N NT Links Communications Full-duplex...
  • Page 93 XW2Z-200T-1 (2 m) Applicable Connectors Plug: XM2A-0901 (manufactured by OMRON) or equivalent Hood: XM2S-0911-E (manufactured by OMRON) or equivalent One plug and one hood are provided for each port. Recommended Cables UL2426 AWG28 × 5P IFS-RVV-SB (UL-approved, Fujikura Ltd.) AWG28 × 5P IFVV-SB (not UL-approved, Fujikura Ltd.) UL2426-SB (MA) 5P ×...
  • Page 94 Be sure to check the polarity before wiring. Applicable Connectors Plug: XM2A-0901 (OMRON) or equivalent Hood: XM2S-0911-E (OMRON) or equivalent One plug and one hood are provided for each port. Recommended Cables CO-HC-ESV-3P × 7/0.2 (manufactured by Hirakawa Hewtech Corp.) Cable length: 500 m max.
  • Page 95: Cs-Series Serial Communications Unit

    Section 2-1 Component Names and Functions 2-1-2 CS-series Serial Communications Unit CS1W-SCU21-V1 CS1W-SCU31-V1 SCU21-V1 SCU31-V1 Indicators TER1 TER2 Unit number UNIT UNIT Terminating resistance switch switch (for port 1) TERM OFF 2-wire or 4-wire switch WIRE 2 Port 1 PORT1 (for port 1) (RS422 RS-232C...
  • Page 96 Section 2-1 Component Names and Functions Note 1. Depending on the interval of flashing, the meaning is as follows: Protocol data being initialized: 0.3 s Protocol data initialized, or being overwritten: 1.0 s Protocol data error: 1.0 s and CPU Unit ERC indicator is flashing 2.
  • Page 97 Section 2-1 Component Names and Functions Dimensions (Unit: mm) CS1W-SCU21-V1 SCU21-V1 UNIT PORT1 PORT2 CS1W-SCU31-V1 SCU31-V1 TER1 TER2 UNIT TERM OFF WIRE 2 PORT1 (RS422 /485) TERM OFF WIRE 2 PORT2 (RS422 /485)
  • Page 98: Cj-Series Serial Communications Unit

    Section 2-1 Component Names and Functions 2-1-3 CJ-series Serial Communications Unit CJ1W-SCU41-V1 CJ1W-SCU21-V1 SCU21-V1 SCU41-V1 RD1 TER1 Indicators Indicators Terminating resistance switch TERM UNIT UNIT WIRE Unit number switch Unit number switch 2-wire/4-wire switch PORT1 PORT1 (RS422 /485) Port 1: RS-232C Port 1: RS-422A/485 PORT2 PORT2...
  • Page 99 Section 2-1 Component Names and Functions Indicator Color Status Meaning Unit hardware error Flashing Protocol data syntax error or protocol data error (SUM error). Not lit Unit is operating normally. Yellow Port 1 is being used for sending. Not lit Port 1 is not being used for sending.
  • Page 100 Component Names and Functions Section 2-1 Dimensions (Unit: mm) CJ1W-SCU21-V1 SCU21-V1 UNIT PORT1 PORT2 CJ1W-SCU31-V1 SCU31-V1 RD1 TER1 RD2 TER2 TERM UNIT WIRE PORT1 (RS422 /485) PORT2 (RS422 /485) TERM WIRE CJ1W-SCU41-V1 SCU41-V1 RD1 TER1 TERM UNIT WIRE PORT1 (RS422 /485) PORT2...
  • Page 101: Data Exchange With The Cpu Unit

    Data Exchange with the CPU Unit Section 2-2 Data Exchange with the CPU Unit Data exchange with the CPU Units uses the I/O memory allocated to the Serial Communications Board and Serial Communications Unit. For details on allocations, refer to 2-3 I/O Memory Allocations. 2-2-1 Serial Communications Board (CS Series Only) CPU Unit...
  • Page 102: Serial Communications Units (Cs/Cj Series)

    Section 2-2 Data Exchange with the CPU Unit 2-2-2 Serial Communications Units (CS/CJ Series) Serial Communications Unit CPU Unit Unit No. : 0 CPU Bus Unit Area in CIO Area Local memory CIO 1500 Software switches CIO 1501 25 words Unit No.
  • Page 103: I/O Memory Allocations

    I/O Memory Allocations Section 2-3 • When the Port 1 Port Settings Change Bit (a bit between A62001 to A63501 (see note a)) or Port 2 Port Settings Change Bit (a bit between A62002 to A63502 (see note b)) is turned ON. Note a) Bits are allocated in the following order: Unit number 0: A62001, unit number 1: A62101, unit number 2: A62201, and so on through unit number F: A63501.
  • Page 104 Section 2-3 I/O Memory Allocations Serial Communications The Setup Area allocated in the DM Area is used to set the serial communica- Units (CS/CJ Series) tions mode, communications specifications, and other settings for the Serial Communications Units. The words from D30000 to D31599 (100 words per Unit ×...
  • Page 105 Section 2-3 I/O Memory Allocations Setup Area m = D30000 + 100 × unit number Words Setting contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32000 D32010 m m + 10 Port settings (see note 1) 0: Defaults; 1: User settings 12 to 14 Reserved 08 to 11...
  • Page 106 I/O Memory Allocations Section 2-3 Words Setting contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32002 D32012 m+ 2 m + 12 Host Send delay 0: Default (0 ms); 1: User-specified Link, 00 to 14 Send delay (user-specified): 0 to 300 s (0 to 300,000 ms) Serial...
  • Page 107 Section 2-3 I/O Memory Allocations Words Setting contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32008 D32018 m + 8 m + 18 Transmission method Proto- 0: Half-duplex; 1:Full-duplex macro 04 to 14 Reserved Clearing/holding the contents of the reception buffer in full- duplex mode (Unit Ver.
  • Page 108: Cio Area

    Section 2-3 I/O Memory Allocations 2-3-2 CIO Area Words in the CIO Area are allocated as Software Switches, which are manip- ulated from the CPU Unit to control the operation of the Serial Communica- tions Board or Unit, and for a Status Area, which contains status and error information for the Serial Communications Board or Unit.
  • Page 109 Section 2-3 I/O Memory Allocations Software Switches Software Switches are used to output control signals from the CPU Unit to the Serial Communications Board or Unit. The software switches are used for loopback tests and to abort, release wait status, and control other functions for protocol macros.
  • Page 110 Section 2-3 I/O Memory Allocations n = CIO 1500 + 25 × unit number Words Contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 CIO 1901 n + 1 02 to 15 Reserved 1: Error log EEPROM error 0: Error log EEPROM normal 1: Protocol data error...
  • Page 111 Section 2-3 I/O Memory Allocations Words Contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 n + 8 n + 18 Trans- 1: Transmission error (see note 3); 0: No transmission error 1908 1918 mission 1: Tfs (send finished monitoring time) exceeded (see note 4);...
  • Page 112 Section 2-3 I/O Memory Allocations Protocol Macro Mode n = CIO 1500 + 25 × unit number Words Contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 n + 9 n + 19 Port Protocol Macro Executing Flag 1909...
  • Page 113 Section 2-3 I/O Memory Allocations Loopback Tests n = CIO 1500 + 25 × unit number Words Contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 n + 9 n + 19 Test 1: Error;...
  • Page 114: Related Auxiliary Area Bits

    Section 2-3 I/O Memory Allocations Modbus-RTU Slave Mode n = CIO 1500 + 25 × unit number Words Contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 n + 09 n + 19 15 to 00 Number of normally received commands 1909...
  • Page 115 Section 2-3 I/O Memory Allocations Inner Board Error Information Word Contents A424 12 to 15 Non-fatal Reserved errors 1 Error log EEPROM error; 0: Normal (see note 1: Protocol macro execution error; 0: Normal This bit will be turned ON when code 3, 4, or 5 is stored in the error code for bits 00 to 03 of CIO 1909 or CIO 1919 in the CIO Area, 1: Protocol data error (SUM error);...
  • Page 116 Section 2-3 I/O Memory Allocations No-protocol Mode Bits Boards (CS Series only) Contents Port 1 Port 2 Word Word A356 A356 Reception Overflow Flag 1: Board/Unit has received the specified number of bytes or more 0: Board/Unit has not received the speci- fied number of bytes or more Reception Completed Flag 1: Reception completed;...
  • Page 117 Section 2-3 I/O Memory Allocations Unit Port 1 Settings Change Bit Port 2 Settings Change Bit Unit No. A A63001 A63002 Unit No. B A63101 A63102 Unit No. C A63201 A63202 Unit No. D A63301 A63302 Unit No. E A63401 A63402 Unit No.
  • Page 118: Installation And Wiring

    SECTION 3 Installation and Wiring This section describes how to mounting the Serial Communications Board and Serial Communications Units, and how to connect the ports to external devices. Installing a Serial Communications Board ......3-1-1 Precautions in Handling the Board .
  • Page 119: Installing A Serial Communications Board

    Section 3-1 Installing a Serial Communications Board Installing a Serial Communications Board Installation Procedure This section describes how to install a Serial Communications Board in the option slot of a CPU Unit. Only one Serial Communications Board can be installed in each CPU Unit. Note 1.
  • Page 120: Precautions In Handling The Board

    Section 3-2 Installing Serial Communications Units 3-1-1 Precautions in Handling the Board • Turn OFF the power supply to the CPU Unit before mounting or connect- ing the Board. • Separate the port connector lines from the high-tension or power lines to reduce external noise.
  • Page 121: Cs-Series Serial Communications Unit

    Section 3-2 Installing Serial Communications Units 3-2-2 CS-series Serial Communications Unit Use the following steps to mount or remove Serial Communications Units. 1,2,3... 1. Mount the Unit to the Backplane by hooking the top of the Unit into the slot on the Backplane and rotating the Unit downwards.
  • Page 122: Cj-Series Serial Communications Unit

    Section 3-2 Installing Serial Communications Units 3-2-3 CJ-series Serial Communications Unit 1,2,3... 1. Align the connectors properly and then press in on the Unit to connect it. Connector PA205 R POWER SYSMAC SCU41 CJ1G-CP U44 ERR/ALM TER1 PROGRAMMAB LE PRPHL CONTROLLER COMM TERM...
  • Page 123: Unit Handling Precautions

    Section 3-2 Installing Serial Communications Units 3-2-4 Unit Handling Precautions • Always turn OFF the CPU Unit before mounting or removing a Serial Communications Unit or connecting or disconnecting cables to/from the Serial Communications Unit. • Place the port connecting cables in a different duct from those for high- voltage lines or power lines to prevent the effects of electrical noise from these lines.
  • Page 124: Wiring

    Section 3-3 Wiring Wiring 3-3-1 Wiring Precautions • Before connecting or disconnecting the communications cables, always make sure that the PLC is turned OFF. • Tighten the communications connector screws firmly with your fingers. • Serial Communications Boards and Units can be connected to various devices.
  • Page 125: Connector Pin Layout

    Section 3-3 Wiring 3-3-4 Connector Pin Layout RS-232C Ports This layout applies to the following ports: ports 1 and 2 of the CS1W-SCB21- V1/SCU21-V1, ports 1 and 2 of the CJ1W-SCU21-V1, port 1 of the CS1W- SCB41-V1, and port 2 of the CJ1W-SCU41-V1. Abbreviation Signal name Shield...
  • Page 126: Mounting Height And Connector Cover Dimensions

    Section 3-3 Wiring Note The signal names SDA/B and RDA/B do not always have the same polarity as that shown above. Check the polarity of the external device before making connections. 3-3-5 Mounting Height and Connector Cover Dimensions When mounting the Serial Communications Board or Unit, make sure to pro- vide space for the mounting height and connector cover dimensions shown below.
  • Page 127: 2-Wire And 4-Wire Connections

    Section 3-3 Wiring Low-current cables Communications cables 300 mm min. Control cables PLC power supply and general control 300 mm min. circuit wiring Power cables Power lines Ground to 100 Ω or less. • If the I/O wiring and power cables must be placed in the same duct, they must be shielded from each other using grounded steel sheet metal.
  • Page 128: Nt-Al001-E Link Adapter Settings

    Section 3-3 Wiring 3-3-8 NT-AL001-E Link Adapter Settings The NT-AL001-E Link Adapter has a DIP switch for setting RS-422A/485 com- munications conditions. When connecting the Unit or Board, refer to the DIP switch settings shown in the following table. Function Factory setting Not used.
  • Page 129 Section 3-3 Wiring is not required for a Link Adapter connected to a Serial Communications Board or Unit because power is supplied from pin 6 of the connector. 4. The maximum cable length for RS-232C is 15 m. The RS-232C standard, however, does not cover baud rates above 19.2 Kbps.
  • Page 130 Section 3-3 Wiring !Caution Do not use the 5-V power from pin 6 of the RS-232C port for anything but the NT-AL001-E Link Adapter. Using this power supply for any other external device may damage the Serial Communications Board/Unit or the external device.
  • Page 131 Section 3-3 Wiring 1:1 Connections Using RS-422A/485 Ports Serial Communications Board/Unit Computer NT-AL001-E Link Adapter Signal Signal Signal Signal RS-422A Shield /485 In- terface RS-232C Hood Interface 4-wire Terminating resistance ON D-sub, 9-pin Terminal block connector (male) 5-V (+) power (-) DIP Switch Settings Pin 1: ON Pin 2: ON...
  • Page 132 Section 3-3 Wiring 1:N Connections Using RS-422A/485 Ports Serial Communications Board/Unit B500-AL001 Link Adapter Computer NT-AL001-E Link Adapter Shield Signal Signal Signal Signal Signal Signal RS-422A/ Shield RS-422A/ 485 Inter- 485 Inter- face face RS-232C Interface Hood 4-wire Signal Terminating resistance OFF D-sub, 9-pin connector (male) D-sub, 9-pin...
  • Page 133 (male) • Communications Mode: Host Link (unit number 0 only for Host Link) NT Link (1:N, N = 1 Unit only) • OMRON Cables with Connectors: XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m 1:1 Connections from RS-422A/485 to RS-422A/485 Ports Serial Communications (See note 2.)
  • Page 134 Section 3-3 Wiring 1:N, 4-wire Connections from RS-422A/485 to RS-422A/485 Ports Serial Communications Board/Unit Signal Signal RS-422A /485 In- RS-422A terface /485 In- terface Hood D-sub, 9-pin connector (male) Terminal block or D-sub connector (See note 2.) Short bar Signal RS-422A /485 In- terface...
  • Page 135: And Modbus-Rtu Slave Mode

    Section 3-3 Wiring 2. The terminating resistant setting shown above is an example for the NT631/NT631C. The setting method varies with the PT. Refer to the man- ual for you PT for details. 3-3-10 Connections for Protocol Macros, Serial Gateway, No-protocol Mode, and Modbus-RTU Slave Mode This section describes the connections for protocol macros, Serial Gateway, and no-protocol communications.
  • Page 136 Section 3-3 Wiring Port Configu- Schematic diagram ration RS-422A/ RS-422A/485 interface RS-422A/485 RS-232C interface NT-AL001-E RS-232C RS-422A/485 Resistance ON 5-V power RS-422A/ RS-422A/485 interface RS-422A/485 Resistance Resistance ON RS-422A/485 interface B500-AL001-E RS-422A/485 Resistance Resistance ON RS-232C interface NT-AL001-E RS-232C Resistance RS-232C RS-422A/485 RS-232C...
  • Page 137 Refer to 3-4 RS-232C and RS-422A/485 Wiring for actual wiring methods. Connecting RS-232C Ports 1:1 Connections to E5CK Controller Serial Communications OMRON E5CK Controller Unit or Board RS-232C Signal RS-232C: Terminal Block Shield...
  • Page 138 Section 3-3 Wiring Note We recommend using the following NT-AL001-E Link Adapter Connecting Cables to connect to NT-AL001-E Link Adapters. XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m Connections to a Modem Serial Communica- tions Board or Unit RS-232C port Modem...
  • Page 139 Section 3-3 Wiring 1:N Connections Using RS-232C Ports Device supporting RS-422A/485 communications (4-wire) Serial Communications Unit or Board NT-AL001-E Signal RS-232C RS-422A Signal Signal Signal RS-422A Shield /485 Shield interface RS-232C interface Device supporting RS-422A/485 communications (4-wire) Signal (See note) RS-422A D-sub, 9-pin D-sub, 9-pin...
  • Page 140 Wiring Section 3-3 1:1 Connections Using RS-422A/485 Ports Device supporting Device supporting RS-422A/485 RS-422A/485 communications communications (4-wire) (2-wire) Serial Communications Board/Unit Serial Communications Board/Unit Signal Pin Signal Signal Pin Shield Signal RS-422A Shield /485 in- RS-422A /485 in- terface RS-422A RS-422A terface /485 in-...
  • Page 141 Wiring Section 3-3 1:N Connections Using RS-422A/485 Ports Device supporting RS-422A/485 Serial Communications Board/Unit communications (2-wire) Signal Pin Signal RS-422A/ 485 inter- face RS-422A/ 485 inter- face Hood Device supporting RS-422A/485 communications (2-wire) D-sub, 9-pin connector (male) Signal RS-422A/ 485 inter- face Device supporting RS-422A/485...
  • Page 142: 1:N Nt Link Connections With Programmable Terminals

    (male) • Communications Mode: Host Link (unit number 0 only for Host Link) NT Link (1:N, N = 1 Unit only) • OMRON Cables with Connectors: XW2Z-070T-1: 0.7 m XW2Z-200T-1: 2 m 1:N, 4-wire Connections from RS-422A/485 to RS-422A/485 Ports...
  • Page 143: Connections In Loopback Test

    RS-232C and RS-422A/485 Wiring Section 3-4 1:N, 2-wire Connections from RS-422A/485 to RS-422A/485 Ports Serial Communications Board/Unit Signal Signal RS-422A/ 485 Inter- RS-422A /485 In face terface Hood D-sub, 9-pin connector (male) Terminal block (See note 2.) Short bar Signal RS-422A /485 In- terface...
  • Page 144 Section 3-4 RS-232C and RS-422A/485 Wiring 2. Combine signal wires and SG (signal ground) wires in a twisted-pair cable. At the same time, bundle the SG wires to the connectors on the Serial Communications Board/Unit and the remote device. 3. Connect the shield of the communications cable to the Hood (FG) terminal of the RS-232C connector on the Serial Communications Board/Unit.
  • Page 145: Recommended Rs-422A/485 Wiring Examples

    Section 3-4 RS-232C and RS-422A/485 Wiring 3-4-2 Recommended RS-422A/485 Wiring Examples Recommended RS-422A/ 485 Cable 1,2,3... 1. Always use shielded twisted-pair cables as communications cables. Model Manufacturer CO-HC-ESV-3Px7/0.2 Hirakawa Hewtech Corp. 2. Connect the shield of the communications cable to the Hood (FG) of the RS-422A/485 connector on the Serial Communications Board or Unit.
  • Page 146 RS-232C and RS-422A/485 Wiring Section 3-4 • With NT-AL001-E RS-232C/RS-422 Link Adapter Serial Communications Board/Unit NT-AL001-E Remote device RS-422 RS-232C Signal Signal Signal Signal Pin Remote device Hood Hood Shield (See note.) Signal Note 1. The following cables are available for this connection. Length Model 70 cm...
  • Page 147: Wiring Connectors

    Section 3-4 RS-232C and RS-422A/485 Wiring CJ-series PLC CS-series PLC Serial Serial Communications Board/Unit Communications Unit Power Supply Unit Power Supply Unit PA205R SCU41 PA204S RD1 TER1 SCU21 SYSMAC POWER ERR/ALM CJ1G-CPU44 POWER ERR/ALM PROGRAMMABLE PRPHL CONTROLLER COMM TERM UNIT PRPHL/COMN WIRE SYSMAC...
  • Page 148: Soldering

    Section 3-4 RS-232C and RS-422A/485 Wiring 5. Fold back the braided shield. 6. Wrap aluminum foil tape around the folded shield. Aluminum foil tape Shield Not Connected to Hood (FG) 1,2,3... 1. Cut the cable to the required length. 2. Remove the specified length of the sheath from the cable using a knife. Be careful not to scratch the braided shield.
  • Page 149: Assembling Connector Hood

    Section 3-4 RS-232C and RS-422A/485 Wiring 1 mm Soldering iron Heat-shrinking tube Inside diameter: 1.5 mm, l = 10 4. Return the heat-shrinking tube to the soldered portion, then heat the tube to shrink it in place. Heat-shrinking tube 3-4-5 Assembling Connector Hood Assemble the connector hood as shown below.
  • Page 150: Connecting To Unit

    RS-232C and RS-422A/485 Wiring Section 3-4 3-4-6 Connecting to Unit CS-series Unit Tighten the screws firmly with your fingers. CJ-series Unit Tighten the screws firmly with your fingers.
  • Page 151 RS-232C and RS-422A/485 Wiring Section 3-4...
  • Page 152: Using Host Link Communications

    SECTION 4 Using Host Link Communications This section describes the procedure and other information required to use Host Link communications. Host Link Communications ........Setup Area Allocations .
  • Page 153: Host Link Communications

    Host Link Communications Section 4-1 Host Link Communications Host Link System can be used to send C-mode commands or FINS com- mands from a host computer (e.g., personal computer or PT) to a PLC to read/write I/O memory, control operating modes, etc. The PLC can also use the SEND(090), RECV(098), and CMND(490) instructions to send FINS com- mands to the host computer for “slave-initiated communications.”...
  • Page 154 Section 4-2 Setup Area Allocations Serial Communications Setup Area Allocated in the DM Area: D32000 to D32099 Boards (CS Series only) Words Usage D32000 to D32003 Port 1 Settings D32010 to D32013 Port 2 Settings D32004 to D32009 Not used in Host Link Communications D32014 to D32019 D32020 to D32767 Reserved for the system...
  • Page 155: Setup Area Contents

    Section 4-2 Setup Area Allocations 4-2-2 Setup Area Contents m = D30000 + 100 × Unit No. Words Setting contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32000 D32010 m + 10 Port settings 0: Defaults;...
  • Page 156 Setup Area Allocations Section 4-2 Start Bits, Data Length, If user settings are specified for the port settings, the number of start bits, data Stop Bits, Parity, Baud length, number of stop bits, parity, and baud rate must be set. The start bits Rate setting, however, will be ignored and 1 start bit will always be used.
  • Page 157: Auxiliary Area And Cio Area Allocations

    Section 4-3 Auxiliary Area and CIO Area Allocations CTS Control No CTS Control Send processing Send processing RTS = ON RTS = ON CTS = ON? One character sent One character sent characters characters sent? sent? RTS = OFF RTS = OFF Send processing ended Send processing ended Host Link Unit Number...
  • Page 158: Cio Area Allocations

    Section 4-3 Auxiliary Area and CIO Area Allocations Inner Board Error A424 contains error information for the Serial Communications Board. Information (CS-series Word Contents Serial Communications A424 12 to 15 Non-fatal Reserved Board Only) errors 1 Error log EEPROM error; 0: Normal (Note 1) 1: Protocol macro execution error;...
  • Page 159 Section 4-3 Auxiliary Area and CIO Area Allocations CPU Bus Unit Area CIO 1500 to CIO 1899 n = CIO 1500 + 25 × unit number Unit No. Words Unit No. 0 CIO 1500 to CIO 1524 n + 1 to n + 4: Unit status Unit No.
  • Page 160 Section 4-3 Auxiliary Area and CIO Area Allocations Words Contents Boards Units (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 n + 5 n + 15 12 to 15 Port Setup Serial communications mode 1905 1915 setting settings...
  • Page 161: Communications Timing

    Section 4-4 Communications Timing The operation of Host Link communications is not affected by a protocol data error. Port Setting Status The settings in the Setup Area for the following items will be stored: Serial communications mode, baud rate, start bits, data length, stop bits, parity, ports, terminating resistance, setup error, and port operating/stopped status.
  • Page 162: Communications Control Signals And Communications Timing

    Section 4-4 Communications Timing 4-4-2 Communications Control Signals and Communications Timing If CTS control is enabled in the Setup Area, the RTS output signal will be turned ON from the Board or Unit and the send process will go on standby until the CTS input signal turns ON.
  • Page 163: Timing Of Commands Addressed To A Host Computer

    Section 4-4 Communications Timing If the Communications Port Enabled Flag turns OFF when operation is started or SEND(090), RECV(098), or CMND(490) are executed, the contents of these words will be cleared. Word Content A203 Communications Port Completion Code, Port No. 0 A204 Communications Port Completion Code, Port No.
  • Page 164 Section 4-4 Communications Timing Command transmission to the host computer can start even when the port is receiving a command from the host computer (1). The transmission of a response to the command from the host computer is postponed until the transmission of the command to the host computer is completed (2).
  • Page 165: Reception Buffers

    Section 4-5 Changes from Previous Products Response Wait Time After Host Computer Sends Data Response Required Host computer Response Command Response Command Serial Communications Board/Unit Response wait time Communications Port Enabled Flag Command completed Command acknowledged No Response Required Command Host computer Response Command...
  • Page 166: Rs-232C Ports

    Section 4-5 Changes from Previous Products Systems created with Host Link Units and CPU Units in other PLC product series. These differences are described in this sections. 4-5-1 RS-232C Ports Take the following differences into consideration when changing from an exist- ing Host Link System to one using an RS-232C port on a CS/CJ-series CPU Unit, Serial Communications Boards, or Serial Communications Unit (CS1H/ G-CPU@@ RS-232C port, CS1W-SCU21-V1 ports, CJ1W-SCU21-V1/...
  • Page 167: Rs-422A/485 Ports

    Section 4-5 Changes from Previous Products Previous Model number Changes required for CS/CJ-series product products Wiring Other CVM1 or CV- CVM1/CV-CPU@@ No changes have been made It may be possible to use the host computer series CPU in wiring. programs without alteration as long as the Units same communications settings (e.g., baud rate) are used.
  • Page 168: Host Link Function For Replacing Existing Plcs

    Section 4-6 Host Link Function for Replacing Existing PLCs Previous Model number Changes required for CS/CJ-series product products Wiring Other CVM1 or CV- CVM1/CV-CPU@@ No changes have been made It may be possible to use the host computer series CPU Units in wiring.
  • Page 169 Section 4-6 Host Link Function for Replacing Existing PLCs Unit Ver. 1.2 or Later Host computer programs for 1:1 Host Links that have been created using a C200H/C1000H/C2000H PLC can also be used with CS/CJ-series PLCs by selecting the 1:1 Host Link protocol. The 1:N/1:1 Host Link setting in the Setup Area in the DM Area enable selection of 1:1 Host Links.
  • Page 170: Host Link-Compatible Device Selection

    Host Link Function for Replacing Existing PLCs Section 4-6 1:1 Host Link The frame format for a 1:1 Host Link is the same as that for the 1:N Host Link, except the @, Host Link Unit No., and FCS are omitted. •...
  • Page 171 Host Link Function for Replacing Existing PLCs Section 4-6 Host Link Compatible Device Modes Host Link- Compatible models (models that sup- RR, RL, RH, RC, RD, RG command MS command compatible ported host computer programs) and RJ commands (See note.) device mode Number of words in each response frame Response data...
  • Page 172 Section 4-6 Host Link Function for Replacing Existing PLCs Relationship with 1:N/1:1 Protocol Settings The 1:N/1:1 Host Link protocol setting depends on the compatible device mode, as follows: • Mode A (CS/CJ/C), mode B (CVM1/CV): 1:N Host Links only • Mode C (C200H), mode D (C500/120): Either 1:N or 1:1 Host Links Allocated DM Area Settings (Setup Area) m = D30000 + 100 ×...
  • Page 173 Host Link Function for Replacing Existing PLCs Section 4-6...
  • Page 174: Using Protocol Macros

    SECTION 5 Using Protocol Macros This section describes the procedure and other information required to use protocol macros. Overview of the Protocol Macro Functions ......5-1-1 Protocol Macro Functions.
  • Page 175: Overview Of The Protocol Macro Functions

    RS-232C or RS-422A/485 port. Standard system protocols are provided in the Serial Communications Board or Unit for controlling OMRON devices (such as Digital Controllers and Tem- perature Controllers). Using the Protocol Support Tool called the CX-Protocol, the protocol macro...
  • Page 176 Overview of the Protocol Macro Functions Section 5-1 sequence to the Serial Communications Board or Unit, and execute the PMCR(260) instruction. Modifying and transferring standard system protocols Serial Communications Board or Unit CPU Unit Modified standard Command execution (SEND, RECV, SEND&RECV) system protocol Sequence No.
  • Page 177: Protocol Structure

    Section 5-1 Overview of the Protocol Macro Functions OMRON devices using standard system protocols. For details on the proto- cols, the method of modifying the standard system protocols, and the method of creating new sequences, refer to the CX-Protocol Operation Manual (W344).
  • Page 178 Section 5-1 Overview of the Protocol Macro Functions Depending on the response received, the user can either choose to resend the same send message (retry processing), or to perform the next process (for example, read the process value for a Temperature Controller with a dif- ferent address).
  • Page 179 Section 5-1 Overview of the Protocol Macro Functions Step Parameters Parameter Meaning Command One of the following: SEND, RECV, SEND&RECV, WAIT, FLUSH, OPEN, or CLOSE Messages Send message The message sent for SEND. Receive mes- The expected message for RECV. sage Send message The message sent and the expected mes-...
  • Page 180 Section 5-1 Overview of the Protocol Macro Functions Standard System Protocol Example Process Value Read Sequence for E5@K Controller Read Protocol Level Item Setting Sequence Link words Transmission control Modem control parameters Response notification Scan method Reception wait time Tr Reception finished wait time Tfr Send finished wait time...
  • Page 181 Handling The CS/CJ-series PLCs provide standard system protocols to enable commu- Communications nications with OMRON components without having to create communications sequences. The sequences in the standard system protocols can be executed Problems for Standard merely by setting operands for the PMCR(260) instruction.
  • Page 182: Setup Area Allocations

    Section 5-2 Setup Area Allocations Setup Area Allocations This section explains the Setup Area allocated in the DM Area when a Serial Communications Board or a Serial Communications Unit is used in protocol macro mode. 5-2-1 Setup Area Words The Serial Communications Board and Serial Communications Units use the following words as a Setup Area in the DM Area when Protocol Macros are used.
  • Page 183: Setup Area Allocations

    Section 5-2 Setup Area Allocations 5-2-2 Setup Area Allocations m = D30000 + 100 × unit number DM Area Setting contents Boards Units (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32000 D32010 m + 10 Port settings 0: Defaults, 1: User settings 12 to 14...
  • Page 184 Section 5-2 Setup Area Allocations If user port settings are specified, set bits 00 to 04 and set the baud rate in D32001. Setting Example: 0600 Hex = Protocol macro mode with default port settings and baud rate. Serial Communications Set the serial communications mode to 6 Hex to use protocol macros.
  • Page 185 Section 5-2 Setup Area Allocations Also, if the external device is connected using 2-wire connections from an RS- 422A/485 port, send and receive data cannot both be on the same transmis- sion line at the same time. This will create an additional lag time, t2, or 150 µ s. If responses are being received quickly from the external device, i.e., faster than t1 +t2, create a send delay at the external device or take other measures to allow for the lag times.
  • Page 186 Section 5-2 Setup Area Allocations Clearing/Holding the Set to either clear (OFF) or hold (ON) the contents of the reception buffer Contents of the when the protocol macro starts. Reception Buffer in OFF: Clear Full-duplex Mode (Unit When set to clear (OFF), the contents of the reception buffer will be cleared Ver.
  • Page 187 Section 5-2 Setup Area Allocations RS/CS Flow Control Half-duplex With CS/CJ-series half-duplex protocol macro communications (see note), or Communications with C200HX/HG/HE protocol macro communications, flow control can be released by turning ON the RS signal (CS signal at the communications part- ner) while the RECV command is being executed.
  • Page 188: Auxiliary Area And Cio Area Allocations

    Section 5-3 Auxiliary Area and CIO Area Allocations can be stored for each RECV command if 2 Kbytes of receive data is first stored in the buffer and 1,000 bytes (03E8 Hex) is set as the maximum num- ber of send/receive data bytes. The timing of this operation is shown below. (Signal names used below are those at the Serial Communications Board.) PMCR(260) instruction PMCR(260) instruction...
  • Page 189 Section 5-3 Auxiliary Area and CIO Area Allocations Note These bits are used both to change the port settings and to restart the port at the same time. One of these bits can be turned ON to restart a port without changing the port settings in the Setup Area allocated in the DM Area.
  • Page 190: Cio Area Allocations

    Section 5-3 Auxiliary Area and CIO Area Allocations Auxiliary Area Bit Descriptions Name Address Meaning Timing Initialize Board/Unit Board: A42400 The corresponding flag will turn ON Startup At error Startup Watchdog when the Board or Unit is faulty. If the (see note) Units: A40207 Timer Error...
  • Page 191: Software Switches

    Section 5-3 Auxiliary Area and CIO Area Allocations Serial Communications Words CIO 1500 to CIO 1899 of the CPU Bus Unit Area in the CIO Area are Units (CS/CJ Series) allocated according to the unit number setting. Each unit number is allocated 25 words.
  • Page 192 Section 5-3 Auxiliary Area and CIO Area Allocations n = CIO 1500 + 25 × unit number Words Contents Boards Unit (CS Series (CS/CJ Only) Series) CIO 1900 Port 2 Reserved Used for loopback tests Reserved Serial Gateway Prohibit Switch (protocol macros) 0: Serial Gateway not prohibited;...
  • Page 193: Status Area

    Section 5-3 Auxiliary Area and CIO Area Allocations Software Switch The Software Switches function as described in the following table. Descriptions Name Bits in CIO 1900 Meaning Timing or CIO n Initialize Serial Gate- Bits 04 and 12 The Serial Gateway (mode) is prohib- Startup Manipulated Manipulated...
  • Page 194 Section 5-3 Auxiliary Area and CIO Area Allocations n = CIO 1500 + 25 × unit number Words Contents Boards Units (CS Series (CS/CJ Series) Only) Port 1 Port 2 Port 1 Port 2 CIO 1901 n + 1 02 to 15 Reserved 1: Error log EEPROM error 0: Error log EEPROM normal...
  • Page 195 Section 5-3 Auxiliary Area and CIO Area Allocations Words Contents Boards Units (CS Series (CS/CJ Series) Only) Port 1 Port 2 Port 1 Port 2 n + 8 n + 18 Trans- 1: Transmission error 1908 1918 mission 0: No transmission error error 1: Tfs (send finished monitoring time) exceeded status...
  • Page 196 Section 5-3 Auxiliary Area and CIO Area Allocations Status Area Descriptions Name Address Meaning Timing Initialize Error log Board: If a write to EEPROM fails for the error log, it Startup At error Startup data error CIO 190101 is assumed the EEPROM is beyond its use- (see note) ful life and this flag is turned ON.
  • Page 197 Section 5-3 Auxiliary Area and CIO Area Allocations Name Address Meaning Timing Initialize Local Unit Board: This flag indicates the receive status of a Startup When sta- After busy receive CIO 190708 (port 1) local Unit (Board or Unit) during RECV when tus is read status has busy/receive...
  • Page 198 Section 5-3 Auxiliary Area and CIO Area Allocations Name Address Meaning Timing Initialize Transmis- Board: When an error occurs during transmission, Startup At error When sion error CIO 1908 bits 00 to the corresponding flag (in bits 02 to 07 or 12 sequence status/ 15 (port 1)
  • Page 199 Section 5-3 Auxiliary Area and CIO Area Allocations Error Data In Data Agreeing with Expected Receive Message When RECV is executed, an expected receive message is searched for in the reception buffer. If the data that has been received agrees with an expected receive message, it is processed as receive data.
  • Page 200 Auxiliary Area and CIO Area Allocations Section 5-3 Words Setting contents Boards Unit (CS Series Only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 n + 11 n + 21 15 to 12 Reserved 1911 1921 11 to 08 Executed Step No.
  • Page 201 Auxiliary Area and CIO Area Allocations Section 5-3 Protocol Status Area Name Address Meaning Timing Initialize Protocol Board: This flag is turned ON when a PMCR(260) Startup When When Macro Exe- CIO 190915 (port 1) instruction (sequence) is executed. The flag (see note) command command...
  • Page 202 Section 5-3 Auxiliary Area and CIO Area Allocations Name Address Meaning Timing Initialize Sequence Board: This flag is turned ON when a sequence is Startup When When Wait Wait Flag CIO 190909 (port 1) waiting due to the WAIT command. Waiting (see note) WAIT com- Release...
  • Page 203 Auxiliary Area and CIO Area Allocations Section 5-3 Name Address Meaning Timing Initialize Executed Board: Step numbers 0 to 15 (0 to F hex) are stored Startup When step When Step No. CIO 1911 bits 08 to for the steps for which execution has been (see note) is exe- sequence...
  • Page 204 Section 5-3 Auxiliary Area and CIO Area Allocations Name Address Meaning Timing Initialize Repeat Board: The number of times a step is repeated is set Startup When step When Counter Set CIO 1914 bits 08 to in these bits. (see note) starts sequence Value...
  • Page 205: Using Protocol Macros

    Section 5-4 Using Protocol Macros Using Protocol Macros 5-4-1 Executing Communications Sequences Use the PMCR(260) instruction to execute communications sequences. PMCR(260) Instruction Specifications (@) PMCR (260) Control data 1 (communications port No., serial port No., destination unit address) Control data 2 (communications sequence No.) First send word First receive data storage word Control Data 1 (C1)
  • Page 206 Using Protocol Macros Section 5-4 The number of send words in S+1 and the following words is stored in the rightmost 8 bits of S. The setting range is 01 to FA Hex (250 words or less). S is also included in the number of words. The data to be sent is stored in S+1 and the following words.
  • Page 207 Section 5-4 Using Protocol Macros Flags Name Label • The Communications Port Enabled Error Flag All other cases Flag for the specified communica- tions port (internal logical port) was OFF when the instruction was exe- cuted. • The specified serial port (physical port) is not set to protocol macro mode.
  • Page 208 Section 5-4 Using Protocol Macros Network Communications Flags The following table shows the Auxiliary Area flags that are used when the PMCR(260) instruction is executed. Communications Port These flags turn ON when execution of the PMCR(260) instruction is enabled. Enabled Flags Depending on the PMCR(260) instruction, they turn OFF at execution, and turn ON when the port enters an enabled status.
  • Page 209: Ladder Program Structure

    Section 5-4 Using Protocol Macros Flag Transitions Communications Port Enabled Flag Instruction 1 Instruction 2 Instruction 3 Network communications being being being instructions executed executed executed (PMCR(260)/SEND(090)/ RECV(098)/CMND(490)) Communications Port Error Flag Communications Port Completion Code (No unit correspond- (Normal end) (Normal end) ing to unit address) End of previous...
  • Page 210: Ladder Program Example

    The following diagram shows an example in which sequence number 000 (Present Value Read) of a Temperature Controller (E5@K Read Protocol) is executed using the protocol for an OMRON Temperature Controller connected to port 2 (RS-422A/485) of a Serial Communications Board.
  • Page 211 Section 5-4 Using Protocol Macros Operand Settings for the Reading the present value of E5@K Unit No. 03 and storing it in DM00201 PMCR(260) Instruction C1: Control data 2: Port 2 E1: Destination unit address 0: Logical port 0 C2: Control data 0000: Sequence No.
  • Page 212 Section 5-4 Using Protocol Macros Ladder Programming The following diagram shows an example in which sequence number 000 Example (PRESENT VALUE READ) of a Temperature Controller (E5@K Read System) is executed using the PMCR(260) instruction. If the sequence has been com- pleted normally, the present value that has been read is transferred to another word.
  • Page 213 Section 5-4 Using Protocol Macros Receive Data Storage Area before Executing PMCR(260) When the PMCR(260) instruction is executed, the reception buffer is cleared to 0 once immediately before the communications sequence is executed. If a ladder program is used that regularly reads the present value data, as shown in the following diagram, the present value data would normally be cleared to 0 if the data is not retrieved due to an error, such as a reception error.
  • Page 214 Section 5-4 Using Protocol Macros whole area if the number of words is specified as 00), then the initial value will be set to 0000 Hex. 3. The data that has been received as the result of executing the RECV com- mand will be stored in the reception buffer (except for the first word) from the specified first word (offset) and will be verified against the expected re- ceive messages.
  • Page 215 Section 5-4 Using Protocol Macros Example 1 Example 2 Sequence Sequence Step No. 00 Step No. 00 Error Error Sequence ended abnormally Step No. 01 Step No. 01 Step No. 02 Sequence ended abnormally Error Error Sequence ended abnormally Sequence ended Sequence ended Sequence ended normally...
  • Page 216: Simple Backup Function (Backup Of Protocol Macro Data)

    Section 5-5 Simple Backup Function (Backup of Protocol Macro Data) Note Abort Switch Precaution The Abort Switch can be used to abort the sequence that is being executed. The Abort Switch can be turned ON from a ladder diagram or from a Program- ming Device.
  • Page 217 Section 5-5 Simple Backup Function (Backup of Protocol Macro Data) CPU Unit Serial Communications Board/Unit CS1W-SCB21-V1, CS1W-SCB21, CS1W-SCB41-V1, CS1W-SCB41, or CS1W-SCU21-V1, or CS1W-SCU21 CS1W-SCU31-V1 CS1-H CPU Unit Supported Not supported CS1 CPU Unit Not supported Not supported CPU Unit Serial Communications Board/Unit CJ1W-SCU21(-V1)/31-V1/41(-V1) CJ1-H CPU Unit Supported...
  • Page 218 Section 5-5 Simple Backup Function (Backup of Protocol Macro Data) Memory Card power supply switch Serial Communications Board/Unit CPU Unit All data Protocol data Memory Card • Backup This procedure creates the Protocol Data File and writes it to the Memory Card along with the other backup files.
  • Page 219: Enhanced Protocol Macro Functions

    Section 5-6 Enhanced Protocol Macro Functions If the restore operation fails, the RDY Indicator will continue to flash. The CPU Unit’s ERR/ALM Indicator will flash and bit A42409 (the Protocol Data Error Flag) will be turned ON. Serial Communications Unit Operation The Serial Communications Unit’s RDY Indicator will flash during the restore operation.
  • Page 220: Data Exchange Timing For Link Words

    Section 5-6 Enhanced Protocol Macro Functions 5-6-1 Data Exchange Timing for Link Words Link word specification (a method of specifying the common area for data exchanged between the CPU Unit and the Board/Unit) is used as a method for specifying the storage location of send/receive data when executing com- munications sequences in protocol macro mode.
  • Page 221 Section 5-6 Enhanced Protocol Macro Functions CPU Unit Board/Unit (1) to (4) are performed in Ladder program order for the processing Communications within this dotted line. sequence PMCR Step 0 Send message according Step 1 (send) to send command (3) Send R (O1, 2) Link word 1 Read, compile message...
  • Page 222: Clearing/Holding Contents Of Reception Buffer In Full-Duplex Mode

    Section 5-6 Enhanced Protocol Macro Functions 5-6-2 Clearing/Holding Contents of Reception Buffer in Full-duplex Mode Pre-Ver. 1.2 Units The reception buffer is cleared to zeros when the PMCR(260) instruction is executed (immediately before communications sequence execution) in either half-duplex or full-duplex transmission mode using the protocol macro func- tion.
  • Page 223 Section 5-6 Enhanced Protocol Macro Functions...
  • Page 224: Serial Gateway

    SECTION 6 Serial Gateway This section provides an overview of the Serial Gateway, information on I/O memory allocations, and procedures for using the functions. Information on protocol conversion, routing table requirements, and communications frames is also provided. The Serial Gateway can be used only for Unit Ver. 1.2 or later. Serial Gateway Overview .
  • Page 225: Serial Gateway Overview

    • In Serial Gateway mode • In protocol macro mode with the Serial Gateway Prohibit Switch turned OFF 6-1-3 Features Unifying to FINS Networks for CompoWay/F-compatible OMRON Components ■ Pre-Ver. 1.2 Units To access an OMRON CompoWay/F-compatible component (e.g., Tempera-...
  • Page 226 Serial Gateway Overview ■ Unit Ver. 1.2 or Later The Board’s/Unit’s Serial Gateway enables flexible access to OMRON Com- poWay/F-compatible components from a device on the network (PT or PLC’s CPU Unit). This enables unification of OMRON CompoWay/F-compatible components with FINS networks.
  • Page 227 Section 6-1 Serial Gateway Overview FINS Network System Network CMND(490) instructions Serial Network Serial Communications Unit/Board with unit version 1.2 or later Protocol conversion FINS Network Modbus command Serial Access to Modbus Slave- compatible devices from personal computers, PTs, PLCs, and other devices via the network is possible.
  • Page 228 Section 6-1 Serial Gateway Overview FINS Network System Network CMND(490) instructions Serial Network Serial Communications Unit/Board with unit version 1.2 or later Protocol conversion FINS Network Serial Host Link FINS Access to PLCs used as Host Link Slaves from personal computers, PTs, PLCs, and other devices by using user- specified FINS commands is...
  • Page 229: Serial Gateway Specifications

    Section 6-1 Serial Gateway Overview Note If the Serial Gateway Prohibit Switch allocated in the CIO Area is OFF, the Serial Gateway is enabled whether protocol macros are being executed or not. During execution of protocol macros, however, the Serial Gateway is pro- cessed using interrupts between steps in the communications sequence.
  • Page 230: Dm Area Allocations (Using Serial Gateway Mode)

    Section 6-2 DM Area Allocations (Using Serial Gateway Mode) Item Details Send start timeout The time is monitored after a FINS command is received and monitoring converted into another protocol until transmission starts (pro- tocol macro mode only). Default: 5 s; Setting range: 0 to 25.5 s Note If a timeout occurs, the FINS end code is returned to the source of the FINS command (0204 hex: Remote node busy).
  • Page 231 Section 6-2 DM Area Allocations (Using Serial Gateway Mode) Serial Communications Units (CS/CJ Series) Words are allocated in the DM Area from D30000 to D31599 as the Setup Area for the Serial Communications Units as follows: m = D30000 + 100 × unit number Unit number Word Unit No.
  • Page 232 Section 6-2 DM Area Allocations (Using Serial Gateway Mode) DM Area Setting Board (CS Series Unit (CS/CJ only) Series) Port 1 Port 2 Port 1 Port 2 D32001 D32011 m+11 04 to 15 Reserved 00 to 03 Baud rate (unit: bps) 0 hex: 9,600 (default);...
  • Page 233: Auxiliary Area And Cio Area In Serial Gateway Mode

    Section 6-3 Auxiliary Area and CIO Area in Serial Gateway Mode CTS Control When CTS control is enabled, transmission starts when the request to send signal (RS) turns ON after checking that the send enabled signal (CS) is ON. When CTS control is disabled, transmission starts when the request to send signal (RS) turns ON, without checking whether the send enabled signal (CS) is ON.
  • Page 234 Section 6-3 Auxiliary Area and CIO Area in Serial Gateway Mode Serial Communications Boards (CS Series Only) Word Setting A636 03 to 15 Reserved 1: Port 2 Settings Change Bit 1: Port 1 Settings Change Bit Reserved Serial Communications Units (CS/CJ Series) n = A620 + unit number Word Setting...
  • Page 235 Section 6-3 Auxiliary Area and CIO Area in Serial Gateway Mode Inner Board CIO Area CIO 1900 to CIO 1999 CIO 1900 Software Switches (port 1/port 2) CIO 1901 to CIO 1904 Board status CIO 1905 to CIO 1914 Port 1 status CIO 1915 to CIO 1924 Port 2 status CIO 1925 to CIO 1999...
  • Page 236 Section 6-3 Auxiliary Area and CIO Area in Serial Gateway Mode Words Contents Board Unit (CS Series (CS/CJ Series) only) Port 1 Port 2 Port 1 Port 2 1905 1915 n+15 12 to 15 Port setting System set- Serial communications mode: Always 9 status tings hex (See note.)
  • Page 237: Using The Serial Gateway

    Section 6-4 Using the Serial Gateway Words Contents Board Unit (CS Series (CS/CJ Series) only) Port 1 Port 2 Port 1 Port 2 1908 1918 n+18 Transmis- 1: Transmission error; 0: No transmission error sion error 08 to 14 Not used status 1: FCS check error (transmission path error);...
  • Page 238 Section 6-4 Using the Serial Gateway Using Serial Gateway with Protocol Macros • DM Area (Setup Area) Settings m = D30000 + 100 × unit number Words Setting contents Board Unit Port 1 Port 2 Port 1 Port 2 D32000 D32010 m+10 08 to 11...
  • Page 239 Section 6-4 Using the Serial Gateway Use the following flag to check whether a Serial Gateway response timeout or send start timeout has occurred. Word Contents Board Unit Port 1 Port 2 Port 1 Port 2 1908 1918 n+18 Serial Gateway response tim- eout, Serial Gateway send start timeout, or other timeout (protocol macro Tfs, Tfr, or Tr)
  • Page 240 Using the Serial Gateway Section 6-4 Serial Communications Boards Serial Communications Board Serial port Serial port number Serial port 1 E4 hex (228 decimal) Serial port 1 Serial port 2 E5 hex (229 decimal) Serial port 2 CPU Unit CPU Unit Serial port Serial port number Peripheral port...
  • Page 241: Protocol Conversion

    Mode) . 6-5-2 Converting FINS to CompoWay/F OMRON Components connected serially to a PLC via CompoWay/F can be accessed from the CPU Unit or PT using CompoWay/F commands enclosed in FINS messages. • Sent FINS message: FINS header + FINS command code 2803 hex + CompoWay/F command •...
  • Page 242 Access from CPU Unit (on the Same PLC) CPU Bus-to-Serial Details Routing tables to treat serial communications path as network OMRON components connected serially to Optional Serial Communications Unit/Board the Serial Communications Board/Unit CMND(490) using CompoWay/F can be accessed from CPU Unit a CPU Unit in the same PLC.
  • Page 243 FINS message-to-Serial Details Routing tables to treat serial communications path as network OMRON components connected serially Optional CMND(490) to the Serial Communications Board/Unit using CompoWay/F can be accessed from a CPU Unit in a PLC connected to the net- work.
  • Page 244 CompoWay/F command RS-485 (CompoWay/F) CompoWay/F-compatible OMRON component Note When the NS-series PT is connected serially to the PLC using serial communications mode (1:N NT Links), and the NS-series PT sends FINS com- mands encapsulated in NT Link commands using Smart Active Parts, the CPU Unit removes the NT Link header, etc.
  • Page 245: Compoway/F Connection Examples

    6-5-3 CompoWay/F Connection Examples Connection diagrams are provided here. OMRON recommends the use of shielded twisted-pair cables for actual wiring to enhance noise resistance. For details on wiring methods, refer to 3-4 RS-232C and RS-422A/485 Wiring .
  • Page 246: Converting Fins To Modbus-Rtu

    ON/OFF the Terminating Resistance Switch.) 6-5-4 Converting FINS to Modbus-RTU Modbus-RTU Slave-compatible devices (including OMRON Inverters) con- nected serially to a PLC via Modbus-RTU can be accessed from the PLC or PT using Modbus-RTU commands enclosed in FINS messages. • Sent FINS message: FINS header + FINS command code 2804 hex + Modbus-RTU command •...
  • Page 247 Access from CPU Unit (on the Same PLC) CPU Bus-to-Serial Details Routing tables to treat serial communications path as network OMRON Inverters connected serially to Optional Serial Communications Unit/Board the Serial Communications Board/Unit CMND(490) CPU Unit using Modbus-RTU can be accessed from a CPU Unit in the same PLC.
  • Page 248 Section 6-5 Protocol Conversion Executing Smart Active Parts Using an NS-series PT (Sending Internal FINS Messages) The Board/Unit converts the FINS messages to Modbus-RTU protocol for sending in this operation. Access from PT on Ethernet or serial NT Link Details Routing tables to treat serial communications...
  • Page 249: Converting From Fins To Modbus-Ascii

    Section 6-5 Protocol Conversion 6-5-5 Converting from FINS to Modbus-ASCII Modbus-ASCII Slave-compatible devices connected serially to a PLC via Modbus-ASCII can be accessed from the PLC using Modbus-ASCII com- mands enclosed in FINS messages. • Sent FINS message: FINS header + FINS command code 2805 hex + Modbus-ASCII command •...
  • Page 250: Converting From Fins To Host Link Fins

    • Sent FINS message: FINS header + User-specified FINS command (see note 1) • Message after conversion: FINS command enclosed in Host Link header and terminator (see note 2) Host Link FINS command FINS message OMRON PLC (CS/CJ CX-Program- Series, CVM1/CV Serial Com- User-specified User-specified FINS...
  • Page 251 Protocol Conversion Section 6-5 Use the following method to access the serially (serial-to-serial) connected PLC from the CX-Programmer. System Configuration Example CX-Programmer Ver. 5.0 or later Serial Communications Board/Unit with unit Ver. 1.2 or later (Select SCU (Unit 0 to 15) in the UNIT field.) Network type: Select [PLC2].
  • Page 252 Section 6-5 Protocol Conversion The Serial Communications port address is automatically calculated. Select the Unit. Select the port. Select this option. Enter the unit number for the actual Host Link (values are incremented by 1 automatically). Note When using the CX-Programmer, enter the actual Host Link unit number. Do not add 1 to the value.
  • Page 253 Protocol Conversion Section 6-5 Note This configuration can be connected to other networks, as shown be- low. Network-to-Serial-to-Network Details Routing tables to treat serial communications path as network Personal computers (e.g., CX-Pro- Required grammer) connected through the CX-Programmer, etc. network to the PLC master can access a PLC on another network via a PLC slave that is connected FINS message...
  • Page 254 Section 6-5 Protocol Conversion Access from CPU Unit (on Network PLC) Network-to-Serial Details Routing tables to treat serial communications path as network Slave PLCs connected serially to Required CMND(490) the Serial Communications Board/ Unit using Host Link can be SEND(090)/RECV(098) accessed from a CPU Unit in a PLC connected to the network.
  • Page 255: Serial Gateway

    Section 6-6 Serial Gateway • Without routing tables that treat serial communications path as a net- work: Unit address of serial port. • Remote destination node address (DA1) • With routing tables that treat serial communications path as a network: Unit number for Host Link incremented by 1 (1 to 32) •...
  • Page 256 Serial Gateway Section 6-6 The processing flowchart is as follows: Serial Gateway enabled, FINS command received Any command except RECEIVE Command in next step RECEIVE command Serial Gateway takes priority and RECEIVE command takes priority, conversion, transmission, and re- and the next step is executed. sponse reception processing is exe- cuted on an interrupt between steps.
  • Page 257: Serial Gateway Timeout Monitoring

    Section 6-6 Serial Gateway Step n SEND&RECV FINS command Reception Step n+1 (The next step is a RE- CEIVE command, so the RECEIVE RECEIVE command is executed and the Serial Gateway waits.) Sequence temporarily suspended (The next step is a SEND CompoWay/F or other command command (not RECEIVE) so the...
  • Page 258 Section 6-6 Serial Gateway will turn ON (1). Therefore, if the end code 0205 hex is returned to the source of the FINS command and CIO word n+8/n+18, bit 05 is ON, a Serial Gateway response timeout has occurred. Send Start Timeout Monitoring (Protocol Macro Mode Only) During protocol macro mode, the time from when the FINS command is received until it is converted and starts sending can be monitored.
  • Page 259: Other Functions

    Section 6-7 Conditions Requiring Routing Tables 6-6-3 Other Functions Serial Gateway Send Delay (Serial Gateway Mode/Protocol Macro Mode) The send delay function is used to prevent immediate transfer to the serial port of a FINS command after it has been received by the Serial Communica- tions Unit/Board and converted into the specified protocol.
  • Page 260: Using A Plc As The Target

    Target Protocol Case Example Routing tables conversion for treating serial communications path as network Any component OMRON Compo- CompoWay/ Routing FINS network including Network-to- Optional except PLC nent serial communications path (for serial con- Serial Gateway) version Serial communications path con-...
  • Page 261 Section 6-7 Conditions Requiring Routing Tables Required Routing Tables Specify the addresses as shown in the following example. Address Specification Contents Example Address (1) Serial communications path FINS Remote network address network address command (2) Unit No. for Host Link Remote node address sent incremented by 1.
  • Page 262: Using A Non-Plc Component As The Target

    No routing tables required to treat serial (1) Network address: To N communications path as a network (2) Node address: To m Unit address: Serial communications path To serial port unit (CompoWay/F, Modbus) address (e.g., 80 hex) Target: OMRON Component or Modbus Slave...
  • Page 263 (CompoWay/F, Modbus) address To serial communications path network address A (e.g., 80 hex) Target: OMRON Component or Modbus Slave Serial-to-Serial Conversion Routing tables to enable the serial communications path to be treated as a network are optional. Without Routing Tables Specify the addresses as shown in the following example.
  • Page 264: Explanation

    (0 to 31) + 1 Serial communications path (3) Unit address: To (CompoWay/F, Modbus) PLC_2 serial port unit Target: OMRON Component or Modbus Slave address (e.g., 80 hex) With Routing Tables Specify the addresses as shown in the following example. Address Specification...
  • Page 265 Section 6-7 Conditions Requiring Routing Tables The CX-Net in the CX-Programmer is used to set the relationship between the serial port’s unit address and the allocated network address in the local net- work tables of the routing tables. These settings are then transferred to the CPU Unit to which the Serial Communications Unit/Board is mounted.
  • Page 266: Communications Frames

    Section 6-8 Communications Frames Host Link FINS Protocol Conversion and Use of Network Routing tables are required to enable the serial communications path to be treated as a network. This is because with Host Link FINS, the FINS remote node address is used to specify the target (communications partner PLC that is the Host Link slave).
  • Page 267: Modbus-Rtu

    Section 6-8 Communications Frames Further, to write the CompoWay/F command to the command storage area using CMND(490) in frame order (without creating empty bytes), the SID com- ponent of the CompoWay/F command requires 1 byte of ASCII as 30 hex, so the subsequent components (s+3 and afterwards) must be set in one byte each.
  • Page 268: Modbus-Ascii

    Section 6-8 Communications Frames Response Frame Frame before Conversion Modbus-RTU frame Start (silent Slave FUNCTION Communications data Error End (silent interval of interval of address code (n bytes) check (1 byte) (1 byte) characters) characters) (1 byte) (See note.) (See note.) Frame after Conversion FINS header FINS command...
  • Page 269: Host Link Fins

    Section 6-8 Communications Frames Response Frame Frame before Conversion Modbus-ASCII frame Header Slave address FUNCTION code Communications data (2 ASCII ":" (ASCII code (ASCII code (ASCII code n characters) (0D hex) (0A hex) characters: (ASCII code 2 characters: 2 characters: or error code 2 bytes) 3A hex)
  • Page 270: Sending Commands Using The Cmnd(490) Instruction

    Communications Frames Section 6-8 Response Frame Frame before Conversion Host Text Etc. Error Host Link Link check Terminator header header code code Unit No. for FINS header FINS End code FINS text *+CR Host Link command (0 to 31) Frame after Conversion FINS FINS header End code...
  • Page 271 S+1, and the FUNCTION code (1 byte) in the rightmost byte of S+. Example of Sending Modbus-RTU Command Using CMND(490) Instruction This example is for writing a frequency reference value from an OMRON 3G3MV Inverter connected through RS-485 to the Serial Communications Unit via two networks, Ethernet-to-Controller Link.
  • Page 272 (FUNCTION code 10 hex, register No. 0002 hex) Modbus-RTU command RS-485 (Modbus-RTU) Port 1 unit address: 80 hex + 4 hex × unit number 3 = 8C hex 3G3MV OMRON Inverter List of Settings • FINS Network Settings Item Value...
  • Page 273 Communications Frames Section 6-8 Item Setting location value Number of write data registers 0001 Set 0001 hex in controller data s+3 of (e.g, 1 register) CMND(490). Number of attached data registers 0200 Set 0200 hex in controller data s+4 of Note: Set 02 hex of this value in CMND(490).
  • Page 274 Section 6-8 Communications Frames Sending Host Link FINS Commands • Set any FINS command code in S. • Be sure to set the Host Link unit number (0 to 31) incremented by one (1 to 32) for the PLC slave corresponding to the send destination node address in C+3 bits 08 to 15.
  • Page 275 Section 6-8 Communications Frames Item Value (example) Setting location Serial Communications Unit Use the following equation to unit number calculate the unit address of the serial port. × 81 hex + 4 hex unit number 6 = 99 hex (153 decimal) Use CX-Net to set the local net- work tables in the routing tables.
  • Page 276 Communications Frames Section 6-8 connected serially via Host Link to another PLC on the network (to which the Serial Communications Board/Unit is mounted) using the SEND(090)/ RECV(098) instructions is the same as for the CMND(490) instruction. 2. When creating Host Link FINS command frames using the CMND(490) in- struction, always set the unit number for Host Link incremented by one (1 to 32) for the remote destination (send destination) node address (word C+3, bits 08 to 15 of the CMND(490) instruction).
  • Page 277 Section 6-8 Communications Frames...
  • Page 278 SECTION 7 No-protocol Mode This section describes the procedure and other information required to use the no-protocol mode. This mode is supported for Unit Ver. 1.2 or later only. Overview ........... . . 7-1-1 Definition .
  • Page 279: Overview

    Section 7-1 Overview Overview 7-1-1 Definition No-protocol mode is a function used to send and receive data using communi- cations port I/O instructions (TXD(236)/RXD(235) or TXDU(256)/RXDU(255)) without conversion or protocol. Therefore, in no-protocol mode communica- tions procedures such as retry processing, data format conversion process- ing, and processing branching according to the receive data are not performed.
  • Page 280: Specifications

    Section 7-1 Overview 7-1-2 Specifications Item Description Communications Full-duplex mode Messages (commu- Set either of the following types in the Setup Area in the allo- nications frame cation DM Area. structure) 1. Data only (without start code and end code) 2.
  • Page 281: Allocation Dm Area For No-Protocol Mode

    Section 7-2 Allocation DM Area for No-protocol Mode 3. If the end code will overlap with the send/receive data and cause data re- ception to be interrupted, use CR+LF as the end code. 4. If the send delay is set in the allocation DM Area when sending TXD(236) or TXDU(256) (no-protocol mode), data will be sent when the send delay time has lapsed after execution of TXD(236) or TXDU(256), as shown be- low.
  • Page 282 Section 7-2 Allocation DM Area for No-protocol Mode Serial Communications Boards (CS Series only) Setup Area Allocated in the DM Area: D32000 to D32099 Words Usage D32000 to D32005 Port 1 Settings D32010 to D32015 Port 2 Settings D32006 to D32009 Not used in no-protocol mode D32016 to D32019 D32020 to D32767...
  • Page 283: Auxiliary Area And Cio Area Allocations

    Section 7-3 Auxiliary Area and CIO Area Allocations Words Setting contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32001 D32011 m+11 04 to 15 Reserved 00 to 03 Baud rate (bps) 0: Default (9,600); 3: 1,200; 4: 2,400; 5: 4,800; 6: 9,600; 7: 19,200; 8: 38,400;...
  • Page 284 Section 7-3 Auxiliary Area and CIO Area Allocations Serial Communications Units (CS/CJ Series) n = A620 + unit number Words Contents 03 to 15 Reserved 1: Port 2 Settings Change Bit 1: Port 1 Settings Change Bit Reserved Inner Board Error Information (CS-series Serial Communications Board Only) A424 contains error information for the Serial Communications Board Word Type...
  • Page 285 Section 7-3 Auxiliary Area and CIO Area Allocations CIO 1905 to CIO 1914 Port 1 status CIO 1915 to CIO 1924 Port 2 status CIO 1925 to CIO 1999 Reserved for the system Serial Communications Units (CS/CJ Series) Words are allocated in the CIO Area for Software Switches and Status Area. Words CIO 1500 to CIO 1899 in the CPU Bus Unit Area in the CIO Area are allocated according to the unit number setting.
  • Page 286 Section 7-3 Auxiliary Area and CIO Area Allocations Words Contents Board Unit (CS Series (CS/CJ Series) only) Port 1 Port 2 Port 1 Port 2 1905 1915 n+15 12 to 15 Port setting System Serial communications mode: Always 3 hex status settings (See note.)
  • Page 287 Section 7-3 Auxiliary Area and CIO Area Allocations Sending Data (TXD(236)/TXDU(256)) n = CIO 1500 + 25 × unit number Words Board Unit (CS Series only) (CS/CJ Series) TXD(236) TXDU(256) Port 1 Port 2 Port 1 Port 2 A35605 A35613 Send Ready Flag 1: Send enabled;...
  • Page 288 Section 7-3 Auxiliary Area and CIO Area Allocations Receiving Data (RXD(235)/RXDU(255)) n = CIO 1500 + 25 × unit number Words Board Unit (CS Series only) (CS/CJ Series) RXD(235) RXDU(255) Port 1 Port 2 Port 1 Port 2 A35606 A35614 Word n+9, Word n+19, Reception Completed Flag...
  • Page 289: Basic Operating Procedure In No-Protocol Mode

    Section 7-4 Basic Operating Procedure in No-protocol Mode Note Reception Buffer Timing in No-protocol Mode: If the RXD(235) instruction is sent to the CPU Unit’s built-in serial port, the reception buffer is not cleared after RXD(235) execution. Therefore, multiple RXD(235) instructions can be received over several steps. If the RXD(235)/ RXDU(255) instruction is sent to the serial port of a Serial Communications Board/Unit, the reception buffer is cleared after RXD(235)/RXDU(255) execu- tion.
  • Page 290 Section 7-4 Basic Operating Procedure in No-protocol Mode Bar Code Reader Connected with RS-232C V520-RH21-6 Serial Communications Unit/Board Bar Code Reader 9-pin D-sub (female) DIN 8p V509-W012 Pin No. Extension Cable Pin No. Signal Signal +5 V +5 V Serial Communications Unit/Board V509-W012 Extension Cable V520-RH21-6 Bar Code Reader...
  • Page 291 Section 7-4 Basic Operating Procedure in No-protocol Mode...
  • Page 292: Using 1:N Nt Links

    SECTION 8 Using 1:N NT Links This section describes the procedure and other information required to use 1:N NT Links to Programmable Terminals. Overview of 1:N NT Links ........Setup Area Allocations .
  • Page 293: Overview Of 1:N Nt Links

    Section 8-1 Overview of 1:N NT Links Overview of 1:N NT Links A PLC can be connected to Programmable Terminals (PTs) using an RS- 232C or RS-422A/485 port. The I/O memory of the PLC is allocated as a Sta- tus Control Area and a Status Notification Area for the PT, as well as to objects, such as touch switches, lamps, and memory tables.
  • Page 294 Section 8-1 Overview of 1:N NT Links 5. NT Link serial communications are unique and are not compatible with oth- er serial communications modes. Example for NT31/NT631(C) PTs Priority Registered PTs per port CPU Unit's cycle time (ms) Priority Not Registered PTs per port CPU Unit's cycle time (ms)
  • Page 295: Setup Area Allocations

    Section 8-2 Setup Area Allocations Setup Area Allocations This section explains the Setup Area (Allocation DM Area) when a Serial Communications Board or a Serial Communications Unit is used in 1:N NT Link mode. 8-2-1 Setup Area Words The Serial Communications Board and Serial Communications Units use the following words as a Setup Area in the DM Area when 1:N NT Links are used.
  • Page 296: Auxiliary Area And Cio Area Allocations

    Section 8-3 Auxiliary Area and CIO Area Allocations 8-2-2 Setup Area Contents m = D30000 + 100 × unit number DM Area Setting contents Boards Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32000 D32010 m + 10 Port settings...
  • Page 297 Section 8-3 Auxiliary Area and CIO Area Allocations 8-3-1 Auxiliary Area Allocations Port 1 and Port 2 Port These bits can be turned ON from the program using the OUT or other Settings Change Bits instructions to change communications settings and restart the Serial Com- munications Board ports.
  • Page 298 Section 8-3 Auxiliary Area and CIO Area Allocations 8-3-2 CIO Area Allocations Words in the CIO Area are allocated for a Status Area, which contains status and error information for the Serial Communications Board or Unit. These allocations are described in this section. Serial Communications Words CIO 1900 to CIO 1999 in the Inner Board Area are used for a Status Boards (CS Series Only)
  • Page 299 Section 8-3 Auxiliary Area and CIO Area Allocations 8-3-3 Status Area Contents The Status Area is used to input status information from Serial Communica- tions Board or Unit to the CPU Unit. The Status Area is where the Serial Com- munications Board or Unit set communications status, the transmission control signal status, and the transmission error status.
  • Page 300 Auxiliary Area and CIO Area Allocations Section 8-3 Note The baud rate that is input to the CPU Unit will depend on the setting in the System Setup. If the default value is used because of a System Setup error, this default setting is input.
  • Page 301 Auxiliary Area and CIO Area Allocations Section 8-3...
  • Page 302 SECTION 9 Using Modbus-RTU Slave Mode (Unit Version 1.3 or Later) This section describes the procedure and other information required to use Modbus-RTU slave mode. Modbus-RTU Slave System ........9-1-1 Communicating with CS/CJ-series CPU Units Using Modbus .
  • Page 303: Modbus-Rtu Slave System

    Modbus-RTU Slave System Section 9-1 Modbus-RTU Slave System A Modbus-RTU Slave System can be used to send Modbus-RTU commands from a host computer (e.g., personal computer) to a PLC to read and write I/O memory. Host-initiated Communications in a Modbus-RTU Slave System are started by the host Communications computer.
  • Page 304: Setup Area Allocations (Modbus-Rtu Slave Mode)

    Section 9-2 Setup Area Allocations (Modbus-RTU Slave Mode) The Modbus-RTU command that access a specific Modbus data model is used to read and write I/O memory areas in the CS/CJ-series CPU Unit. CS/CJ-series CPU Unit I/O Memory Modbus Data Models CIO Area Discrete Inputs Modbus-RTU command...
  • Page 305 Section 9-2 Setup Area Allocations (Modbus-RTU Slave Mode) Serial Communications Setup Area Allocated in the DM Area: D32000 to D32099 Boards (CS Series only) Words Usage D32000 to D32009 Port 1 Settings D32010 to D32019 Port 2 Settings D32020 to D32029 Port 1 Settings for Modbus-RTU slave mode D32030 to D32039 Port 2 Settings for Modbus-RTU slave mode...
  • Page 306: Setup Area Contents

    Setup Area Allocations (Modbus-RTU Slave Mode) Section 9-2 9-2-2 Setup Area Contents m = D30000 + 100 × Unit No. Words Setting contents Board Unit (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 D32000 D32010 m + 10 Port settings 0: Defaults;...
  • Page 307: Auxiliary Area And Cio Area Allocations (Modbus-Rtu Slave Mode)

    Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Serial Communications Set the serial communications mode to A hex to use Modbus-RTU Slave com- Mode munications. Parity and Baud Rate If user settings are specified for the port settings, the parity and baud rate must be set.
  • Page 308: Cio Area Allocations

    Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) munications Board ports. When changing the settings and restarting the port have been completed, the bit will automatically be turned OFF. Note These bits are used both to change the port settings and to restart the port at the same time.
  • Page 309 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Serial Communications Words CIO 1900 to CIO 1999 in the Inner Board Area are used for a Status Area. Only the words shown in the following table are used for the Status Area Boards (CS Series only) with Modbus-RTU Slave communications.
  • Page 310 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Words Contents Boards Units (CS Series only) (CS/CJ Series) Port 1 Port 2 Port 1 Port 2 n + 5 n + 15 12 to 15 Port Setup Serial communications mode (A hex: fixed) 1905 1915 setting...
  • Page 311 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Note 1. The settings in the Setup Area are reflected here. The default settings will be used and will be stored here if a setup error occurs. 2. Always 1 (1 stop bit) when there is parity and always 0 (2 stop bits) when there is no parity.
  • Page 312: Supported Modbus-Rtu Commands

    Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) is turned ON. Counting will stop if they reach FFFF hex. 9-3-3 Supported Modbus-RTU Commands The Modbus-RTU slave mode of the Serial Communications Board/Unit sup- ports the following Modbus-RTU commands. Function code Function Modbus name...
  • Page 313 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Response Length Data Function Code 1 byte 01 hex Byte Count 1 byte Coil Status n byte n = N or N+1 Reading 19 Bits from CIO 0001.04 to Request Response CIO 0002.06...
  • Page 314 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) CIO 0 CIO 1 CIO 2 CIO 3 Note The subscript numbers in the shaded boxes indicate the ON/OFF (1/0) status of the bits that are read. Read Holding Registers Function Reads multiple words from the DM or EM Area of I/O memory.
  • Page 315 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Read Input Registers Function Reads multiple words from the CIO, Work, Holding, or Auxiliary Area of I/O memory. Command Length Data Function Code 1 byte 04 hex Starting Address 2 bytes 0 to 17FF hex (See note.) Quantity of Registers 2 bytes...
  • Page 316 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Response Length Data Function Code 1 byte 05 hex Output Address 2 bytes 0 to FFFF hex Output Value 2 bytes 0000 hex (OFF) or FF00 (ON) Writing 1 (ON) to CIO 0002.02 Request Response...
  • Page 317 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) D2000 D2001 D2002 Diagnostic Function Executes an echoback test. Send data will be returned. Command Length Data Function Code 1 byte 08 hex Sub-function Code 2 bytes 0 hex N ×...
  • Page 318 Section 9-3 Auxiliary Area and CIO Area Allocations (Modbus-RTU Slave Mode) Writing 10 Bits Starting from CIO 0001.04 Request Response (xxxx xx11 1100 1101) Data Data Function Code 0F hex Function Code 0F hex Starting Address (H) 00 hex Starting Address (H) 00 hex Starting Address (L) 14 hex...
  • Page 319: Communications Timing

    Section 9-4 Communications Timing D1000 D1001 Error Format Length Data Function Code 1 byte Function code + 80 hex Exception Code 1 byte Error code Error Name Description code • There is an error in the specified function code. Illegal function •...
  • Page 320: Communications Control Signals And Communications Timing

    Section 9-4 Communications Timing Board or Unit Logical port CPU Unit Instruction 1 Instruction 2 Instruction 3 Instruction 4 Instruction 5 Instruction 6 Instruction 7 Instruction 8 One port must be specified for each instruction. Note 1. If more than eight communications instructions are being used, then exclu- sive control must be performed to make sure that not more than eight are executed at the same time.
  • Page 321 Section 9-4 Communications Timing tion is completed. When creating the ladder diagram, use these flags as input conditions when executing these instructions. Word Content A202 08 to 15 Reserved Communications Port Enabled Flag, Port No. 7 Communications Port Enabled Flag, Port No. 6 Communications Port Enabled Flag, Port No.
  • Page 322: Timing Of Commands Addressed To A Host Computer

    Section 9-4 Communications Timing Flag Transitions Communications Port Enabled Flag Instruction 1 Instruction 2 Instruction 3 Network communications being being being instructions executed executed executed (PMCR(260)/SEND(090)/ RECV(098)/CMND(490)) Communications Port Error Flag Communications Port Completion Code (Normal end) (Normal end) (No unit correspond- End of previous ing to unit address) processing...
  • Page 323 Section 9-4 Communications Timing Host Computer Receiving Data Response Required Host computer Command Response Response Serial Communications Command Board/Unit Communications Port Enabled Flag Command completed Command acknowledged No Response Required Command Host computer Response Serial Communications Command Board/Unit Communications Port Enabled Flag Command acknowledged Command completed At (1) in the diagram, the response to a command sent from the host com-...
  • Page 324: Reception Buffers

    Section 9-5 Changes from Previous Products When a response is not required from the host computer, the Communica- tions Port Enabled Flag will turn ON when the command to the host computer has passed from the CPU Unit to the port. 9-4-5 Reception Buffers In Modbus-RTU Slave mode, each port has a reception buffer of 1,200 bytes.
  • Page 325 Section 9-5 Changes from Previous Products Unit (CS1H/G-CPU@@ RS-232C port, CS1W-SCU21-V1 ports, CJ1W- SCU21/41 port 2, CS1W-SCB21-V1 ports, or CS1W-SCB41-V1 port 1). Previous Model number Changes required for CS/CJ-series product products Wiring Other C-series Mod- 3G2A5-LK201-E The connector has been The following changes are necessary for bus-RTU Slave changed from a 25-pin to a...
  • Page 326: Rs-422A/485 Ports

    Section 9-5 Changes from Previous Products Note The number of words that can be read and written per frame (i.e., the text lengths) when using C-mode commands is different for C-series Modbus-RTU Slave Units and CS/CJ-series Serial Communications Boards/Units. A host computer program previously used for C-series Modbus-RTU Slave Units may not function correctly if used for CS/CJ-series PLCs.
  • Page 327: Modbus-Rtu Slave Function For Replacing Existing Plcs

    Section 9-6 Modbus-RTU Slave Function for Replacing Existing PLCs Modbus-RTU Slave Function for Replacing Existing PLCs An enhanced Modbus-RTU Slave function is provided to enable reuse of host computer programs created for the existing PLC. By selecting the 1:N/1:1 Modbus-RTU Slave protocol and the Modbus-RTU Slave compatible device mode according to the existing PLC model, the Board/Unit’s Modbus-RTU Slave functions can be fully compatible with the Modbus-RTU Slave of the existing PLC.
  • Page 328: Modbus-Rtu Slave-Compatible Device Selection

    Section 9-6 Modbus-RTU Slave Function for Replacing Existing PLCs Note The differences between the command and response frames for 1:N Modbus- RTU Slaves and 1:1 Modbus-RTU Slaves is as follows: 1:N Modbus-RTU Slave • Command Format CS/CJ-series CPU Unit I/O Memory Modbus Data Models CIO Area Discrete Inputs...
  • Page 329 Section 9-6 Modbus-RTU Slave Function for Replacing Existing PLCs Unit Ver. 1.2 or Later When Serial Communications Units/Boards with Unit Ver. 1.2 or later are used, however, the Board/Unit’s Modbus-RTU Slave specifications can be switched according to the CPU Unit or other Unit in which the host computer program is to be reused.
  • Page 330 Section 9-6 Modbus-RTU Slave Function for Replacing Existing PLCs Modbus-RTU Slave Compatible Device Modes Modbus- Compatible models (models that sup- RR, RL, RH, RC, RD, RG command MS command RTU Slave- ported host computer programs) and RJ commands (See note.) compatible Number of words in each response frame Response data...
  • Page 331 Section 9-6 Modbus-RTU Slave Function for Replacing Existing PLCs Relationship with 1:N/1:1 Protocol Settings The 1:N/1:1 Modbus-RTU Slave protocol setting depends on the compatible device mode, as follows: • Mode A (CS/CJ/C), mode B (CVM1/CV): 1:N Modbus-RTU Slaves only • Mode C (C200H), mode D (C500/120): Either 1:N or 1:1 Modbus-RTU Slaves Allocated DM Area Settings (Setup Area) m = D30000 + 100 ×...
  • Page 332: Loopback Test

    SECTION 10 Loopback Test This section describes the procedure and other information required to conduct loopback test to check the serial ports. 10-1 Executing Loopback Tests ........10-1-1 Overview.
  • Page 333: Executing Loopback Tests

    Section 10-1 Executing Loopback Tests 10-1 Executing Loopback Tests 10-1-1 Overview Executing a loopback test will allow you to test a port communications circuit by connecting a loopback-wire connector to the port of a Serial Communica- tions Board or Unit, looping back the transmitted data to make it the received data for the Unit or Board, and then comparing and checking the data.
  • Page 334: Setup Area Allocations

    Section 10-2 Setup Area Allocations 5. Turn ON the Loopback Test Switch. To end the test, turn OFF the switch. The Loopback Test Switches are as follows: Board: CIO 1900, bit 06 for port 1 and bit 14 for port 2 Unit: n, bit 06 for port 1 and bit 14 for port 2 (n = CIO 1500 + 25 x Unit No.)
  • Page 335: Cio Area Allocations

    Section 10-3 CIO Area Allocations 10-3 CIO Area Allocations The loopback test execution results can be read form the protocol status area allocated in the CIO Area. Protocol Status The information shown in the following table is input to the CPU Unit in the protocol status area.
  • Page 336: Troubleshooting And Maintenance

    SECTION 11 Troubleshooting and Maintenance This section describes the troubleshooting and maintenance procedures for the Serial Communications Boards and the Serial Communications Unit. 11-1 Indicator Error Displays ......... 11-1-1 Serial Communications Boards (CS Series Only) .
  • Page 337: Serial Communications Unit

    Section 11-1 Indicator Error Displays 11-1 Indicator Error Displays 11-1-1 Serial Communications Boards (CS Series Only) Indicators Possible cause Remedy ERR/ALM CPU Unit Not lit The Board has started normally. Not lit The Board is faulty (hardware self-diagnos- If the ERR and ALM indicators light when tic function).
  • Page 338 Section 11-1 Indicator Error Displays Indicators Possible cause Remedy ERR/ALM CPU Unit Not lit A Protocol Data File (BACKUP .PRM) was read (restored) from the CPU Unit’s Memory Card to the Board properly. Flashing Flashing A protocol data write error has occurred or If the indicator status remains the same protocol data has been destroyed.
  • Page 339: Serial Communications Units (Cs/Cj Series)

    Section 11-1 Indicator Error Displays other Programming Device for errors for bits 05, 07, 08, 09, and 10. Press the FUN Key and then the MONITOR Key from the Programming Console. Refer to the CX-Programmer Operation Manual for the CX-Programmer procedure. 11-1-2 Serial Communications Units (CS/CJ Series) Indicators Possible cause...
  • Page 340: Status Area Error Indications

    Section 11-2 Status Area Error Indications Indicators Possible cause Remedy Not lit Not lit Lit A Protocol Data File (BACKUP .PRM) was read (restored) from the CPU Unit’s Memory Card to the Serial Communications Unit prop- erly. Flash- Flash- A protocol data write error has occurred or If the indicator status remains the same protocol data has been destroyed.
  • Page 341: Troubleshooting

    Section 11-3 Troubleshooting 11-3 Troubleshooting This section describes how to resolve transmission and reception problems. “m” and “n” in the tables represent the following word addresses for the Board and Unit. Symbol Boards Units (CS Series only) (CS/CJ Series) D32000 D30000 + 100 x unit number CIO 1900 CIO 1500 + 25 x unit number...
  • Page 342 Section 11-3 Troubleshooting Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Serial commu- The SD@/RD@ Cables are incor- Check the wiring. nications mode and COM@ rectly connected. is set to Host indicators do The RS-422A/485 Reset the port to the cor- Link.
  • Page 343 Section 11-3 Troubleshooting Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Serial commu- The RD@ and There is no This is a transmis- Conduct a loopback test in nications mode COM@ indica- transmission sion circuit hard- serial communications is set to Host tors are flash-...
  • Page 344 Section 11-3 Troubleshooting Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Serial commu- The RD@/SD@ There is no CIO Area words n + A command was Review the host’s settings nications mode and COM@ transmission 8/n + 18 (transmis- sent from the host and program (such as...
  • Page 345 Section 11-3 Troubleshooting Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Host Link (with The SD@/RD@ SEND(090)/ The AER Flag (one The contents of the Check the contents of the unsolicited and COM@ RECV(098)/ of the condition S, C, and D oper- S, C, and D operands of communica-...
  • Page 346 Section 11-3 Troubleshooting Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Host Link, The SD@ and A transmis- A hardware error Conduct a loopback test in slave-initiated COM@ indica- sion error has has occurred in the serial communications communica- tors are flash-...
  • Page 347: Serial Gateway (Serial Gateway Or Protocol Macro Mode)

    Section 11-3 Troubleshooting 11-3-2 Serial Gateway (Serial Gateway or Protocol Macro Mode) Responses Returned to the FINS Transmission Source Conversion Failure/Conversion Successful but Transmission Failed Error conditions Cause Remedy Board/Unit Serial commu- Indicator FINS end Words allo- status nications mode display code sent to cated in CIO...
  • Page 348 Section 11-3 Troubleshooting Error conditions Cause Remedy Board/Unit Serial commu- Indicator FINS end Words allo- status nications mode display code sent to cated in CIO FINS trans- Area mission source The Board/ The serial com- The SD@/ 0205 hex A hardware Conduct a loopback test Unit cannot munications...
  • Page 349 Section 11-3 Troubleshooting Error conditions Cause Remedy Board/Unit Serial com- Indicator FINS end Words allo- status munica- display code sent to cated in CIO tions mode FINS trans- Area mission source The Board/ Serial com- The SD@ and 0204 hex Bit 05 of CIO A Serial Correct the communications...
  • Page 350 Section 11-3 Troubleshooting Transmission Successful but Response from Remote Device Not Received Error conditions Cause Remedy Board/Unit Serial com- Indicator FINS end Words allo- status munications display code sent to cated in CIO mode FINS trans- Area mission source The con- The serial The SD@ 0205 hex...
  • Page 351 Section 11-3 Troubleshooting Error conditions Cause Remedy Board/Unit Serial com- Indicator FINS end Words allo- status munications display code sent to cated in CIO mode FINS trans- Area mission source The con- The serial Either the 0205 hex Bit 05 of CIO The response Delay the response from verted...
  • Page 352 Section 11-3 Troubleshooting Response Received from Remote Device but Error Remains Error conditions Cause Remedy Board/Unit Serial com- Indicator FINS end Words allo- status munica- display code sent cated in tions mode to FINS CIO Area transmis- sion source A normal The serial The RD@/ 0000 hex...
  • Page 353 Section 11-3 Troubleshooting Troubleshooting Using FINS End Codes Check point Probable cause Corrective measure (Main response code) (Sub-response code) Value Contents Value Contents (hex) (hex) Normal comple- Normal comple- tion tion Remote node Bit 05 in CIO word The Serial Gateway Perform FINS send busy n+8/n+18 (Serial...
  • Page 354: No-Protocol Mode

    Section 11-3 Troubleshooting Check point Probable cause Corrective measure (Main response code) (Sub-response code) Value Contents Value Contents (hex) (hex) Parameter error 0C Parameter error Parameters in com- The parameter set- Check the command mand data tings are incorrect. data and correct the parameter settings.
  • Page 355 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions Board Bit A42404 (Inner Board ser- The serial commu- Set bits 08 to 11 of vice failure) in the Auxiliary nications mode is DM Area word m/ Area is ON during execution...
  • Page 356 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions The serial com- A hardware error Conduct a loop- munications has occurred. back test in serial mode is set to no- communications protocol mode.
  • Page 357 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions The serial com- With Serial The ER Flag (type of condi- The setting con- Review the con- munications Communica- tion flag) is ON.
  • Page 358 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions The serial com- With Serial The ER Flag (type of condi- The setting con- Review the con- munications Communica- tion flag) is ON.
  • Page 359 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions The serial com- The Reception Completed Reception does munications Flag is OFF. not complete due mode is set to no- to the following fac- Board: Auxiliary Area bit protocol mode.
  • Page 360 Section 11-3 Troubleshooting Transmission Failure (TXD(236), TXDU(256)) Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions Serial communi- CIO Area word n+5/n+15 bits The serial com- cations mode is 12 to 15 (serial communica- munications no-protocol mode...
  • Page 361 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions The serial com- The SD@/ A hardware error Conduct a loopback munications RD@ and has occurred. test in serial com- mode is set to no- COM@ indi- munications mode...
  • Page 362 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions The serial com- With Serial The ER Flag (type of condi- The setting con- Review the con- munications Communica- tion flag) is ON.
  • Page 363 Section 11-3 Troubleshooting Error conditions Words allocated in CIO Cause Remedy Area Serial communi- Indicator Status and cations mode display other condi- tions The serial com- With Serial The Communications Port The TXDU(256)/ Either use a com- munications Communica- Enabled Flags (A20200 to RXDU(255) munications port mode is set to no-...
  • Page 364: 1:N Nt Link Mode

    Section 11-3 Troubleshooting 11-3-4 1:N NT Link Mode Serial commu- Indicator Status Words allo- Cause Remedy nications mode display information, cated in the etc. CIO Area Serial communi- Bits 12 to 15 of Serial communica- Review the Setup Area set- cations mode is the words allo- tions mode is not set...
  • Page 365 Section 11-3 Troubleshooting Serial commu- Indicator Status Words allo- Cause Remedy nications mode display information, cated in the etc. CIO Area Serial communi- The SD@/RD@ Cables are incor- Review the wiring or switch cations mode is and COM@ indi- rectly connected. settings.
  • Page 366: Protocol Macros

    Section 11-3 Troubleshooting 11-3-5 Protocol Macros Serial Indicator Status Words allocated in Cause Remedy communi- display information, the CIO Area cations etc. mode Serial com- Bits 12 to 15 of the Serial communications Set bits 11 to 08 (Serial munica- words allocated in mode is not set correctly.
  • Page 367 Section 11-3 Troubleshooting Serial Indicator Status Words allocated in Cause Remedy communi- display information, the CIO Area cations etc. mode Serial com- The SD@/ The PMCR(260) Bits 00 to 03 (Error The protocol data in the Use CX-Protocol to cor- munica- RD@ and instruction is...
  • Page 368 Section 11-3 Troubleshooting Serial Indicator Status Words allocated in Cause Remedy communi- display information, the CIO Area cations etc. mode Serial com- The SD@/ Bit 15 (Protocol Bits 03 and 11 (Abort Abort Switch is force-set. Release the forced or munica- RD@ and Macro Execut-...
  • Page 369 Section 11-3 Troubleshooting Serial Indicator Status Words allocated in Cause Remedy communi- display information, the CIO Area cations etc. mode Serial com- The SD@/ Send data has The contents of the The baud rate is outside Review the Setup Area munica- RD@ and already been...
  • Page 370 Section 11-3 Troubleshooting Serial Indicator Status Words allocated in Cause Remedy communi- display information, the CIO Area cations etc. mode Serial com- The SD@/ A transmission Bit 15 (Transmission The wiring is faulty. Check the wiring. munica- RD@ and error some- Error) of the words The RS-422A/485 port Turn ON the terminating...
  • Page 371 Section 11-3 Troubleshooting Note The following table shows the measures to correct the errors indicated by net- work communications end codes (A203 to A210). Network communi- Error details Remedy cations end code Bits Bits 08 to 15 00 to 07 02 Hex 02 Hex There is no Board...
  • Page 372 Section 11-3 Troubleshooting Note The following table shows the measures to correct the errors indicated in bits 00 to 03 (Error Code) of words allocated in the CIO Area words n+9/n+19. Error Indicator Error details Cause Remedy code 0 Hex No display Normal 1 Hex No display Reserved...
  • Page 373: Modbus-Rtu Slave Mode

    Section 11-3 Troubleshooting 11-3-6 Modbus-RTU Slave Mode Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Serial commu- Bits 12 to 15 (Serial Serial communica- Set bits 08 to 11 (Serial nications mode Communications tions mode is not Communications Mode) of is not set to Mode) of CIO Area...
  • Page 374 Section 11-3 Troubleshooting Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Serial commu- The RD@ and There is no Cables are incor- Check the wiring. nications mode COM@ indica- transmission rectly connected. is set to Mod- tors are flash- error.
  • Page 375 Section 11-3 Troubleshooting Serial commu- Indicator Status CIO Area Cause Remedy nications status information, mode etc. Serial commu- The RD@/SD@ There is no CIO Area words n + A command was Review the host’s settings nications mode and COM@ transmission 8/n + 18 (transmis- sent from the host and program (such as...
  • Page 376: Error Logs

    Section 11-4 Error Logs 11-4 Error Logs The error log function records the errors detected in the Serial Communica- tions Board or Serial Communications Unit together with the time that the error occurred. 11-4-1 Error Log Table RAM Error Log Table For every error that occurs, one record is logged in the RAM error log table in the Board or Unit for up to 64 errors.
  • Page 377: Error Log Table Configuration

    Section 11-4 Error Logs 11-4-3 Error Log Table Configuration Error code Details Record Minute Second (oldest) Hour Year Month Error code Details Minute Second Record Hour Year Month Error code Details Record (newest) Minute Second Hour Year Month Error Codes and Details Refer to the list of error codes and details on page 348.
  • Page 378 Section 11-4 Error Logs Error code Error contents Details Stored in EEPROM First byte Second byte 0014 Hex Inner bus error Always 00 Hex Always 00 Hex 0108 Hex Send not possible because Event Send/Receive Errors Unit is not detected Commands: 010B Hex Send not possible due to...
  • Page 379: Error Codes And Troubleshooting

    Section 11-4 Error Logs 11-4-5 Error Codes and Troubleshooting Error Troubleshooting Serial communications mode code Protocol Host Serial Loop- Mod- macro Link Gate- proto- back bus-RTU Link test Slave 0001 Hex Replace the CPU Unit. 0002 Hex Check the operating environment. 0006 Hex Check the unit number setting.
  • Page 380: Reading And Clearing Error Log Tables

    Section 11-4 Error Logs Error Troubleshooting Serial communications mode code Protocol Host Serial Loop- Mod- macro Link Gate- proto- back bus-RTU Link test Slave 0111 Hex Command too long 0122 Hex Service cannot be executed in current serial communications mode and was dis- carded.
  • Page 381: Error Log Read: 21 02

    Section 11-4 Error Logs • Model: "CS1W-SCU21-V1 " Padded with ASCII spaces (20 hex) to make 20 bytes total, including the model number. Model number • Version: "V1.00V1.00V1.00V1.00" Trace function version Macro function version Board or Unit version Communications control version 11-4-8 ERROR LOG READ: 21 02 This command reads the Board or Unit’s error log.
  • Page 382: Error Log Clear: 21 023

    Section 11-4 Error Logs ing from the beginning record number. The total number of bytes for the error log data required is calculated as follows: No. of records x 10 bytes The configuration of each error log record is returned in 10 bytes, as follows: 1st byte 10th byte Error code...
  • Page 383: Cleaning And Inspection

    Section 11-5 Cleaning and Inspection 11-5 Cleaning and Inspection Use the cleaning and inspection methods described here for daily mainte- nance of the devices. 11-5-1 Cleaning To keep the Serial Communications Board in optimum condition, regularly clean the Board or Unit, as follows: •...
  • Page 384: Replacement Precautions

    • If the defective Board or Unit is to be dispatched to the manufacturer for repair, be sure to include documentation stating the nature of the fault in as much detail as possible, and send to your nearest OMRON branch or sales office, listed at the back of this manual.
  • Page 385 Section 11-6 Replacement Precautions • 2-wire or 4-wire switch (RS-422A/485 ports) 4. Turn ON the power of the PLC to which the replacement Serial Communi- cations Board or Unit is mounted, and to all serially connected external de- vices, and start operating the system. 5.
  • Page 386 Section 11-6 Replacement Precautions main lit while the data is being compared. If the data matches, the Indicator will go OFF after the data has been compared. 5. Turn OFF the power to the PLC to which the Serial Communications Board or Unit to be replaced is mounted, and to all serially connected external de- vices.
  • Page 387 Section 11-6 Replacement Precautions Note 1. The protocol macro data for the Board or Unit is stored in the flash memory of the Board or Unit. 2. When protocol macro data designed with the CX-Protocol is used, a back- up of the protocol macro data created from the CX-Protocol must be trans- ferred to the Board or Unit after replacing.
  • Page 388: A Introduction

    Appendix A Introduction Appendices B the N provide information on the standard system protocols provided with the CX-Protocol, the Serial Communications Boards, and the Serial Communications Units. Refer to 5-4 Using Protocol Macros for details on using PMCR(260). Using Standard System Protocols Standard system protocols can be executed merely by specifying the sequences number to be executed in the second operand of PMCR(260) and settings the data described in the appendices in the proper format starting at the word specified with the third operand of PMCR(260).
  • Page 389 Protocol for sending CompoWay/F commands as a Master to OMRON CompoWay/F slave components and receiving responses. Host Link C-mode Command Mas- Protocol for sending C-mode (Host Link) commands to OMRON C-series or CS/CJ- ter (See note.) series PLCs used as slaves and receiving responses.
  • Page 390 Appendix A Introduction Protocol name Function V600/V620 ID Controllers Protocol for controlling an ID Controller via the Communications Board. Procedures for performing Read/Write operations of the ID Controller and writing/reading operat- ing parameters. Hayes modem AT commands Protocol for controlling a Hayes modem (AT commands) via the Communications Board.
  • Page 391 Appendix A Introduction...
  • Page 392: B Compoway/F Master Protocol

    CompoWay/F is a protocol used by many OMRON components for serial communications. A host computer of a PLC can function as a host (master) to send CompoWay/F commands (message frames) to OMRON compo- nents, which function as slaves. The components will return responses to these commands. Using CompoWay/ F commands, the host can read/write data, settings, and operating status to control the operation of the com- ponents.
  • Page 393 Appendix B CompoWay/F Master Protocol Communications Specifications Item Specification Transmission path Multipoint connections Communications RS-232C, RS-422A/485, 4-wire half-duplex, 2-wire half-duplex Synchronization Start-stop Baud rate 1,200/2,400/4,800/9,600/19,200/38,400 bps Default: 9,600 bps Transmitted code ASCII Data length 7 bits or 8 bits (Default: 7 bits) Note: A 7-bit code is used with 0 added to the beginning.
  • Page 394 Appendix B CompoWay/F Master Protocol Command Frame Contents Item Meaning A code, 02 Hex, indicating the beginning of a communications frame (text). This code must always be set as the first byte. Node number The node number identifies the source of the command frame. Spec- ify “XX”...
  • Page 395 Appendix B CompoWay/F Master Protocol Example The command and response frames for a K3N@-series Intelligent Signal Processor are shown below. Command Frame Node No. Subaddress Text Command "00" "0" Data Command Data contents code Command Command Data contents code VARIABLE AREA READ “01”...
  • Page 396 Appendix B CompoWay/F Master Protocol Example: VARIABLE AREA READ The following command and text are used to read the present value, maximum value, minimum value, and sta- tus of the Intelligent Signal Processor. Command and Text No. of Variable First read address elements type "00"...
  • Page 397 Appendix B CompoWay/F Master Protocol CompoWay/F Master Protocol Sequences The CompoWay/F Master Protocol provides 18 communications sequences that can be used for the following: • Converting to ASCII data or not converting to ASCII data • Sending to a specified Unit or broadcasting •...
  • Page 398 Sequence No. 600 can be used for the normal CompoWay/F Master function (ASCII conversion, specification from command code). Refer to the communications specifications for the OMRON CompoWay/F component to which the command is being sent and set the command code and required data starting at the words specified for the 3rd operand of PMCR(260).
  • Page 399 Appendix B CompoWay/F Master Protocol CompoWay/F Message Frames and PMCR(260) Operands The relationship between the CompoWay/F command and response frames and the operands of PMCR(260) is shown below, using communications sequence No. 600 as an example. Command Frame No. of Variable First read type...
  • Page 400 Appendix B CompoWay/F Master Protocol Sequence Send sequence Receive sequence 606 (025E) Send word order: Leftmost to rightmost Receive word order: Leftmost to rightmost Receive data words Receive frame Rightmost word 5 6 7 8 Send data words Send frame "12"...
  • Page 401 Appendix B CompoWay/F Master Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Number of receive data words Receive data storage words Response code Receive data Offset Contents (data format) Data Number of receive data words 0003 to 00FA Hex (3 to 250 decimal) (4 digits Hex) Response code (4 digits Hex) The response code will be stored in hexa-...
  • Page 402 Appendix B CompoWay/F Master Protocol • D+1: Response code • D+2 and on: Receive data Node No. Subad- Command code Response code Receive dress code data Note 1 Read data (Note 2) ( × 10 ( × 10 (02 Hex) 0000 (03 Hex) Data in shaded portions is stored at the location specified by the operand in the PMCR(260) instruction.
  • Page 403 Appendix B CompoWay/F Master Protocol Broadcast with ASCII Conversion, No Response (Sequence No. 601 (Hex 0259)) This sequence converts the specified data beginning with the command code to ASCII and broadcasts it. No responses are received. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 404 Appendix B CompoWay/F Master Protocol Offset Contents (data format) Data Number of send data words 0005 to 00FA Hex (5 to 250 decimal) (4 digits Hex) (Undefined) Node No. (2 digits 00 to 99 BCD) Set the command code for the required ser- (2 digits Hex) (2 digits Hex) vice...
  • Page 405 Appendix B CompoWay/F Master Protocol Offset Contents (data format) Data Send data The data specified in hexadecimal here is not converted and the number of bytes specified in S+3 is sent. +6 etc. Receive Data Word Allocation (4th Operand of PMCR(260)) None.
  • Page 406 Appendix B CompoWay/F Master Protocol Offset Contents (data format) Data Receive data The data from just after the response code until just before the ETX is stored here with- out conversion. +6 etc. General-purpose Broadcast with No Conversion and No Response (Sequence No.
  • Page 407 Appendix B CompoWay/F Master Protocol Connections Connection methods between a Serial Communications Board or Unit and the K3N@-series Intelligent Signal Processor are shown below. RS-232C • RS-232C connections are one-to-one. • The max. cable length is 15 m. Use an RS-232C optical interface (Z3RN) when extending the transmission line beyond 15 m.
  • Page 408 Appendix B CompoWay/F Master Protocol RS-422 4-wire Connections • RS-422 connections can be one-to-one, or one-to-N when a 3G2A9-AL001 Link Adapter is used. A maxi- mum of 32 Serial Communications Boards and Unit can be connected in one-to-N systems. • The total cable length can be 500 m max. •...
  • Page 409 Appendix B CompoWay/F Master Protocol Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data (Undefined) Node No. Number of send bytes Send data Offset Contents (data format) Data Number of send data words 0005 to 00FA hex (5 to 250 decimal) (4 digits Hex) (Undefined)
  • Page 410 Appendix B CompoWay/F Master Protocol Send/Receive with ASCII Conversion with Response (Sequence No. 607 (Hex 025F)) • Send word order: Rightmost to leftmost • Receive word order: Rightmost to leftmost This sequence converts the specified data beginning with the command code (MRC, SRC) to ASCII and sends it to the specified Unit.
  • Page 411: Variable Type

    Appendix B CompoWay/F Master Protocol The received frames are stored in order from the rightmost word to leftmost word of the I/O memory address. Receive data words Receive frame Rightmost word 1 2 3 4 "12" "34" "56" "78" Leftmost word 5 6 7 8 Variable Area Read (Sequence No.
  • Page 412 Appendix B CompoWay/F Master Protocol Variable Area Write (Sequence No. 611 (Hex 0263)) This sequence writes the contents of the specified number of elements from the address of the specified variable type to the specified node number. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 413 Appendix B CompoWay/F Master Protocol Variable Area Broadcast Send (Sequence No. 612 (Hex 0264)) This sequence writes the specified number of elements from the address of the specified variable type using a broadcast address. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words (Undefined) First word of...
  • Page 414 Appendix B CompoWay/F Master Protocol Variable Area Fill (Sequence No. 613 (Hex 0265)) This sequence writes the same data from the address of the specified variable type to the specified node num- ber. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 415: Number Of Elements: 4 Digits Hex

    Appendix B CompoWay/F Master Protocol Offset Contents (data format) Data Number of send data words Always 0006 hex (6 decimal) (Undefined) Variable type Set the area type (2 digits) and the first read (2 digits hex) word (6 digits). The leftmost byte of the first write address specifies the address and the rightmost First write address (6 digits BCD) byte specifies the bit location.
  • Page 416: Number Of Elements "0001

    Appendix B CompoWay/F Master Protocol The received frames are stored in order from the leftmost word to the rightmost word of the I/O memory address. Receive data words Receive frame Rightmost word 1 2 3 4 "12" "34" "56" "78" Leftmost word 5 6 7 8 Parameter Area Write...
  • Page 417 Appendix B CompoWay/F Master Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Response code Offset Contents (data format) Data Number of receive data words Always 0002 Hex (2 decimal) Response code (4 digits hex) The CompoWay/F command response code is stored in hexadecimal code.
  • Page 418: Controller Status Read

    Appendix B CompoWay/F Master Protocol Unit Properties Read (Sequence No. 618 (Hex 026A)) This sequence reads the Controller/component model and communications buffer size and stores the data starting at the specified word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 419: Response Code

    Appendix B CompoWay/F Master Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Number of receive data words Receive data storage words Response code Run status Error status, etc. Offset Contents (data format) Data Number of receive data words 0003 to 00FA hex (3 to 250 decimal) Response code (4 digits hex) The CompoWay/F command response code is stored in hexadecimal code.
  • Page 420 Appendix B CompoWay/F Master Protocol Operation Command (Sequence No. 621 (Hex 026D)) This sequence remotely stops/starts operations of the device at the specified node number. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data (Undefined) Node No.
  • Page 421 Appendix B CompoWay/F Master Protocol...
  • Page 422: Bytes

    Appendix C C-mode (Host Link) Command Master The C-mode (Host Link) command master protocol provides communications sequences using C-mode com- mand codes for a PLC (CS/CJ Series) host (master). This protocol enables any C-mode command to be sent from a Serial Communications Unit/Board installed in a CS/CJ-series PLC to a CS/CJ-series or C-series (see note) CPU Unit that is connected via RS-232C or RS- 422A/485.
  • Page 423 Appendix C C-mode (Host Link) Command Master Command Frame Contents Item Contents Must be attached at the beginning of the command. Host Link unit num- Set the unit number in BCD from 0 to 31 for each Host Link. Command code The command code is specified in two characters Text Set parameters corresponding to command code.
  • Page 424 Appendix C C-mode (Host Link) Command Master Sequence Communications Function Ladder interface sequence name Send word Receive allocation word allocation 703 (02BF) LR AREA READ Reads the contents of the specified number of LR Area (CS/CJ Series: CIO 1000 to CIO 1199) words beginning with the designated word from the specified Host Link Unit and stores starting from the specified storage word.
  • Page 425 Appendix C C-mode (Host Link) Command Master Sequence Communications Function Ladder interface sequence name Send word Receive allocation word allocation 719 (02CF) TEST Executes a data loopback test for the specified Host Link Unit. 720 (02D0) ABORT Initializes the port of the specified Host Link Unit. 721 (02D1) INITIALIZE Initialize the ports of all Host Link Units.
  • Page 426 Appendix C C-mode (Host Link) Command Master Response Frame Host Link Command End code unit number code Text "*" "@" 40 hex 2A hex 0D hex (X10 )(X10 (X10 )(X10 PMCR(260) Communications sequence No. 700 #02BC Number of receive data words End code (Undefined) (2 digits BCD)
  • Page 427 Appendix C C-mode (Host Link) Command Master Receive Data Word Allocation (4th Operand of PMCR(260)) Number of receive data words Receive data storage words (Undefined) End code Read data Offset Contents (data format) Data Number of receive data words 0003 to 00FA hex (3 to 250 decimal) (Undefined) End code The end code is stored in hexadecimal.
  • Page 428 Appendix C C-mode (Host Link) Command Master Receive Data Word Allocation (4th Operand of PMCR(260)) Number of receive data words Receive data storage words (Undefined) End code Read data Offset Contents (data format) Data Number of receive data words 0003 to 00FA hex (3 to 250 decimal) (Undefined) End code The end code is stored in hexadecimal.
  • Page 429 Appendix C C-mode (Host Link) Command Master LR AREA READ (RL Command) (Sequence No. 703 (Hex 02BF)) Reads the contents of the specified number of LR Area (CS/CJ Series: CIO 1000 to CIO 1199) words begin- ning with the designated word from the specified Host Link Unit and stores starting from the specified storage word.
  • Page 430 Appendix C C-mode (Host Link) Command Master HR AREA READ (RH Command) (Sequence No. 704 (Hex 02C0)) Reads the contents of the specified number of HR Area words beginning with the designated word from the specified Host Link Unit and stores starting from the specified storage word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 431 Appendix C C-mode (Host Link) Command Master TIMER/COUNTER PV READ (RC Command) (Sequence No. 705 (Hex 02C1)) Reads the contents of the specified number of timer/counter PV words (T0000 to T2047, C0000 to C2047) beginning with the designated word from the specified Host Link Unit and stores starting from the specified storage word.
  • Page 432 Appendix C C-mode (Host Link) Command Master TIMER/COUNTER STATUS READ (RG Command) (Sequence No. 706 (Hex 02C2)) Reads the contents of the specified number of timer/counter status words (T0000 to T2047, C0000 to C2047) beginning with the designated word from the specified Host Link Unit and stores starting from the specified storage word.
  • Page 433 Appendix C C-mode (Host Link) Command Master DM AREA READ (RD Command) (Sequence No. 707 (Hex 02C3)) Reads the contents of the specified number of DM Area words beginning with the designated word from the specified Host Link Unit and stores starting from the specified storage word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 434 Appendix C C-mode (Host Link) Command Master AR AREA READ (RJ Command) (Sequence No. 708 (Hex 02C4)) Reads the contents of the specified number of AR Area words beginning with the designated word from the specified Host Link Unit and stores starting from the specified storage word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 435 Appendix C C-mode (Host Link) Command Master EM AREA READ (RE Command) (Sequence No. 709 (Hex 02C5)) Reads the contents of the specified number of EM Area words beginning with the designated word from the specified Host Link Unit and stores starting from the specified storage word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 436 Appendix C C-mode (Host Link) Command Master CIO AREA WRITE (WR Command) (Sequence No. 710 (Hex 02C6)) Writes the specified write data to the specified Host Link Unit starting from the designated CIO Area word. Writing is done in word units. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 437 Appendix C C-mode (Host Link) Command Master LR AREA WRITE (WL Command) (Sequence No. 711 (Hex 02C7)) Writes the specified write data to the specified Host Link Unit starting from the designated Link Area (CS/CJ Series: CIO 1000 to CIO 1199) word. Writing is done in word units. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 438 Appendix C C-mode (Host Link) Command Master HR AREA WRITE (WH Command) (Sequence No. 712 (Hex 02C8)) Writes the specified write data to the specified Host Link Unit starting from the designated HR Area word. Writ- ing is done in word units. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 439 Appendix C C-mode (Host Link) Command Master TIMER/COUNTER PV WRITE (WC Command) (Sequence No. 713 (Hex 02C9)) Writes the specified write data to the specified Host Link Unit starting from the designated timer/counter PV word. Writing is done in word units. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 440 C-mode (Host Link) Command Master Appendix C DM AREA WRITE (WD Command) (Sequence No. 714 (Hex 02CA)) Writes the specified write data to the specified Host Link Unit starting from the designated DM Area word. Writ- ing is done in word units. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 441 C-mode (Host Link) Command Master Appendix C AR AREA WRITE (WJ Command) (Sequence No. 715 (Hex 02CB)) Writes the specified write data to the specified Host Link Unit starting from the designated AR Area word. Writ- ing is done in word units. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 442 Appendix C C-mode (Host Link) Command Master EM AREA WRITE (WE Command) (Sequence No. 716 (Hex 02CC)) Writes the specified write data to the specified Host Link Unit starting from the designated EM Area word. Writ- ing is done in word units. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 443 C-mode (Host Link) Command Master Appendix C STATUS READ (MS Command) (Sequence No. 717 (Hex 02CD)) Reads the CPU Unit's operating conditions (status) from the specified Host Link Unit and stores in the words starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 444 Appendix C C-mode (Host Link) Command Master Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words (Undefined) End code Offset Contents (data format) Data Number of receive data words Always 0002 hex (2 decimal) (Undefined) End code The end code is stored in hexadecimal.
  • Page 445 Appendix C C-mode (Host Link) Command Master ABORT (XZ Command) (Sequence No. 720 (Hex 02D0)) Initializes the port of the specified Host Link Unit. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data Host Link unit No.
  • Page 446: D Host Link Fins Command Master

    Appendix D Host Link FINS Command Master The Host Link FINS Command Master Protocol provides communications sequences using FINS commands with the CS/CJ-series PLC as the host (master). This protocol is used to send user-specified or specific (e.g., MEMORY AREA READ) FINS commands enclosed in a Host Link header and terminator from a Serial Communications Unit/Board installed in a CS/CJ- series PLC connected through RS-232C or RS-422A/485 to a CS/CJ-series CPU Unit or to a Special I/O Unit or CPU Bus Unit on the network.
  • Page 447 Appendix D Host Link FINS Command Master Command and Response Formats Note In the following diagrams “hex” indicates hexadecimal values. Values in quotation marks, such as “00” indicate ASCII characters. Command Frame Host Link command code Host Link Response "@" unit number "A"...
  • Page 448 Appendix D Host Link FINS Command Master Command Frame Contents Item Contents The @ symbol is automatically attached to the beginning of the command. Host Link unit Specify the unit number for Host Link between 0 and 31 BCD. number Command code Specify a 2-character code.
  • Page 449 Appendix D Host Link FINS Command Master Item Contents DNA (Destination The same contents specified for SNA, SA1, and SA2 in the command that was received will be network address) returned. DA1 (Destination node address) DA2 (Destination unit address) SNA (Source net- The same contents specified for DNA, DA1, and DA2 in the command that was received will be work address) returned.
  • Page 450 Host Link FINS Command Master Appendix D Sequence Communications Function Ladder interface sequence name Send word Receive allocation word allocation 756 (02F4) MEMORY AREA Sends command code 0102 hex to the specified Host WRITE Link Unit and writes data to consecutive I/O memory area words.
  • Page 451 Host Link FINS Command Master Appendix D Relationship Between Host Link FINS Command/Response Frames and PMCR(260) Operands The relationship between Host Link FINS command/response frames and PMCR(260) operands is shown in the following diagram using communications sequence No. 750 as an example. Command Frame Response wait time...
  • Page 452 Appendix D Host Link FINS Command Master FINS COMMAND SEND/RECEIVE (Sequence No. 750 (Hex 02EE) This sequence sends user-specified FINS commands to the specified Host Link Unit and stores the response starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 453 Host Link FINS Command Master Appendix D MEMORY AREA READ (Sequence No. 751 (Hex 02EF) This sequence sends command code 0101 hex to the specified Host Link Unit, reads the contents of consecu- tive I/O memory area words, and stores the data starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 454 Appendix D Host Link FINS Command Master CIO AREA READ (Sequence No. 752 (Hex 02F0) This sequence sends command code 0101 hex to the specified Host Link Unit, reads the contents of consecu- tive CIO Area words, and stores the data starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 455 Appendix D Host Link FINS Command Master AR AREA READ (Sequence No. 753 (Hex 02F1) This sequence sends command code 0101 hex to the specified Host Link Unit, reads the contents of consecu- tive AR Area words, and stores the data starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 456 Host Link FINS Command Master Appendix D DM AREA READ (Sequence No. 754 (Hex 02F2) This sequence sends command code 0101 hex to the specified Host Link Unit, reads the contents of consecu- tive DM Area words, and stores the data starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 457 Appendix D Host Link FINS Command Master EM0 AREA READ (Sequence No. 755 (Hex 02F3) This sequence sends command code 0101 hex to the specified Host Link Unit, reads the contents of consecu- tive EM Area words in Bank 0, and stores the data starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 458 Appendix D Host Link FINS Command Master MEMORY AREA WRITE (Sequence No. 756 (Hex 02F4)) This sequence sends command code 0103 hex to the specified Host Link Unit and writes the same data to consecutive I/O memory area words. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 459 Appendix D Host Link FINS Command Master CIO AREA WRITE (Sequence No. 757 (Hex 02F5)) This sequence sends command code 0102 hex to the specified Host Link Unit and writes data to consecutive CIO Area words. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of Remote destination...
  • Page 460 Appendix D Host Link FINS Command Master DM AREA WRITE (Sequence No. 758 (Hex 02F6)) This sequence sends command code 0102 hex to the specified Host Link Unit and writes data to consecutive DM Area words. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 461 Appendix D Host Link FINS Command Master EM0 AREA WRITE (Sequence No. 759 (Hex 02F7)) This sequence sends command code 0102 hex to the specified Host Link Unit and writes data to consecutive EM Area words in Bank 0. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of Remote destination...
  • Page 462 Appendix D Host Link FINS Command Master MEMORY AREA FILL (Sequence No. 760 (Hex 02F8)) This sequence sends command code 0102 hex to the specified Host Link Unit and writes data to consecutive I/O memory area words. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 463 Appendix D Host Link FINS Command Master CIO AREA FILL (Sequence No. 761 (Hex 02F9)) This sequence sends command code 0103 hex to the specified Host Link Unit and writes the same data to consecutive CIO Area words. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of Remote destination...
  • Page 464 Appendix D Host Link FINS Command Master DM AREA FILL (Sequence No. 762 (Hex 02FA)) This sequence sends command code 0103 hex to the specified Host Link Unit and writes the same data to consecutive DM Area words. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 465 Appendix D Host Link FINS Command Master EM0 AREA FILL (Sequence No. 763 (Hex 02FB)) This sequence sends command code 0103 hex to the specified Host Link Unit and writes the same data to consecutive EM Area words in Bank 0. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 466 Appendix D Host Link FINS Command Master OPERATING MODE CHANGE (RUN) (Sequence No. 764 (Hex 02FC)) This sequence sends command code 0401 hex to the specified Host Link Unit and changes the CPU Unit's operating mode to MONITOR mode. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 467 Appendix D Host Link FINS Command Master OPERATING MODE CHANGE (STOP) (Sequence No. 765 (Hex 02FD)) This sequence sends command code 0402 hex to the specified Host Link Unit and changes the CPU Unit's operating mode to PROGRAM mode. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of Remote destination...
  • Page 468 Appendix D Host Link FINS Command Master UNIT DATA READ (Sequence No. 766 (Hex 02FE)) This sequence sends command code 0501 hex to the specified Host Link Unit and stores the Unit data starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of Remote destination...
  • Page 469 Appendix D Host Link FINS Command Master UNIT STATUS READ (Sequence No. 767 (Hex 02FF)) This sequence sends command code 0601 hex to the specified Host Link Unit and stores the Unit's operating conditions (status) starting from the designated word. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of...
  • Page 470: E Mitsubishi Computer Link Master (A-Compatible 1C Frame, Model 1)

    Mitsubishi PLC (Sequencer CPU Module installed in a Computer Link Module). This protocol enables the OMRON PLC to be used as the host (master) to remotely execute RUN/STOP for or read/write the device memory of a Mitsubishi A/QnA/Q-series PLC that is connected either serially or on a MELSECNET/Ethernet network.
  • Page 471 Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Appendix E Command Response Formats Note In the following diagrams “hex” indicates hexadecimal values. Values in quotation marks, such as “00” indicate ASCII characters. Command Frame Station Transmission Command code Characters (text) delay 05 hex 30 hex...
  • Page 472 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Item Contents Device address Specify the addresses for specified device types in hexadecimal. Device points Specify the number of bits for bit data and the number of words for word data in hexadecimal. Mitsubishi Computer Link Master Protocol Sequences The Mitsubishi Computer Link Master Protocol provides the following 19 communications sequences.
  • Page 473 Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Appendix E Sequence Communications Computer Link Device type Function sequence name command 806 (0326) Device memory BR (Device mem- Device other than Reads the bit data for the number of device batch read as bit ory batch read as Timer/Counter...
  • Page 474 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) • Sending Device Read/Write Commands Common to AnA/AnU CPU Sequence Communications Computer Link Device type Function sequence name command 810 (032A) Device memory QR (Device Device other than Reads the word data for the number of device batch read as word memory batch Timer/Counter...
  • Page 475 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) • Sending Commands Common to ACPU Sequence Communications Computer Link Function sequence name command 818 (0332) Loopback test TT (Loopback Executes a loopback test at the Mitsubishi Computer Link Module test) with the specified station number (and the PLC number that fol- lows).
  • Page 476 Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Appendix E Send/Receive User-specified Computer Link Commands without Conversion (Sequence No. 801 (Hex 0321)) Command Code: User-specified This sequence sends the text data of a user-specified Computer Link command to the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows) without converting into ASCII.
  • Page 477 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Word data (Any Device Type Except T/C) (Sequence No. 802 (Hex 0322)) (Command Code: WR) This sequence reads the word data for the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the specified word + 2 in the CS/CJ-series CPU Unit.
  • Page 478 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Word Data (T/C Device Type) (Sequence No. 803 (Hex 0323)) (Command Code: WR) This sequence reads the word (PV) data for the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the specified word + 2 in the CS/CJ-series CPU Unit.
  • Page 479 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Word Data (Any Device Type Except T/C) (Sequence No. 804 (Hex 0324)) (Command Code: WW) This sequence writes the word data starting from the specified word + 6 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 480 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Word Data (T/C Device Type) (Sequence No. 805 (Hex 0325)) (Command Code: WW) This sequence writes the word (PV) data starting from the specified word + 6 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 481 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Bit Data (All Device Types Except T/C) (Sequence No. 806 (Hex 0326)) (Command Code: BR) This sequence reads the bit data for the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station num- ber (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the spec- ified word + 2 in the CS/CJ-series CPU Unit.
  • Page 482 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Bit Data (T/C Device Type) (Sequence No. 807 (Hex 0327)) (Command Code: BR) This sequence reads the bit (PV) data for the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the specified word + 2 in the CS/CJ-series CPU Unit.
  • Page 483 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Bit Data (All Device Types Except T/C) (Sequence No. 808 (Hex 0328)) (Command Code: BW) This sequence writes the bit data starting from the specified word + 6 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 484 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Bit Data (T/C Device Type) (Sequence No. 809 (Hex 0329)) (Command Code: BW) This sequence writes the bit (PV) data starting from the specified word + 6 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 485 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Word Data (All Device Types Except T/C) (Sequence No. 810 (Hex 032A)) (Command Code: QR) This sequence reads the word data for the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the specified word + 2 in the CS/CJ-series CPU Unit.
  • Page 486 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Word Data (T/C Device Type) (Sequence No. 811 (Hex 032B)) (Command Code: QR) This sequence reads the word (PV) data for the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the specified word + 2 in the CS/CJ-series CPU Unit.
  • Page 487 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Word Data (All Device Types Except T/C) (Sequence No. 812 (Hex 032C)) (Command Code: QW) This sequence writes the word data starting from the specified word + 7 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 488 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Word Data (T/C Device Type) (Sequence No. 813 (Hex 032D)) (Command Code: QW) This sequence writes the word (PV) data starting from the specified word + 7 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 489 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Bit Data (All Device Types Except T/C) (Sequence No. 814 (Hex 032E)) (Command Code: JR) This sequence reads the bit data for the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station num- ber (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the spec- ified word + 2 in the CS/CJ-series CPU Unit.
  • Page 490 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Batch Read as Bit Data (T/C Device Type) (Sequence No. 815 (Hex 032F)) (Command Code: JR) This sequence reads the bit (PV) data for the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows), converts the data into hexadecimal, and stores it starting from the specified word + 2 in the CS/CJ-series CPU Unit.
  • Page 491 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Bit Data (All Device Types Except T/C) (Sequence No. 816 (Hex 0330)) (Command Code: JW) This sequence writes the bit data starting from the specified word + 7 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (except T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 492 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Device Memory Fill as Bit Data (T/C Device Type) (Sequence No. 817 (Hex 0331)) (Command Code: JW) This sequence writes the bit (PV) data starting from the specified word + 7 in the CS/CJ-series CPU Unit to the number of device points starting from the specified device address for the specified device type (T, C) in the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows).
  • Page 493 Appendix E Mitsubishi Computer Link Master (A-compatible 1C Frame, Model 1) Loopback Test (Sequence No. 818 (Hex 0332)) (Command Code: TT) This sequence executes a loopback test at the Mitsubishi Computer Link Module with the specified station number (and the PLC number that follows). (E.g, if the data starting from the specified word + 3 is sent from the host, the Computer Link Module will return the data unchanged to the host.) Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words...
  • Page 494 Appendix F E5@K Digital Controller Read Protocol The E5@K Digital Controller Read Protocol reads and controls various parameters in remote mode for the Controller connected to the Serial Communications Unit/Board via RS-232C or RS-485 cable. Structure of the Protocol The following table shows the structure of the E5@K Digital Controller Read Protocol. Sequence Communications sequence Function...
  • Page 495: Connection Configuration

    E5 @ K Digital Controller Read Protocol Appendix F Connection Configuration The connection configuration for using the E5@K Digital Controller Read Protocol is shown below. RS-232C Connection Serial Communications Board (CS Series only) Serial Communications Unit E5#K (CS/CJ Series) PLC PS RS-232C RS-232C port →...
  • Page 496 E5 @ K Digital Controller Read Protocol Appendix F RS-485 Connection Serial Communications Board (CS Series only) Serial Communications Unit (CS/CJ Series) E5#K PLC PS RS-485 port → RS-485 E5#K → RS-485 Up to 31 units can be connected. E5#K →...
  • Page 497 E5 @ K Digital Controller Read Protocol Appendix F Read Process Value (Sequence No. 000 (Hex 0000)) Reads the process value and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined)
  • Page 498 E5 @ K Digital Controller Read Protocol Appendix F Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words MV (heating) MV (cooling) Offset Contents (data format) Data Number of receive data words 0003 (4 digits Hex) MV (heating) (4 digits BCD)
  • Page 499 E5 @ K Digital Controller Read Protocol Appendix F Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Alarm value 1 Alarm value 2 Offset Contents (data format) Data Number of receive data words 0003 (4 digits Hex) Alarm value 1 (4 digits BCD)
  • Page 500 E5 @ K Digital Controller Read Protocol Appendix F Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Cooling coefficient Offset Contents (data format) Data Number of receive data words 0002 (4 digits Hex) Cooling coefficient (4 digits BCD) 0001 to 9999 Read Dead Band (Sequence No.
  • Page 501 E5 @ K Digital Controller Read Protocol Appendix F Read Hysteresis (Sequence No. 009 (Hex 0009)) Reads the hysteresis for heating and for cooling and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 502 E5 @ K Digital Controller Read Protocol Appendix F Read SP Ramp Time Unit and Set Value (Sequence No. 011 (Hex 000B)) Reads the SP ramp time unit and SP ramp set value and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 503 E5 @ K Digital Controller Read Protocol Appendix F Read MV at Stop Time and at PV Error (Sequence No.013 (Hex 000D)) Reads the MV at stop time and at PV error and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 504 E5 @ K Digital Controller Read Protocol Appendix F Offset Contents (data format) Data MV lower limit (4 digits BCD) F050 to MV upper limit –1 F indicates a negative value values. A050 to 1050 for heating/cooling control A indicates a negative value. MV change rate limit 0000 to 1000 (4 digits BCD)
  • Page 505 E5 @ K Digital Controller Read Protocol Appendix F Read Input Shift Limits (Sequence No. 017 (Hex 0011)) Reads the input shift upper limit and input shift lower limit and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 506 E5 @ K Digital Controller Read Protocol Appendix F Receive Data Word Allocation (4th Operand of PMCR(260)) Receive Number of receive data words data storage Process value words Set point during SP ramp MV (heating) 1st unit MV (cooling) Set point Process value Set point during SP ramp 8th unit (max.)
  • Page 507 E5 @ K Digital Controller Read Protocol Appendix F Receive Data Word Allocation (4th Operand of PMCR(260)) Receive Number of receive data words data storage Alarm value 1 words Alarm value 2 Alarm value 3 1st unit Proportional band Integral time Derivative time Alarm value 1 Alarm value 2...
  • Page 508 E5 @ K Digital Controller Read Protocol Appendix F Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined) Unit No. (Undefined) Unit No. (Undefined) Unit No. (max.) Offset Contents (data format) Data...
  • Page 509 E5 @ K Digital Controller Read Protocol Appendix F Offset Contents (data format) Data • • • 8th unit 0001 to 0099 (max.) Control period (cooling) (4 digits BCD) Read Level 2 Parameters 1 (Sequence No. 021 (Hex 0015)) Reads parameters in level 2 (SP ramp time unit, SP ramp set value, LBA detection time, MV at stop, MV at PV Error, MV upper limit, MV lower limit, and MV change rate limit) from multiple units and stores the results in the specified words.
  • Page 510 E5 @ K Digital Controller Read Protocol Appendix F Offset Contents (data format) Data Number of units × 8 + 1 Number of receive data words (4 digits Hex) 1st unit 0000: s, 0001: h SP ramp time unit (4 digits BCD) 1st unit 0000 to 9999 SP ramp set value (4 digits BCD)
  • Page 511 E5 @ K Digital Controller Read Protocol Appendix F Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Input digital filter Alarm 1 hysteresis Alarm 2 hysteresis 1st unit Alarm 3 hysteresis Input shift upper limit Input shift lower limit Input digital filter...
  • Page 512 E5 @ K Digital Controller Read Protocol Appendix F General-purpose Read (Sequence No. 023 (Hex 0017)) Reads the specified parameter and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data (Undefined)
  • Page 513 E5 @ K Digital Controller Read Protocol Appendix F...
  • Page 514 Appendix G E5@K Digital Controller Write Protocol The E5@K Digital Controller Write Protocol writes and controls various settings in remote mode for the Control- ler connected to the Serial Communications Unit/Board via RS-232C or RS-485 cable. Note Negative values cannot be written. All values must be set as unsigned BCD. Structure of the Protocol The following table shows the structure of the E5@K Digital Controller Write Protocol.
  • Page 515 E5 @ K Digital Controller Write Protocol Appendix G Send word allocation: Set the constant 0000 for the 3rd operand (S). Receive word allocation: Set the constant 0000 for the 4th operand (D). Connections The connections are the same as that for the E5@K Digital Controller Read Protocol. Write Set Point (Sequence No.
  • Page 516 E5 @ K Digital Controller Write Protocol Appendix G Write Proportional Band, Integral Time, and Derivative Time (Sequence No. 052 (Hex 0034)) Writes the proportional band, integral time, and derivative time. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data (Undefined)
  • Page 517 E5 @ K Digital Controller Write Protocol Appendix G Receive Data Word Allocation (4th Operand of PMCR(260)) None. Write Manual Reset Value (Sequence No. 055 (Hex 0037)) Writes the manual reset value. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 518 E5 @ K Digital Controller Write Protocol Appendix G Offset Contents (data format) Data Control period (heating) 0001 to 0099 (4 digits BCD) Control period (cooling) 0001 to 0099 (4 digits BCD) Receive Data Word Allocation (4th Operand of PMCR(260)) None.
  • Page 519 E5 @ K Digital Controller Write Protocol Appendix G Write MV at Stop Time and at PV Error (Sequence No. 060 (Hex 003C)) Writes the MV at stop time and the MV at PV error. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 520 E5 @ K Digital Controller Write Protocol Appendix G Write Input Digital Filter (Sequence No. 062 (Hex 003E)) Writes the input digital filter. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 521 E5 @ K Digital Controller Write Protocol Appendix G Receive Data Word Allocation (4th Operand of PMCR(260)) None. Write Level 0 Parameters (Sequence No. 065 (Hex 0041)) Writes parameters (set points) in level 0 to multiple units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 522 E5 @ K Digital Controller Write Protocol Appendix G Write Level 1 Parameters 1 (Sequence No. 066 (Hex 0042)) Writes parameters in level 1 (alarm value 1, alarm value 2, alarm value 3, proportional band, integral time, and derivative time) to multiple units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 523 E5 @ K Digital Controller Write Protocol Appendix G Write Level 1 Parameter 2 (Sequence No. 067 (Hex 0043)) Writes parameters in level 1 (cooling coefficient, dead band, manual reset value, hysteresis (heating), hystere- sis (cooling), control period (heating), and control period (cooling)) to multiple units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 524 E5 @ K Digital Controller Write Protocol Appendix G Write Level 2 Parameters 1 (Sequence No. 068 (Hex 0044)) Writes parameters in level 2 (SP ramp time unit, SP ramp set value, LBA detection time, MV at stop time, MV at PV error, MV upper limit, MV lower limit, and MV change rate limit) to multiple units.
  • Page 525 E5 @ K Digital Controller Write Protocol Appendix G Write Level 2 Parameters 2 (Sequence No. 069 (Hex 0045)) Writes parameters in level 2 (input digital filter, alarm 1 hysteresis, alarm 2 hysteresis, alarm 3 hysteresis, input shift upper limit, and input shift lower limit) to multiple units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 526 E5 @ K Digital Controller Write Protocol Appendix G General-purpose Write (Sequence No. 070 (Hex 0046)) Writes the specified parameter. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No. (Undefined) Parameter No.
  • Page 527 E5 @ K Digital Controller Write Protocol Appendix G Run/Stop (Sequence No. 072 (Hex 0048)) Switches the mode to Run or Stop according to the command code. This sequence can be executed for multi- ple units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 528 E5 @ K Digital Controller Write Protocol Appendix G Offset Contents (data format) Data Number of units × 2 + 2 Number of send data words (4 digits Hex) Number of units (4 digits Hex) 0001 to 0008 1st unit 00 to 31 Unit No.
  • Page 529 E5 @ K Digital Controller Write Protocol Appendix G Switch to Level 1 (Sequence No. 075 (Hex 004B)) Switches the setting level to level 1 (setup mode, extended mode). This sequence can be executed for multiple units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 530 Appendix H E5ZE Temperature Controller Read Protocol The E5ZE Temperature Controller Read Protocol reads and controls various parameters in remote mode for the Temperature Controller connected to the Serial Communications Unit/Board via RS-232C or RS-422/485 cable. Note All sequences in this appendix operate on memory bank 0 and cannot be used for other memory banks. Structure of the Protocol The following table shows the structure of the E5ZE Temperature Controller Read Protocol Sequence...
  • Page 531 9-pin female Signal name Shield Signal name Note 1. The maximum communications cable length is 15 m. Use a shielded twisted-pair cable for the cable. 2. Use a 25-pin D-sub Plug (OMRON XM2A-2501). 3. Use XM2S-2511 Hood (OMRON) or an equivalent.
  • Page 532 Appendix H E5ZE Temperature Controller Read Protocol RS422/485 Connections • RS-485 2-wire Connections Pin No. Signal name Abbreviation Signal direction Disabled (Do not connect.) Disabled (Do not connect.) Signal ground Terminal B (+ side) Terminal A (– side) Turn off the communications switch to disconnect terminating resistance.
  • Page 533 Appendix H E5ZE Temperature Controller Read Protocol • RS-422 4-wire Connections Pin No. Signal name Abbreviation Signal direction Receive data B Input Receive data A Input Signal ground Send data B Output Output Send data A Turn off the communications switch Serial Commu- to disconnect terminating resistance.
  • Page 534 Appendix H E5ZE Temperature Controller Read Protocol Switch Settings This section shows the switch settings for using the E5ZE Temperature Controller Read Protocol. Communications Parameter DIP Switch Pins 3 and 4: Terminating resistance Pins 1 and 2: RS-422/RS-485 Factory defaults: All OFF Pins Parameter RS-422...
  • Page 535 Appendix H E5ZE Temperature Controller Read Protocol Read Set Point (Sequence No. 100 (Hex 0064)) Reads the set points and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 536 Appendix H E5ZE Temperature Controller Read Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Process value (rightmost 4 digits) Channel 0 Process value (leftmost 1 digit) Process value (rightmost 4 digits) Channel 1 Process value (leftmost 1 digit) Process value (rightmost 4 digits)
  • Page 537 Appendix H E5ZE Temperature Controller Read Protocol Offset Contents (data format) Data Number of receive data words 0011 (0017 decimal) (4 digits Hex) Channel 0 0000 to 1000 Output value (4 digits BCD) Channel 0 0000 to 1000 Cooling output value (4 digits BCD) Channel 1 0000 to 1000 Output value (4 digits BCD)
  • Page 538 Appendix H E5ZE Temperature Controller Read Protocol Offset Contents (data format) Data Number of receive data words 0029 (0041 decimal) (4 digits Hex) Channel 0 Varies according to the temperature sensor Set point (rightmost 4 digits) type. Refer to the manual for the E5ZE. (4 digits BCD) Channel 0 Set point (leftmost 1 digit) (1 digit BCD)
  • Page 539 Appendix H E5ZE Temperature Controller Read Protocol Offset Contents (data format) Data Number of receive data words 0019 (0025 decimal) (4 digits Hex) Channel 0 0000 to 9999 Constant P (4 digits BCD) Channel 0 0000 to 3999 Constant I (4 digits BCD) Channel 0 0000 to 3999 Constant D (4 digits BCD)
  • Page 540 Appendix H E5ZE Temperature Controller Read Protocol Read Output Mode (Sequence No. 106 (Hex 006A)) Reads the output modes (normal/reverse) and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 541 Appendix H E5ZE Temperature Controller Read Protocol Read Alarm Temperatures (Sequence No. 108 (Hex 006C)) Reads the alarm temperatures and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 542 Appendix H E5ZE Temperature Controller Read Protocol Read Hysteresis (Sequence No. 109 (Hex 006D)) Reads the hysteresis and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 543 Appendix H E5ZE Temperature Controller Read Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Status code Channel 0 Status code Channel 1 Status code Channel 7 Offset Contents (data format) Data Number of receive data words 0009...
  • Page 544 Appendix H E5ZE Temperature Controller Read Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Set code Offset Contents (data format) Data Number of receive data words 0002 (4 digits Hex) Set code (4 digits BCD) 0000: unit of 1 0001: unit of 0.1...
  • Page 545 Appendix H E5ZE Temperature Controller Read Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Manual reset value Channel 0 Manual reset value Channel 1 Manual reset value Channel 7 Offset Contents (data format) Data Number of receive data words...
  • Page 546 Appendix H E5ZE Temperature Controller Read Protocol Offset Contents (data format) Data Channel 7 000 to 999 Ramp value (3 digits BCD) Channel 7 S: Seconds; M: Minutes; H: Hours Time unit (one ASCII character) Read Present Set Point (Sequence No. 116 (Hex 0074)) Reads the present set points during ramp operation and stores the results in the specified word.
  • Page 547 Appendix H E5ZE Temperature Controller Read Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Output value lower limit Output value upper limit Channel 0 Cooling control output value lower limit Cooling control output value upper limit Output value lower limit Output value upper limit...
  • Page 548 Appendix H E5ZE Temperature Controller Read Protocol Offset Contents (data format) Data Number of receive data words 0009 (4 digits Hex) Channel 0 0000 to 1000 Output value change rate limit (4 digits BCD) Channel 1 0000 to 1000 Output value change rate limit (4 digits BCD) •...
  • Page 549 Appendix H E5ZE Temperature Controller Read Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Heater burnout detection current Channel 0 SSR failure detection current Heater burnout detection current Channel 1 SSR failure detection current Heater burnout detection current Channel 7...
  • Page 550 Appendix H E5ZE Temperature Controller Read Protocol Offset Contents (data format) Data Number of receive data words 0011 (0017 decimal) (4 digits Hex) Channel 0 0000 to 0500 Heater current (4 digits BCD) Channel 0 0000 to 0500 SSR leakage current (4 digits BCD) •...
  • Page 551 Appendix H E5ZE Temperature Controller Read Protocol Read Cooling Coefficient (Sequence No. 123 (Hex 007B)) Reads the cooling coefficients and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 552 Appendix I E5ZE Temperature Controller Write Protocol The E5ZE Temperature Controller Write Protocol writes and controls various settings in remote mode for the Temperature Controller connected via a RS-232C or RS-422/485 cable from the PLC via the Serial Communi- cations Unit/Board. Note 1.
  • Page 553 Appendix I E5ZE Temperature Controller Write Protocol Communications sequence name Function Ladder interface quence Send Receive word word allocation allocation Initialize settings Initializes settings. (00A9) Write HB alarm and HS alarm valid Writes the HB alarm and HS alarm valid chan- (00AA) channels nels.
  • Page 554 Appendix I E5ZE Temperature Controller Write Protocol Offset Contents (data format) Data Number of send data words 0012 (0018 decimal) (fixed) (4 digits Hex) Unit No. (2 digits Hex) 00 to 0F Channel 0 Varies according to the temperature sensor Set point type.
  • Page 555 Appendix I E5ZE Temperature Controller Write Protocol Write Proportional Band, Integral Time, and Derivative Time (Sequence No. 152 (Hex 0098)) Writes the proportional bands (constant P), integral times (constant I), and derivative times (constant D). Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 556 Appendix I E5ZE Temperature Controller Write Protocol Write Control Period (Sequence No. 153 (Hex 0099)) Writes the control periods and cooling control periods. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 557 Appendix I E5ZE Temperature Controller Write Protocol Write Output Mode (Sequence No. 154 (Hex 009A)) Writes the output mode (normal/reverse). Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No. (Undefined) Write code Offset...
  • Page 558 Appendix I E5ZE Temperature Controller Write Protocol Write Alarm Temperature (Setting Unit 1) (Sequence No. 156 (Hex 009C)) Writes the alarm temperatures using a setting unit of 1 (4 digits) Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined)
  • Page 559 Appendix I E5ZE Temperature Controller Write Protocol Write Alarm Temperature (Setting Unit 0.1) (Sequence No. 157 (Hex 009D)) Writes the alarm temperatures using a setting unit of 0.1 (5 digits) Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined)
  • Page 560 Appendix I E5ZE Temperature Controller Write Protocol Write Hysteresis (Sequence No. 158 (Hex 009E)) Writes the hysteresis for control outputs for ON/OFF control. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 561 Appendix I E5ZE Temperature Controller Write Protocol Cancel Autotuning (Sequence No. 160 (Hex 00A0)) Cancels Autotuning (AT) for all channels. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No. Offset Contents (data format) Data...
  • Page 562 Appendix I E5ZE Temperature Controller Write Protocol Offset Contents (data format) Data Number of send data words 000A (000A decimal) (fixed) (4 digits Hex) Unit No. (2 digits Hex) 00 to 0F Channel 0 0000 to 0999 Input shift value (4 digits BCD) Channel 1 0000 to 0999 Input shift value (4 digits BCD)
  • Page 563 Appendix I E5ZE Temperature Controller Write Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) None. Write Ramp Value (Sequence No. 164 (Hex 00A4)) Writes the ramp values. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data (Undefined)
  • Page 564 Appendix I E5ZE Temperature Controller Write Protocol Offset Contents (data format) Data Number of send data words 0012 (0018 decimal) (fixed) (4 digits Hex) Unit No. (2 digits Hex) 00 to 0F Channel 0 0000 to 1000 Output value (4 digits BCD) Channel 0 0000 to 1000 Cooling output value...
  • Page 565 Appendix I E5ZE Temperature Controller Write Protocol Offset Contents (data format) Data Number of send data words 0022 (0034 decimal) (fixed) (4 digits Hex) Unit No. (2 digits Hex) 00 to 0F Channel 0 0000 to 1000 Output value lower limit (4 digits BCD) Channel 0 0000 to 1000...
  • Page 566 Appendix I E5ZE Temperature Controller Write Protocol Offset Contents (data format) Data Number of send data words 000A (0010 decimal) (fixed) (4 digits Hex) Unit No. (2 digits Hex) 00 to 0F Channel 0 0000 to 1000 Output change rate limit (4 digits BCD) Channel 1 0000 to 1000...
  • Page 567 Appendix I E5ZE Temperature Controller Write Protocol Write HB and HS Alarm Valid Channels (Sequence No. 170 (Hex 00AA)) Writes the valid or invalid channels of HB alarm and HS alarm. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined)
  • Page 568 Appendix I E5ZE Temperature Controller Write Protocol Offset Contents (data format) Data Number of send data words 0012 (0018 decimal) (fixed) (4 digits Hex) Unit No. (2 digits Hex) 00 to 0F Channel 0 0000 to 0500 Heater burnout detection current (4 digits BCD) Channel 0 0000 to 0500...
  • Page 569 Appendix I E5ZE Temperature Controller Write Protocol Offset Contents (data format) Data Number of send data words 000A (0010 decimal) (fixed) (4 digits Hex) Unit No. (2 digits Hex) 00 to 0F Channel 0 0000 to 0999 Dead band/overlap band (4 digits BCD) Channel 1 0000 to 0999...
  • Page 570 Appendix I E5ZE Temperature Controller Write Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) None. Start Control (Sequence No. 174 (Hex 00AE)) Starts temperature control for all channels in the specified Unit. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 571: I E5Ze Temperature Controller Write Protocol

    Appendix I E5ZE Temperature Controller Write Protocol...
  • Page 572 Appendix J E5@J Temperature Controller Protocol The E5@J Temperature Controller Protocol performs various settings and controls in remote mode for the Tem- perature Controller connected to the Serial Communications Unit/Board via RS-232C or RS-422A/485 cable. Note Negative values cannot be written. All values must be set as unsigned BCD. Structure of the Protocol The following table shows the structure of the E5@J Temperature Controller Protocol.
  • Page 573 E5 @ J Temperature Controller Protocol Appendix J Connections The connections for using the E5@J Temperature Controller Protocol are shown below. RS-232C Connections Serial Communications Board (CS Series only) Serial Communications Unit (CS/CJ Series) E5#J PLC PS RS-232C RS-232C port →...
  • Page 574 E5 @ J Temperature Controller Protocol Appendix J RS-422A/485 Connections Serial Communications Board (CS Series only) Serial Communications Unit (CS/CJ Series) E5#J PLC PS RS-422A/485 port → RS-422A/485 E5#J → RS-422A/485 Up to 32 units can be connected. E5#J → RS-422A/485 •...
  • Page 575 E5 @ J Temperature Controller Protocol Appendix J • RS-485 2-wire Connections Signal name Abbreviation Signal direction Pin No. Terminal A 26, 28 Terminal B 25, 29 Signal ground SN751177N Serial Commu- or equivalent nications Board/Unit RS-485: D-sub E5AJ 9-pin female Terminating RS-485: resistance...
  • Page 576 E5 @ J Temperature Controller Protocol Appendix J Select Local Mode (Sequence No. 201 (Hex 00C9)) Switches the Controller to local mode. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 577 E5 @ J Temperature Controller Protocol Appendix J Save Set Point (Sequence No. 204 (Hex 00CC)) Saves the set point. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No. Offset Contents (data format) Data...
  • Page 578 E5 @ J Temperature Controller Protocol Appendix J Offset Contents (data format) Data Number of units × 5 + 2 Number of send data words (4 digits Hex) Number of units (4 digits Hex) 0001 to 0019 (1 to 25 decimal) 1st unit 00 to 31 Unit No.
  • Page 579 E5 @ J Temperature Controller Protocol Appendix J Offset Contents (data format) Data Number of units × 4 + 2 Number of send data words (4 digits Hex) Number of units (4 digits Hex) 0001 to 001F (1 to 31 decimal) 1st unit Unit No.
  • Page 580 E5 @ J Temperature Controller Protocol Appendix J Read Parameters 1 (Sequence No. 208 (Hex 00D0)) Reads the set points, alarm values 1, alarm values 2, and heater burnout alarm values for multiple units and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 581 E5 @ J Temperature Controller Protocol Appendix J Offset Contents (data format) Data Number of units × 4 + 1 Number of receive data words (4 digits Hex) 1st unit 0000 to 9999 Set point (4 digits BCD) When the left digit is –1, A is set and when it is –, F is set.
  • Page 582 E5 @ J Temperature Controller Protocol Appendix J Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Proportional band Integral time 1st unit Derivative time Proportional band Integral time 31th unit (max.) Derivative time Offset Contents (data format)
  • Page 583 E5 @ J Temperature Controller Protocol Appendix J Read Output Value (Sequence No. 211 (Hex 00D3)) Reads the output value and stores the results in the specified word. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 584 E5 @ J Temperature Controller Protocol Appendix J Offset Contents (data format) Data Number of send data words 0002 (fixed) (4 digits Hex) Unit No. (2 digits BCD) 00 to 31 Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Set point lower limit...
  • Page 585 E5 @ J Temperature Controller Protocol Appendix J Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words (Undefined) Status (Undefined) Input type Alarm 1 type Alarm 2 type Offset Contents (data format) Data Number of receive data words 0003...
  • Page 586 E5 @ J Temperature Controller Protocol Appendix J Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Receive data Offset Contents (data format) Data Number of receive data words 0002 (4 digits Hex) Read data (4 digits BCD) 0000 to 9999 When the left digit is –1, A is set and when it...
  • Page 587 E5 @ J Temperature Controller Protocol Appendix J...
  • Page 588: K Es100@ Digital Controller Protocol

    Appendix K ES100@ Digital Controller Protocol The ES100@ Digital Controller Protocol controls in remote mode and reads various settings from the Controller connected to the Serial Communications Unit/Board via RS-232C or RS-422A/485 cable. Note Negative values cannot be written. All values must be set as unsigned BCD. Structure of the Protocol The structure of the ES100@ Digital Controller Protocol is shown below.
  • Page 589 ES100 @ Digital Controller Protocol Appendix K Sequence Transmission Function Ladder interface sequence name Send word Receive word allocation allocation 271 (010F) Run command Starts control. 272 (0110) Reset (stop) Stops control. 273 (0111) Auto mode Switches the control mode to auto. 274 (0112) Manual mode Switches the control mode to a manual.
  • Page 590 ES100 @ Digital Controller Protocol Appendix K RS-422A/485 Connections Serial Communications Board (CS Series only) Serial Communications Unit ES100# (CS/CJ Series) PLC PS RS-422A/485 port → RS-422A/485 ES100# → RS-422A/485 Up to 32 units can be connected. ES100# → RS-422A/485 •...
  • Page 591 ES100 @ Digital Controller Protocol Appendix K Switch Settings There are two switches located on the board on the left of the Unit. Set SW1 to the interface: RS-422A or RS- 485. Set SW2 to the same setting as SW1 on the terminating Units and to the center on all other Units. →485 •...
  • Page 592 ES100 @ Digital Controller Protocol Appendix K Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Event 1 Event 2 Event 3 Event 4 1st unit Event 5 Event 6 Event 7 Event 8 Event 9 Event 10...
  • Page 593 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data 2nd unit 00 to 31 Unit No. (2 digits BCD) • • • 25th unit 00 to 31 (max.) Unit No. (2 digits BCD) Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words...
  • Page 594 ES100 @ Digital Controller Protocol Appendix K Read Error Detection Data (Sequence No. 252 (Hex 00FC)) Reads error groups from 0 to 15 in the variable area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined)
  • Page 595 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data • • +128 16th unit 00 to FF (max.) Error group 14 data (2 digits Hex) 00 to FF Error group 15 data (2 digits Hex) Read Heater Burnout Data (Sequence No. 253 (Hex 00FD)) Reads the heater burnout alarm in the variable area.
  • Page 596 ES100 @ Digital Controller Protocol Appendix K Read PV Data (Sequence No. 254 (Hex 00FE)) Reads the PV data for the variable type “analog data” in the variable area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units...
  • Page 597 ES100 @ Digital Controller Protocol Appendix K Read SP Data (Sequence No. 255 (Hex 00FF)) Reads the SP data for the variable type “analog data” in the variable area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units...
  • Page 598 ES100 @ Digital Controller Protocol Appendix K Read MV Data (Sequence No. 256 (Hex 0100)) Reads the MV for the variable type “analog data” in the variable area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined)
  • Page 599 ES100 @ Digital Controller Protocol Appendix K Read Control Monitor Data (Sequence No. 257 (Hex 0101)) Reads the control monitor data (SP/PV/MV) in the variable area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined)
  • Page 600 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data • • • +125 21st unit 00000000 to 09999000 MV (rightmost 4 digits) (4 digits BCD) F indicates a negative number. +126 21st unit MV (leftmost 4 digits) (4 digits BCD) Read Adjustment Parameters (Sequence No.
  • Page 601 ES100 @ Digital Controller Protocol Appendix K Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words (rightmost 4 digits) Fixed SP (leftmost 4 digits) (rightmost 4 digits) Control output 1 pulse cycle (leftmost 4 digits) (rightmost 4 digits) Control output 2 pulse cycle...
  • Page 602 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of receive data words 002B (0043 decimal) (4 digits Hex) +1 to 2 Fixed SP (8 digits BCD) 00000000 to 09999000 F indicates a negative number. +3 to 4 Control output 1 pulse cycle (8 digits BCD) +5 to 6...
  • Page 603 ES100 @ Digital Controller Protocol Appendix K Write Adjustment Parameters (Sequence No. 259 (Hex 0103)) Writes the adjust parameters in the parameter area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Unit No.
  • Page 604 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of send data words 002C (0044 decimal) (fixed) (4 digits Hex) Unit No. (2 digits BCD) 00 to 31 +2 to 3 Fixed SP (8 digits BCD) 00000000 to 09999000 +4 to 5 Control output 1 pulse cycle...
  • Page 605 ES100 @ Digital Controller Protocol Appendix K Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words PID No. 1 P (rightmost 4 digits) PID No. 1 P (leftmost 4 digits) PID No. 1 I (rightmost 4 digits) PID No.
  • Page 606 ES100 @ Digital Controller Protocol Appendix K Read PID Control Parameters 2 (Sequence No. 261 (Hex 0105)) Reads PID parameters No. 5 to 8 from the PID control parameters in the parameter area and stores the results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 607 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of receive data words 0039 (0057 decimal) (4 digits Hex) +1 to 2 PID No. 5 P (8 digits BCD) 00000000 to 09999000 +3 to 4 PID No. 5 I (8 digits BCD) +5 to 6 PID No.
  • Page 608 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of send data words 003A (0058 decimal) (fixed) (4 digits Hex) Unit No. (2 digits BCD) 00 to 31 +2 to 3 PID No. 1 P (8 digits BCD) 00000000 to 09999000 +4 to 5 PID No.
  • Page 609 ES100 @ Digital Controller Protocol Appendix K Write PID Control Parameters 2 (Sequence No. 263 (Hex 0107)) Writes the PID parameters No. 5 to 8 to the PID control parameters in the parameter area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 610 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of send data words 003A (0058 decimal) (fixed) (4 digits Hex) Unit No. (2 digits BCD) 00 to 31 +2 to 3 PID No. 5 P (8 digits BCD) 00000000 to 09999000 +4 to 5 PID No.
  • Page 611 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of units × 2 + 2 Number of send data words (4 digits Hex) Number of units (4 digits Hex) 0001 to 0020 (1 to 32 decimal) 1st unit 00 to 31 Unit No.
  • Page 612 ES100 @ Digital Controller Protocol Appendix K Write Local SP (Sequence No. 265 (Hex 0109)) Writes the local SP to the program parameter area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined)
  • Page 613 ES100 @ Digital Controller Protocol Appendix K Read Program Parameters (Sequence No. 266 (Hex 010A)) Reads the local SP, step time, PID set No., wait code, and events from 1 to 10 set values in the program param- eter area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words...
  • Page 614 ES100 @ Digital Controller Protocol Appendix K Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Local SP (rightmost) Local SP (leftmost) Step bank time (rightmost) Step bank time (leftmost) PID set No. (rightmost) PID set No.
  • Page 615 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of units × 28 + 1 Number of receive data words (4 digits Hex) +1 to 2 1st unit 00000000 to 09999000 Local SP (8 digits BCD) F indicates a negative number.
  • Page 616 ES100 @ Digital Controller Protocol Appendix K Write Program Parameters (Sequence No. 267 (Hex 010B)) Writes the local SP, step time, PID set No., wait code, and events from 1 to 10 settings in the program parame- ter area. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data...
  • Page 617 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of units × 30 + 2 Number of send data words (4 digits Hex) Number of units (4 digits BCD) 0001 to 0004 1st unit Unit No. (2 digits BCD) 00 to 31 1st unit Pattern No.
  • Page 618 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of send data words Number of units + 2 (4 digits Hex) Number of units (4 digits Hex) 0001 to 0020 (1 to 32 decimal) 1st unit 00 to 31 Unit No.
  • Page 619 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of send data words Number of units + 2 (4 digits Hex) Number of units (4 digits Hex) 0001 to 0020 (1 to 32 decimal) 1st unit 00 to 31 Unit No.
  • Page 620 ES100 @ Digital Controller Protocol Appendix K Reset (Stop) (Sequence No. 272 (Hex 0110)) Stops control. Send Data Word Allocation (2nd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined) Unit No. 1st unit (Undefined) Unit No.
  • Page 621 ES100 @ Digital Controller Protocol Appendix K Manual Mode (Sequence No. 274 (Hex 0112)) Switches the control mode to the manual mode. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined) Unit No.
  • Page 622 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of units × 2 + 2 Number of send data words (4 digits Hex) Number of units (4 digits Hex) 0001 to 0020 (1 to 32 decimal) 1st unit 00 to 31 Unit No.
  • Page 623 ES100 @ Digital Controller Protocol Appendix K Change Pattern No. (Sequence No. 277 (Hex 0115)) Changes the pattern number. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined) Unit No.
  • Page 624 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of units × 2 + 2 Number of send data words (4 digits Hex) Number of units (4 digits Hex) 0001 to 0020 (1 to 32 decimal) 1st unit 00 to 31 Unit No.
  • Page 625 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of units × 5 + 1 Number of receive data words (4 digits Hex) 1st unit Operation status (2 digits BCD) 00: Reset 01: Run Hold (2 digits BCD) 00: Not hold 01: Hold 1st unit...
  • Page 626 ES100 @ Digital Controller Protocol Appendix K Offset Contents (data format) Data Number of send data words 0003 to 00FA (3 to 250 decimal) (4 digits Hex) Number of send data bytes 0001 to 01F0 (1 to 496 decimal) (4 digits Hex) The number of send bytes not including @, the FCS, or the terminator.
  • Page 627 ES100 @ Digital Controller Protocol Appendix K...
  • Page 628 Appendix L K3T@ Intelligent Signal Processor Protocol The K3T@ Intelligent Signal Processor Protocol is used to make various settings or control remotely the Intelli- gent Signal Processor connected to the Serial Communications Unit/Board via RS-232C or RS-422/485 cable. Protocol Configuration The configuration of the K3T@ Intelligent Signal Processor Protocol is shown as follows: Sequence Communications...
  • Page 629 K3T @ Intelligent Signal Processor Protocol Appendix L Sequence Communications Function Ladder interface Notes sequence name Send word Receive word allocation allocation 319 (013F) Read set value H (contin- Reads the set value H. uous units) 320 (0140) Read set value L (contin- Reads the set value L.
  • Page 630 K3T @ Intelligent Signal Processor Protocol Appendix L 5. Ladder Interface Settings YES: User settings are required for the 3rd and 4th operands of PMCR(260). Send word allocation: Set the constant 0000 for the 3rd operand (S). Receive word allocation: Set the constant 0000 for the 4th operand (D).
  • Page 631 K3T @ Intelligent Signal Processor Protocol Appendix L RS-422/485 Connections Serial Communications Board (CS Series only) Serial Communications Unit (CS/CJ Series) PLC PS RS-422/485 port K3T# RS-422/485 K3T# RS-422/485 Up to 32 units can be connected K3T# RS-422/485 • RS-422 4-wire Connections Signal name Abbreviation Signal direction...
  • Page 632 K3T @ Intelligent Signal Processor Protocol Appendix L • RS-485 2-wire Connections Signal name Abbreviation Signal direction Terminal Inverting output – Input or output Non-inverting output Input or output Intelligent Signal Processor Serial Communications SN751177N or Turn ON the terminal block switch for Board/Unit equivalent terminators only.
  • Page 633 K3T @ Intelligent Signal Processor Protocol Appendix L Reset (by Unit Number) (Sequence No. 300 (Hex 012C)) This sequence performs the same processing as when an input is received on the reset terminal. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 634 K3T @ Intelligent Signal Processor Protocol Appendix L Write Set Value (by Unit Number) (Sequence No. 302 (Hex 012E)) This sequence writes each set value (HH, H, L, LL). Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units...
  • Page 635 K3T @ Intelligent Signal Processor Protocol Appendix L Offset Contents (data format) Data Number of send data words 0004 to 0042 (4 to 66 decimal) (4 digits Hex) Number of units 0001 to 0020 (1 to 32 decimal) (4 digits Hex) +2 to +3 Set value 00000 to 99999 (5 digits BCD)
  • Page 636 K3T @ Intelligent Signal Processor Protocol Appendix L Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units (Undefined) Relevant unit No. Bank No. (Undefined) Operand Set value (Undefined) Set value +122 Relevant unit No.
  • Page 637 K3T @ Intelligent Signal Processor Protocol Appendix L Write Set Value HH with Bank (Continuous Units) (Sequence No. 308 (Hex 0134)) This sequence writes set value HH of a bank not in use for continuous units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 638 K3T @ Intelligent Signal Processor Protocol Appendix L Write Set Value O5 with Bank (Continuous Units) (Sequence No. 312 (Hex 0138)) This sequence writes set value O5 of a bank not in use for continuous units. The word allocation is identical to that of sequence No.
  • Page 639 K3T @ Intelligent Signal Processor Protocol Appendix L Offset Contents (data format) Data • • • +64 to Operand Same as above (ASCII 2 characters) Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words (Undefined) End code...
  • Page 640 K3T @ Intelligent Signal Processor Protocol Appendix L Read Set Value L (Continuous Units) (Sequence No. 320 (Hex 0140)) This sequence reads set value L for continuous units. The word allocation is identical to that of sequence No. 318 (Read Set Value HH (Continuous Units)). Read Set Value LL (Continuous Units) (Sequence No.
  • Page 641 K3T @ Intelligent Signal Processor Protocol Appendix L Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Set value (Undefined) Set value Set value (Undefined) Set value Offset Contents (data format) Data Number of receive data 0003 to 0041 (3 to 65 decimal) words (4 digits Hex)
  • Page 642 K3T @ Intelligent Signal Processor Protocol Appendix L Read Set Value L with Bank (Continuous Units) (Sequence No. 325 (Hex 0145)) This sequence reads set value L of a bank not in use for continuous units. The word allocation is identical to that of sequence No.
  • Page 643 K3T @ Intelligent Signal Processor Protocol Appendix L Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of compared data (Undefined) Relevant unit No. Operand (Undefined) Relevant unit No. Operand Offset Contents (data format) Data...
  • Page 644 K3T @ Intelligent Signal Processor Protocol Appendix L Offset Contents (data format) Data Status d0 bit: (2 digits Hex) If overflow:1 Others: 0 d1 bit: If underflow:1 Others: 0 d2 bit: Not used d3 bit: During forced zero operation:1 Others: 0 (K3TH,K3TR: 0) d4 bit: Not used...
  • Page 645 K3T @ Intelligent Signal Processor Protocol Appendix L Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of compared data (Undefined) Relevant unit No. (Undefined) Relevant unit No. Offset Contents Data (data format) Number of send data words...
  • Page 646 K3T @ Intelligent Signal Processor Protocol Appendix L Offset Contents (data format) Data Status (4 digits Hex) d0 bit: If overflow:1 Others: 0 d1 bit: If underflow:1 Others: 0 d2 bit: Not used d3 bit: During forced zero operation:1 Others: 0 (K3TH, K3TR, K3TC: 0) d4 bit: In test mode:...
  • Page 647 K3T @ Intelligent Signal Processor Protocol Appendix L Read Display Value (PV) (Continuous Units) (Sequence No. 336 (Hex 0150)) This sequence reads display value (PV) for continuous units. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Number of units Offset...
  • Page 648 K3T @ Intelligent Signal Processor Protocol Appendix L Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Input specifications Input specifications Display specifications Output specifications Input contents Operation mode +121 Input specifications +122 Input specifications Display specifications +123...
  • Page 649 K3T @ Intelligent Signal Processor Protocol Appendix L Receive Data Word Allocation (4th Operand of PMCR(260)) The work allocation is similar to sequence No. 337 (Model Data Read (by Unit Number)). General-purpose Command (Sequence No. 339 (Hex 0153)) Sends the specified data and writes the receive data to the receive data words. The characters such as “@”, FCS, terminators need not be set in the send and receive data words.
  • Page 650 Appendix M V500/V520 Bar Code Reader Protocol The V500/V520 Bar Code Reader Protocol is used to make various settings or control remotely the Bar Code Reader connected the Serial Communications Unit/Board via RS-232C cable. Protocol Configuration The configuration of the V500/V520 Bar Code Reader Protocol is shown below. Sequence Communications Function...
  • Page 651 Appendix M V500/V520 Bar Code Reader Protocol Note 1. The hexadecimal equivalents of sequences numbers are given in parentheses. 2. Ladder Interface Settings YES: User settings are required for the 3rd and 4th operands of PMCR(260). Send word allocation: Set the constant 0000 for the 3rd operand (S). Receive word allocation: Set the constant 0000 for the 4th operand (D).
  • Page 652: System Setting

    Appendix M V500/V520 Bar Code Reader Protocol V520 Connections V520-R121 Serial Communications Board (CS Series only) Serial Communications Unit Reader (CS/CJ Series) PLC PS RS-232C port V509-W011 Reader Cable Serial Communications Unit/Board: V520-R121: D-sub 9 pin female D-sub 9 pin female Signal Signal Pin No.
  • Page 653 Appendix M V500/V520 Bar Code Reader Protocol BCR Read Start (Sequence No. 350 (Hex 015E)) This sequence instructs the Bar Code Reader to start reading. Send Data Word Allocation 3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) None.
  • Page 654 Appendix M V500/V520 Bar Code Reader Protocol BCR Function Write (V500) (Sequence No. 345 (Hex 0162)) This sequence sets the operation mode and read functions in the Bar Code Reader. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Operation mode...
  • Page 655 Appendix M V500/V520 Bar Code Reader Protocol BCR Function Read (V500) (Sequence No. 355 (Hex 0163)) This sequence reads the settings of functions in the Bar Code Reader. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) Number of receive data words Receive data storage words...
  • Page 656 Appendix M V500/V520 Bar Code Reader Protocol Log Data Output Request (V500) (Sequence No. 356 (Hex 0164)) This sequence requests output of the log data sent to host. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data (Undefined)
  • Page 657 Appendix M V500/V520 Bar Code Reader Protocol Preset Data Set (V500) (Sequence No. 357 (Hex 0165)) This sequence sets preset data. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined) Number of presets (Undefined) Preset data No.
  • Page 658 Appendix M V500/V520 Bar Code Reader Protocol Log Data Clear (V500) (Sequence No. 359 (Hex 0167)) This sequence clears the log data. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) None. Data Continuous Read (Scan) (V500) (Sequence No.
  • Page 659 Appendix M V500/V520 Bar Code Reader Protocol Data Continuous Read (Scan) (V520) (Sequence No. 363 (Hex 016B)) This sequence performs the following operations repeatedly: instructs the Bar Code Reader to start reading and receives the data read by the Bar Code Reader. The scan notification method is used for the receive data. Send Data Word Allocation (3rd Operand of PMCR(260)) None.
  • Page 660 Appendix M V500/V520 Bar Code Reader Protocol Offset Contents (data format) Data Number of send data words 0003 to 00FA (3 to 250 decimal) (4 digits Hex) Send data byte length 0001 to 01F0 (1 to 496 decimal) (4 digits Hex) The byte length of the send data excluding STX and ETX.
  • Page 661: M V500/V520 Bar Code Reader Protocol

    Appendix M V500/V520 Bar Code Reader Protocol...
  • Page 662: N 3Z4L Laser Micrometer Protocol

    Appendix N 3Z4L Laser Micrometer Protocol The 3Z4L Laser Micrometer Protocol is used to make various settings or control remotely the Laser Micrometer connected to the Serial Communications Unit/Board via RS-232C cable. Protocol Configuration The configuration of the 3Z4L Laser Micrometer Protocol is shown below. Sequence Communications sequence Function...
  • Page 663 Appendix N 3Z4L Laser Micrometer Protocol Sequence Communications sequence Function Ladder interface Notes name Send word Receive allocation word allo- cation 416 (01A0) Statistic processing execution Lights the statistic processing LED (3000-series) and processes the statistics. 417 (01A1) Statistic processing non-exe- Turns OFF the statistic processing cution (3000-series) LED.
  • Page 664 Appendix N 3Z4L Laser Micrometer Protocol Sequence Communications sequence Function Ladder interface Notes name Send word Receive allocation word allo- cation 437 (01B5) Continuous measurement start Starts a continuous measurement. (interrupt) (4000-series) The interrupt notification method is used for receive data. 438 (01B6) Measurement termination Terminates continuous measurement.
  • Page 665 Appendix N 3Z4L Laser Micrometer Protocol Connections The connections for the 3Z4L Laser Micrometer Protocol are shown below. RS-232C Connection Sensor Serial Communications Board (CS Series only) Serial Communications Unit Signal cable (CS/CJ Series) PLC PS RS-232C Controller RS-232C Port Serial Communications Unit/Board: Controller: D-sub D-sub 9 pin (female)
  • Page 666 Appendix N 3Z4L Laser Micrometer Protocol • DIP Switch 3 Setting Status Setting of measurement ON/OFF function by 2 measure- ON/OFF ment instruments ON/OFF ON/OFF This protocol does not sup- Error data exclusion func- ON/OFF port the error data exclusion tion function Multistep selection func-...
  • Page 667 Appendix N 3Z4L Laser Micrometer Protocol Delimiter Control Code Setting 3Z4L-4000 Series The delimiter control codes must be set on DIP switch SW1 for the 3Z4L-4000 Series. Turn off pins 4 and 5, set the delimiter codes to CR+LF, and set the delimiter code control setting in the sequence to CR+LF. See the set- ting for CR+LF in the following diagram.
  • Page 668 Appendix N 3Z4L Laser Micrometer Protocol 3Z4L-3000 Series The delimiter control code does not need to be set on the DIP switch for the 3Z4L-3000 Series. Set the delim- iter control codes in the sequence to CR+LF for the send code and to CR or CR+LF for the receive code. See the settings in the following diagram.
  • Page 669 Appendix N 3Z4L Laser Micrometer Protocol Sequence Communications sequence name Operation 5000 Series 6000 Series 416 (01A0) Statistic processing execution (3000-series) 417 (01A1) Statistic processing non-execution (3000-series) 418 (01A2) All statistic memory clear (3000-series) 419 (01A3) Statistic memory clear (3000-series) 420 (01A4) Statistic result request (3000-series) 421 (01A5)
  • Page 670 Appendix N 3Z4L Laser Micrometer Protocol 3Z4L Clear (Sequence No. 400 (Hex 0190)) This sequence resets errors, data, analog output, and decision result, and puts the Laser Micrometer into standby. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) None.
  • Page 671 Appendix N 3Z4L Laser Micrometer Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) None. Note This sequence can be used for the 3Z4L-4000 Series only when pin 8 on DIP switch SW2 is turned ON. Calibration Set (Sequence No. 404 (Hex 0194)) This sequence calibrates the Laser Micrometer.
  • Page 672 Appendix N 3Z4L Laser Micrometer Protocol Program Number Set (3000-series) (Sequence No. 406 (Hex 0196)) This sequence switches the program number to a specified number. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data (Undefined) Program number (1 digit BCD)
  • Page 673 Appendix N 3Z4L Laser Micrometer Protocol First word of send Number of send data words data (Unused) Segment number (SG) (Undefined) Measurement interval number (M) Decimal portion (Undefined) Integer portion Lower limit value (LL) Sign (Undefined) Decimal portion (Undefined) Integer portion Upper limit value (LH) Sign (Undefined)
  • Page 674 Appendix N 3Z4L Laser Micrometer Protocol Decimal portion Reference value (REF) (Undefined) Integer portion (Undefined) Sign Analog output scale number (SCL) (Undefined) Offset classification (OF) (Undefined) Decimal portion (Undefined) Integer portion Offset value (Undefined) Sign (Undefined) Data output conditions (PR) (Undefined) Schedule output timer (PRT)
  • Page 675 Appendix N 3Z4L Laser Micrometer Protocol Offset Contents (data format) Data Analog output scale number 1 to 3 (1 digit BCD) +34 to Offset classification (ASCII 3 4F4620 (“OF”), 4F4D20 (“OM”) characters) +36 to Offset value Same as lower limit values Data output conditions 0 to 6 (1 digit BCD)
  • Page 676 Appendix N 3Z4L Laser Micrometer Protocol Measurement Condition Release (3000-series) (Sequence No. 408 (Hex 0198)) This sequence releases the measurement conditions that have been set. Send Data Word Allocation (3rd Operand of PMCR(260)) Send data word allocation is similar to that of sequence No. 407 (Measurement Condition Set). However, only the setting Yes/No flags at +46 to +53 from the send data leading word can be used.
  • Page 677 Appendix N 3Z4L Laser Micrometer Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) First word of send Number of receive data words data (Undefined) Program number (P) Segment number (SG) (Undefined) Measurement interval number (M) Decimal portion Lower limit value (LL) (Undefined) Integer portion Sign...
  • Page 678 Appendix N 3Z4L Laser Micrometer Protocol Offset Contents (data format) Data Number of receive data 002E (0046 decimal) (fixed) words (4 digits Hex) Program number 0 to 9 (1 digit BCD) +2 to +4 Segment number Combination of 31(‘1’) to 36(‘6’), 20(‘ ’) (ASCII 6 characters) Measurement interval num- 1 to 4...
  • Page 679 Appendix N 3Z4L Laser Micrometer Protocol Single Run Measurement Start (3000-series) (Sequence No. 410 (Hex 019A)) When the sample measurement condition is from 1 to 999, this sequence performs a single run measurement and requests the measurement results Send Data Word Allocation (3rd Operand of PMCR(260)) None.
  • Page 680 Appendix N 3Z4L Laser Micrometer Protocol Continuous Measurement Start (Scan) (3000-series) (Sequence No. 412 (Hex 019C)) A continuous measurement is started. The scan notification method is used for the receive data. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) The receive data word allocation is similar to that of sequence No.
  • Page 681 Appendix N 3Z4L Laser Micrometer Protocol Data Request (3000-series) (Sequence No. 415 (Hex 019F)) This sequence requests display data in the idle measurement status or the latch data generated by the mea- surement command. Send Data Word Allocation (3rd Operand of PMCR(260)) None.
  • Page 682 Appendix N 3Z4L Laser Micrometer Protocol Statistic Result Request (3000-series) (Sequence No. 420 (Hex 01A4)) This sequence requests the statistic processing results. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words (Undefined)
  • Page 683 Appendix N 3Z4L Laser Micrometer Protocol The value -0.12345 is stored as follows: Area of decimal portion: 2345; Area of integer portion: 0001; Sign area: F000 Memory Switch Set 1 (3000-series, High-speed Type) (Sequence No. 421 (Hex 01A5)) This sequence sets memory switches. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words...
  • Page 684 Appendix N 3Z4L Laser Micrometer Protocol Memory Switch Set 2 (3000-series, High-speed Type) (Sequence No. 422 (Hex 01A6)) This sequence sets memory switches. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data (Undefined) Offset...
  • Page 685 Appendix N 3Z4L Laser Micrometer Protocol AVG Move Interval Set (3000-series, High-speed Type) (Sequence No. 424 (Hex 01A8)) This sequence uses the average move as the averaging method and sets the measurement interval number. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 686 Appendix N 3Z4L Laser Micrometer Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) None. Note 1. This sequence cannot be used when DIP switch SW3, pin 5 of the Laser Micrometer is not turned ON. 2. This sequence will be processed the same as sequence No. 425 AVG move (H) times set for 5000- series Laser Micrometers.
  • Page 687 Appendix N 3Z4L Laser Micrometer Protocol Note This sequence cannot be used when DIP switch SW3, pin 5 of the Laser Micrometer is not turned ON. Automatic Detection List Request (3000-series, High-speed Type) (Sequence No. 429 (Hex 01AD)) This sequence requests the settings of work automatic detection function. Send Data Word Allocation (3rd Operand of PMCR(260)) None.
  • Page 688 Appendix N 3Z4L Laser Micrometer Protocol Measurement Condition Set (4000-series) (Sequence No. 431 (Hex 01AF)) This sequence sets measurement conditions. Conditions to be set can be selected by setting Yes/No flags. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data Segment number (SG)
  • Page 689 Appendix N 3Z4L Laser Micrometer Protocol Offset Contents (data format) Data Number of send data words 0019 (0025 decimal) (fixed) (4 digits Hex) Segment number 1 to 5 (1 digit BCD) Measurement interval num- 1 to 7 ber (1 digit BCD) Lower limit value (Decimal 0000 to 9999 Example –123.4567...
  • Page 690 Appendix N 3Z4L Laser Micrometer Protocol Measurement Condition Release (4000-series) (Sequence No. 432 (Hex 01B0)) This sequence clears the measurement conditions that have been set. Send Data Word Allocation (3rd Operand of PMCR(260)) The send data word allocation is similar to that of sequence No. 431 (Measurement Condition Setting). How- ever, only the setting Yes/No flags at +19 to +24 from the send data leading word can be used.
  • Page 691 Appendix N 3Z4L Laser Micrometer Protocol Offset Contents (data format) Data Number of receive data 0013 (0019 decimal) (fixed) words (4 digits Hex) Segment number 1 to 5 (1 digit BCD) Measurement interval num- 1 to 7 ber (1 digit BCD) Lower limit value (Decimal 0000 to 9999 Example –123.4567...
  • Page 692 Appendix N 3Z4L Laser Micrometer Protocol Offset Contents (data format) Data Number of receive data With no reference setting: 0005 words (4 digits Hex) With reference setting: 0008 Decision result With no limit setting: 0000 (ASCII 2 characters) With limit setting: 2B4E (“+N”), 4F4B (“OK”), 2D4E (“– N”) Measurement value (decimal 0000 to 9999...
  • Page 693 Appendix N 3Z4L Laser Micrometer Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) The receive data word allocation is similar to that of sequence No. 434 (Single Run Measurement Start). Note 1. Since this sequence repeats itself within the sequence, once it is executed, it remains in the execution state until cancelled.
  • Page 694 Appendix N 3Z4L Laser Micrometer Protocol Forced Negative Zero (4000-series) (Sequence No. 441 (Hex 01B9)) This sequence sets the forced zero direction to negative (–) Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) None.
  • Page 695 Appendix N 3Z4L Laser Micrometer Protocol Offset Contents (data format) Data Number of send data words 0003 to 00FA (3 to 250 decimal) (4 digits Hex) Send data byte length (4 digits Hex) 0001 to 01F0 (1 to 496 decimal) The number of bytes of send data excluding the terminator (CR) +2 to...
  • Page 696 Appendix N 3Z4L Laser Micrometer Protocol High Calibration Set (Sequence No. 446 (Hex 01BE)) This sequence sets the Laser Micrometer’s high calibration. Send Data Word Allocation (3rd Operand of PMCR(260)) Allocations are the same as for sequence No. 404 (Calibration Set) except that the LC gauge dimension in words +4 to +5 are not used.
  • Page 697 Appendix N 3Z4L Laser Micrometer Protocol...
  • Page 698: O Visual Inspection System Protocol

    Appendix O Visual Inspection System Protocol The Visual Inspection System Protocol is used to make various settings or control remotely the Visual Recog- nition Device connected to the Serial Communications Unit/Board via RS-232C cable. Protocol Configuration The configuration of the Visual Inspection System Protocol is shown below. Sequence Communications Function...
  • Page 699 Appendix O Visual Inspection System Protocol Sequence Communications Function Ladder interface Notes sequence name Send word Receive word allocation allocation 471 (01D7) Camera designation Designates the camera for measure- and positioning (F350) ment. 472 (01D8) Scene switching and Switches to a designated scene No. positioning (F350) 473 (01D9) Inspection execution...
  • Page 700 Appendix O Visual Inspection System Protocol Connections The connections for using the Visual Inspection System Protocol are shown below. RS-232C Connections Serial Communications Board (CS Series only) Serial Communications Unit (CS/CJ Series) F200/300/350 PLC PS RS-232C RS-232C port → RS-232C Unit Pin No.
  • Page 701 Appendix O Visual Inspection System Protocol Measurement Execution (F200) (Sequence No. 450 (Hex 01C2)) This sequence carries out one measurement and stores the measurement results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words...
  • Page 702 Appendix O Visual Inspection System Protocol Offset Content (data format) Data Number of receive data words 0006 (4 digits Hex) Output No. (2 digits BCD) 00 to 07 Evaluation result (1 digit BCD) 0: OK 1: NG +3 to +5 Measurement value (decimal portion) Example Example (3 digits BCD)
  • Page 703 Appendix O Visual Inspection System Protocol Note 1. Only one output No. can be designated. 2. Turn ON the Abort Switch to end this sequences. Abort Switches for port 1 are CIO 190003 for the Serial Communications Board and CIO 1500 + 25 x unit number, bit 03 for Serial Communications Units.
  • Page 704 Appendix O Visual Inspection System Protocol Evaluation Condition Change (F200) (Sequence No. 456 (Hex 01C8)) This sequence changes the upper and lower limit values of evaluation condition of the designated output No. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data...
  • Page 705 Appendix O Visual Inspection System Protocol Offset Content (data format) Data Number of send data words 0003 (4 digits Hex) Data 1 (2 digits BCD) 00: Area 01: Center of gravity x 02: Center of gravity y 03: Main axis angle 04: Output format 05: Reference value of output format 06: X displacement...
  • Page 706 Appendix O Visual Inspection System Protocol Measurement Execution (F300) (Sequence No. 460 (Hex 01CC)) This sequence carries out one measurement and stores measurement results in the specified words. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words...
  • Page 707 Appendix O Visual Inspection System Protocol 4. The priority of measurement items being output are as follows: 1 Area 2 Center of gravity X 3 Center of gravity Y 4 Main axis angle 5 Edge angle 6 Center X 7 Center Y 8 Inclination 9 Intersecting point X 10 Intersecting point Y...
  • Page 708 Appendix O Visual Inspection System Protocol Offset Content (data format) Data Number of receive data words 0006: 1 measurement item (4 digits Hex) 0009: 2 measurement items 000C: 3 measurement items 000F: 4 measurement items 0012: 5 measurement items Window No. (2 digits BCD) 00 to 07 Evaluation result (1 digit BCD) 0: OK...
  • Page 709 Appendix O Visual Inspection System Protocol Continuous Measurement Execution (Interrupt) (F300) (Sequence No. 462 (Hex 01CE)) This sequence carries out continuously setting the F300 and stores measurement results in the specified words. The interrupt notification method is used for the receive data. The interrupt No. is 102. Send Data Word Allocation (3rd Operand of PMCR(260)) None.
  • Page 710 Appendix O Visual Inspection System Protocol 3. The ranges of measurement values are as follows: For calibration OFF setting:–2147483.648 to 2147483.648 For calibration ON setting:–9999999.999 to 9999999.999 4. The priority of measurement items being output are as follows: 1 Area 2 Center of gravity X 3 Center of gravity Y 4 Main axis angle...
  • Page 711 Appendix O Visual Inspection System Protocol Illumination Fluctuation Follow Execution (F300) (Sequence No. 465 (Hex 01D1)) This sequence executes an illumination fluctuation follow. Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) None.
  • Page 712 Appendix O Visual Inspection System Protocol 1500 + 25 x unit number +9, bit 14 for Serial Communications Units. The flags for port 2 are CIO 1919114 for the Serial Communications Board and CIO 1500 + 25 x unit number +19, bit 14 for Serial Communications Units.
  • Page 713 Appendix O Visual Inspection System Protocol 3. Turn ON the Abort Switch to end this sequence. Inspection Execution and Character Inspection (F350) (Sequence No. 473 (Hex 01D9)) This sequence carries out one inspection and outputs the inspection results to a video monitor. Send Data Word Allocation (3rd Operand of PMCR(260)) None.
  • Page 714 Appendix O Visual Inspection System Protocol Send Data Word Allocation (3rd Operand of PMCR(260)) None. Receive Data Word Allocation (4th Operand of PMCR(260)) None. Binary Level Modification (F200/300) (Sequence No. 482 (Hex 01E2)) This sequence modifies the binary levels (upper limit and lower limit values) of a designated output No. (F200) or window number No.
  • Page 715 Appendix O Visual Inspection System Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) None. Scene Switching (Arbitrary) (Sequence No. 492 (Hex 01EC)) This sequence switches to a designated scene No. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data (Undefined)
  • Page 716 Appendix O Visual Inspection System Protocol General-purpose Command (Send/Receive) (Sequence No. 495 (Hex 01EF)) This sequence can set and execute commands that are not otherwise supported. The delimiter (CR+LF) is automatically attached to the send data. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of Number of send data words send data...
  • Page 717 Appendix O Visual Inspection System Protocol...
  • Page 718: P V600/V620 Id Controller Protocol

    Appendix P V600/V620 ID Controller Protocol The V600/V620 ID Controller Protocol is used to make various settings or control remotely the ID Controller Connected to the Serial Communications Unit/Board via RS-232C or RS-422 cable. Protocol Configuration The configuration of the V600/V620 ID Controller Protocol is shown below. Sequence Communications Function...
  • Page 719 Appendix P V600/V620 ID Controller Protocol Sequence Communications Function Ladder interface sequence name Send word Receive word allocation allocation 519 (0207) Write (ASCII/2) Used when the number of Heads to be written to the Carrier is 2. 520 (0208) Write (ASCII/4) Used when the maximum number of Heads to be written to the Carrier is 4.
  • Page 720 Appendix P V600/V620 ID Controller Protocol Sequence Communications Function Ladder interface sequence name Send word Receive word allocation allocation 544 (0220) Polling auto-read Cancels polling auto-read processing. command processing cancel 545 (0221) Polling auto-write Cancels polling auto-write processing. command processing cancel 546 (0222) General-purpose...
  • Page 721 Appendix P V600/V620 ID Controller Protocol Serial Communications Unit/Board: ID Controller (CA1A): D-sub 9 pin (female) D-sub 25 pin (female) Shield RS-422 Connections Serial Communications Board (CS Series only) Serial Communications Unit (CS/CJ Series) Head Data Carrier RS-422A/485 port ID Controller RS-422 Head Data Carrier...
  • Page 722 Appendix P V600/V620 ID Controller Protocol DIP Switch Settings V600/620-CD1D DIP Switches DIP Switch 1 1 2 3 4 5 6 7 8 Not used (Always keep it OFF.) Local communications mode setting Speed priority setting Distance priority setting • SW7 Setting This setting is only valid if the EEPROM-type (batteryless- type) Data Carrier (DC) is accessed.
  • Page 723 Appendix P V600/V620 ID Controller Protocol DIP Switch 2 1 2 3 4 5 6 7 8 Not used (Always keep it OFF.) Communications protocol setting with host devices 1-to-N protocol 1-to-1 protocol Note When selecting the "1-to-N" protocol, setting is limited to N=1.
  • Page 724 Appendix P V600/V620 ID Controller Protocol V600-CA A DIP Switches DIP Switch 1 Note Factory Setting: All OFF Mode 1 1 2 3 4 5 6 7 8 SW7 and SW8: Be sure to set to OFF. • Baud Rate •...
  • Page 725 Appendix P V600/V620 ID Controller Protocol Read (ASCII/1) (Sequence No. 500 (Hex 01F4)) This sequence is used when the number of Heads to be read from the Carrier is 1. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data (Undefined)
  • Page 726 Appendix P V600/V620 ID Controller Protocol Read (ASCII/2) (Sequence No. 501 (Hex 01F5)) This sequence is used when the number of Heads to be read from the Carrier is 2. Up to 118 bytes of data can be read for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words...
  • Page 727 Appendix P V600/V620 ID Controller Protocol Read (ASCII/4) (Sequence No. 502 (Hex 01F6)) This sequence is used when the maximum number of Heads to be read from the Carrier is 4. Up to 48 bytes of data can be read for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words...
  • Page 728 Appendix P V600/V620 ID Controller Protocol Offset Contents (data format) Data Number of receive data 0002 to 0097 words (4 digits Hex) +(24(N–1)+1) to Read data (ASCII) Number of read bytes stored in ASCII +(24(N–1)+24) N: Number of Heads Note Data from Data Carriers designated for ASCII is stored beginning with the smallest offset from the receive data words.
  • Page 729 Appendix P V600/V620 ID Controller Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data storage words Number of receive data words Read data CH 1 Read data Read data CH 2 Read data Read data CH 8 Read data Offset Contents (data format) Data...
  • Page 730 Appendix P V600/V620 ID Controller Protocol Offset Contents (data format) Data Number of receive data 0002 to 003E (6 to 62 decimal) words (4 digits Hex) +1 to +61 Read data (Hex) Number of read bytes stored in hexadecimal data Note Data for Data Carriers designated for hexadecimal is stored beginning with the largest offset from the receive data words, as shown in the following diagram.
  • Page 731 Appendix P V600/V620 ID Controller Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Read data CH 1 Read data Not used Not used Read data CH 2 Read data Offset Contents (data format) Data Number of receive data...
  • Page 732 Appendix P V600/V620 ID Controller Protocol Offset Contents (data format) Data Number of send data words 0006 to 0012 (6 to 18 decimal) (4 digits Hex) Number of Heads 0001 to 0004 (4 digits BCD) +(4(N–1)+2) Unit No. (2 digits BCD) Arbitrary (However, there is a limit for the max- imum Unit No.
  • Page 733 Appendix P V600/V620 ID Controller Protocol Read (Hex/8) (Sequence No. 507 (Hex 01FB)) This sequence is used when the maximum number of Heads to be read from the Carrier is 8. Up to 10 bytes of data can be read for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words...
  • Page 734 Appendix P V600/V620 ID Controller Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Number of receive data words Receive data storage words Read data CH 1 Read data Not used Not used Read data CH 2 Read data Read data CH 8 Read data Offset...
  • Page 735 Appendix P V600/V620 ID Controller Protocol Polling Auto-read (ASCII) (Sequence No. 510 (Hex 01FE)) This sequence is used when the number of Heads to be read from the Carrier is from 1 to 8. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 736 Appendix P V600/V620 ID Controller Protocol Note 1. Execute Sequence No. 510 before executing Sequence No. 511. 2. Data from Data Carriers designated for ASCII is stored beginning with the smallest offset from the receive data words. 3. Retry processing is not performed for this sequence. Polling Auto-read Sub-command (ASCII/4) (Sequence No.
  • Page 737 Appendix P V600/V620 ID Controller Protocol Polling Auto-read (Hex) (Sequence No. 514 (Hex 0202)) This sequence is used when the number of Heads to be read from the Carrier is from 1 to 8. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data...
  • Page 738 Appendix P V600/V620 ID Controller Protocol 2. Data from Data Carrier designated for hexadecimal is stored beginning with the largest offset from the receive data words. 3. Retry processing is not performed for this sequence. Polling Auto-read Sub-command (Hex/4) (Sequence No. 516 (Hex 0204)) This sequence is used when the maximum number of Heads to be read from the Carrier is 4.
  • Page 739 Appendix P V600/V620 ID Controller Protocol Write (ASCII/1) (Sequence No.518 (Hex 0206)) This sequence is used when the number of Heads to be written to the Carrier is 1. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words data (Undefined)
  • Page 740 V600/V620 ID Controller Protocol Appendix P Write (ASCII/2) (Sequence No. 519 (Hex 0207)) This sequence is used when the number of Heads to be written to the Carrier is 2. Up to 118 bytes of data can be read for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words...
  • Page 741 V600/V620 ID Controller Protocol Appendix P Write (ASCII/4) (Sequence No. 520 (Hex 0208)) This sequence is used when the number of Heads to be written to the Carrier is 4. Up to 48 bytes of data can be read for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) First word of send Number of send data words...
  • Page 742 Appendix P V600/V620 ID Controller Protocol Write (ASCII/8) (Sequence No. 521 (Hex 0209)) This sequence is used when the number of Heads to be written to the Carrier is 8. Up to 20 bytes of data can be read for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send...
  • Page 743 V600/V620 ID Controller Protocol Appendix P Write (Hex/1) (Sequence No. 522 (Hex 020A)) This sequence is used when the number of Heads to be written to the Carrier is 1. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send data (Undefined)
  • Page 744 Appendix P V600/V620 ID Controller Protocol Write (Hex/2) (Sequence No. 523 (Hex 020B)) This sequence is used when the number of Heads to be written to the Carrier is 2. Up to 56 digits of data can be written for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send...
  • Page 745 Appendix P V600/V620 ID Controller Protocol Write (Hex/4) (Sequence No. 524 (Hex 020C)) This sequence is used when the number of Heads to be written to the Carrier is 4. Up to 24 digits of data can be written for each Read/Write Head. Send Data Word Allocation (3rd Operand of PMCR(260)) Number of send data words First word of send...
  • Page 746 V600/V620 ID Controller Protocol Appendix P Note 1. Write data designated for hexadecimal is sent beginning with the largest offset from the send data words. 2. Always set an even number of digits for the write data. Write (Hex/8) (Sequence No. 525 (Hex 020D)) This sequence is used when the number of Heads to be written to the Carrier is 8.
  • Page 747 Appendix P V600/V620 ID Controller Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) None. Note 1. Write data designated for hexadecimal is sent beginning with the largest offset from the send data words. 2. Always set an even number of digits for the write data. Auto-write (ASCII/1) (Sequence No.
  • Page 748 Appendix P V600/V620 ID Controller Protocol Note 1. Execute Sequence No. 528 before executing Sequence No. 529. 2. Retry processing is not performed for this sequence. Polling Auto-write (ASCII/4) (Sequence No. 530 (Hex 0212)) This sequence is used when the number of Heads to be written to the Carrier is 4. Send Data Word Allocation (3rd Operand of PMCR(260)) The send data word allocation is similar to that of Sequence No.
  • Page 749 Appendix P V600/V620 ID Controller Protocol Note 1. Execute Sequence No. 532 before executing Sequence No. 533. 2. Retry processing is not performed for this sequence. Polling Auto-write (Hex/2) (Sequence No. 534 (Hex 0216)) This sequence is used when the number of Heads to be written to the Carrier is 2. Send Data Word Allocation (3rd Operand of PMCR(260)) The send data word allocation is similar to that of Sequence No.
  • Page 750 V600/V620 ID Controller Protocol Appendix P Receive Data Word Allocation (4th Operand of PMCR(260)) None. Note 1. Execute Sequence No. 536 before executing Sequence No. 537. 2. Retry processing is not performed for this sequence. Polling Auto-write (Hex/8) (Sequence No. 538 (Hex 021A)) This sequence is used when the number of Heads to be written to the Carrier is 8.
  • Page 751 V600/V620 ID Controller Protocol Appendix P Offset Contents (data format) Data Number of send data words 0006 (fixed) (4 digits Hex) Unit No. (2 digits BCD) 00 to 07 (CD1D) 00 to 15 (CA2A) R/W Head CH No. R/W Head CH 1 designation:1 (1 digit BCD) R/W Head CH 2 designation:2 The CD1D must be set to 1.
  • Page 752 Appendix P V600/V620 ID Controller Protocol Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words storage words Output status after Current input status operation Offset Contents (data format) Data Number of receive data words 0002 (fixed) (4 digits Hex) Current input status...
  • Page 753 V600/V620 ID Controller Protocol Appendix P Offset Contents (data format) Data Number of send data words 0002 (fixed) (4 digits Hex) Unit No. (2 digits BCD) Arbitrary (However, there is a limit for the maximum Unit No. depending on the model) Receive Data Word Allocation (4th Operand of PMCR(260)) Receive data Number of receive data words...
  • Page 754 Appendix P V600/V620 ID Controller Protocol Polling Auto-write Command Processing Cancel (Sequence No. 545 (Hex 0221)) This sequence cancels polling auto-write processing Send Data Word Allocation (3rd Operand of PMCR(260)) The send data word allocation is similar to that of Sequence No. 544 (Polling Auto-read Command Processing Cancel) Receive Data Word Allocation (4th Operand of PMCR(260)) The receive data word allocation is similar to that of Sequence No.
  • Page 755 Appendix P V600/V620 ID Controller Protocol...
  • Page 756 581 (0245) commands and telephone numbers are set set in the words specified for the 3rd oper- and of PMCR(260). This sequence can be used only for certain OMRON modems. 552 (0228) Password After the line is connected, the password...
  • Page 757 Modem (specialized) and Dial sequences can be used only for the following Modems: • MD24FB10V (OMRON Modem) • MD144FB5V (OMRON Intelligent Modem) • ME1414BIII, ME2814BII (OMRON FAX/DATA Modem) For other modems, create a modem initialization sequence using the general-purpose Initialize Modem sequence and dial using the Data Communications Sequence (Sequence No. 553).
  • Page 758: Modem Settings

    Send data (initialization command) ASCII (Fill data to left for odd numbers of bytes) Setting Example for Modem Initialization Command • MD24FB10V Using Sequence #550 (OMRON) The following command is set in the words specified by the 3rd operand of PMCR(260). ATE0V0X4\V2\N3%C0*C0\X1&M0S26=10 0012 0020 A T E 0 V 0 X 4 \ V 2 \ N 3 % C 0 * C 0 \ X 1 &...
  • Page 759 Dialling (Sequences No. 561 (Hex 0231), No. 571 (Hex 023B), and No. 581 (Hex 0245)) To dial a telephone numbers for the OMRON ME1414BIII/ME2814BII Modems using sequences No. 561, 571, 581, set the dialling command and telephone number in the words specified by the 3rd operand of PMCR(260).
  • Page 760 Number of bytes of comparison data (normal value of pass- 4 digits Hex word) Comparison value (password normal value) ASCII (Fill data to left for odd numbers of bytes) Setting Example When password is OMRON-CO. 0006 0008 4F4D 524F 4E2D 434F N –...
  • Page 761 Appendix Q Hayes Modem AT Command Protocol Password Verification Operation The number of retries is 3 for password verification. Personal computer (remote exchange) Password verification (starting #552) Dispatching "Password: " character string Receiving character string (Retry up to 3 times) Issuing password Password Receiving...
  • Page 762: Communication Errors

    Appendix Q Hayes Modem AT Command Protocol Setting Example When send data is THIS IS SAMPLE. 0009 000E 5448 4953 2049 5320 5341 4D50 4C45 Character string length of send data sent to modem (bytes) Code length of PMCR(260) when it is used (words) A maximum of 200 bytes (including the CR) can be received.
  • Page 763 Appendix Q Hayes Modem AT Command Protocol...
  • Page 764 Appendix R Changing Communications Port Settings Using STUP(237) The STUP(237) instruction can be used to change the serial communications mode, communications specifi- cations, and other settings for each port of the Serial Communications Board/Unit during CPU Unit operation. Executing the STUP(237) Instruction Use the STUP(237) instruction to change the communications port settings.
  • Page 765 Appendix R Changing Communications Port Settings Using STUP(237) When the cyclic service finishes changing the communications port settings in the Serial Communications Board or Unit, the Board or Unit automatically restarts the port and turns OFF the Port Settings Change Bit. Data Contents Area CIO Area...
  • Page 766 Appendix R Changing Communications Port Settings Using STUP(237) Settings D00200 0500 Port setting: Defaults S+1: D00201 0000 Protocol mode: 1 hex (Host Link) S+2: D00202 0000 Baud rate: Default (9,600 bps) Transmission delay time: 0 ms S+3: D00203 0000 CTS control: None Unit number: 00 S+9: Transmit...
  • Page 767: R Changing Communications Port Settings Using Stup(237)

    Appendix R Changing Communications Port Settings Using STUP(237)
  • Page 768: Index

    Index Numerics 1 1 NT Link C200H Communications Boards 1 N NT Link C200H Host Link Units Auxiliary Area allocations C200HX/HG/HE Communications Board CIO Area allocations changes in communications specifications commands cables connecting Programmable Terminals preparation connection example CIO Area CPU Bus Unit Area allocations allocations errors...
  • Page 769 Index previous products CompoWay/F Master dimensions command and response formats Serial Communications Boards communications specifications Serial Communications Units connections message frames DM Area protocols allocations sequences Serial Communications Boards transmission procedure Serial Communications Units CompoWay/F protocol connectors connector hoods cover dimensions E5_J Temperature Controller pin layout connections...
  • Page 770 Index 1 N NT Link connections framing error reception buffers Host Link Setup Area allocations overrun error system configuration parity error unit numbers protocol macro Host Link Units troubleshooting changes in communications specifications ES100 Digital Controller connections ES100_ Digital Controller protocols I/O memory allocations sequences...
  • Page 771 Index protocol macro Port Settings Change Bits 1 N NT Link Link Adapters Host Link loopback test protocol macro CIO Area allocations Serial Communications Boards connections Serial Communications Units executing Port Settings Changing Flag indicators port connections precautions procedure applications protocol status general xvii...
  • Page 772 Index Protocol Macro Execution Error Flag Serial Communications Units protocol specifications RS-232C connections protocol status RS-232C ports loopback test 1 1 connections NT Link 1 N connections protocol macro changes from previous products connector pin layout protocols direct connections 3Z4L Laser Micrometer 1 N NT Link sequences Programmable Terminals...
  • Page 773 Index Automatic Detection Release (3000-series) Read Parameters 1 Automatic Detection Set (3000-series) Read Parameters 2 AVG Move (H) Times Set (3000-series) Read Process Value AVG Move (L) Times Set (3000-series) Read Set Point Limit AVG Move Interval Set (3000-series) Save Set Point Calibration Release Select Backup Mode Calibration Set...
  • Page 774 Index Write Input Shift Value Write Cooling Coefficient Write LBA Detection Time Write Dead Band/Overlap Band Write Level 0 Parameters Write HB and HS Alarm Valid Channels Write Level 1 Parameter 2 Write Heater Burnout and SSR Failure Detection Current Write Level 1 Parameters 1 Write Hysteresis Write Level 2 Parameters 1...
  • Page 775 Index Dial BCR Function Read (V500) Escape BCR Initialize (V500) Escape to Hang Up BCR Read Start Hang Up BCR Read Stop Initialize and Dial Complete Data Read Initialize Modem (Specialized) Data Continuous Read (Interrupt) (V500) Password Data Continuous Read (Interrupt) (V520) Set Modem (General-purpose) Data Continuous Read (Scan) (V500) Data Continuous Read (Scan) (V520)
  • Page 776 Index Read (Hexadecimal/2) error information Read (Hexadecimal/4) indicator error displays Read (Hexadecimal/8) installation Write (ASCII/1) replacement Write (ASCII/2) specifications Write (ASCII/4) serial communications modes Write (ASCII/8) 1 1 NT Link Write (Hexadecimal/1) 1 N NT Link Write (Hexadecimal/2) Host Link Write (Hexadecimal/4) loopback test Write (Hexadecimal/8)
  • Page 777 Index STUP(237) instruction executing specifications system configuration Host Link precautions protocol macro terminating resistance switch trace function protocol macro Tracing Flag troubleshooting 1 N NT Link errors error codes Host Link errors protocol macro errors unit number switch V500/V520 Bar Code Reader connections protocols sequences...
  • Page 778: 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. W336-E1-09 Revision code The following table outlines the changes made to the manual during each revision. Page numbers refer to the previous version.
  • Page 779 Revision History Revision code Date Revised content June 2004 Additions made throughout the manual to include information on the upgrade to version 1.2, including two new sections on Serial Gateway and no-protocol modes and three new appendices. The following changes were also made. Front cover: “-V1”...
  • Page 780 Revision History Revision code Date Revised content May 2006 Added information for the CS1W-SCU31-V1 and CJ1W-SCU31-V1. February 2008 Pages 50, 77, and 254: “11” changed to “10” for end code. Page 192: Added note. Page 199: Added not in bottom figure.
  • Page 781 Revision History...

Table of Contents