YOKOGAWA F3RS22-0N, F3RS41-0N User Manual

User’s Manual
Serial Communication Modules
IM 34M6H21-01E
IM 34M6H21-01E
2nd Edition

Applicable Product:

z Range-free Multi-controller FA-M3
Model: F3RS22-0N Name: RS-232-C Communication Module Model: F3RS41-0N Name: RS-422 Communication Module
The document number and document model code for this manual are given below. Refer to the document number in all co mmunications; also refer to the document number or
the document model code when purchasing additional copies of this manual.
Document No.: IM 34M6H21-01E Document Model Code: DOCIM
i
Media No. IM 34M6H21-01E (CD) 2nd Edition : Aug, 2001 (YK) All Rights Reserved Copyright 1999, Yokogawa Electric Corporation
IM 34M6H21-01E 2nd Edition : Aug, 2001-00

Important

About This Manual
- This Manual should be passed on to the end user.
- Before using the controller , read this manual thoroughly to have a clear understanding of the controller .
- This manual explains the functions of this product, but there is no guarantee that they will suit the particular purpose of the user.
- Under absolutely no circumst ances may t he content s of this manu al be transcr ibed or copied, in part or in whole, without permission.
- The contents of this manual are subject to change without prior notice.
- 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
ii
- The following safety symbols are used on the product as well as in this manual.
Danger. This symbol on the product indicates that the operator must follow the instructions laid out in this instruction manual to avoid the risk of personnel injuries, fatalities, or damage to the inst rument. The manual describes what special care t he operator must exercise to prevent electric al shock or other dangers that may result in injury or the loss of life.
Protective Ground Terminal. Before using the instrument, be sure to ground this terminal.
Function Ground Terminal. Before using the instrument, be sure to ground this terminal.
Alternating current. Indicates alternating current.
Direct current. Indicates direct current.
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
The following symbols are used only in the instruction manual.
iii
WARNING
Indicates a “Warning”. Draws attention to information essential to prevent hardware damage, software damage or system failure.
CAUTION
Indicates a “Caution” Draws attention to information essential to the understanding of operation and functions.
TIP
Indicates a “TIP” Gives information that complements the present topic.
SEE ALSO
Indicates a “SEE ALSO” reference. Identifies a source to which to refer.
- For the protection and safe use of the product and the system controlled by it, be sure to follow the instructions and precautions on safety stated in this manual whenever handling the product. Take special note that if you handle the product in a manner other than prescribed in these instructions, the protection feature of the product may be damaged or impaired. In such cases, Yokogawa cannot guarantee the quality, performance, function and safety of the product.
- When installing protection and/or safety circuits such as lightning pr ot ect ion devices and equipment for the product and control syst em as w ell as designing or installing separate protection and/or safety circuits for fool-proof design and fail-safe design of processes and lines using the product an d the system contro lled by it, the u ser should implement it using devices and equipment, additional to this product.
- If component parts or consumable are to be replaced, be sure to use part s specified by the company.
- This product is not designed or manuf actured to b e used in crit ical ap plicat ions whic h directly affect or threaten human lives and safety — such as nuclear pow er equipment, devices using radioactivity, railway facilities, aviation equipment, air navigation facilities, aviation facil ities or medical equ ipment. If so used, it is the user’s responsibility to include in the system addit ional equipment and devices that ensure personnel safety.
- Do not attempt to modify the product.
Exemption from Responsibility
- Yokogawa Electric Corporation (hereinafter simply referred to as Yokogawa Electric) makes no warranties regarding the product except those stated in the 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 .
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Software Suppli ed by the Company
- Yokogawa Electric makes no other warranties expressed or implied except as provided in its warranty clause for softw are supplied by the company.
- Use the software with one computer only. You must purchase another copy of the software for use with each additional computer.
- Copying the software for any purposes other than backup is strictly prohibited.
- Store the original media, such as floppy disks, that contain the software in a safe place.
- Reverse engineering, such as decompiling of the softw ar e, 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 w ithout prior permission by Yokogawa Electric.
iv
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
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 oper ating 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.
- Where corrosive or flammable gases are present.
- Where the instrument will be exposed to direct mechanical vibration or shock.
- Where the instrument may be exposed to extreme levels of radioactivity.
Use the correct types of wire for external wiring:
- Use copper wire with temperature ratings greater than 75qC.
Securely tighten screws:
- Securely tighten module mounting screws and terminal screws to avoid problems such as faulty operation.
- Tighten terminal block screws with the correct tightening torque as given in this manual.
v
Securely lock connecting cables:
- Securely lock the connect ors of ca bles, an d c hec k the m thor oughly be fore t ur ning o n the power.
Interlock with emergency-stop circuitry using external relays:
- Equipment incorporating the FA-M3 must be furnished with emergency-stop circuitr y that uses external relays. This circuit r y should be set up to interlock correctly with controller status (stop/run).
Ground for low impedance:
- For safety reasons, connect the [FG] grounding terminal to a Japanese Industrial Stan dard s (JIS) Class 3 Ground. For compliance t o CE M ar king, us e ca bles s uch as twisted cables which can ensure low impedance even at high frequencies for grounding.
Configure and route cables with noise control considerations:
- Perform installation and wiring that segregates system part s t hat may likely become noise sources and system parts that are susceptible to noise. Segregation can be achieved by measures such as segregating by distance, installing a filter or segregating the grounding system.
Configure for CE Marking Conformance:
- For compliance with CE Marking, perform installation and cable routing according to the description on compliance to CE Marking in the “Hardware Manual” (IM34M6C11-01E).
Keep spare parts on hand:
- Stock up on maintenance part s including spare modules, in advance.
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Discharge static electricity before operating the system:
- Because static charge can accumulate in dry conditio ns, 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.
- Do not use volatile solvents such as benz ine or paint thinner or chemicals for cleaning, as they may cause deformity, discoloration, or malfunctioning.
Avoid storing the FA-M3 in places with high temperature or humidity:
- Since the CPU module has a built-in battery, avoid storage in places with high temperature or humidity.
- Since the service life of the battery is drastically reduced by exposure t o high temperatures, take special care (storage temperature should be from –20qC to 75qC).
- There is a built-in lithium battery in a CPU module and temperature control module which serves as backup power supply for programs, device information and configuration information. The service life of this battery is more than 10 y ears in standby mode at roo m temperature. Take note that the service life of the battery may be shortened when installed or stored at locations of extreme low or high temperatures. Therefore, we recommend that modules with built-in batteries be stored at room temperature.
vi
Always turn off the power before installing or removing modules:
- Failing to turn off the power supply w hen installing or removing modules, may result in damage.
Do not touch components in the module:
- In some modules you can remove the right-side cover and install ROM p acks or change switch settings. While doing this, do not touch any components on the printed-circuit board, otherwise components may be damaged and modules may fail to work.
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Waste Electrical and Electronic Equipment
Waste Electrical and Electronic Equipment (WEEE), Directive 2002/96/EC
(This directive is only valid in the EU.)
This product complies with the WEEE Directive (2002/96/EC) marking requirement. The following marking indicates that you must not discard this electrical/electronic product in domestic household waste.
Product Category 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.
vii
IM 34M6H21-01E 2nd Edition : Aug, 2001-00

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.
For BASIC CPU modules F3BP20 and F3BP30
- BASIC CPU Module and YM-BASIC/FA Programming Language (IM 34M6Q22-01E)
Common for all sequence CPU modules
For the FA-M3 specifications and configurations*1, installation and wiring, test run, maintenance, and module installation limits for the whole system:
*1: Refer to the relevant product ma nu als fo r s pe cifications except for pow er su pply modules, base modules, input /o utp ut
modules, cables and terminal units.
- Hardware Manual (IM 34M6C11-01E), 6th Edition or later
viii
IM 34M6H21-01E 2nd Edition : Aug, 2001-00

