ladder communication modules - yokogawa electric · manual relating to safety are adhered to in the...

57
Instruction Manual Yokogawa Electric Corporation IM 34M6H22-01E Ladder Communication Modules IM 34M6H22-01E 1st Edition

Upload: others

Post on 28-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

InstructionManual

Yokogawa Electric Corporation

IM 34M6H22-01E

Ladder Communication Modules

IM 34M6H22-01E1st Edition

Page 2: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <Rev> <Introduction> i

IM 34M6H22-01E

Preface

Applicable Products• FA-M3 Range-free Multi-controller

Models and Their Names: F3RZ81-0N Ladder Communication Module

F3RZ91-0N Ladder Communication Module

December, 1998

Revision HistoryDecember, 1998: 1st edition - New publication

Notices(1) This manual should be passed on to the end user.

(2) Yokogawa Electric Corporation (hereinafter simply referred to as Yokogawa) does notwarrant that the functions contained in this product will suit a particular purpose of theuser.

(3) Under absolutely no circumstances may the contents of this manual in part or in wholebe transcribed or copied without permission.

(4) The contents of this manual are subject to change without prior notice.

(5) 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, pleasecontact your nearest Yokogawa representative or our sales office.

(6) In the interest of protecting and ensuring the safety of this product and the systemwhich is controlled by this product, ensure that all instructions and precautions in thismanual relating to safety are adhered to in the use of this product.

If separate protection and/or safety circuits are installed for this product or the systemwhich is controlled by this product, ensure that such circuits are installed external tothe product. Do not attempt to make modifications or additions internal to the product.

(7) In cases where the use of this product results in damage or loss to the user or a thirdparty, Yokogawa will not be responsible for any incidental or consequential damage orloss, or any damage or loss suffered by the user or third party resulting from a defector defects in this product which could not be foreseen by Yokogawa.

(8) Concerning the software supplied by Yokogawa on floppy disks:

1. This software is to be used only on one specific computer. If it is to be used onother computers as well, purchase that software separately.

2. The copying of this software for any purpose except backup is strictly prohibited.

3. Keep the floppy disks (originals) of this software in a safe place. If the originalfloppy disks are not in the user's possession, Yokogawa may decline to providequality assurance and maintenance services.

4. The decompiling or reverse-assembly of this software ("reverse engineering") isstrictly prohibited.

1st Edition : Dec.01,1998-00Media No. IM 34M6H22-01E (CD) 1st Edition : Dec. 1998 (YK)All Rights Reserved Copyright © 1998, Yokogawa Electric Corporation

Page 3: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

ii<Toc> <Ind> <Rev> <Introduction>

IM 34M6H22-01E

The document number and document model code for this manual are as follows:

Document number: IM 34M6H22-01E

Document model code: DOCIM

Please refer to the document number in all communications; refer to the document numberor document model code when purchasing additional manuals.

1st Edition : Dec.01,1998-00

Page 4: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <Rev> <Introduction> iii

IM 34M6H22-01E

IntroductionThe FA-M3 controllers incorporate a new concept developed by Yokogawa which special-izes in measurement, control and information processing. This instruction manual, "LadderCommunication Modules," explains the specifications and handling of the ladder communi-cation modules used with an FA-M3 controller.

Operating Environment

FA-M3

The CPU modules with which the ladder communication modules covered in this manualcan be used are F3SP20, F3SP21, F3SP25, F3SP30 and F3SP35 modules.

1st Edition : Dec.01,1998-00

Page 5: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

iv<Toc> <Ind> <Rev> <Introduction>

IM 34M6H22-01E

Safety PrecautionsThis instrument is an IEC safety class I instrument (provided with terminal for protectivegrounding). The following general safety precautions must be observed during all phasesof operation, service and repair of this instrument. If this instrument is used in a manner notspecified in this manual, the protection provided by this instrument may be impaired. Also,Yokogawa Electric Corporation assumes no liability for the customer’s failure to comply withthese requirements.

The following symbols are used on this instrument.

CAUTIONTo avoid injury, death of personnel or damage to the instrument, the operator mustrefer to an explanation in the Instruction Manual.

Protective grounding terminal.

Function grounding terminal. This terminal should not be used as a “Protectivegrounding terminal.”

Alternating current

Direct current

Make sure to comply with the following safety precautions. Not complying might result ininjury, death of personnel or damage to the instrument.

WARNING

Power Supply

Ensure the source voltage matches the voltage of the power supply before turning ON thepower.

Protective Grounding

Make sure to connect the protective grounding to prevent an electric shock before turningON the power.

Necessity of Protective Grounding

Never cut off the internal or external protective grounding wire or disconnect the wiring ofprotective grounding terminal. Doing so poses a potential shock hazard.

Defect of Protective Grounding and Fuse

Do not operate the instrument when protective grounding or fuse might be defective.

1st Edition : Dec.01,1998-00

Page 6: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <Rev> <Introduction> v

IM 34M6H22-01E

Do not Operate in an Explosive Atmosphere.

Do not operate the instrument in the presence of flammable liquids or vapors.

Operation of any electrical instrument in such an environment constitutes a safety hazard.

1st Edition : Dec.01,1998-00

Waste Electrical and Electronic EquipmentWaste 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 productin domestic household waste.

Product Category

With reference to the equipment types in the WEEE directive Annex 1, this product isclassified 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.

Page 7: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Blank Page

Page 8: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Toc-1<Int> <Ind> <Rev>

IM 34M6H22-01E

CONTENTS

1st Edition : Dec.01,1998-00

FA-M3Ladder Communication Modules

IM 34M6H22-01E 1st Edition

Preface .................................................................................................................... i

Introduction ............................................................................................................ iii

1. Overview .................................................................................................. 1-1

2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules ....... 2-12.1 Overview........................................................................................................... 2-1

2.2 F3RZ81-0N Ladder Communication Module ..................................................... 2-2

2.2.1 Standard Specifications .................................................................... 2-2

2.2.2 Components and Their Functions ..................................................... 2-4

2.2.3 External Dimensions ......................................................................... 2-4

2.2.4 External Wiring ................................................................................. 2-5

2.3 F3RZ91-0N Ladder Communication Module ..................................................... 2-9

2.3.1 Standard Specifications .................................................................... 2-9

2.3.2 Components and Their Functions .................................................... 2-11

2.3.3 External Dimensions ........................................................................ 2-11

2.3.4 External Wiring ............................................................................... 2-12

2.4 Attaching and Detaching Modules ................................................................... 2-14

2.4.1 Attaching Modules .......................................................................... 2-14

2.4.2 Detaching Modules ......................................................................... 2-14

2.4.3 Attaching Modules in Intense Vibration Environments ..................... 2-15

3. Using the Ladder Communication Module ................................................. 3-1

3.1 Types of Relay and Register ............................................................................. 3-1

3.1.1 Types of relay ................................................................................... 3-1

3.1.2 Types of register ............................................................................... 3-2

3.2 Access Methods ............................................................................................... 3-3

3.2.1 Mode Setting Sequence ................................................................... 3-3

3.2.2 Control Register Reference Sequence............................................ 3-10

3.2.3 Send Sequence ............................................................................... 3-11

3.2.4 Receive Sequence ......................................................................... 3-13

