YOKOGAWA F3RS22-0N User Manual

YOKOGAWA F3RS22-0N User Manual

Serial communication modules
Table of Contents

Advertisement

Quick Links

User's
Manual
Serial Communication Modules
IM 34M6H21-01E
IM 34M6H21-01E
2nd Edition
Yokogawa Electric Corporation

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the F3RS22-0N and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for YOKOGAWA F3RS22-0N

  • Page 1 User’s Manual Serial Communication Modules IM 34M6H21-01E IM 34M6H21-01E 2nd Edition Yokogawa Electric Corporation...
  • Page 2: Applicable Product

    Document No.: IM 34M6H21-01E Document Model Code: DOCIM Media No. IM 34M6H21-01E (CD) 2nd Edition : Aug, 2001 (YK) IM 34M6H21-01E 2nd Edition : Aug, 2001-00 ” All Rights Reserved Copyright 1999, Yokogawa Electric Corporation...
  • Page 3: Important

    - Every effort has been made to ensure accuracy in the preparation of this manual. However, should any errors or omissions come to the attention of the user, please contact the nearest Yokogawa Electric representative or sales office. „ Safety Precautions when Using/Maintaining the Product - The following safety symbols are used on the product as well as in this manual.
  • Page 4 WARRANTY that is provided separately. - Yokogawa Electric assumes no liability to any party for any loss or damage, direct or indirect, caused by the user or any unpredictable defect of the product.
  • Page 5 - Reverse engineering, such as decompiling of the software, is strictly prohibited. - No portion of the software supplied by Yokogawa Electric may be transferred, exchanged, or sublet or leased for use by any third party without prior permission by Yokogawa Electric.
  • Page 6 „ General Requirements for Using the FA-M3 Avoid installing the FA-M3 in the following locations: - Where the instrument will be exposed to direct sunlight, or where the operating temperature exceeds the range 0qC to 55qC (0qF to 131qF). - Where the relative humidity is outside the range 10 to 90%, or where sudden temperature changes may occur and cause condensation.
  • Page 7 Discharge static electricity before operating the system: - Because static charge can accumulate in dry conditions, first touch grounded metal to discharge any static electricity before touching the system. Never use solvents such as paint thinner for cleaning: - Gently clean the surfaces of the FA-M3 with a cloth that has been soaked in water or a neutral detergent and wringed.
  • Page 8 With reference to the equipment types in the WEEE directive Annex 1, this product is classified as a “Monitoring and Control instrumentation” product. Do not dispose in domestic household waste. When disposing products in the EU, contact your local Yokogawa Europe B. V. office. IM 34M6H21-01E 2nd Edition : Aug, 2001-00...
  • Page 9: Introduction

    viii Introduction Overview of the Manual This manual, “Serial Communication Modules” (IM 34M6H21-01E), explains the specifications and handling of the Serial Communication of the FA-M3. Other Manuals The manuals to reference depends on the CPU type. Refer to the following manuals accordingly.
  • Page 10: Copyrights And Trademarks

    Registering or recording onto videotapes and other media is also prohibited without expressed permission of Yokogawa Electric Corporation. Trademarks The trade names and company names referred to in this manual are either trademarks or registered trademarks of their respective companies.
  • Page 11 Blank Page...
  • Page 12: Table Of Contents

    CONTENTS Applicable Product ..................i Important ....................ii Introduction....................viii Copyrights and Trademarks..............ix Overview ..................1-1 F3RS22-0N ..................2-1 Standard Specifications................. 2-1 Model and Suffix Codes ..............2-1 Operating Environment................ 2-1 Physical Specifications ................ 2-1 Function Specifications................ 2-1 Components and Their Functions ............2-3 External Dimensions................
  • Page 13 TOC-2 Using the Communication Module ..........4-1 Basic Communications ................4-1 „ Declaring Use of the Module..............4-1 „ Resetting the Module ................4-1 „ Setting Communication Conditions ............4-1 „ Output....................4-2 „ Input ....................4-3 Transmission Text and Format Specifications........4-4 „ Data Output ..................4-4 „ Data Input.....................4-5 Efficient Communication................4-7 „...
  • Page 14: Overview

    Overview The F3RS22-0N is a communication module that can be used with F3BP20 or F3BP30 BASIC CPU modules for RS-232 communication. It has two ports that use D-sub 9-pin connectors for connection and allows transmission to a maximum distance of 15 metres.
  • Page 15 Blank Page...
  • Page 16: F3Rs22-0N

    Suffix Code Style Code Remarks Code …… …… F3RS22 Max. 19200 bps, two RS-232-C ports „ Operating Environment F3RS22-0N can be used with the following CPU modules. CPU Modules Style F3BP20 BASIC CPU module F3BP30 „ Physical Specifications Item Specifications...
  • Page 17 Item Specifications Default Can buffer one text item (maximum length of 1,024 Transmitting buffer bytes). Communic ation buffer Receiving buffer Rotary (FIFO) buffer of 2,048 bytes - Yes/no Starting character - One-character length; any character is acceptable - Yes/no - Two-character length maximum; any character Ending character (string) is acceptable (Terminator)
  • Page 18: Components And Their Functions

    „ Components and Their Functions READY indicator (lit when the internal circuitry is in normal operation) RS22-0N RS232C Port 1 Port 2 „ External Dimensions (Unit: mm) 83.2 28.9 Note: When an RS-232-C cable is connected to the module, add 90 mm to the 83-mm depth across the bottom of the module to allow for approximately 173 mm as the mounting depth to accommodate the base module, the RS-232-C connector and the bending radius of the RS-232-C cable,.
  • Page 19: External Wiring

    External Wiring „ Connector Pin Assignments The following figure shows how the module’s connector looks when viewed externally. D-Sub 9-pin Connector (Female) Signal Direction Signal Signal Name Monitoring Purpose * Number Name FA-M3 Remote (yes/no) equipment Data Receives only when this signal is on. Sending proceeds Carrier as follows: Detect...
  • Page 20: Equipment)

    20 (ER) Note: This example illustrates the case where the remote DTE uses D-sub 25-pin. Examples of cables with the above internal connection are the YCB cables supplied by Yokogawa. Example internal cable connection diagram for D-sub 9-pin remote equipment...
  • Page 21: Connecting To A Modem (Dce: Data Communication Equipment)

    (ER) 4 20 (ER) Note: This example illustrates the case where the remote DCE uses D-sub 25-pin. An example of a cable with the above internal connection is the YCB211 cable supplied by Yokogawa. IM 34M6H21-01E 2nd Edition : Aug, 2001-00...
  • Page 22 (1) Use a cable with connectors housed in metal or metal-plated covers. Connect the shielded wire directly to the connector covers. (2) Note that the connector shell of an F3RS22-0N module is connected internally to the FG (frame ground) terminal of an FA-M3 power supply module.
  • Page 23: Notes On Wiring

    „ Notes on Wiring The connector shell of an F3RS22-0N module is connected internally to the FG terminal of an FA-M3 power supply module. (1) When connecting the F3RS22-0N module via a modem: The module should be no more than 5 m away from the modem.
  • Page 24: Attaching And Detaching Modules

    Attaching and Detaching Modules „ Attaching/Detaching Modules Figure 2.1 shows how to attach this module to the base module. First hook the anchor slot at the bottom of the module to be attached onto the anchor pin on the bottom of the base module.
  • Page 25 2-10 „ Attaching Modules in Intense Vibration Environments If the module is used in intense vibration environments, fasten the module with a screw. Use screws of type listed in the table below. Insert these screws into the screw holes on top of the module and tighten them with a Phillips screwdriver.
  • Page 26: F3Rs41-0N Communication Module

    F3RS41-0N Communication Module Standard Specifications „ Model and Suffix Codes Additional Model Code Suffix Code Style Code Remarks Code …… …… F3RS41 Max. 19200 bps, one RS-422-A/RS485 port „ Operating Environment F3RS41-0N can be used with the following CPU modules. Style CPU Modules F3BP20...
  • Page 27: Components And Their Functions

    Item Specifications Default - Yes/no Starting character - One-character length; any character is acceptable - Yes/no - Two-character length maximum; any character Ending character (string) is acceptable (Terminator) (CR-LF) - Also serves as an ending character during transmission. - Yes Designation of Receive text - Effective range: 1 to 1024 (over the communication...
  • Page 28: External Dimensions

    „ External Dimensions (Unit: mm) 12.1 83.2 28.9 IM 34M6H21-01E 2nd Edition : Aug, 2001-00...
  • Page 29: External Wiring

    External Wiring This subsection explains the point-to-point wiring methods. For multi-point connection, see Section 4.6, “Multi-point Connections.” For two-wire systems, register setting is required. See Section 4.6 "„ Setting Registers". „ RS-422/RS-485 Terminal Block M3.5 SD A SD A Send data A SD B SD B Send data B...
  • Page 30: Two-Wire System

    „ Two-Wire System F3RS41-0N module’s port terminals Remote equipment  A  Terminating resistor  B  (built-in) Terminating resistor   SG  SHIELD SHIELD Set the terminating resistor selector swtich to a 2-wire system. „ Notes on Wiring (1) Ground the cable for the twisted pair at two ends (by connecting it to the SHIELD or the FG terminal).
  • Page 31 Blank Page...
  • Page 32: Using The Communication Module

    Using the Communication Module Basic Communications „ Declaring Use of the Module Use the ASSIGN statement to declare use of the module. ASSIGN module ID = S(, module ID=S, …) Module ID: RS22…F3RS22–0N RS41…F3RS41–0N Slot number (Example) ASSIGN RS22=5, RS42=6 An example is illustrated for F3RS22–0N in the sample program hereafter.
  • Page 33: X84; Output

    (Example) When using slot number 5, port 2 at 9600bps, odd parity with 2 stop bits, 10 ASSIGN RS22=5 20 RESET 5,2 : !Port Reset 30 CONTROL 5,2,14;7 : !9600 bps 40 CONTROL 5,2,13;1 : !parity Odd 50 CONTROL 5,2,12;2 : !2 Stop bits 60 RESET 5,2,1 : !Buffer Reset...
  • Page 34: X84; Input

    „ Input Use the ENTER statement to retrieve received text. The ENTER statement extracts from the rotary buffer text. The text is delineated using the ending character, character-to-character time out or the number of characters received. ENTER S,P;input variables Variables or array variables of numeric type or character string type. (Example) To receive text from slot 5, port 2, ENTER 5, 2;...
  • Page 35: Transmission Text And Format Specifications

    Transmission Text and Format Specifications „ Data Output Data output is performed with the OUTPUT statement. The OUTPUT statement can be used to specify the output format, as well as whether a terminator is to be appended and code conversion to be performed before output. Table 4.3 Format Specification using the OUTPUT statement Type Statement...
  • Page 36: X84; Data Input

    Type The output data is output as internal code. No terminator is appended. Code conversion is ignored, even if specified. BASIC program Data on the line 10 ASSIGN RS22=5 Numeric data (internal code) 20 A$=”ABCD”: B=100 30 OUTPUT 5,2 NOFORMAT;A$;B „...
  • Page 37 (Example) This example shows receiving of the following line data from port 2 of slot 5 when the terminator is CR-LF. BASIC program Data on the line 1010 ENTER 5,2 FORMAT;A$ 1020 ENTER 5,2 FUSING 1030;B$;C 1030 IMAGE 4A,6N The value of each variable is as shown below. A$=“ABCD”...
  • Page 38: Efficient Communication

    Efficient Communication „ Interrupt Input Interrupt Input performs input from the communication line and after receiving of the transmission text is completed, an interrupt is sent to the BASIC program. When Interrupt Input is used, the BASIC program can continue with other processing even whilst the actual communication process is executed by the module processor.
  • Page 39: X84; Transfer

    (Example) DEFINT I ASSIGN RS22=5 ON INT 5,2 GOSUB INT@ … Specify interrupt destination ENABLE INTR 5,2;”111” … Remove interrupt mask Main program INT@ STATUS 5,2,2;I I = 0 THEN Interrupt handling ENTER 5,2,;REC$ ELSE PRINT “RECEIVE ERROR” ENDIF ENABLE INTR 5,2;”111” RETURN Line 70 enables interrupts for all reasons.
  • Page 40 no ON ERROR branching, check the status register in the program. Transmission Transmission Free Busy Free Busy destination destination   Time until data BASIC Data BASIC program Time Time arrives from program in in WAIT state remote WAIT state equipment OUTPUT ENTER...
  • Page 41 4-10 - Input Procedure Although interrupt branching using ON INT can be used in almost all situations, TRANSFER is useful when you need to perform input time monitoring (SET TIMEOUT/ON TIMEOUT) processing. Normally, interrupt input using ON INT is used. Data is output into the input/output buffer first and then read using ENTER.
  • Page 42: Using Registers

    4-11 Using Registers F3RS22-0N and F3RS41-0N have many registers for handling various aspects of transmission. This section describes the use of these registers. „ List of Registers Register Register Contents Default Value Number Type : no Input wait status others...
  • Page 43: X84; Format Of Received Text

    4-12 Register Register Contents Default Value Number Type Time for sending break 1 to 32760 (ms) signal Starting Starting character for character receive text All zeroes when no starting character is specified first ending second ending Ending character character character ( CR LF ) (terminator)
  • Page 44 4-13 z Specification of number of receive bytes The end of text is assumed when the specified number of bytes (1 to 1024) is received. When the starting character for receive text is specified, the counting of the received bytes starts from that character. (Example 1) When the number of received bytes is set to 4 bytes: 10 ASSIGN RS22=5 20 CONTROL 5,2,23;4...
  • Page 45: X84; Xon/Xoff Control

    4-14 „ X Control This feature prevents overflow in the communication buffer through the exchange of special characters. This feature only applies in full duplex communications. Table 4.8 X Operation Classification Operation Receiving end When the space in the input buffer falls below one quarter, transmit X When the space in the input buffer rises above half, transmit X When data is received in the X state after X...
  • Page 46: Special Communications

    4-15 Special Communications „ Long Text Be careful when handling long text (exceeding 512 bytes). All the following conditions must be satisfied during sending. - Data size transferred from a BASIC program to the communications driver is less than 1 KB (including terminators) - Line data after code conversion is less than 1 KB (including terminators) (Example 1) Simple string variable DIM A$512,B$500,...
  • Page 47: X84; Handling Null Codes

    4-16 „ Handling Null Codes In the YM-BASIC language specifications, the BASIC interpreter treats a null code ($00) as a character string delimiter. If there is a null code embedded in a character string, the null code and all subsequent characters are ignored. This is also the case during binary transmission.
  • Page 48: X84; Inserting Binary Data Into Text

    4-17 „ Inserting Binary Data into Text One example is the entry of BCC (Block Check Character) at the end of the text. This can be done conveniently using the IMAGE B, W specifications (Type II). IMAGE B, W specification is only effective in the following situation and cannot be used in other situations.
  • Page 49: Multi-Point Connection

    4-18 Multi-point Connection Besides point-to-point (1:1) connections, multi-point (n : n) connections are also supported in F3RS41-0N. „ External Connection F3RS41-0N conforms to the RS-422-A and RS-485 standards. The number of possible connections for the respective specifications are as shown in Table 4.9. Table 4.9 Number of Connections Allowed 1: n n: n...
  • Page 50: X84; Setting Registers

    4-19 „ Setting Registers Depending on the configuration of the external connection, 3 types of modes can be used in this module, namely 4-wire master station, 4-wire substation and 2-wire. If the register settings corresponding to the three modes are not performed, normal communication is not possible.
  • Page 51: X84; Protocol Processing

    4-20 „ Protocol Processing When using multi-point connections on the F3RS41-0N, protocol (communication control procedure) is essential to prevent line conflicts along the transmission route. Although FA-M3 provides the physical interfaces, it does not support protocol processing in the system. Therefore, protocol control must be described using a BASIC program. Normally, the polling selection method is used.
  • Page 52 4-21 When F3RS41-0N reads data from the remote equipment (command: RD) F3RS41-0N Command DATA Remote equipment Command “DATA” refers to contents sent from the remote equipment to F3RS41-0N. Timing Chart Device F3RS41- 0N Device Command DATA Status Status Remote equipment Remote equipment 1 Command The program is as shown below...
  • Page 53 4-22 1000 ENTSTS@ :! Interrupt handling subroutine 1010 STATUS SLOT,PORT,2;IREC :! Interrupt request status 1020 IF IREC=0THEN :! Normal receive? 1030 GOTO ENTDAT@ :! Goto Receive Data 1040 ELSE 1050 DP“Error or break received.” 1060 GOTO RTN@ 1070 ENDIF 1080 ENTDAT@ 1090 ENTER SLOT,PORT;RCVDAT$ 1100 RCVMNUM$=MID$(RCVDAT$,3,2) :! Extract device no.
  • Page 54: Basic Statements And Error Codes

    BASIC Statements and Error Codes BASIC Statements Table 5.1 BASIC Statements BASIC Statement Functions Data input ENTER S,P Data output OUTPUT S,P Start data input / output TRANSFER S,P Enable program branching on completion of data transfer ON EOT S,P Disable program branching on completion of data transfer OFF EOT S,P Mask / unmask receive interrupt for all ports...
  • Page 55: Error Codes

    Error Codes The following table lists the error codes for F3RS22-0N and F3RS41-0N together with a short description and the possible causes. Table 5.2 Error Codes Error Detailed Description Possible Causes Code Error Code Error in function - An attempt was made to execute a command that is not supported.
  • Page 56: Sample Programs

    Sample Programs The following shows an example for F3RS22-0N. The program can be used similarly for F3RS41-0N (point-to-point) by declaring the use of RS41 in the ASSIGN statement. Explanations for the sample programs Send (1) : Send with complete return access using the OUTPUT statement.
  • Page 57 ELSE GOTO 250 ENDIF ELSE DP “time”; TIME$, “receive data”; REC$ ENDIF RESET STATUS ! F3RS22-0N Example RECEIVE (2) DEFINT I DIM REC$256 SLOT = 3 : PORT = 2 ! Set communication conditions :! Assign card ASSIGN RS22 = SLOT :! 9600bps CONTROL SLOT, PORT, 14;...
  • Page 58 WAIT END WHILE STOP REC@ ! INTERRUPT INPUT SUBROUTINE :! Interrupt branch condition STATUS SLOT, PORT, 2; IREC :! Normal receive? IF IREC = 0 THEN :! Receive (type II) ENTER SLOT, PORT FORMAT; REC$ DP “time”; TIME$, “receive data”; REC$ ELSE DISP “error or break received”...
  • Page 59 Blank Page...
  • Page 60: Appendix 1. Signal Description And Direction Of Signal Lines (Rs-232-C)

    Direction of Signal Lines (RS-232-C) The following figure and table describe the RS-232-C signals and the signal directions for the F3RS22-0N module. The selection of the direction of signal lines (only for those that are selectable) is performed with software setting.
  • Page 61: Appendix 2. Data Transmission

    Appx.2-1 Appendix 2. Data Transmission Start-Stop Synchronous Transmission The F3RS22-0N and F3RS41-0N modules transmits using a start-stop synchronous mode. When a character is transmitted in start-stop synchronization, a start bit is first transmitted, followed by the character bits (7 to 8 bits) in descending sequence, the parity bit and the stop bit(s).
  • Page 62: Appendix 3. Ascii Codes

    Appx.3-1 Appendix 3. ASCII Codes High- order Low- order ‘ " & ’ < ¥ > Control codes Character codes IM 34M6H21-01E 2nd Edition : Aug, 2001-00...
  • Page 63 Appx.3-2 Blank Page IM 34M6H21-01E 2nd Edition : Aug, 2001-00...
  • Page 64: Revision Information

    Addition of explanations on support of CE Mark; Correction of typographical errors Written by Product Marketing Department, IT Controller Center. Yokogawa Electric Corporation Published by Yokogawa Electric Corporation 2-9-32 Nakacho, Musashino-shi, Tokyo, 180-8750, JAPAN Printed by Yokogawa Graphic Arts Co., Ltd.
  • Page 65 Blank Page...

This manual is also suitable for:

Fa-m3F3rs41-0n

Table of Contents