Copyrights and Trademarks

Copyrights
Copyrights of the programs and online manual included in this CD-ROM belong to Yokogawa Electric Corporation.
This online manual may be printed but PDF security settings have been made to prevent alteration of its contents.
This online manual may only be printed and used for the sole purpose of operating this product. When using a printed copy of the online manual, pay attention to possible inconsistencies with the latest version of the online manual. Ensure that the edition agrees with the latest CD-ROM version.
Copying, passing, selling or distribution (including transferring over computer networks) of the contents of the online manual, in part or in whole, to any third party, is strictly prohibited. Registering or recording onto videotapes and other media is also prohibited without expressed permission of Yokogawa Electric Corporation.
Trademarks
ix
The trade names and company names referred to in this manual are either trademarks or registered trademarks of their respective companies.
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Blank Page
FA-M3
Serial Communication Modules

CONTENTS

Applicable Product....................................................................................i
Important...................................................................................................ii
Introduction............................................................................................viii
Copyrights and Trademarks....................................................................ix
1. Overview ....................................................................................... 1-1
2. F3RS22-0N .................................................................................... 2-1
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............................................................................ 2-3
2.2 External Wiring .......................................................................................2-4
Connector Pin Assignments ................................................................ 2-4
Directly Connecting to an RS-232-C Device (DTE: Data Terminal
Equipment) .......................................................................................... 2-5
Connecting to a Modem (DCE: Data Communication Equipment).....2-6
Notes on Wiring...................................................................................2-8
2.3 Attaching and Deta ching Modules........................................................2-9
TOC-1
IM 34M6H21-01E 2nd Edition
3. F3RS41-0N Communication Module........................................... 3-1
3.1 Standard Specifications......................................................................... 3-1
Model and Suffix Codes ...................................................................... 3-1
Operating Environment........................................................................ 3-1
Physical Specifications........................................................................3-1
Function Specifications........................................................................ 3-1
Components and their Functions.........................................................3-2
External Dimensions............................................................................ 3-3
3.2 External Wiring .......................................................................................3-4
RS-422/RS-485 Terminal Block........................................................... 3-4
Four-Wire System................................................................................ 3-4
Two-Wire System ................................................................................ 3-5
Notes on Wiring...................................................................................3-5
3.3 Attaching and Deta ching Modules........................................................3-5
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
TOC-2
4. Using the Communication Module ..............................................4-1
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
4.2 Transmission Text and Format Specifications.....................................4-4
Data Output..........................................................................................4-4
Data Input.............................................................................................4-5
4.3 Efficient Communication........................................................................4-7
Interrupt Input.......................................................................................4-7
TRANSFER..........................................................................................4-8
4.4 Using Registers.....................................................................................4-11
List of Registers .................................................................................4-11
Format of Received Text....................................................................4-12
XON/XOFF Control ............................................................................4-14
Break Signal.......................................................................................4-14
4.5 Special Communications .....................................................................4-15
Long Text............................................................................................4-15
Binary Transmission...........................................................................4-15
Handling Null Codes ..........................................................................4-16
Inserting Binary Data into Text ...........................................................4-17
4.6 Multi-point Connection.........................................................................4-18
External Connection...........................................................................4-18
Setting Registers................................................................................4-19
Setting Terminating Resistors ............................................................4-19
Protocol Processing ...........................................................................4-20
5. BASIC Statements and Error Codes............................................5-1
5.1 BASIC Statements...................................................................................5-1
5.2 Error Codes..............................................................................................5-2
5.3 Sample Programs....................................................................................5-3
Appendix 1. Signal Description and Direction of
Signal Lines (RS-232-C)......................................Appx. 1-1
Appendix 2. Data Transmission ..............................................Appx. 2-1
Appendix 3. ASCII Codes.........................................................Appx. 3-1
Revision Information.................................................................................i
IM 34M6H21-01E 2nd Edition : Aug, 2001-00