3.2.5 Multipoint Connections ................................................................... 3-16

4. Response Status ...................................................................................... 4-1

Appendix 1. Meaning of Signals and Movement of Signal Lines(RS-232-C) .........................................................................Appx. 1-1

Appendix 2. Data Transmission ..............................................................Appx. 2-1

Appendix 3. ASCII Codes .......................................................................Appx. 3-1

Page 9: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Blank Page

Page 10: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <1. Overview > 1-1

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

1. OverviewF3RZ81-0N is a communication module having one RS-232-C port, and F3RZ91-0Nmodule is a communication module having one RS-422-A/RS-485 port. Both modules areinstalled in an FA-M3 controller.

Table 1.1 Types of Ladder Communication Module

Model Description Applicable Controller

F3RZ81-0N Ladder communication moduleFA-M3

F3RZ91-0N Ladder communication module

Page 11: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Blank Page

Page 12: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-1

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules

2.1 OverviewF3RZ81-0N is a communication module having one RS-232-C port, while F3RZ91-0Nmodule is a communication module having one RS-422-A/RS-485 port. For details on thedifference between RS-422-A and RS-485 interfaces, see Sections 2.3.1 and 3.2.5, "Stan-dard Specifications" and "Multipoint Connections," later in this manual.

Page 13: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

2-2<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules >

IM 34M6H22-01E

2.2 F3RZ81-0N Ladder Communication Module

2.2.1 Standard SpecificationsTable 2.1 Physical Specifications

Item Specifications

Electrical specifications Conforms to EIA RS-232-C standards.

Number of communication ports 1 (non-isolated)

Transmission distance 15 m max.

Connector D-Sub 9-pin (female)

Current consumption 110 mA (5 V DC)

Dimensions 28.9 (W) 3 100 (H) 3 83.2 (D)(mm)

Weight 120g

Table 2.2 Function Specifications (first of two)

Item Specifications Default

Connection Point-to-point -

Communication mode Full-duplex/half-duplex -

Synchronization Start-stop -

Protocol No protocol -

Character frame

Character length 7/8 bits 8 bits

Stop bit length 1/1.5/2 bits 1 bit

Parity bit None/odd/even Even

Transmission rate 75/150/300/600/1200/2400/4800/9600/19200 4800

Control/checking of control line

RS control(1) Always on(2) On only when a message is being sent

(1)

DR check(1) Transmits regardless of the state of DR.(2) Transmits only when DR is on.

(1)

CD check(1) Transmits regardless of the state of CD.(2) Transmits only when CD is off.

(1)

ER control(1) On (ready)(2) Off (not ready)

On

Communication buffer

Transmitting bufferCan buffer one text (maximum length of 598 bytes).

-

Receiving buffer Rotary (FIFO) buffer of 2,048 bytes -

1st Edition : Dec.01,1998-00

Page 14: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-3

IM 34M6H22-01E

Table 2.2 Function Specifications (second of two)

Item Specifications Default

Receive text format

Starting character• Yes/no• One-character length; any character is acceptable

No

Ending character (Terminator)

• Yes/no• Two-character length maximum; any character (string) is acceptable• Also serves as an ending character during transmission.

$0D • $0A(CR-LF)

Designation of number of characters

• Yes• Effective range: 1 to 1024 (over the communication line)

1024

Monitored character-to-character time interval

• Configurable in 1-ms units; accuracy: 10 ms• Effective range: 0 to 32760 (if set to 0, there is no monitoring of the character-to-character time interval)

1.5 s

XON/XOFF control

Control method

(1) Uncontrolled(2) Receiving line only(3) Transmission line only(4) Both transmission and receiving lines

Uncontrolled

XON characterOne-character length; any character is acceptable

$11(DC1)

XOFF character $13(DC3)

I/O monitoring

Monitored time before I/O completion

Configurable in 1-ms units from 1 to 32760 ms; accuracy: 10 ms

30 s

Monitored time before transmission start

Time not monitored/time monitored (configurable in 1-ms units from 1 to 32760 ms; accuracy: 10 ms)

Time not monitored

Break transmission interval Configurable in 1-ms units from 1 to 32760 ms; accuracy: 10 ms 400 ms

Interruption mask

End of receiving Interruption permitted/prohibited Prohibited

Receive failure Interruption permitted/prohibited Prohibited

Break receiving Interruption permitted/prohibited Prohibited

1st Edition : Dec.01,1998-00

Page 15: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

2-4<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules >

IM 34M6H22-01E

2.2.2 Components and Their Functions

RDY

RZ81-0N RS232

READY indicator (lit steady in green when the internal circuitry is in normal operation)

2.2.3 External Dimensions83.2 28.9

2

100

6.7(Unit: mm)

Note: For reasons of the size of a base module's connector and an RS-232-C connector and the bend radius of an RS-232-Ccable, add 90 mm to this nearly 83-mm depth across the bottom of the module to allow approximately 173 mm as thedepth when the cable is connected to the module.

1st Edition : Dec.01,1998-00

Page 16: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-5

IM 34M6H22-01E

2.2.4 External Wiring

Connector Pin AssignmentsThe following figure shows how the module's connector looks when viewed externally.

5

1

9

6

D-Sub 9-pin Connector (Female)

(1)Directly Connecting to an RS-232-C Device (DTE: Data Terminal Equip-ment)

Pin no.Connector cover

(SD) 3

(RD) 2

(RS) 7

(CS) 8

(DR) 6

(SG) 5

(CD) 1

(ER) 4

Pin no.Connector cover

1 (FG)

2 (SD)

3 (RD)

4 (RS)

5 (CS)

6 (DR)

7 (SG)

8 (CD)

20 (ER)

F3RZ81-0N

(D-Sub 9-pin)

Counterpart DTE(D-Sub 9-pin)

Null-modem cable

Shielding wire

Connect the shielding wire as instructed below:

(1) Use a cable with connectors housed in metal or metal-plated covers. Connect theshielding wire directly to the connector covers.

(2) Note that the connector shell of an F3RZ81-0N module is connected internally to theFG (frame ground) terminal of an FA-M3 power supply module.

1st Edition : Dec.01,1998-00

Page 17: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

2-6<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules >

IM 34M6H22-01E

- Introduction of Yokogawa-Supplied Cables

Yokogawa is also prepared to supply null modem cables. The model codes, specificationsand wiring diagrams of these cables are as summarized below:

Model and Suffix Codes

Model Code Suffix Code Specifications

YCB215 -------RS-232-C null modem cable (with control line) with 9- and 25-pin connectors

KM01KM05KM15

1 m long5 m long15 m long

YCB216 -------RS-232-C null modem cable (without control line) with 9- and 25-pin connectors

KM01KM05KM15

1 m long5 m long15 m long

Diagrams of Internal Cable Connections

Pin no.Connector cover

3

2

7

8

6

5

1

4

Pin no.Connector cover

1

2

3

4

5

6

7

8

20

YCB215 cableCN1 side (FA-M3) CN2 side

Shielding wire

FG

SD

RD

RS

CS

DR

SG

CD

ER

SD

RD

RS

CS

DR

SG

CD

ER

Pin no.Connector cover

3

2

7

8

6

5

1

4

Pin no.Connector cover