1. 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 t hat use D- sub 9- pin connectors for connection and allows transmission to a maximum distance of 15 metres.
BASIC statements are available as a means to exchange data through a communication line. Each port in the F3RS22-0N operates independently and communication error in a port does not affect operations of the other ports.
The F3RS41-0N is a communication module that can be used with F3BP20 or F3BP30 BASIC CPU modules for RS-422-A or RS-485 communication. It has one port that uses a terminal block for connection and allows transmission to a maximum distance of 1200 metres.
BASIC statements are available as a means to exchange data through a communication line. For details on the differences between RS-422-A and RS-485 communication, see Section 3.1, “Standard Specifications Physical Specifications” and Section 4. 6, “Multi-point”.
Table 1.1 Types of Communication Modules
Model Description
F3RS22-0N RS-232-C communication modul e F3RS41-0N RS-422 communication module
1-1
CAUTION
F3RS22-0N and F3RS41-0N communication modules are not accessible from ladder sequence CPU modules. They are to be used with F3BP20 and F3BP30 BASIC CPU modules.
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Blank Page

2. F3RS22-0N

2.1 Standard Specifications

Model and Suffix Codes
2-1
Model Code Suffi x Code Style Code
F3RS22 -0N
Operating Environment
F3RS22-0N can be used with the following CPU modules.
CPU Modules
BASIC CPU module
Physical Specifications
Item Specifications
Interface EIA RS-232C compliant Number of communication ports 2 (non-isolated)
Transmission distance 15 m maximum Connector D-Sub 9-pin (female) M2.6 mm
Current consumption 135 mA External Dimensions 28.9 (W) u 100 (H) u 83.2 (D) (mm)* Weight 120 g
* : Dimensions excluding protrusions. See figure on External Dimensions .
Additional
…… ……
Style
F3BP20 F3BP30
Code
Remarks
Max. 19200 bps, two RS-232-C ports
Function Specifications
Item Specifications Default
Connection Point-to-point Communication mode Full-duplex/half-duplex
Synchronization Start-stop Protocol Non-procedural
Character length 7/8 bits 8 bits
Character frame
Transmission rate 75/150/300/600/1200/2400/4800/9600/ 19200 bps 4800
Control/checking of control line
Stop bit length 1/1.5/2 bits 1 bit Parity bit None/odd/even Even
RS control DR check CD check
ER control
(1) Always on (2) On only when a control line message is being sent (1) Transmits regardless of the state of DR. (2) Transmits only when DR is on.
(1) Transmits regardless of the state of CD. (2) Transmits only when CD is off.
(1) On (ready) (2) Off (not ready)
(to be continued on the next page)