1

2

3

7

YCB216 cableCN1 side (FA-M3) CN2 side

Shielding wire

FG

SD

RD

SG

SD

RD

RS

CS

DR

SG

CD

ER

1st Edition : Dec.01,1998-00

Page 18: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-7

IM 34M6H22-01E

(2) Connecting to a Modem (DCE: Data Communication Equipment)

Modem cablePin No.

Connector cover

(SD) 3

(RD) 2

(RS) 7

(CS) 8

(DR) 6

(SG) 5

(CD) 1

(ER) 4

Pin No.Connector cover

1 (FG)

2 (SD)

3 (RD)

4 (RS)

5 (CS)

6 (DR)

7 (SG)

8 (CD)

20 (ER)

F3RZ81-0NCounterpartDCE

Connect the shielding wire as instructed below:

(1) Use a cable with connectors housed in metal or metal-plated covers. Connect theshielding wire directly to the connector covers.

(2) Note that the connector shell of an F3RZ81-0N module is connected internally to theFG (frame ground) terminal of an FA-M3 power supply module.

- Introduction of Yokogawa-Supplied CablesYokogawa is also prepared to supply modem cables. The model code, specifications andwiring diagram of the cable are as summarized below:

Model and Suffix Codes

Model Code Suffix Code Specifications

YCB211 ------- RS-232-C modem cable with 9- and 25-pin connectors

KM01KM05KM15

1 m long5 m long15 m long

Diagram of Internal Cable Connection

CN1 side (FA-M3) CN2 sideShielding wirePin No.

Connector cover

3

2

7

8

6

5

1

4

9

Pin No.Connector cover

1

2

3

4

5

6

7

8

20

22

FG

SD

RD

RS

CS

DR

SG

CD

ER

CI

SD

RD

RS

CS

DR

SG

CD

ER

CI

1st Edition : Dec.01,1998-00

Page 19: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

2-8<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules >

IM 34M6H22-01E

Notes on WiringThe connector shell of an F3RZ81-0N module is connected internally to the FG terminal ofan FA-M3 power supply module.

(1) When connecting an F3RZ81-0N module via a modem:

The module should be no more than 5 m away from the modem.

(2) When connecting an F3RZ81-0N module without routing via a modem:

Ground the module along with the counterpart equipment.

FA-M3controller

Counterpartequipment

FG

JIS Class 3 grounding(grounding resistance of 100 Ω or less)

1st Edition : Dec.01,1998-00

Page 20: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-9

IM 34M6H22-01E

2.3 F3RZ91-0N Ladder Communication Module

2.3.1 Standard SpecificationsTable 2.3 Physical Specifications

Item Specifications

Electrical specifications Conforms to EIA RS-422-A/EIA RS-485 standards.

Number of communication ports 1 (isolated)

Maximum number of connectable drivers/receivers

RS-422-A RS-485

1 driver10 receivers

32 drivers32 receivers

Transmission distance 1200 m max.

Connector Six-pole terminal block with 3.5-mm screws

Current consumption 210 mA (5 V DC)

Dimensions 28.9 (W) 3 100 (H) 3 83.2 (D) (mm)

Weight 110 g

Table 2.4 Function Specifications (first of two)

Item Specifications Default

Connection Point-to-point -

Communication mode Full-duplex/half-duplex -

Synchronization Start-stop -

Protocol No protocol -

Character frame

Character length 7/8 bits 8 bits

Stop bit length 1/1.5/2 bits 1 bit

Parity bit None/odd/even Even

Transmission rate 75/150/300/600/1200/2400/4800/9600/19200 bps 4800

Communication buffer

Transmitting bufferCan buffer one text (maximum length of 598 bytes).

-

Receiving buffer Rotary (FIFO) buffer of 2,048 bytes -

Receive text format

Starting character• Yes/no• One-character length; any character is acceptable

No

Ending character(Terminator)

• Yes/no• Two-character length maximum; any character (string) is acceptable• Also serves as an ending character during transmission.

$0D•$0A(CR-LF)

Designation of number of characters

• Yes• Effective range: 1 to 1024 (over the communication line)

1024

Monitored character-to-

character time interval

• Configurable in 1-ms units; accuracy: 10 ms• Effective range: 0 to 32760 (if set to 0, there is no monitoring of the character-to-character time interval)

1.5 s

1st Edition : Dec.01,1998-00

Page 21: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

2-10<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules >

IM 34M6H22-01E

Table 2.4 Function Specifications (second of two)

Item Specifications Default

XON/XOFF controlControl method

(1) Uncontrolled(2) Receiving line only(3) Transmission line only(4) Both transmission and receiving lines

Uncontrolled

XON characterOne-character length; any character acceptable

$11 (DC1)

XOFF character $13 (DC3)

Monitored time before I/O completionConfigurable in 1-ms units from 1 to 32760 ms; accuracy: 10 ms

30 s

Break transmission intervalConfigurable in 1-ms units from 1 to 32760 ms; accuracy: 10 ms

400 ms

Interruption mask

End of receiving Interruption permitted/prohibited Prohibited

Receive failure Interruption permitted/prohibited Prohibited

Break receiving Interruption permitted/prohibited Prohibited

1st Edition : Dec.01,1998-00

Page 22: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-11

IM 34M6H22-01E

2.3.2 Components and Their Functions

TERMINATOR

OFF2- 4-WIRE

SD B

SD A

RD A

SG

SHIELD

RD B

RDY

RS422RZ91-0N

READY indicator :

Terminating resistor selector switch:When the module is terminal in the line, usethis switch to select either "4-WIRE" or "2-WIRE."

RS-422/RS-485 terminal block (Six terminals with 3.5 mm screws)

(lit steady in green when the internal circuitry isin normal operation)

2.3.3 External Dimensions

83.2 28.9

2

100

12.1

(Unit: mm)

1st Edition : Dec.01,1998-00

Page 23: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

2-12<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules >

IM 34M6H22-01E

2.3.4 External WiringThis subsection explains the point-to-point wiring methods. Before the communicationmodule can be wired using a two-wire system, the register must be configured.

(1)Four-Wire System

Terminating resistor

SDA

SDB

RDA

RDB

SG

SHIELD

SD A

SD B

RD A

RD B

SG

SHIELD

F3RZ91-0N module's port terminals Counterpart equipment

(SD A)

(SD B)

(RD A)

(RD B)

(SG)

Terminating resistor(built-in)

Place the terminating resistor selector switch in the 4-WIRE position.

(2)Two-Wire System

Terminating resistor

SDA

SDB

RDA

RDB

SG

SHIELD

A

B

SG

SHIELD

F3RZ91-0N module's port terminals Counterpart equipment

(SG)

(A)

(B)Terminating resistor(built-in)

Place the terminating resistor selector switch in the 2-WIRE position.

*1 Ground the shielding wire of the twisted-pair cable at both ends of the line (that is, connect the wire to the SHIELD orFG terminals). Note that the SHIELD terminal of the F3RZ91-0N module is connected internally to the FG terminal ofan FA-M3 power supply module.

*2 A terminating resistor (220V) is built in the terminal block of the F3RZ91-0N module. Use the terminating resistorselector switch to select either the 4-wire system (4-WIRE) or the 2-wire system (2-WIRE).