(1) (1) (1)
On
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Communic ation buffer
Transmitting buffer
Receiving buffer Rotary (FIFO) buffer of 2,048 bytes
2-2
Item Specifications Default
Can buffer one text item (maximum lengt h of 1,024 bytes).
Starting character
- Y es/no
- One-character length; any charact er is acceptable
- Y es/no
- Two-character length maximum; any charact er (string) i s acceptable
- Also serves as an ending character during transmission.
- Yes
- Effective range: 1 to 1024 (over the communication line)
- Configurable in 1-ms units; precis ion: 10 ms
- Effective range: 0 to 32760 (if set to 0, there is no monitoring of the character-to-c haracter time interval)
Processed as a communication failure/processed as the normal end of receiving
$0D (CR-LF)
1024
1.5 s
Normal end of receiving
Receive text format
Ending character (Terminator)
Designation of number of characters
Monitored character-t o-character ti me interval Character-to-character receiving interval time-out process
(1) Uncontrolled (2) Receiving line only (3) Transmitting line only (4) Both transmitting and receiving lines
One-character length; any character is acceptable
Uncontrolled
$13 (DC3)
XON/X control
Control method
OFF
XON character $11 (DC1)
character
X
OFF
Internal code
Transmission code Internal code/ASCII code*1/JIS 8-bit code*2
(ASCII- equivalent)
I/O monitoring
Interrupt mask
Monitored time before I /O completion
Monitored time before transmission start
Break transmis sion interval End of receiving Interrupt permitted/prohibited Prohibited
Receive failure Interrupt permit ted/prohibited Prohibited
Configurable in 1-ms uni ts from 1 to 32760 ms; accuracy: 10 ms
Time not monitored/time monitored (configurable in 1-ms units from 1 to 32760 ms; accuracy: 10 ms )
Configurable in 1-ms uni ts from 1 to 32760 ms; accuracy: 10 ms
30 s Time not
monitored 400 ms
Break receiving Interrupt permitted/prohibited Prohibited
*1 During input, k ana and k anji characters are replaced with spaces. *2 During output, kanji charac t ers are replac ed with JIS double-byte codes, while other characters not def ined as J I S
characters are replaced with spaces.
Note: JIS c ode s yst em s : J I S X0201, JI S X0208
x
$0A
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Components and Their Functions
2-3
RDY
RS22-0N
1
2
RS232C
External Dimensions
READY indicator (lit when the internal circuitry is in normal operation)
Port 1
Port 2
(Unit: mm)
83.2 28.9
6.7 2
100
Note: When an RS-232-C cable is connected to the module, add 90 mm to the 83-mm depth across the bottom of t he
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,.
IM 34M6H21-01E 2nd Edition : Aug, 2001-00

2.2 External Wiring

Connector Pin Assignments
The following figure shows how the module’s connector looks when viewed externally.
2-4
9
6
D-Sub 9-pin
Connector (Female)
5
1
Pin
Number
1 CD Data
2 RD Receive 3 SD Send Data no
4 ER Data
5 SG Signal 6 DR Data Set
7 RS Request to
8 CS Clear to
9 — Unused no no
Signal
Name
Name
Carrier Detect
Data
Terminal Ready
Ground Ready
Send
Send
* : Option (1) or (2) c an be s et us ing a BASI C program.
Signal Directi on
FA-M3 Remote
equipment
no
no
yes Permission to transmit from the remot e equipment.
Signal
Monitoring
(yes/no)
yes
no
yes
no
Purpose *
Receives only when this signal is on. Sending pr oceeds as follows: (1) Transmits regardless of the state of CD (default). (2) Transmits only when CD is off.
(1) ER turns on when power is switched on and stays on (default). (2) Turns on and off by software
Used to check if remote equipment is ready for receiving (1) Receives regar dless of the state of DR (default). (2) Receives only when DR is on.
Used when transmitting data to the remote equipment (1) Always on (default). (2) Turns on only during transmis sion
Transmits only when this signal is on.
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Directly Connecting to an RS-232-C Device (DTE: Data Terminal
Equipment)
Example internal cable connection diagram for D-sub 25-pin remote
z
equipment
2-5
Null-modem cable
Pin no.
Connector cover
(SD) 3 (RD) 2
F3RS22-0N
D-sub 9-pin
Note: This example illustrates the case where the remote DTE uses D-sub 25-pin.
(RS) 7 (CS) 8 (DR) 6 (SG) 5 (CD) 1 (ER) 4
Examples of cables with the above internal connection are the YCB cables supplied by Yokogawa.
Shield
Pin no. Connector cover
1 (FG) 2 (SD) 3 (RD)
Remote DTE
4 (RS)
(D-sub 25-pin)
5 (CS) 6 (DR) 7 (SG) 8 (CD) 20 (ER)
z Example internal cable connection diagram for D-sub 9-pin remote
equipment
Null-modem cable
Pin no.
Connector cover
(SD) 3 (RD) 2
F3RS22-0N D-sub 9-pin
(RS) 7 (CS) 8 (DR) 6 (SG) 5 (CD) 1 (ER) 4
Shield
Pin no. Connector cover
3 (SD) 2 (RD) 7 (RS)
Remote DTE
8 (CS)
D-sub 9-pin
6 (DR) 5 (SG) 1 (CD) 4 (ER)
z Connect the shielded wire as instructed below:
(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.
z Introduction to Yokogawa-supplied cables
The following null modem cables are available from Yokogawa.
Model Code Suffix Code Specifications
YCB215 RS-232-C null modem cable (with control line) with 9- and 25-pin
-KM01
-KM05
-KM15
YCB216
-KM01
-KM05
-KM15
Note: These cables should be terminated for indoor use.
connectors
ML gateway card (CP7
) for connecting RS-232-C devices.
1 m long 5 m long
15 m long RS-232-C null modem cable (without control li ne) with 9- and
25-pin connectors
ML gateway card (CP7
) for connecting RS-232-C devices
1 m long 5 m long
15 m long
IM 34M6H21-01E 2nd Edition : Aug, 2001-00
Loading...
+ 45 hidden pages