Note: Some counterpart equipment may have reverse signal polarities (A/B representations), although this is extremely rare.In that case, a framing error or other failure mode will result even if the communication module is connected correctly. Ifsuch a failure occurs, reverse the polarities of the connection.

1st Edition : Dec.01,1998-00

Page 24: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-13

IM 34M6H22-01E

RS-422-A/RS-485 Terminal Block

8.6mm

7.3mm

3.5-mm screw

SD B

SD A

RD A

SG

SHIELD

RD B

SD A

SD B

RD A

RD B

SG

SHIELD

Send data A

Send data B

Receive data A

Receive data B

Signal ground

Shield terminal

Connection Terminal block

Applicable wire

Size: 0.5 to 1.25 mm2 thickAWG-20 to -16 shielded twisted-pair wiring is recommended. Example: CO-SPEV-SB (A) 3P 3 0.5 SQ from Hitachi Cable, Limited.

Wiring method Crimp-on

Crimp-on terminal

Crimp-on terminal For 3.5-mm size

Tightening torque 78 N·cm (8 kgf·cm) maximum

Applicable crimp-on terminal

Example: V1.25-M3 from J.S.T. Manufacturing Co., Lid.RAV1.25-3.5 from Nippon Tanshi Co., Lid.

CAUTION

When connecting a terminal lug to the wire, be sure to use an appropriate crimping toolspecified by the manufacturer.

1st Edition : Dec.01,1998-00

Page 25: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

2-14<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules >

IM 34M6H22-01E

2.4 Attaching and Detaching Modules

2.4.1 Attaching ModulesFigure 2.1 shows how to attach this module to the base module. First hook the anchor slotat the bottom of the module to be attached onto the anchor pin on the bottom of the basemodule. Push the top of this module in the direction of the arrow shown in the figure (to-ward the base module) until the yellow, spring-loaded anchor/release button clicks intoplace.

Base module

Top button

This module

PUSH

Figure 2.1Attaching Modules

CAUTION

DO NOT bend the connector on the rear of the module by force during the above operation.If the module is forcibly pushed with an improper connection, the connector may bend andthis damage will cause a module installation error during the self-diagnosis.

2.4.2 Detaching ModulesTo remove this module from the base module, reverse the above operation by pressing theyellow anchor/release button to unlock it, and tilting the module away from the base mod-ule. Then lift the module off of the anchor pin at the base.

1st Edition : Dec.01,1998-00

Page 26: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <2. Functionality and Operation of F3RZ81-0N and F3RZ91-0N Modules > 2-15

IM 34M6H22-01E

2.4.3 Attaching Modules in Intense Vibration EnvironmentsIf the modules are used in intense vibration environments, fasten the modules with a screwdirectly beneath the yellow anchor/release button, as shown in Figure 2.2. For this, use a12-mm long M4 (4-mm thick) binder screw. With a Phillips screwdriver, tighten the upperside of the module with this screw. During this operation, the user must tilt the screwdriversomewhat using the guide channel at the top of the module. A clearance of approximately80 mm between the module and the duct above it is necessary to allow the screwdriver toaccess the screw.

CAUTION

DO NOT overtighten the module fixing screw.

Figure 2.2 Tightening Module

1st Edition : Dec.01,1998-00

Page 27: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Blank Page

Page 28: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-1

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

3. Using the Ladder CommunicationModule

3.1 Types of Relay and Register

3.1.1 Types of relayThere are 2 types of relay, namely, input and output. They maintain timing for the 3 types ofaccess sequence shown below.

Input relay

Output relay

3 2 1

35 34 33

• Mode set sequence

Input relay: 3 End-of-Setting relay

Output relay: 35 Start-of-Setting relay

• Send sequence

Input relay: 2 End-of-Sending relay

Output relay: 34 Start-of-Sending relay

• Receive sequence

Input relay: 1 End-of-Receiving relay

Output relay: 33 Start-of-Reading relay

Page 29: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-2<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

3.1.2 Types of registerThere are 3 types of register, namely, input, output and mode. They are used according toeach of the access sequences.

(Data position)

1

301

601

Input register

Output register

Mode register

Mode set area

Register reference area

Response status

Input register: Received data storage area

Each text data is stored in this area

via the rotary buffer, following the

sequence of accessing data.

Output register: Send data storage area

Mode register: Classified into the following three:

Command

Reserved

Register No. 1

Register No. 2

Register No. 16

Register No. 1

Register No. 2

Register No. 16

Register reference area

Response status

Errors that occurred in the data transmission and mode-set

sequence are stored in the response status area

(see Chapter 4 for more details).

601

602

604

605

619

631

632

646

661

Refer to Section 3.2.1

for details.

Refer to Section 3.2.2

for details.

Mode set area (Data position)

Figure 3.1 Registers and Their Usage

1st Edition : Dec.01,1998-00

Page 30: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-3

IM 34M6H22-01E

3.2 Access Methods

3.2.1 Mode Setting SequenceThe commands are classified according to three functions. Access is based on the se-quence as shown in Figure 3.2.

For mode setting, the following three functions can be performed.

• Setting the control register

• Resetting the rotary buffer

• Resetting the port

Mode register

Mode register

Command

Reserved

Reserved

Register No.1

Register No.2

Register No.16

Input register

Output register

Mode set area

Data position

1

301

601

601

602

603

604

605

619

Input relay

Output relay

Start-of-Setting: 35

End-of-Sending Relay: 3

3 2 1

35 34 33

Commands

• Command = 1 for setting the control register (batch)

• Set to initialization state (When the power is switched on or when the port is reset,the default values are set.)

• Command = 2 for resetting the rotary buffer

• Command = 3 for resetting the port

• Set register no.1 to n to the default in the Mode Set Area.

• Reset the serial controller.

• Reset the rotary buffer.

1st Edition : Dec.01,1998-00

Page 31: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-4<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

• Register no.1 to n Setting data for the control register (Refer to the list of registersin Table 3.1 (only valid for command 1.)

• When the power is switched on or when reset is performed, the default value is set.

After the settings have been completed, if an error occurs, an error code is set in the re-sponse status (data position: 661).

The status is set to 0 on normal completion.

The timing for the mode setting sequence is as shown in the diagram. Write a ladderprogram to implement this kind of timing.

Ladder programstart-of-setting command

Ladder programsetting completion

Start-of-Setting relay(Output relay)

End-of-Setting relay(Input relay)

Modulecommand-processingstart

Command processingcompleted

To start the next setting, be sure to check that theEnd-of-Setting relay is off.

Mode register setting

Figure 3.2 Timing Chart for Mode-Set Sequence

Setting Method Using Control RegisterBy setting the control register, the baud rate, terminator and other communication condi-tions can be set.

(Example) The following shows a baud rate setting of 9600 bps to register no.4.

I0001

X00403

WRITE

WRITE

1 004 601 1

7 004 607 1

SET Y00435

RST I0001

RST Y00435

Setdata

Slot Datalocation

Numberof data

Command 1: Control-register set command

Set 7 to register no. 4 (baud rate)

Set the Start-of-Setting relay.

Set the start relay.

Reset the Start-of-Setting relayafter completion of setting.

The communication conditions can be set at the same time for several registers. To do this,write the baud rate just under the WRITE command as illustrated above.

1st Edition : Dec.01,1998-00

Page 32: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-5

IM 34M6H22-01E

Table 3.1 List of Registers

Register number

Type of register Contents Default

values

1(604, 631)

S/C Character length 0: 7 bits1: 8 bits

Others: 8 bits 1

2(605, 632)

S/C Length of stop bits0: 1 bit1: 1.5 bits2: 2 bits

Others: 2 bits 0

3(606, 633)

S/C Parity 0: none1: odd 2: even

Others: even 2

4(607, 634)

S/C Transmission rate (bps)

0: 751: 1502: 3003: 6004: 1200

5: 24006: 48007: 96008: 19200others: 19200

6

5(608, 635)

S/C F3RZ81-ON

RS control 0: Always ON1: ON only when sending

0

F3RZ91-ON

Send/recei-ve control

Refer to 3.2.5 (2) on the setting of registers.

6(609, 636)

S/C F3RZ81-ON

ER control 0: ER = OFF1: ER = ON

1

F3RZ91-ON

Send/receive control

Refer to 3.2.5 (2) on the setting of registers.

7(610, 637)

S/C DR check 0: Sends regardless of the DR state.1: Sends only when DR is ON.

0

8(611, 638)

S/C CD check 0: Sends regardless of the CD state.1: Sends only when CD is OFF.

0

9(612, 639)

S/CMonitored time before sending starts (DR control monitoring)

0: No time-monitoring1 to 32760 (ms)

0

11(614, 641)

S/CSpecification of the starting character for receive text

• All 0 when no starting character is specified

0

12(615, 642)

S/CSpecification of the ending character (terminator)

• 1st ending character = 0 when there is one character• All 0 when no ending character is specified

$ 0D • $ 0A(CR-LF)

13(616, 643)

S/CSpecification of the number of received characters

1 to 1024 (number of characters on the circuit) 1024

14(617, 644)

S/CReceived character-to-character monitoring time

0 to 32760 (ms) (no character-to-character monitoring when setting 0) 1500

15(618, 645)

S/C XON/XOFF control0: Uncontrolled1: Receiving side only2: Sending side only3: Both sending and receiving

0

16(619, 646)

S/C XON/XOFF characters$11 • $13

(DC1 - DC3)

15 87 0

0 Startingcharacter

15 87 0

1st endingcharacter

2nd endingcharacter

15 87 0

XON

characterXOFF

character

604 to 619: For setting631 to 646: For reference

1st Edition : Dec.01,1998-00

Page 33: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-6<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

Explanation of Control Registers

1) Receive terminator (register number 12)

This identifies the end of text when the terminator (end-of-text character) was re-ceived. The default (initial value) is CR-LF.

(Example) When the terminator ETX ($03) was set:

Text 1 Text 2

Received data

A B C D E F GEXT EXT

2) Specifying by the number of received bytes (register number 11, 13)

The end of text is assumed when the specified number of bytes (1 to 1024) wasreceived.

When the start-of-text character is specified, the counting of received bytes starts fromthat character.

(Example 1) When the number of received bytes was set to 4 bytes:

Text 1 Text 2

Received data

A B C D E F G H

(Example 2) When the start-of-text character STX ($02), the number of received bytes, 6,and the terminator ETX ($03) were set:

A B STX P Q R S U STX E N D ETX

Text 1 Text 2Discarded

Start of Text Start of Text(Preceding a block of text characters)

Terminator(End of Text)

(Terminator transmitted as an entity)

(6-byte transmittedtext characters)

If data are sent during this period, they are not received as text.

(Preceding a block oftext characters)

1st Edition : Dec.01,1998-00

Page 34: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-7

IM 34M6H22-01E

3) Receive character-to-character timer (register number 14)

The received character-to-character timer monitors the time interval between recep-tion of characters. When the next character is not received within the specified time, itwill be regarded as end of text. This is effective for binary communications and textwith no terminator.

(Example) Receive data (no terminator), character-to-character timer set to 1 second

Received data (with no terminator)

(Timer setting)Time specified

1000 msThere is no error in the received data even in case of time-out.

4) ( XON/XOFF control (register number 15, 16)

This feature prevents overflow in the communication buffer by exchanging specialcharacters. This feature only applies in full duplex communications.

Table 3.2 XON/XOFF operations

Classification Operation

Receiving side

When the space in the input buffer falls below one-guarter, send XOFF.When the space in the input buffer rises above one-half, send XON.After transmitting XOFF and receiving data in the XOFF state, the XOFF character, resend the XOFF character.The character-to-character timer is inactive during the XOFF state and becomes active once XON is received.

Sending side

After the specified XOFF character is received, sending is stopped within 2 characters.The received XOFF character is assumed to be the receive text and is not passed to BASIC.

• The system will switch to the XON state when the power is turned on, or when themodule, port or buffer is reset.

• Any single character can be set as the XON/XOFF character (default is DC1/DC3).

(Note) XON/XOFF control is only possible during character communications. When sending text, control is not possible as theXON/XOFF characters are not sent.

1st Edition : Dec.01,1998-00

Page 35: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-8<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

Resetting the Rotary BufferThe receiving buffer comprises the secondary buffer (visible from the ladder) and the rotarybuffer (primary buffer) for storing multiple text.

A B C CR LF D E CR LF 1 2 3 CR LF X Y CR LF

Pointer

Pointer

A

B

Primary buffer(Rotary buffer)

Secondary buffer(Input register)

Rotary bufferInput register

A B C CR LF

D E CR LF

1 2 3 CR LF

X Y CR LF

Data flowFor CR/LF terminator

There is a function for resetting the pointer of the rotary buffer in the primary buffer. Asshown in the above diagram, when text 1 is transferred to the secondary buffer after receiv-ing text 4, text 3 remains stored in the rotary buffer. Upon resetting, the pointer of this rotarybuffer is shifted from A to B.

At this moment, the transferred text in the input register of the secondary buffer remainsbehind. The End-of-Receiving relay remains ON.

When resetting the primary and secondary buffer, first reset the rotary buffer. At that time, ifthe End-of-Receiving relay remains turned on, turn it off using the End-of-Reading relay.(The reset does not clear the buffer to 0.)

1st Edition : Dec.01,1998-00

Page 36: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-9

IM 34M6H22-01E

(Example) Program for resetting the buffer after I0001 turns ON

(Module is in slot 4)

I0001

X00403

WRITE 2 004 601 1

SET Y00435

RST Y00435

DIFD I0002

RST I0001

SET Y00433

SET I0004

RST Y00433

RST I0004

RST I0003

SET I0003

X00401

I0004 X00401

I0004

I0002

I0003

Primary buffer reset

Secondary buffer reset

Completed

Port ResetThis function is used to reset the port. All types of communication conditions (all types ofregister) can be set to their default values.

(Example) Program for resetting the port after I0001 turns ON

(This module is installed in slot 4.)

I0001

X00403

WRITE 3 004 601 1

SET Y00435

RST Y00435

1st Edition : Dec.01,1998-00

Page 37: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-10<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

3.2.2 Control Register Reference Sequence

(1) Reference for Control RegisterThe setting contents of the control register can be referenced. Refer to the list (Table 3.1)for details.

Mode register

Mode register

Register No. 4

Register No. 3

Register No. 5

Register No. 1

Register No. 2

Register No. 16

Input register

Output register

Mode set area

Register reference area

Data position

1

301

601

631

631

632

633

634

635

646

(2) Access MethodThe following shows the access method. (Stored in D0200~ of the control register 1 to 16of the module which is installed in slot 4.)

READ 004 631 D0200 16

No. of data (words) read

Storage device

Data location

Slot No.

1st Edition : Dec.01,1998-00

Page 38: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-11

IM 34M6H22-01E

3.2.3 Send SequenceThe send sequence is as shown in Figure 3.3.

• Before setting the Start-of-Sending relay, set the send text with 2-byte size attached inthe output register as given below.

• Once the Start-of-Sending relay is set, the communications module sends the numberof bytes specified in the data size, starting from the data after the 2-byte size data sizespecified above.

• The module sets the End-of-Sending relay once the sending has completed.

Ladder program Ladder program Confirm end of transmission

Start-of-Sending relay(Output relay)

End-of-Sending realy(Input relay)

Start to send a block of character data set on output register.

Transmission completed The next transmission can be started.

Start-of-Sending command

Figure 3.3 Timing Chart for Data Transmission Sequence

Input register

Output register

1

301

601

Data location

[Output data register (Text data to be transmitted)]

Transmission dataSize2 bytes

Only transmission data is sent.

Data size: Expressed in bytes.

1st Edition : Dec.01,1998-00

Page 39: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-12<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

Input relay

Output relay

End-of-Sending relay: 2

Star-of-Sending relay: 34

3 2 1

35 34 33

If an error occurs after the sending has been completed, an error code is set in the re-sponse status (data location: 661).

The status is set to 0 on normal completion.

(Example) A sending program (when installed in slot 4)

30 bytes of send data is prepared in D0101 to D0115 and sending commences at the risingtiming of I0001.

After 30 bytes have been sent, turn OFF the Start-of-Sending relay.

I0001

WRITE D0100 004 301 16

X00402

RST Y00434

SET Y00434

RST l0001

Set send data to communications module.

Reset the Start-of-Sending relay.

Set the Start relay.

Reset the transmission relayafter completing transmission.

Data size(30)

Transmission data

D0100

D0101

D0102

D0115

1st Edition : Dec.01,1998-00

Page 40: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-13

IM 34M6H22-01E

3.2.4 Receive SequenceWhen the text is received, it is stored temporarily in the 2-kilobyte rotary buffer. The rotarybuffer can store multiple receive texts. Every time the End-of-Reading relay is switchedfrom ON to OFF, the receive text is transferred to the input register (refer to Figure 3.4).

The receive text can be composed by setting the control register. The starting character,ending character, number of received characters and the character-to-character timer canbe specified.

The default value for the starting character is none, ending character is CR+LF, number ofreceived characters is 1,024 bytes and character-to-character timer is 1.5 seconds.

Input registertext-set completion

Ladder program resetstext data in internal register.

End-of-Receiving relay(Input relay)

End-of-Reading relay(Output relay)

Transfers data to internal register with READ statement.

Text-read completed

Recognition of text received

Input registerset Input register set

(Where there is received text in rotary buffer.)

To internal register

Storing text in rotary buffer.

Receiving text

Ladder

Figure 3.4 Timing Chart for Data Receiving Sequence

1st Edition : Dec.01,1998-00

Page 41: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-14<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

• Text can be received with any timing. The received text is stored temporarily in therotary buffer in this module.

• When data is read from the secondary buffer using the ladder, data will be transferredautomatically from the primary buffer (rotary buffer) to the secondary buffer (inputregister).

A B C CR LF D E CR LF 1 2 3 CR LF X Y CR LF

Pointer

Pointer

A

B

Primary buffer(Rotary buffer)

Secondary buffer(Input register)

Rotary bufferInput register

A B C CR LF

D E CR LF

1 2 3 CR LF

X Y CR LF

Data flowFor CR/LF terminator

Input register

Output register

1

301

601

Data location

Input data register (receiving text format)

Receiving data*Size

2 bytes2 bytes

Status

Primary buffer (Rotary buffer)

Text pointermoved to input register

Pointer storingreceived text

* Up to 592-byte data

1st Edition : Dec.01,1998-00

Page 42: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-15

IM 34M6H22-01E

5 4 3 2 1 0

Break received

Time-out between characters received

Internal buffer overflow

Parity error

Overrun error

Framing error

Status (on a word-size basis)

Size: The length of the received data is included. When 7 bytes (unit in bytes) of text arereceived, 7 is entered in the size field.

Input relay

Output relay

End-of-Receiving relay: 1

End-of-Reading relay: 33

3 2 1

35 34 33

X00401

Y00433

READ 004 1 D0200 20 Enters received text into data register and sets End-of-receiving relay.

Example of receiving data (in slot 4)

Data received

Status

Data size(Received)

Received data

Number of bytes received is entered.

D0200

D0201

D0202

D0219

In this example, the length of the received data is assumed to be less than 36 bytes and theRead Size is set to 20 words. However, the read amount of the received data can bechanged according to the received size after reading the status and the data size (re-ceived).

1st Edition : Dec.01,1998-00

Page 43: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-16<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

3.2.5 Multipoint ConnectionsBesides point-to-point (1:1) connections, multi-point (n : n) connections are also possible forF3RZ91-0N.

(1) External connectionF3RZ91-0N is based on the RS-422-A and RS-485 standards. The number of possibleconnections for the respective specifications are as shown in Table 3.3.

Table 3.3 Number of possible connections

1:n

RS-422-A 1:10

RS-485 1:32

• 2 types of external connection mode are supported, namely, the 4-wire system andthe 2-wire system.

• The 4-wire connection is in the 1:n format where there are n substations for onemaster station.

• The 2-wire connection will be in the 1 : n format.

Figure 3.5 shows examples of the respective connections.

For the 4-wire connection, the send/receive signal wire from the master station to thesubstations have to be crossed.

For the 2-wire connection, the send/receive signal of similar polarities is connected to theterminal block in this module. Only 2 wires (+ ground, shielded) are laid externally.

1st Edition : Dec.01,1998-00

Page 44: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-17

IM 34M6H22-01E

SD A

SD B

RD A

RD B

SD A

SD B

RD A

RD B

S G

F G

S G

F3RZ91-0N port terminal

(SD A)

(SD B)

(RD A)

(RD B)

(SG)

SD A

SD B

RD A

RD B

S G

F

(SD A)

(SD B)

(RD A)

(RD B)

(SG)

SD A

SD B

RD A

RD B

S G

F G

(SD A)

(SD B)

(RD A)

(RD B)

(SG)

* 1F G(SHIELD)

* 2

* 2

* 2

* 2

4-wire, multipoint(Master station) (Substation 1)

Remote equipment(Substation 2)

Remote equipment(Substation n)

Remote equipment

A

B

S G

F G

S G

F3RZ91-0N port terminal

(SG)

A

B

S G

F G

(SG)

A

B

S G

F G

* 1F G(SHIELD)

* 2

* 2

2-wire, multiport(Station 1) (Substation 2)

Remote equipment(Substation 3)

Remote equipment(Substation n)

Remote equipment

SD A

SD B

RD A

RD B

(A)

(B)

(SG)

(A)

(B)

(A)

(B)

Figure 3.5 Multipoint Interconnections

*1 Connect the shielding wire to both sides of the FG or SHIELD terminals.*2 For the terminating resistor, see (3), "Setting Terminating Resistor."

1st Edition : Dec.01,1998-00

Page 45: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-18<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

(2) Setting RegistersDepending on the configuration of the external connection, 3 types of mode can be used inthis module, namely, 4-wire master station, 4-wire substation and 2-wire system. If theregister settings corresponding to the 3 modes are not performed, normal communicationis not possible.

The register settings corresponding to the different modes are performed according to thedata in Table 3.4 using registers 5 and 6.

Table 3.4

Register 50 1

Register 6

0 Setting not possible 2-wire system

1 4-wire master station (default) 4-wire substation

(3) Setting Terminating ResistorsFor the terminating resistors found in multi-point connections (also including point-to-pointconnections), terminating resistors are set at the stations located on the respective commu-nication routes.

4-wire system

Set the terminating resistor at the master station and substation n in Figure 3.5.

For the intermediate substation 1 to substation (n-1), remove the terminating resistors. Ifthey are not removed, normal communications may not be possible (refer to Figure 3.6(b)).

• In the case of F3RZ91-0N, the terminating resistor is built-in and is controlled by aswitch. Set to "4-WIRE" for terminal stations and "OFF" for the rest (refer to Figure3.7).

2-wire system

Set the terminating resistor at station 1 and station n as in Figure 3.5. Ensure that theterminating resistors are removed from station 2 to station (n-1) (refer to Figure 3.6(c)).

• In the case of F3RZ91-0N, the terminating resistor is built-in. Set to "2-WIRE" forterminal stations and "OFF" for the rest (refer to Figure 3.7).

1st Edition : Dec.01,1998-00

Page 46: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <3. Using the Ladder Communication Module > 3-19

IM 34M6H22-01E

SD A

SD B

RD A

RD B

S G

SHIELD

(a) For the 4-wire system, RS42-0N terminal station

SD A

SD B

RD A

RD B

S G

SHIELD

SD A

SD B

RD A

RD B

S G

SHIELD

(c) For the 2-wire system, RS42-0N terminal station

DisconnectedDisconnected

(b) For the 4- or 2-wire system, RS42-0N station is not the last in the line:

Figure 3.6 Installation and Removal of Terminating Resistors for F3RZ91-0N Module

RDY

F3 RZ91-0N RS422

TERMINATOR2- 4-WIRE

OFF

SD A

SD B

RD A

RD B

SG

SHIELD

TERMINATOR

2- 4-WIRE

OFF

Figure 3.7 Setting Terminating Resistor for F3RZ91-0N Module

1st Edition : Dec.01,1998-00

Page 47: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

3-20<Toc> <Ind> <3. Using the Ladder Communication Module >

IM 34M6H22-01E

(4) Protocol ProcessingWhen using multi-point connections with F3RZ91-0N, a protocol (communication controlprocedures) is essential to prevent circuit conflicts along the transmission route.

Although the FA-M3 provides the physical interfaces, it does not support protocol process-ing in the system. Therefore, the protocol control must be defined using a ladder. Normally,the polling selection method is used.

Application

Protocol

Physical interface

FA-M3

Application program ranges

Rem

ote

equi

pmen

t

Rem

ote

equi

pmen

t

• When transmitting from F3RZ91-0N to the remote equipment, the equipment numbermust be set to identify the destination.

The equipment number refers to the identification number assigned to the remoteequipment. The remote equipment must be distinguished in advance according to itsunique identification number by some means.

• The text formats containing the equipment number vary according to the individualprotocols.

1st Edition : Dec.01,1998-00

Page 48: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <4. Response Status > 4-1

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

4. Response StatusIn both mode setting and send sequences, the response status is set on completion ofprocessing. The status is 0 when normal. When errors occur, the error codes are setaccording to the table below.

Table 4.1 Error Codes

Code Definition Probaele causes

82 Error in function specification

• An unsupported command was being executed.• Specification of slot number and port number clashes with other I/O modules.

91 Parameter error • Port number is invalid.• Non-existent register number is specified in the control register settings.

C7 Reset detected • Only the module side detected a power failure and performed a reset/start. This leads to inconsistency between the parameters at the module side and driver side.

E6 Timeout

• Cable is not connected.• Sending side

• CS is OFF.• When CD check is 1 and the time when sending can be monitored = 0, CD is ON.• When DR check is 1 and the time when sending can be monitored = 0, DR is

OFF. (caused by defective cables or remote equipment)

Page 49: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

4-2<Toc> <Ind> <4. Response Status >

IM 34M6H22-01E

<Communications program example for UT37>

This program reads SP1 repeatedly for UT37 in address 1 and stores the received data inD0400. The transmission rate is set at 9,600 bps.

M035MOV $8 D0200

MOV $1 D0201

MOV $3000 D0202

MOV $0 D0203

MOV

RST

RST

RST

$DOA D0204

M035Y00433

Y00434

Y00435

I0005WRITE 60143 1

SET Y00435

M035SET I0005

I0007 X00401SET Y00433

SET I0006

I0006

I0006

X00401RST Y00433

RST I0006

+= D0051D0051 1

SET I0001

I0001RST I0007

I0005 X00403RST Y00435

DIFD I0009

I0009RST I0005

SET I0007

I0001601 1

607

WRITE 1

WRITE 7

4

4

D0052 = +D0052

1

SET Y00435

1

* * * * * * Communications-condition (communications rate) setting

Module reset

(0001)00001

(0002)

(0003)

(0004)

(0005)

(0006)00012

(0007)

(0008)

(0009)

(0010)00019

(0011)

(0012)00024

(0013)00026

(0014)

(0015)

(0016)

(0017)

(0018)

(0019)00045

(0020)00047

(0021)

(0022)00053

(0023)

(0024)

(0025)00058

(0026)

(0027)

(0028)

$0008 $0001 $3000 $0000 $0D0AD0200 D0201 D0202 D0203 D0204

TXTsize

Temp. controller address

SPI read

Termination

Reset start flag.

Port reset commands

Start-of-Setting relay: ON (port reset start)

Set Port-reset start flag after completing one scan.

Reset Secondary-buffer.

Secondary-buffer reset completed

Debugging counter (not required)

Set Communication-conditions.

Port-reset start flag: Indicates the next processing requestafter completing setting. (19, 17)

Secondary-buffer reset-start flag: ON

Communications-condition set command: 1

Baud-rate set value: 7 (9600 bps)

Start-of Setting relay ON: Start setting baud rate.

Debugging counter (not required)

Creating text to be sent

1st Edition : Dec.01,1998-00

Page 50: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <4. Response Status > 4-3

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

* * * * * * Communications condition reference

* * * * * * Response status

I0001 X00403

I0003

I0003

I0004

RST Y00435

RST I0001

DIFD I0003

SET I0004

IL

SET I0002

I0002WRITE 3014D0200

D0050 D0050= +

1SET Y00434

RST I0002

X00402RST Y00434

READ D030014X00401

READ D06006614 1X00403

X00401

SET

MOV

Y00433

D0304 D0400

DIFD I0008

RST

ILC

Y00433

M033D0500 20

20

READ 4 631

* * * * * * Transmission

* * * * * * Receiving data

(0029)00067

(0030)

(0031)

(0032)00075

(0033)00077

(0034)

(0035)00079

(0036)

(0037)00082

(0038)

(0039)

(0040)

(0041)00091

(0042)

(0043)00093

(0044)

(0045)

(0046)

(0047)00104

(0048)000106

(0049)

(0050)00107

(0051)

(0052)

(0053)00110

D0600READ 4 600(0054)

X00402

5

1

6

I0008

Setting completed: Baud-rate setting completed

Start data transmission/reception.

Set transmitting text to module output register.Start-of-Sending relay: ON

Debugging counter

End-of-Sending relay: ON Transmissioncompleted

Processing SP1 values from UT37

End-of-Sending relay: ON Text receivedStore (input register) into data register.

Data read: ON

Check received status is OK, and store SP1 values in D0400.

To move to the next access, activate I0003.

End-of-Reading relay: OFF

Stores transmission errors or errors in baud-rate setting into data registers.

Read module communication conditions into data register D0500.

Read module communication conditions (set values) into data register D0600.

D0300 01=

Figure 4.1 Example of Programs for Communicating with UT37

This program assumes that there is a receive for every send. In communications, there willbe instances when the receive text is not received. For send and receive programs, use ofa timer is highly recommended.

Page 51: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

4-4<Toc> <Ind> <4. Response Status >

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

Debugging OperationDuring debugging, the program can be stopped by leaving the Start-of-Sending relay andthe End-of-Reading relay ON. In particular, when text is sent from the device at the remoteside, the receiving side stores it in the rotary buffer and the End-of-Receiving relay turnsON.

One manual method for resetting the relay can be carried out by using the device monitor ofthe Ladder Program Support Tool M3.

For instance, when there is data in the receiving buffer and the End-of-Receiving relay isON (1),

1) Open the device monitor in debug mode and go to the I/O relay screen.

2) Set the End-of-Reading relay (33).

3) When the End-of-Receiving relay turns OFF, RESET the End-of-Reading relay (33).

4) When multiple texts are received, the End-of-Receiving Relay (1) switches to ONimmediately.

In this case, repeat 2) and 3).

If the End-of-Receiving relay (1) does not turn ON anymore, it means the receivingbuffer has been cleared.

When the Start-of-Sending relay and the Start-of-Setting relay are left ON

1) Open the device monitor in debug mode and go to the I/O relay screen.

2) Reset the Start-of-Sending relay (34). The End-of-Sending relay (2) switches to OFFautomatically.

Page 52: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <Appendix 1. Meaning of Signals and Movement of Signal Lines (RS -232-C) > Appx.1-1

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

Appendix 1. Meaning of Signals andMovement of Signal Lines (RS-232-C)Figure1 shows the meaning of the signals in RS-232-C and the direction of the signal linesfor F3RZ81-0N.

Among the signal line movements, selectable items are all set using software.

In Figure1, the signal lines from ER to CD are the control lines while SD and RD are thedata lines.

F3RZ81-0N

Destinationstation

Computer, modem, etc.

ER (FA-M3 ready)

DR (destination station ready)

RS (request to send... ready for receiving?)

CS (clear to send...ready for receiving data)

CD (data carrier)

SD (send data)

RD (receive data)

Figure 1. RS-232-C Signals

Table 1 Direction of the RS-232-C Signal Lines

Pin numberAbbreviation Name of signal

Input/ Output

Any signal monitoring

PurposeF3RZ81-0N

3 SD Send data Out –

2 RD Receive data In –

7 RS Request to send Out – Used when sending data to the remote side,1) Always ON (default state)2) ON only when sending

8 CS Clear to send In O Permission to send signal from the remote side.Can send only if this signal is ON.

6 DR Data set ready In O Used to check whether the remote end can execute the transmission.1) Send regardless of the DR state

(default state).2) Send only when DR is ON.

5 SG Signal ground – –

1 CD Data carrier detection

In O A carrier wave. Can receive only when the signal is ON. When sending, the following happens.1) Send regardless of the CD state

(default state).2) Send only when CD is OFF.

4 ER Data terminal ready

Out – 3) ER is ON when and after POWER is ON (default state).

4) ON and OFF are controlled via software.

Page 53: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Blank Page

Page 54: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <Appendix 2. Data Transmission > Appx.2-1

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

Appendix 2. Data Transmission

(1) Start-stop Synchronized Communications ModeF3RZ81-0N and F3RZ91-0N can be performed using start-stop synchronization.

In start-stop synchronization, for every character (1 character) sent, a start bit is added as aheader. This is followed by the sequential addition of the character bit (7~8 bits), parity bitand stop bit.

Since the start bit, parity bit and stop bit are added automatically by the module, there is noneed for any user intervention.

The transmission rate, length of data bits and other communication specifications are setby the software.

Stop bit

Start bit

Idle state in the line

LSB: Least significant bit Parity bit

Character data7 to 8 bits

Odd or even,or not in use

1

1.52

1

0

One-character data Broken line: Returns theline to idle status.

Solid line: Indicates the next character start bit.

Figure 2. Character Data Format in Start-Stop Synchronization

(2) TextThe format of the communications data usually contains terminators (ending characters)added to multiple characters. This is known as text. The user recognizes the data in thisunit.

The maximum length of 1 text is 1,024 bytes.

A block of text data

A B C D

One characterTerminator

CR CF

Figure 3. Example of Text Data

Page 55: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Blank Page

Page 56: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

<Toc> <Ind> <Appendix 3. ASCII Codes > Appx.3-1

IM 34M6H22-01E 1st Edition : Dec.01,1998-00

Appendix 3. ASCII CodesTransmission codes

b6b5

b4

00

0

00

1

01

0

01

1

10

0

10

1

11

0

11

1

Bit Column0 1 2 3 4 5 6 7

Row

0 0 0 0

b3 b2 b1 b0

0 NUL DLE SPACE 0 @ P p

0 0 0 1 1 SOH DC1 ! 1 A Q a q

0 0 1 0 2 STX DC2 " 2 B R b r

0 0 1 1 3 ETX DC3 # 3 C S c s

0 1 0 0 4 EOT DC4 $ 4 D T d t

0 1 0 1 5 ENQ NAK % 5 E U e u

0 1 1 0 6 ACK SYN & 6 F V f v

0 1 1 1 7 BEL ETB ' 7 G W g w

1 0 0 0 8 BS CAN ( 8 H X h x

1 0 0 1 9 HT EM ) 9 I Y i y

1 0 1 0 10 LF SUB * : J Z j z

1 0 1 1 11 VT ESC + ; K [ k

1 1 0 0 12 FF FS , < L ¥* l |

1 1 0 1 13 CR GS - = M ] m

1 1 1 0 14 SO RS . > N ^ n ~

1 1 1 1 15 SI US / ? O _ o DEL

Control code Character code

Page 57: Ladder Communication Modules - Yokogawa Electric · manual relating to safety are adhered to in the use of this product. If separate protection and/or safety circuits are installed

Blank Page