Schneider Electric Communication Network : Modbus Network RS485 User Guide

Schneider Electric Communication Network : Modbus Network RS485 User Guide | Manualzz

Technical Guide

2000

MODBUS Network Guide

Merlin Gerin

No-one in the world does more with electricity

Introduction

Overview

Local Area Networks

Warning

3

4

5

Schneider Electric 1

2 Schneider Electric

Introduction

Overview

Networks can be classified according to the area they cover: b

WAN: Wide Area Network. b

MAN: Metropolitan Area Network. b

LAN: Local Area Network.

There are two types of LANs: v

Company LANs so rtie de secours v

Factory LANs

Schneider Electric 3

Introduction

Local Area Networks

Local Area Networks have been standardized according to the OSI model.

Definition:

OSI, Open Systems Interconnection.

This standard includes seven layers:

The 7 OSI layers Factory LANs use only 3 layers

7 - Application

7 - Application

6 - Presentation

5 - Session

4 - Transport

3 - Network

2 - Data Link

2 - Data Link

1 - Physical

1 - Physical

This document describes in detail the characteristics of the communication medium used for "Power Logic System" products. The following aspects will be discussed: b

Physical implementation (Layer 1) b

The Modbus protocol supported by this medium, which can be classified in layer 2 of the OSI model.

Some aspects of the application layer are discussed in Chapter 3 (Implementing products), but the application layer is directed more towards the application software, which is not the subject of this guide.

Concerning the other layers: b

Layer 3, the "Network" layer, manages the interconnection of local area networks

(layers 1, 2 and 7).

b

Layer 4, the "Transport" layer, compensates for problems that may be encountered in layer 3.

b

Layers 5 and 6, "Session" and "Presentation", deal with the Operating System.

They manage the synchronization of messages, priorities, language, security aspects, etc.

4 Schneider Electric

Introduction

Warning

If the recommendations in this manual are incompatible with instructions for a given device, the device instructions should be followed. As regards EMC, safety rules take precedence.

Because of rapid changes in industrial electronics, problems with Electromagnetic

Compatibility (EMC) can no longer be ignored. Care must be taken when connecting devices (equipment in a network, automatic control devices, remote inputs/outputs, etc.) so that they fulfill the functions for which they were designed, even in an environment with electromagnetic disturbances.

Thus this document was written for: b

Engineering and design departments, who must plan the use of communications cables (connecting terminals, length of wiring, definition of topology,etc.) b

Those who implement Modbus, to help them install communications cables.

b

Integrators, who must take communications into account in applications that include SCHNEIDER products.

Schneider Electric 5

6 Schneider Electric

Cabling Guidelines

Review

Definitions and limitations

Protective earthing vs. grounding (equipotential bonding)

Power system earthing arrangements

EMC phenomena

Choice of the Physical Communication Medium

Various Types of Physical Media

Example of a choice of medium

Implementation guidelines

Sensitivity of various types of cable

Implementation of shielded cable

Cabling between two cabinets

Summary

Essential rules

20

20

23

24

24

24

30

35

35

9

9

10

17

19

Schneider Electric 7

8 Schneider Electric

Cabling Guidelines

Review

This document defines minimum requirements that in no way supersede specific instructions or standards that may be applicable to a given installation.

Definitions and limitations

Warning

Choosing components

Only components complying with EMC standards should be used.

Although regulatory in Europe, CE marking does not guarantee the actual EMC performance of a system.

Cabling

A number of rules concerning communication cabling must be respected to ensure optimum operation in a given environment.

Definition:

EMC (ElectroMagnetic

Compatibility) is the ability of a system or equipment to function satisfactorily in its electromagnetic environment without introducing intolerable electromagnetic disturbances to anything in that environment.

Installation

Always follow the installation instructions provided by the manufacturer, without modifying the product.

Important:

Implementation of an appropriate solution right from the start always costs less than a quick initial solution plus subsequent remedial measures.

The main problem that may be encountered if these recommendations are not respected is an increased sensitivity to electromagnetic phenomena.

Schneider Electric 9

Cabling Guidelines

Review

(continued)

Definition:

An earthing network has the following purposes: b

Divert equipment earth-fault and earthleakage currents to earth b

Divert common-mode currents of outside cables (mainly power and telecommunications cables) to earth b b

Divert lightning currents to earth

Meet requirements concerning the protection of persons (25 V AC or 50 VDC).

Protective earthing vs. grounding

(equipotential bonding)

Earth

The interconnection of the various exposed conductive parts of equipment by earthing conductors (green/yellow or PE) represents a low-impedance path at low frequencies.

The resulting equipotentiality avoids the presence of potentials that can be dangerous to human beings (greater than 25 V AC or 50 V DC) between two exposed conductive parts that can be touched simultaneously.

Earthing satisfies the requirements concerning the protection of persons.

This low-impedance path is connected to earth at a single point for each building

(e.g. by an earthing electrode, ring, grid, etc.) through which common-mode currents flow.

The connection of the various exposed conductive parts by earthing conductors does not however provide the high-frequency equipotentiality required for effective immunity against interference because the impedance of the PE conductors is too high (1 µH/m). High-frequency circuits therefore require special equipotential bonding, referred to in Europe as grounding.

The various types of power system earthing arrangements (TT, TN, TI, etc.) affect the security of persons but have little influence on the immunity of equipment to interference.

Simultaneous access to two non-interconnected earths presents hazard and they must therefore be interconnected.

U

10 Schneider Electric

Cabling Guidelines

Review

(continued)

To ensure trouble-free operation of equipment and the safety of persons, all exposed conductive parts must be interconnected and earthed to ensure equipotentiality.

The earthing network provides: b b

Protection of persons.

Protection against electrostatic discharges.

b

Protection against lightning currents.

Protective earthing

Protection of persons

240V

< 50V

Protection against electrostatic discharges

Protection against lightning currents

Schneider Electric 11

Cabling Guidelines

Review

(continued)

Definition:

An exposed conductive part is an accessible metal part that is isolated with respect to the live parts of the equipment but which may accidentally become live.

Exposed conductive parts ensure proper operation of systems by providing immunity to various types of disturbances.

For high-frequencies, the best way to guarantee trouble-free operation is to ensure equipotentiality between the equipment. All equipment and electronic systems must therefore be bonded together

(or grounded).

Grounding

The interconnection of all metal parts (building structures, pipes, cableways, equipment, equipment enclosures, etc.) represents a low-impedance path for high frequencies.

The resulting equipotentiality of this network of conductive parts provides effective immunity to interference by reducing all the high-frequency voltages that could otherwise exist between communicating equipment. This is true over a wide frequency band.

Grounding satisfies the requirements concerning operation.

Metal parts must be interconnected (bonded) by screws, nuts and bolts or short, wide metal braids (25 mm

2

cross-section and length less than 30 cm) or an equivalent metal part.

The impedance of PE protective conductors is too high to serve the purpose of grounding.

The grounding network must nevertheless be earthed.

Common-mode currents

As exposed conductive parts provide a reference potential for electronic equipment and a return path for common mode currents, any current that penetrates a cable in a piece of equipment insulated with respect to the exposed conductive parts exits via the other cables.

When the equipotential bonding network is of poor quality, a cable carrying a common mode current disturbs all the others. Effective equipotential bonding reduces this phenomenon.

As opposed to earthing, which is a low-frequency requirement related to carrying fault currents to earth for the safety of persons, grounding is designed to ensure equipotentiality of equipment up to very high frequencies, in particular for the proper operation of digital equipment.

12 Schneider Electric

Cabling Guidelines

Review

(continued)

To be effective, an underground network must be in the form of a grid: b

For small premises (less than about 10 m

2

), a simple buried perimeter ring is sufficient.

b

For new buildings of large surface area, the installation of buried conductors in the form of a grid with a 10 m mesh size is recommended.

b

For areas housing equipment that is highly sensitive to electromagnetic disturbances, the mesh size should be no more than 2 m.

Definition:

An equipotential grounding is formed by connecting all metal structures of the installation (frames, handrails, ducts, etc.).

Physically speaking, it is more important to obtain the local equipotentiality of the building than a low resistance (with respect to a distant earth).

The most sensitive lines are those that interconnect the various items of equipment.

In order to limit the flow of common mode currents in the cables that do not leave the building, it is necessary to limit the voltages between interconnected equipment within the site.

Building earthing ring Earth connection bar

Schneider Electric 13

Cabling Guidelines

Review

(continued)

Example of a grounding system for a building

An effective solution is the interconnection of the metal structures with a mesh size of 2 m x 2 m.

The metal frames of cabinets and bays must be connected to the neighbouring metal parts (cableways, machines, frames, etc.).

A standardised immunity test (IEC 61000-4-4) using repeated pulses can quickly check the grounding effectiveness (cableways in particular) near the injection points and the screen termination points of shielded cables.

Lightning rod

Computer room or island y

2 m

Meshed riser

Metal frames

Rebar y

3 m

Buried earthing ring

Corner-point

14 Schneider Electric

Cabling Guidelines

Review

(continued)

For data links between buildings, fibre optic media are strongly recommended to totally eliminate ground loop problems between buildings.

Protection against penetration

Common mode currents coming from the outside must be evacuated by the earthing network at the entrance to the site to limit potential differences between items of equipment.

All conducting conduits (cables, conducting pipes, insulated pipes carrying conducting fluids, etc.) entering a building must be earthed at the entry point by a connection that is as short as possible.

Install lightning arresters at building entry points for:

b b

Power cables.

Telecommunications cables.

b

Signal cables (data, alarms, access control, video surveillance, etc.).

The effectiveness of such devices depends on how they are installed. Lightning arresters (varistors, spark gaps, etc.) are connected directly to the electrical switchboard ground or to the protected equipment. Connecting a lightning arrester simply to earth, instead of ground, is ineffective.

If possible, install switchboards housing power, telecommunications and signal circuit protection devices near the earth connection bar.

Shielding isolating transformer

Network

01

01

N

02

02

Mains cable

03

03

Transformer ground

Upstream LV lightning arresters

PE

Earth

Switchboard ground

Schneider Electric 15

Cabling Guidelines

Review

(continued)

In industrial environments, electronic devices are generally located in specific areas.

This makes it possible to avoid implementation of a ground mesh for the whole building: b

Islands can be defined for installation of electronic equipment.

b

The cables extending outside the island to sensors and actuators must be carefully shielded.

Example of a grounding system for an island

When electronic equipment is grouped together in an area no larger than 10 m

2

, implement a grounding system with a 2 m

2

to 3 m

2

19 mesh size by interconnecting the various metal structures and cabinets.

Cableway

Equipment

Trunking

Flat bar

16 Schneider Electric

Cabling Guidelines

Review

(continued)

The various power system earthing arrangements are equivalent for the safety of persons and have little effect in relation to EMC.

Certain features of the different arrangements must nevertheless be taken into account.

Power system earthing arrangements

TT system

Loop capable of capturing radiated fields

Shielding connected at both ends

Note that overvoltages may be caused by separate earth electrodes for which the potentials vary differently.

TN-C system

PEN

Flow of high disturbing currents

Shielding connected at both ends

If the distribution system is TN-C, it is highly recommended to adopt a TN-S system right from the building entry point.

Schneider Electric 17

Cabling Guidelines

Review

(continued)

This is the best system from an EMC viewpoint: b

Low risk of ground loop (radiated fields).

b

The neutral current is not carried by the protective conductor (conducted disturbances).

Care must taken to ensure equipotentiality

TN-S system

PE

Shielding connected at both ends

IT system

Z

Loop capable of capturing radiated fields

Shielding connected at both ends

An initial insulation fault can lead to a phase-to-phase voltage between a phase conductor and the equipment ground.

This is unacceptable for electronic devices supplied directly by a phase-to-neutral connection and which cannot withstand the phase-to-phase voltage.

Example: Withstand of RFI filters of (large) variable speed drives.

18 Schneider Electric

Cabling Guidelines

Review

(continued)

The main EMC problems are conducted common-mode disturbances.

Common-mode voltages are caused by: b

Antenna effect coupling.

b

Common impedance coupling.

b

Cable-to-cable coupling, for instance by capacitive crosstalk (for electrical fields) or inductive crosstalk (for magnetic fields).

EMC phenomena

Disturbances and their effects

b

Whether conducted or radiated, their presence generates common-mode currents that flow in the equipment and cause malfunctions.

Disturbed

Device 1

(isolated) cable

Common mode current

Unshielded cables

Device 2

(isolated)

Shielded cables

Device 3

(grounded)

Stray capacitance

Differential mode voltage

Common mode voltage

Solutions:

b

Clamp conductors against ground planes to avoid the formation of ground loops.

b

Make sure all exposed conductive parts have the same potential to limit the flow of disturbing currents.

b

Separate conductors by category to reduce the effects of crosstalk.

b

Do not leave any conductors unconnected to prevent antenna effects.

Schneider Electric 19

Cabling Guidelines

Choice of the Physical

Communication Medium

Three types of conductors can be used: b

Metal pairs.

b

Coaxial cable.

Various Types of Physical Media

Two types of shielding:

Type

Foil shield

Foil tape

Advantages

Easy to install.

Disadvantages

Fragile.

High-frequency protection provided by the metal foil is diminished by cable handling

(tension, torsion, etc.)

Drain wire b

Optical fiber.

Twisted pairs with braided shielding are recommended for all RS485 communication cables for Schneider

Electric products.

Definition: (according to IEC 439-1)

Screening (or shielding) is used to protect conductors or equipment against interference caused in particular by electromagnetic radiation from other conductors or equipment.

Single braid

Braid/shield

Excellent protection from electromagnetic interference, particularly at high frequencies.

Fairly easy to implement.

Sturdy.

Compatible with Sub-D and mini-DIN connections.

The effectiveness of a shielded cable depends on the choice of shielding, and above all how it is used.

Note: Shielded cable with a simple braid can increase protection by a factor of up to a 100 from a few MHz up if the shielding is properly connected.

Shielded cable should be chosen when it is necessary to: b

Limit outside interference that could affect a "sensitive" cable.

b

Keep a "polluting" conductor from interfering with nearby cables or equipment.

Only metal pairs are described below, since they are the most frequently used for data transmission today.

Advantages of metal pairs:

b

Lowest price of all media (approximately 0.30 euros/meter).

b

Easy to implement.

b

Simple and inexpensive connections.

Major disadvantages:

b

High signal attenuation: signal regeneration circuits are required after approximately 2000 m.

b

Signal distortion unacceptable for high transmission speeds (greater than a few

Mbits/s).

b

Small bandwidth.

b

Problem of crosstalk between pairs in the same cable. Use of shielded cable can limit crosstalk.

Summary table of media:

Medium

Shielded twisted pair

Speed

Avg: 100 kbits/s

Max.: 500 kbits/s

Coaxial baseband Avg.: 1 Mbits/s

Max.: 50 Mbits/s

Coaxial wideband Average: 300

Mbits/s

Optical fiber 1 Gbit/s

Distance Notes

1 Km Easy installation

Easy connection

Low immunity

2,5 Km Easy connection

Good immunity

High performance

10 to 50 Km Idem

Approx. cost

0.30-0.45 euros/m

0.60 to 1.20 euros /m

0.60 to 1.20 euros /m

> 10 Km 4.50 to 6.00 euros/m Perfect immunity

Low attenuation

Large bandwidth

Price still high

Note: You can also use electromagnetic waves that do not require a physical medium.

20 Schneider Electric

Cabling Guidelines

Choice of the Physical

Communication Medium

(continued)

Schneider Electric

Equivalent diagram:

I

E

L

R

C

G

E = Transmitter

L = Series inductance

R = Series resistance

C = Capacitance between wires

G = Conductance (easier to calculate than parallel resistance) – represents loss in insulation

Definition: The characteristic impedance (Zo) in

is the simplified model of the representation of the cable. It is defined for a theoretical length of the infinite cable, so that the termination of this cable need not be taken into account.

It depends of the physical and electrical characteristics of the conductors and varies with frequency.

Zo =

(R+j*2* *f*L)

-------------------------------------

(G+j*2*

Π

*f*C) f: frequency j: symbol of the phase (+90°).

G is negligible compared to 2*

π

*f*C for commonly used insulating materials.

Likewise, at "low" frequencies (< 1MHz), R prevails over 2*

π

*f*L.

Thus the formula becomes:

Zo =

R

-----------------------------

(j*2*

Π

*f*C)

At high frequencies (>1MHz) the formula becomes:

Zo

=

(j*2*

(j*2*

Π

*f*L)

----------------

*f*C)

therefore: Zo

=

L

----

C

The following curve can thus be traced:

Low frequency region Transition region High frequency region

10,000

1000

100

50

20

10

10

Zo = R

j 2

Π

f C

100 1000

Zo = R+j 2

Π

f L

G+j 2

Π

f C

10 K 100 K

1 M

Frequency (Hertz))

Zo = L

C

10 M 100 M

1 G

21

Cabling Guidelines

Choice of the Physical

Communication Medium

(continued)

Attenuation in dB/km:

b

This is the loss of signal quality in terms of amplitude.

b

It depends on cable geometry.

b

It varies according to frequency and length.

Resistance per unit length in

/m:

b

This is the resistance to the passage of a direct current (or a low frequency).

b

It depends on the cross-section of the wire and the material from which it is made.

b

It varies according to length and temperature.

Capacitance between two conductors in pF/m:

b

This is the capacitance measured between two wires in the same pair.

b

It depends on the type of insulation used and its thickness.

Transmission speed in m/s:

b

This is the time it takes the signal to travel from one point to another on the wire.

b

For low frequencies (for which voltage variations are much slower than signal transmission) transmission speed is considered infinite, i.e., transmission is instantaneous.

b

This approximation is not valid for high frequencies.

Crosstalk between pairs in dB:

Near-end crosstalk

Temperature of use in °C

b

Temperature of use should take into account:

v

ambient temperature,

v

how the cable was laid,

v

the cable’s own heating,

v

the proximity of power devices, etc.

Far-end crosstalk

22 Schneider Electric

Cabling Guidelines

Choice of the Physical

Communication Medium

(continued)

Example of a choice of medium

b

Characteristic impedance: 120

.

b

Attenuation: a minimum voltage of 0.2 V on the receiver is required for a minimum voltage of 1.5 V at the transmitter output:

v

Thus attenuation will be:

- Att = 20 Log (Vout/Vin); Max. att. = 17 dB over 1200 m.

v

Calculation of maximum network length:

- length (in m) = 1000 x [1-(1-

α

/

α

c)]

α

: 14 dB/km

α

c: attenuation of cable used (in dB/km)

b

Resistance per unit length: the application guide for standard EIA485 (TSB89) stipulates that maximum resistance should in no case exceed 390

(for the conditions defined in this guide and at the given use temperature).

v

therefore, length (in m) = 1000 x [1-(1-R/Rl)]:

R: 0.325

/m

Rl: Resistance per unit length of the cable used (in

/m).

b

Capacitance between conductors:

v

rise time or decay time for the signal Tr <0.3 Tui, where Tui (Time unit interval)

= 1/Br (Baud rate).

Vss (approximately 2

τ

, where

τ

=Rl x Cl)

Therefore Cl < 0.3 / (Br x Rl x 2).

b

Temperature of use: > 70°C (Maximum ambient temperature in the enclosure).

Application with an RS485 link at 19200 Bds on a 1000 m bus

b

Characteristic impedance: 120

.

b

Cable attenuation = 20 dB/km at 19200 bds: v length = 1000 x [1-(1-14/20)], v maximum length = 700 m, v since this length is incompatible with the specified 1000 m bus, a cable with a maximum attenuation of 14 dB/km is required.

b

Resistance per unit length: 0.213

/m (at the temperature of use): v length = 1000 x [1-(1-0.325/O.213)], v maximum length = 1525 m.

b

Capacitance between conductors: v

Cl < 0.3/ (19200 x 213 x 2), v

Cl < 36.6 nF, i.e. < 36.6 pF/m.

b

Temperature of use: > 70°C.

Example: BELDEN ref 9842 for applications RS232/RS485.

Schneider Electric 23

Cabling Guidelines

Implementation guidelines

Sensitivity of various types of cable

1

2

3

4

Type Cable

Analogue

Digital and telecommunications

Relay

Power supply

Type of signal EMC behavior

Power supply and measurement circuits for analogue sensors

Sensitive signals

Digital circuits and data buses

Dry contact circuits with risk of flashover

These signals are sensitive. They also interfere with family 1

These signals interfere with families 1 and 2

Power supply and power circuits

These signals generate interference

Note: Shielded cables are not sensitive and do not generate interference.

b

The manufacturer’s instructions should always be followed when installing devices.

b

Cabling configuration must always be adapted to fit the topology of the system.

This configuration differs depending on whether the network is a star, ring or bus.

In any case, the following are general guidelines and can be applied whatever the topology or type of signal carried.

Implementation of shielded cable

Where should the shielding be connected?

b

Connect both ends of the external shielding of all digital or power cables to ground at equipment entries.

b

Only low-level, low frequency analogue links may in some cases require grounding at one end only.

b

One-end connection of shielding protects against low frequency currents.

b

Two-end connection of shielding protects against the most severe interference, i.e. high frequency common mode.

Thus when the connection is at one end only, the differential signals are protected at low frequency, but at high frequency this type of connection is ineffective.

Unlike one-end connections, two-end connections allow low-frequency currents to flow on the shielding (voltage between the two ends or ground loop). This current generates a low voltage or 50 Hz noise on the pair inside.

24 Schneider Electric

Cabling Guidelines

Implementation guidelines

(continued)

High frequency protection depends directly on how cable shields are connected.

If a "pig-tail" or long wire is used for connection, protection provided by shielding will drop sharply at high frequencies.

How should the shielding be connected?

A secure connection of the shielding to a cable gland in the enclosure wall is the best solution, as long as the paint is scratched on the enclosure to guarantee good electrical contact.

A U-shaped clamp can also be used to guarantee at least 180° contact.

Poor Fair

Good

Ground bar

Excellent

Potential reference plane

If a U-shaped clamp cannot be used to ground the shielding when connecting to a screw-type terminal, the grounding wire should be as short as possible. This type of connection should be avoided.

Ground terminal with metal attachment and DIN rail

NO

Okay for very short links

If a connector is used, it must provide a

360° electrical continuity between the cable shielding and the equipment ground.

Connector with grounding spurs

YES

Ground bar

Contact between screen shells

Schneider Electric 25

Cabling Guidelines

Implementation guidelines

(continued)

The effectiveness of a mains filter for high frequencies depends on how well it is installed.

Using filters

Three rules must be followed when installing a filter: b

Reference the filter sheetmetal to sheetmetal.

b

Connect the upstream and downstream cables on each side of the filter to reduce parasitic coupling between the input and the output.

b

Clamp the upstream and downstream cables against the sheetmetal to reduce radiation from the input to the output.

No

No

Yes

26 Schneider Electric

Cabling Guidelines

Implementation guidelines

(continued)

Principal cabling rules

b

Work with pairs for digital or analogue signals.

Rule no. 1:

The outgoing and incoming conductors should always remain together.

Rule no. 2:

All cables should be clamped against the equipotential bonding structures to provide high frequency protection.

Inside cabinets, be careful with cabling that uses separate conductors.

Identify wires by type of signal and by pair.

Special case: Emergency Off and alarm connections should never be cabled using point-to-point single wires; always use pairs.

b

Use shielded cables or double-shielded strands.

b

The use of conducting raceways provides a satisfactory level of protection in most cases. Be sure to provide inter- or intra-building connecting cables with at least equipotential bonding (small earthing cable or raceway).

b

Systematically clamp all interconnection cables against the sheetmetal inside cabinets and machines.

For proper protection, the following ratio should be respected:

Distance between cables

-----------------------------------------------------------------------

Radius of the largest cable

> 5

d d / R > 5

R

Interfering cable

Signal cable

Rule no. 3:

Only pairs carrying analogue, digital and telecommunications signals can be run side by side in the same bundle or pulled into the same group.

b

Keep relay, variable speed drive and power circuits separate from analogue, digital and telecommunications pairs.

b

Use a special trunking inside cabinets for power cables.

Separate power cables from data cables when installing variable speed drives.

Schneider Electric 27

Cabling Guidelines

Implementation guidelines

(continued)

Rule no. 4:

The same connector should not be used for different types of connections (except for relay and power circuits).

Rule no. 5:

All free conductors in a cable should systematically be connected to chassis ground at both ends (except for analogue cables).

Rule no. 6:

Power cables do not need to be shielded if they are filtered. b

Separate analogue and digital signals with a row of 0 V pins if they use the same connector.

b

Protection with a factor of approximately 5 with high frequencies can be obtained if rule number 5 is followed. b

Power outputs of variable speed drives must always be shielded or filtered.

Inside partitioning of enclosures increases electromagnetic interference.

Internal cabling of cabinets

Digital control devices, variable speed drives and PLCs can be placed in the same cabinet if: b

Variable speed drives are installed with shielded cables.

b

All the above cabling guidelines are followed.

Recommendations:

b

Use the enclosure as a Faraday shield.

b

Limit the number and size of openings in enclosure panels.

b

Avoid inside partitioning of enclosures, which increases electromagnetic interference.

b

Attach devices to plates made of non-insulating materials that act as grounding planes.

b

Place all equipment on a grid at the back of the cabinet.

Definition: A Faraday cage is a conducting envelope with perfectly joined walls.

Note: all attachments should make

electrical contact => scratch the paint.

Equipotential grid:

DIN rail + cabinet ground

Mounted with electrical contact

(fan type washer)

Safety conductors

Ground bar

Schneider Electric 28

Cabling Guidelines

Implementation guidelines

(continued)

The presence of many equipotentially bonded structures in machines and cabinets provides maximum protection.

Protection inside a cabinet or small machine

b

Clamp all cables against equipotential structures.

b

Plastic trunking can be used in cabinets if they are installed on: v the back grid, v or the DIN rails connected to the cabinet ground.

Cabinets are made of various parts assembled with screws or hinges, or welded.

The many resulting openings diminish the electrical continuity.

To mask these opening, place cable entries near assembly points, or combine them with an earth braid.

Grounding braid

Collar

YES

NO

Schneider Electric 29

Cabling Guidelines

Implementation guidelines

(continued)

Most on-site problems are related to conduction.

All wire connections outside the cabinet or machine must be protected. Each cabinet or machine must be equipped with a ground bar or potential reference plane to which are connected all shielded cables and wire protection systems.

Cabling between two cabinets

Protection of cabling outside equipment

The potential reference plane can be one of the metal sides of the cabinet or its DIN grid. The potential reference plane is always connected to the equipotential grid of the cabinet or machine as well as to that of the equipotential island.

For plastic cabinets (not recommended) use a DIN rail or ground terminal.

Definition: Potential reference plane.

Potential reference plane Ground bar

30 Schneider Electric

Cabling Guidelines

Implementation guidelines

(continued)

Equipotentiality must be guaranteed for cabinets placed side by side.

Placing cabinets together

When equipment is placed in a number of side-by-side cabinets the following rules must be followed: b

Attach the cabinets to form islands.

b

Ensure equipotential bonding of the cabinets with at least two contacts at the top and bottom.

b

The bonding should be made up of: v copper bars v or wide, short leaf metal, v or tinned braid.

b

Use conducting false floors to provide an effective equipotential grid.

b

Scratch paint to provide contact and use fan type washers.

Equipotential bonding

50 cm maximum

The cross-section of equipotential bonding conductors is unimportant; only their length matters: they must be no longer than 50 cm.

Trunking should be used for equipotential bonding.

Use of trunking

Trunking on the outside of cabinets must be made of metal if they are longer than

3 m.

To guarantee proper continuity, trunking should be connected to the exposed conductive parts of cabinets or machines using splices or leaf metal.

If a single trunking assembly is used, it must be no longer than 30 m.

Schneider Electric 31

Cabling Guidelines

Implementation guidelines

(continued) b

Attach unshielded cables in corners of chutes.

Power or variable speed drive circuit

Relay circuit

Unshielded analogue circuit

Unshielded digital circuit

Shielded digital circuit

Shielded analogue circuit b

Use a vertical separation in the trunking to avoid mixing incompatible cables.

b

Place a metal cover on the signal half of the trunking.

Note: a metal cover over the complete trunking does not improve EMC.

Plan ahead for changes in your installation.

+ is equivalent to is equivalent to

-

Effectiveness

Definition: For each communication network, an initial maximum segment length without repeater must be respected. This length depends on network speed and the size of the cable used.

This maximum length, indicated in product documentation, can be attained only if installation conditions are satisfactory with respect to EMC (cables laid in metal trunking with end-to-end electrical continuity, connected to the equipotential grid and earth).

Definition: A maximum theoretical length for electromagnetic compatibility (TLC) must also be defined. This second restriction is theoretical because it is usually longer than the first. It is used to optimise installation conditions and should be respected along with the first limit.

It also applies to a segment with no regenerative repeater.

The theoretical EMC length is 1200 m on average, but can vary according to the type of communications network:

b

2000 m for FIP at 1 Mbit/s and for Unitelway.

b

1000 m for Modbus Plus and for Ethway tri-axial cable at 50 W.

b

700 m for Mapway.

b

400 m for the BusX system in PREMIUM PLCs.

Likewise, when single trunking is used for power and signal cables, a coefficient takes into account the absence of a metal separation or metal cover on the portion of the chute used for signal cables.

32 Schneider Electric

Cabling Guidelines

Implementation guidelines

(continued)

Whenever one of the three conditions is not completely met, the physical length of the trunking should be associated with a coefficient to respect EMC. Such coefficients reflect the decrease in the protection. The resulting permissible length of the trunking will be less than the TLC.

A raceway increases protection by a factor of approximately 50 between 1 MHz and

100 MHz.

Examples of other interference reduction systems

In cases where sheetmetal trunking cannot be used, other means can be used to provide electrical continuity:

b

Use of cable trays.

These cableways, made of welded heavy wire, are less effective and often more costly than sheetmetal trunking.

Protection factor = 5

Protection factor = 10 b

Use of a companion cable.

A companion cable can be used when no other solution is possible.

Protection factor = 5

Companion cable

Schneider Electric 33

Cabling Guidelines

Implementation guidelines

(continued)

Error rate for a slow link:

Transmission of 41222 bytes at 4800 Bds. IEC test 1000-4-4. 15-pair shielded cable.

Transmission impossible

Errors

13

Stops

110

Length

1352 s

8 86 1225 s

0 0 160 s

0 0 160 s

Raceway without cover: Raceway with cover:

Error rate for a fast link:

Transmission at 2 Mbits/s. Length of IEC test 1000-4-4: 3 minutes.

11800 errors: 12000 errors:

9600 errors:

4500 errors:

0 error:

0 error:

4600 errors:

4000 errors:

0 error:

0 error:

Raceway without cover: Raceway with cover:

34 Schneider Electric

Cabling Guidelines

Summary

Essential rules

b

Make sure all exposed conductive parts have the same potential..

b

Choose equipment that complies with standards.

b

Follow manufacturers’ instructions.

b

Protect your installations from outside disturbances (careful grounding of shielding).

b

Eliminate ground loops.

b

Shield both sensitive and interfering cables.

b

Use enclosures or cubicles as Faraday cages (contact between unpainted, rust-free steel sheets, short and wide earth braids, no unnecessary openings, etc.) b

Do not use "pigtails" or long grounding wires.

b

Avoid TN-C systems, as common mode interference is the principal problem in EMC.

b

Clamp conductors against ground planes.

b

Separate conductors by category.

b

Do not leave any conductors unconnected.

b

The outgoing and incoming conductors should always remain together.

b

Make use of "natural protections" (cable raceways, etc.)

Lack of regard for rules can lead to:

b

Problems with EMC: v operating problems:

- evaluation of the installation,

- re-cabling,

- implementation of software solutions.

v risk of service interruptions, v systems that do not perform their tasks.

b

Loss in production, expertise, need to re-do work, high costs.

Schneider Electric 35

36 Schneider Electric

Schneider Electric

Guide to Integration

Review

Networks

Systems

Bauds and bits per second

Architectures

The 20 mA current loop

The RS232 link

RS485 link

Standards EIA 485A (March 98 update) and TSB89 (application guidelines for TIA/EIA-485-A)

Interfaces

RS232/RS485

Modems

The Modbus Protocol

Difference between ASCII and RTU frames

Differences between Modbus and Modbus+ protocols

Modbus / Jbus

Description of exchanges

Principles used

Addressing

Functions

Control of messages received by the slave

Algorithm for generating CRC16

Schneider Specifications 79

Overview 79

Connection

Components available

83

84

56

56

61

61

62

75

56

56

58

60

Summary

Specific Characteristics of Products

40

40

43

47

48

48

40

40

41

42

50

50

51

85

86

37

38 Schneider Electric

Guide to Integration

Modbus / Jbus

This chapter describes layer 2 of the OSI model in detail. This layer is composed of two separate parts for data transmission: b

A "hardware" part (interfaces, addressing, parameters, etc.).

b

A "software" part (medium access control, error management, logical level control, etc.).

Schneider Electric 39

Guide to Integration

Modbus / Jbus

Review

Definition : The purpose of a

communications network is to link at least two devices in order to exchange data (ex.:

Ethernet network).

Definition : A system brings together a

number of different entities that function independently but are connected to each other (in a network) in order to participate in an overall function.

Networks

A network is defined by its: b

Topology (bus, ring, star, tree, mesh, etc.) b

Physical limits (length, speed, number of subscribers, etc.) b

Type of physical medium used (cable, optical fibre, radio waves, etc.) b

Type of network access (random, master-slave, token ring, with or without error management, etc.) b

Transmission modes (synchronous/asynchronous, in packets, serial/parallel,

NRZ/Manchester coding, etc.) b

Protocol (TCP/IP, FIP, MODBUS, etc.).

Systems

Definition : A baud corresponds to a

number of electrical states per second..

Definition : The throughput or number of

data bits transmitted in one second on the network is expressed in bits per second.

Definition : Valence is the ratio between

throughput in bits/s and speed in bauds.

Bauds and bits per second

One important parameter to be considered when choosing a cable is bandwidth.

Bandwidth is related to modulation speed expressed in Bauds.

Bauds are often mistakenly expressed in bits per second.

This parameter is of greatest interest to the user. The two are often confused because their valence is generally 1.

A valence of 2 indicates that the throughput is doubled for the same communication speed.

U

5 V

2.5 V

0 1 0 0 1

1 0 t

U

5 V

2.5 V

00 11 10 01 00 10 t

40 Schneider Electric

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

Definition: A 20mA current loop is a multi-point link

(the number of points depends on the types of transmitters/receivers) via a 4-wire cable.

Definition: An RS232 link is a point-to-point link via a cable with at least three wires.

Definition: An RS422 link is a point-to-point link via a cable with at least four wires for full duplex operation.

Definition: An RS485 link is a multi-point link (32 points maximum) via a cable with at least 2 wires for half-duplex operation.

Architectures

(Connection on SubD9 recommended, maximum length 3000 m at 1200 Bds, and

300 m at 9600 Bds, bus topology.)

(Connection on a SubD9 or 25 pts, maximum length 15 m at 19200 Bds.)

(Connection on SubD9 recommended, maximum length 1200 m at 19200 Bds.)

(Connection on SubD9 recommended, maximum length 1200 m at 19200 Bds, bus topology.)

Topologies

Bus

Ring

Star

Point-to-Point

Schneider Electric 41

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

This transmission mode, used on some equipment, provides better performance than RS232C mode. Although this mode provides good immunity to parasites, it is not always the best solution because the current loop is not standardised.

The 20 mA current loop

A 20 mA current obtained from the power supply voltage (12 V or 24 V) flows through the loop.

For normal lines (20 mA: resting state on the line) approximately 1.5 V is lost for each station connected.

b

Transmitters for slave stations are usually connected in series with the receivers of the master station (normal line, 20 mA at rest):

General characteristics: b

Maximum number of loads on the bus: depends on the type of transmitters/ receivers.

b

Standard topology: "Multi-point" of the 4wire bus type.

b

Transmission speed: 300/600/1200 Bds.

b

Electrical levels: 0 mA / 20 mA.

b

Control lines: None.

b

Length of the bus: 3000 m from 300 to

1200 Bds. Depends directly on type of cable and voltage of bus power supply (12

V or 24 V).

T

R

-

+

TD

-

+

RD

+

+

R

TD

T

-

+

+

R

TD

T

-

-

+

+

R

TD

T

-

-

Master Slave Slave Slave b

Transmitters for slave stations can be connected in parallel with the receivers of the master station. In this case the resting state of the line is 0 mA:

+

-

+

-

T

R

-

+

TD

+

-

+

RD

+

TD

R

T

+

TD

R

T

+

TD

R

T

Notes:

b

The sign "+" is used for incoming current and "-" for outgoing current.

b

In the figure, T = transmitter,

R = receiver .

Master Slave Slave Slave

42 Schneider Electric

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

General characteristics: b

Electrical levels ± 15 V.

b

Control lines: possible (RTS, CTS, DCD, etc.) but not systematic depending on the software and/or interface.

b

Charge and polarisation of the line: no.

b

Minimum connection (in DB9): v pin 2 (Transmitted Data), v pin 3 (Received Data), v pin 7 (Signal Ground).

The RS232 link

The physical DB25-DB25 connection

13

25

DB25 Female RS-232-C 1

14

DB25 to DB25 serial cable

Computer

DTE

Interface

DCE

1 DB25 Male RS-232-C 13

14 25

Definition: DTE (Data Terminal Equipment) represents the terminal or computer.

Definition: DCE (Data Communication Equipment) represents the modem (or printer).

b

Link two devices of different types (DTE-DCE) with a direct PIN-to-PIN cable.

b

Link two devices of similar type with a special cable: v

DTE-DTE, use a nul-modem cable, v

DCE-DCE, use a nul-terminal cable.

On computers the serial port is usually a DB9 or DB25 male. The parallel port is a

DB25 female.

Note: The terms "DCE" and "DTE" are not related to the type or gender of the connector.

Standard RS-232-C does not clearly define whether the connector is male or female.

Its purpose is rather to standardise the function and utility of connector pins and the voltage applied.

Definition: Parallel communication is the simultaneous transmission of 8 binary elements (a byte). The 8 bits in the byte are sent onto the communications media simultaneously.

Printers are often connected to computers with a parallel cable with DB25 connectors.

The maximum length of a parallel cable is 30 meters. A parallel cable that is too long could falsify the transmitted data because of electrical noise and the deformation of squared waves (bits at 1 and 0).

Definition: Serial communication is the transmission of bits one after another.

This method is used when the distance between the two machines is too great to link them with a parallel connection. Note that computers and modems are connected via a serial connection. Manufacturers usually comply with connection standard RS-

232-C.

The maximum recommended length for a serial cable is 30 meters, but longer cable can be used if certain electrical characteristics specified in standard RS-232-C are respected.

Schneider Electric 43

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

The DB9-DB25 physical connection

13 DB25 Female RS-232-C 1

25 14

Computer

DTE

DB9 to DB25 serial cable

Interface

DCE

5

DB9 Male

1

9 6

Some terminals and computers may have a DB9 type RS-232-C serial connector. In the figure above, the RS-232-C serial connection uses a DB9 to DB25 cable.

Correspondence between a DB9 and a DB25 connector.

DB25 (PIN)

4

5

6

7

1

2

3

8

12

20

22

DB9 pinout diagram

DB9 (PIN)

7

8

6

5 n/a

3

2

4

9

1

N/a

1

2

3

4

5

6

7

8

9

CD

DSR

RXD

RTS

TXD

CTS

DTR

RI

SG carrier detection data set ready receive data request to send transmit data clear to send data terminal ready ring indicator signal ground

44 Schneider Electric

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

Standard cabling

1

2

3

4

5

6

7

8

20

22

DTE

Protective ground

Transmitted data

Received data

RTS

CTS

DSR

Signal ground

DCD (RLSD)

DTR

RI

1

2

3

4

5

6

7

8

20

22

DIRECT DB25-DB25

DCE

Nul-modem cable

Protective ground

GRND

Transmitted data

Received data

RTS

CTS

DSR

Signal ground

DCD (RLSD)

DTR

RI

4

5

6

7

8

20

22

1

2

3

DTE

Nul-terminal cable

NUL-MODEM

(asynchronous)

4

5

6

7

8

20

22

1

2

3

GRND

Transmitted data

Received data

RTS

CTS

DSR

Signal ground

DCD (RLSD)

DTR

RI

DTE

GRND

Transmitted data

Received data

RTS

CTS

DSR

Signal ground

DCD (RLSD)

DTR

RI

4

5

6

7

8

20

22

1

2

3

DCE

Protective ground

4

5

6

7

8

20

22

1

2

3

NUL-TERMINAL

(asynchronous)

DCE

GRND

Transmitted data

Received data

RTS

CTS

DSR

Signal ground

DCD (RLSD)

DTR

RI

Schneider Electric 45

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

RTS/CTS or XON/XOFF flow control

Definition : Flow control allows the

receiver to order the terminal to stop transmission when its buffer memory has reached 90% of its capacity. There are two types of control: hardware and software.

The hardware method is recommended: it uses signals from the RTS/CTS pins in the

RS-232 serial interface to order the DTE to stop transmitting. This method is the most secure and most widely used.

The software method requires that the modem send two different ASCII codes to the terminal to order it to stop (Xoff) or continue (Xon) to transmit:

v

XON Ctrl-Q ASCII 11 Hex.

v

XOFF Ctrl-S ASCII 13 Hex.

All IBM PCs and compatible computers permit flow control by RTS/CTS, but some

Apple computers do not.

Regardless of the method used, flow control makes it possible to increase the transmission speed of the terminal (DTE) to a speed greater than that of modem throughput on the line.

If its buffers are full, the modem can signal the DTE at any time to wait for a certain period before transmitting (and vice-versa).

46 Schneider Electric

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

An RS485 link has the following general characteristics: b

Maximum number of loads on the bus: 32

(for Zc = 120 W and Ucm = -7 V to 12 V).

b

Standard topology: chaining of connection points.

b

Possible topologies: v point-to-point, v

Bus type multipoints (2 or 4 wires), v

Multidrop (1 transmitter and several receivers), v

1 receiver and several transmitters.

b

Topology not recommended: star.

b

Minimum distance between 2 points:

27 cm.

b

Maximum length of a tap: 1 m (in accordance with ISO/IEC 8482).

b

Transmission speed: 4800/9600/19200

Bds.

b

Type of protocol: Modbus/Jbus in our case.

b

Security required: more detailed study of the network to adjust the various parameters.

b

Throughput required for use: optimisation of links according to requirements,

10 Mbits/s max.

b

Control lines: no.

RS485 link

Type of connector: b

A "SubD 9 points" connector is recommended for Schneider products, in which case connection is as follows: v pin 9 (Transmitted Data +) = A, v pin 5 (Transmitted Data - ) = B v pin 8 (Received Data +) = A’, v pin 4 (Received Data -) = B’ v pin 1 (Signal Ground) = C/C’.

Environment:

b

Ambient and storage temperature: respect characteristics of products and cables.

b

Electromagnetic compatibility: v respect rules for implementation, v products should comply with "CE" directives.

Electrical characteristics:

b

Electrical levels: ± 5 V (in differential).

b

Transmitter: minimum output voltage: 1.5 V / 54

Ω.

b

Receiver: minimum sensitivity ± 0.2 V.

b

Type of medium: shielded twisted pair.

b

Characteristic impedance of the medium: Zc = 120

Ω.

b

Maximum voltage in common mode: -7 V to 12 V (for Zc = 120

).

b

Maximum current for transmitter output: 250 mA.

b

Load and line polarisation: yes.

b

Load resistance = 120

Ω.

b

Polarisation resistance = 470

.

Note: If a compromise is made on the maximum variation of common mode voltage, it is possible to:

b

Use a cable with a lower characteristic impedance.

b

Connect more loads to the bus (example: for 50 connection points, Umc = -1 to 5

V).

The TSB89 bulletin specifies that if the transition time of the fastest transmitter on the line is greater than twice the propagation time on the same line (in one direction), the connection is not a transmission (SIC). Load resistance is unnecessary.

Schneider Electric 47

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

Standards EIA 485A (March 98 update) and TSB89 (application guidelines for TIA/

EIA-485-A)

Connection and identification:

A

Lr

B B'

A'

C

G

R

C'

B/B'

A/A'

R

T

G

C/C'

Key:

b

G = Generator

b

A & B = Generator connection points

b

C = Common point for the generator

b

R = Receiver

b

A’ & B’ = Receiver connection points

b

C’ = Common point for the receiver

b

T = Transmitter

b

A/A’ & B/B’ = Transmitter connection points

b

C/C’ = Common point for the transmitter

b

RL = Load resistance.

Electrical states:

A

B

C

Line "A" on the transmitter is negative with respect to line "B" for a binary "1" (OFF).

Line "A" on the transmitter is positive with respect to line "B" for a binary "0" (ON).

48 Schneider Electric

Guide to Integration

Modbus / Jbus

20 mA CL – RS232 – RS422 –

RS485 links

(continued)

Vob

Voa

Binary 1

(OFF)

Binary 0

(ON)

VOH

VOL

OV (Diff)

Voa – Vob

Signal transition time:

G

A

50 pF

+

20%

B

50

+

1%

Vt

C

1.1 Vss

0.9 Vss

Vss

OV (Diff)

0.1 Vss

Vss = | Vt - Vt* |

t ui t r tf

Constraints concerning signal form:

b

tr & tf < 0.3 x tui.

b

Between two transitions (after tr and before tf) the value of Vt or Vt* should not exceed Vss + 10%.

b

Vt and Vt* should never exceed 5 V.

Schneider Electric 49

Guide to Integration

Modbus / Jbus

Interfaces

All personal computers used in offices are equipped with at least one serial port

(COM1) that is specified by standard

RS232C. An adapter (interface RS232/

RS485) for electrical levels is required. In some cases, such as for "industrial" PCs, an adapter is not required if a card supporting standard RS485 can be installed.

RS232/RS485

Definition of an RS232/RS485 interface: b

RS232: v conformity with the EIA standard, v

PC connection cable < 20 m, v transmission speed compatible with PC port, v management of flow / presence control signals:

- RTS (Request To Send); DTE ÆDCE,

- CTS (Clear To Send); DCE ÆDTE,

- DCD (Data Carrier Detect),

- DSR (Data Set Ready)

- DTR (Data Terminal Ready) DCE Æ DTE.

v if it is possible to choose the type of interface (DTE/DCE), choose DCE.

b

RS485: v conformity with the EIA standard, v connection cable < 1200 m, v transmission speed compatible with equipment, v possibility of line polarization (Rp), v possibility of line load (Rp), v

2 wire or 4 wire management, v conformity of data format (start, stop, parity, etc.) v possibility of 32 modules (at least) on its line.

50 Schneider Electric

Guide to Integration

Modbus / Jbus

Interfaces

(continued)

For long-distance communication, the easiest solution is to use the existing telephone network. This requires a

MODEM.

Modems

Bits cannot be transmitted directly over a telephone line (except for an ISDN line). A telephone conversation between two people is analogue because it varies in amplitude and phase over time.

Transmission of the bits 1 and 0 corresponds to variations in continuous voltage and thus cannot be placed directly on the telephone line. Modems are used to "MOdulate and DEModulate" these bits into analogue signals.

There are four types of modulation:

Definition: a modem, or MOdulator DEModulator is a device used to change digital signals into analogue signals and vice-versa.

b

Amplitude modulation b

Frequency modulation b

Phase modulation (synchronisation) b

Combined modulation (ex.: of amplitude and phase)

Schneider Electric 51

Guide to Integration

Modbus / Jbus

Interfaces

(continued)

Telephone companies dispatch pairs of cables to their clients; each pair represents a different telephone number. Each of these telephone lines is linked to a special computer called a "switching exchange or PABX" at the central telephone station.

The purpose of this computer is to set up the communications link between the caller and the number being called.

Computers only process information in binary form, i.e., 1 or 0.

For telephone exchanges they must: b

Decode the numbers dialed.

b

Establish the communications link between the two subscribers.

b

Convert analogue conversations to digital form (1 and 0).

b

Process the digital data.

b

Re-modulate the digital data to obtain analogue signals.

PABX

1001101011100

A/D D/A caller person called

CPU

Definition:

b

PABX: Public Automatic Branch eXchange b

A/D: Analogue to Digital converter b

D/A: Digital to Analogue converter b

CPU: Central Processing Unit b

Caller: User who dials the telephone number b

Person called: User who receives the telephone call

Dedicated lines and modems

A connection made on a telephone line through an electronic exchange (PABX) is called "temporary" because it represents a simple telephone call that anyone can make at any time. When the communication is terminated, the line is freed. Specific software is required to set parameters for the module, open communications on the telephone line, manage the line, etc.

A dedicated line provides point-to-point connection. This connection is not through a telephone exchange. It is permanent and requires components other than a telephone to operate. Such a connection is in service 24 hours a day, 365 days a year. A dedicated line with a bandwidth of 3 kHZ can carry 19.2 kBps (28.8 kBps

V.FC and V.34 for 3600 Hz).

Local modem links

This type of link is used inside buildings, in private areas, for transmissions over long distances or in some case in disturbed environments.

ISDN connections

Definition: ISDN (Integrated Services Digital Network) is a telephone network that uses digital signals up to the user level. Its characteristics make it useful for transmitting moderate volumes of digital data, over medium distances, between companies.

In this application, ISDN will progressively replace analogue telephone service. (The future competitors of ISDN will be DSL technologies and cable.) This type of digital connection does not use modems; it requires a Terminal Adapter or other specialised card. The configuration of these devices is often similar to that of modems, but they have additional and different characteristics that vary according to the model used.

52 Schneider Electric

Guide to Integration

Modbus / Jbus

Interfaces

(continued)

General characteristics: b

Industrial or office modem (depending on use).

b

Analogue/Digital (depending on connection to the telephone network).

b

Adaptable transmission speed (on the telephone network).

b

AT commands accepted for use and parameter setting.

b

RS232 input available (speed compatible with MODBUS).

b

Dry contact input available to initiate a call.

b

Conformity with EMC directives.

Definition: The modulation speed of the modem must not be confused with the speed of the COM port on the computer. Modem speed represents the rate of transfer of DCE, while COM port speed represents the transfer rate of DTE.

Modem communication speed can be changed during an exchange according to load on the telephone network. For high speeds, use of RTS/CTS "hardware" flow control is recommended.

Installation recommendations

Hardware:

b

Modems are normally delivered with a telephone connection cable and a serial connection cable for connecting to the PC/Mac/terminal.

b

Refer to supplier instructions when installing a PCMCIA modem.

b

Connect the telephone cable to the LINE outlet (and not the PHONE outlet) on the modem. (Other terms are sometimes used.) b

Connect the serial cable to the RS232 outlet on the modem and the PC/Mac/ terminal.

b

Connect the outside power supply first to the 220 V line and then to the modem.

(First make sure the modem is set to the OFF position.)

The most frequently encountered problems with serial connections are poorly suited speed and cables that cannot support hardware flow-control.

The most common problems with telephone connections are: b

Unsuitable telephone cables (not adapted to the Swiss standard, for example).

b

Wall jack incorrectly cabled.

b

The telephone is connected: v to a double jack with 2 telephones, v to a special fax / telephone line, v to a private exchange.

Software:

b

The software provided with the modem cannot generally be used to perform tests.

Thus we recommend that a terminal emulator be used to perform the first operating tests.

b

A driver and installation instructions are provided with PCMCIA modems. Refer also to drivers installed on the PC operating system.

Serial connection with the modem:

b

Once the modem has been turned on: v verify that the modem has passed tests successfully and is in READY mode (ready to operate according to its LEDs), v configure the terminal emulator (or the terminal) with the maximum baud rate supported by the modem or the PC/Mac/terminal.

- choose 9600, 19,200, 38,400, 57,600 or 115,200,

- choose 8 data bits, 1 stop bit and parity none (8, 1, N or 8N1).

v type the command AT [ENTER] and verify that the modem responds OK. If this is the case, the PC/Mac/terminal and modem link are already operating (but without any real flow-control test).

Connection with the telephone line:

b

Now that your emulator is communicating with the modem: v type the command ATDP161 [ENTER], v the modem will dial the number; you should hear the talking clock in the modem’s speaker.

v the modem <-> telephone line link is in order.

v you can then use a CARPE number (or the number of another service provider) to test the connection with data.

v at this point, if everything is operating properly, part of your installation has been completed.

Billing pulses will disturb the modem if they are not filtered (in the modem, with an external filter or by your telecommunications service), particularly if there is no error correction.

Schneider Electric 53

Guide to Integration

Modbus / Jbus

Interfaces

(continued)

For some applications it is useful to know the modem parameters and how to set them.

Commands beginning with AT (Hayes compatible) differ according to the modem.

Modems that use Rockwell chips all have the same commands. Thus it is best to describe functions rather than specific commands.

Modem parameters:

b

Error correction can be used to eliminate a number of transmission errors on the often disturbed telephone network. ITU standard V.42 is faster and better than the

MNP-4 (from Microcom).

b

Data compression can be used to accelerate the transfer of data that has not yet been compressed. With ITU standard V.42bis, the data compression rate can be as high as 4:1, and compressed data is recognized. MNP-5 (from Microcom) provides a compression rate of only 2:1.

b

Flow control: slow modems may have only software flow control, known as XON/

XOFF in manuals, but faster modems must use hardware flow control, with RTS/CTS control lines. Use of both modes, possible with some modems, is not recommended.

Common AT commands:

Modem parameters are: b

Error correction, b

Data compression, b

Flow control.

ATD

AT&W

AT&V

AT&F

ATLn

ATSr=n

ATS0=n

To dial a number, followed by a T for frequency selection (DTMF) or, more rarely, D for pulses (for older telephone switching stations). Example: ATDT

6939332 [ENTER] +++ can be used to return to the control mode and, for example, hang up with ATH. Remember to pause for one second before and after the command.

Records the profile currently in memory. This is the profile that will be activated when the modem is turned on or with the ATZ command. Note that several profiles can be recorded on some models.

Used to view active modem parameters.

Resets all modem parameters to their original factory settings.

Changes speaker volume. (ATMn selects speaker operating mode.)

Places value n in register r. The command ATSr can be used to view the contents of the register.

Sets the number of rings before the modem answers. If the value is 0 the modem will not respond. In Switzerland there must be at least two rings before the modem answers (according to OFCOM).

ATS7=n Used to define the time the modem waits for a carrier before hanging up and indicating NO CARRIER. This value is usually between 45 and 60 seconds.

Note: The modem reference manual is the most reliable source of information.

Examples given here may differ.

Messages:

OK

ERROR

CONNECT

NO DIALTONE

NO CARRIER

NO ANSWER

BUSY

The command has been understood.

All or part of the command is erroneous.

The link is established. This message is often accompanied by other information on speed and protocol (error correction and/or compression).

The modem cannot dial the number because there is no dial tone.

The carrier has been lost, or the remote modem has hung up, or our modem did not receive a carrier when calling (for example, when someone picks up the phone and says "hello!").

No one is answering, the number is wrong, or the equipment at the other end has broken down. (This does actually occur.

All lines are occupied; the modem must try again later or use another number.

54 Schneider Electric

Guide to Integration

Modbus / Jbus

Interfaces

(continued)

Most cables linking the modem to the telephone jack comply with the international connection standard. This standard is not the same as the standard used in

Switzerland.

American modem a b a b a b

1

2

Telecommunications line

3

PHONE PSTN

LINE

Swiss telephone a b

T+T 83 a b

1

2

Telecommu nications line

3

T+T 83

The right cable

The serial link cable between the modem and the PC/Mac/terminal (DTE) should include all the necessary signals.

b

DB-25 and DB-25:

Note: General example used in most applications.

7

8

5

6

9

22

2

3

4

1

DTE (DB-25)

Protective Ground

Transmitted Data (TD)

Received Data (RD)

Request to Send (RTS)

Clear to Send (CTS)

Data Set Ready (DSR)

Signal Ground

Data Carrier Detect (DCD)

Data Terminal Ready (DTR)

Ring Indicator (RI) b

DB-9 and DB-25:

Note: The DB-9 connector is often used on PCs.

7

8

5

6

20

22

2

3

4

MODEM (DB-25)

1

6

7

4

5

8

9

2

3

1

DTE (DB-9)

Data Carrier Detect (DCD)

Received Data (RD)

Transmitted Data (TD)

Data Terminal Ready (DTR)

Signal Ground

Data Set Ready (DSR)

Request to Send (RTS)

Clear to Send (CTS)

Ring Indicator (RI) b

Mini-DIN and DB-25:

Note: The Mini-DIN 8 connector is used on Macintosh computers (DTE).

6

4

20

7

3

2

MODEM (DB-25)

8

5

22

DTE (Mini-DIN8)

1 DTR

2 DSR

3 TD

4 & 8

5 RD

7 DCD

SHIELD

(RTS & DTR)

(CTS)

Transmitted Data (TD)

(Ground)

Received Data

(DCD) 8

1

7

3

5

2

MODEM (DB-25)

4 & 20

Schneider Electric 55

Guide to Integration

Modbus / Jbus

The Modbus Protocol

Definition : ASCII, American Standard

Code for Information Interchange.

Definition : RTU, Remote Terminal Unit.

Both of these frame formats can be used in the Modbus protocol, but they are incompatible with each other. About 95% of modules that communicate over Modbus use RTU frames.

Difference between ASCII and RTU frames

Some devices can use either of the two formats: b

With the RTU format the user can obtain higher data throughput with the same transmission speed.

b

The ASCII format provides greater flexibility on inter-byte timing (up to 1 second) and provides truly asynchronous transmission.

Definition : The Modbus protocol uses

frames with standard beginnings and ends.

The address is placed at the beginning of the frame.

Definition : The Modbus+ protocol uses

frames with start and end delimiters that are specific to the network. The destination address is integrated in the protocol.

Differences between Modbus and Modbus+ protocols

b

In the Modbus protocol, the receivers read the address and thus identify the module to which the message is addressed. The receivers also determine the length of the message and can thus detect truncated messages.

b

In Modbus+ the transmitter converts the Modbus address to an address with the node and access path on the network.

The Jbus protocol uses part of the Modbus protocol.

Note: Products (modules) may contain only

part of the Modbus functions (see product documentation).

Note: @ Modbus begin at "1", while @

JBus begin at "0".

Modbus / Jbus

Frame structure Jbus Modbus

Slave no.

Function code

Frame length

CRC

Frame detection*

1 to 255

1 to 16 (except 9 & 10)

Maximum 255 bytes

CRC16 silence > 3 characters

1 to 247

1 to 24

Maximum 261 bytes

CRC16 silence > 1.5 or > 3.5 characters

* This difference is unimportant at throughputs greater than 1200 bits/s because the times are shorter than device processing time (turnaround time).

Standard functions

F1 Read n bits at @ 1 to 9999

F2

F3

F4

F5

F6

Read n bits at @ 0 to FFFF

(1 < n < 2000)

Read n bits at @ 0 to FFFF

(1 < n < 2000)

Read n words at @ 0 to FFFF

(1 < n < 125)

Read n words at @ 0 to FFFF

(1 < n < 125)

Write 1 bit at @ 0 to FFFF

Write 1 word at @ 0 to FFFF

Read n bits at @ 10001 to

19999

Read n words at @ 40001 to

49999

Read n words at @ 30001 to

39999

Write 1 bit at @ 1 to 9999

Write 1 word at @ 40001 to

4999

F7

F15

F16

Fast read 8 user bits Read exception status (8 bits).

Signal errors in the equipment

Write n bits at @ 1 to 9999 Write n bits at @ 0 to FFFF

Write n words at @ 0 to FFFF Write n words at @ 40001 to

49999

56 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

The Modbus protocol can be used to read or write one or more bits, one or more words, the contents of the event counter or the contents of the diagnostic counters.

Frame structure Jbus

Diagnostic functions (sub-functions)

F8 Read diagnostic counters

Modbus

Read diagnostic counters

(01) Data = 0000 => no response transmitted data = FF00 resets counters

(02-03-04-0A) Identical

(0B) Count frames with no CRC error

(0C-0D) Identical

(0E) Not incremented upon broadcast

Response no counter reset

Identical

Count all frames

Identical

Incremented upon broadcast

(0F) Count number of broadcasts received

(10-11) Identical

Count number of no-responses from the slave

Identical

(12) Count character errors (format, parity, etc.)

Count overruns

F11 Event counter.

Increments upon broadcast. In the response the first word is always at 0.

Event counter.

Not incremented upon broadcast.

In the response the first word is at 0 or FFFF (status)

F12 History of the last 64 exchanges.

In the response the first word is always at 0..

History of the last 64 exchanges.

In the response the first word is at 0 or FFFF (status).

Exception codes

(01-02-03-05-07-08) Identical

(04) Device not ready

(09) Overlapping of memory

Extended functions (sub-functions)

Identical

Error during processing of the query

Not implemented

F13 Program commands

(01 - 02) Identical

(03 - 04) Address on 24 bits

Program commands

Identical

Address on 16 bits + 8 bits for page number

Address extension

(25)

(26)

F14

Identical

Data byte = 00 or 80h

Identical

Identical

Data byte = 06h

Identical

Note: Function 13 has 43 sub-functions; Jbus uses only 6..

Schneider Electric 57

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Exchanges take place at the initiative of the master. They include a query from the master and a response from the slave.

Description of exchanges

Master

Query

Response

Slave 1 Slave 2 Slave 3

All frames exchanged have the same structure.

Slave n

°

Function code

Data zone

Control zone

CRC 16

Queries from the master are addressed either: b

To a specific slave (identified by its number in the first byte of the query frame.

b

To all slaves (broadcasting).

Broadcast commands are always write commands. Slaves do not answer such commands.

Broadcast

Slave 1

Master

Slave 2 Slave 3

58 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

All exchanges except broadcasting include two frames: a query from the master and a response from the slave.

Broadcast exchanges (write only) consist of only one frame from the master.

Each frame includes four types of information: b

Slave number (1 byte): v the slave number specifies the destination slave (1 to 255). If this number is zero, the query is addressed to all slaves and there is no response message.

b

Function code (1 byte): v can be used to select a command (read, write, bit, word) and to verify if the response is correct.

b

Information field (n bytes): v contains the parameters associated with the function: bit address, word address, bit value, word value, number of bits, number of words.

b

Control word (2 bytes): v is used to detect transmission errors.

Diagram showing how the transmission medium is filled

Analysis of the response and preparation of the next exchange

Master

Slave N

°

1

Slave N

° n

Physical medium

Exchange i-1 Exchange i

Time

Exchange i+1

Query

Response

Wait

Turnaround time

Broadcast

Execution by slave

Note: The lengths of QUERY, RESPONSE, BROADCAST, WAIT and

PROCESSING depend on the function performed.

Schneider Electric 59

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Principles used

Synchronisation of exchanges

Any character received after a silence of more than 3 characters is considered the beginning of a frame.

End of stop bit

Beginning start bit

3-character silence

60

Character

Character

The contents of the following frames is given in hexadecimal.

Note: Be sure to leave a silence of at least three character between frames.

Presentation of frames

Presentation of query and response frames

b

Query b

Response

Slave no.

(1 to FF)

Function code

Information

1 byte

1 byte n bytes

Control word

2 bytes

Information required for the query: address bits, bit value words, number of bits words, number of words.

This code is used to select the commands available.

The slave receives the message, reads the control word and accepts or refuses the message.

Slave no.

(1 to FF)

1 byte

Function code

Information

1 byte n bytes

Control word

2 bytes

Value of bits or words read, value of bits or words written, number of words or number of bits, diagnostic.

Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Each module has a single address on the network. This address is between 1 and

255 (1 and FF in hexadecimal).

The value of this address is coded in one byte. The value "0" is prohibited because it is used only for broadcasting.

The Jbus protocol has 14 functions. Query and response frames have a maximum of

255 bytes.

Addressing

The addressing mode differs according to the module: b

With a code wheel: v wheel no. 1 gives the most significant bit in addresses, v wheel no. 2 gives the least significant bit.

b

With a keyboard. The principal is the same, but the method may differ: v parameter setting in a single operation, v parameter setting in two operations (most significant / least significant).

In any case, always consult module implementation instructions.

Functions

Jbus functions: b

Function 1: Read n output or internal bits.

b

Function 2: Read n input bits.

b

Function 3: Read n output or internal words.

b

Function 4: Read n input words.

b

Function 5: Write 1 bit.

b

Function 6: Write 1 word.

b

Function 7: Fast read 8 bits.

b

Function 8: Diagnostic of exchanges.

b

Function 11: Read event counter.

b

Function 12: Read trace buffer.

b

Function 13: Read/write address > FFFFh or program command (downloading, etc.).

b

Function 14: Diagnostic associated with program commands.

b

Function 15: Write n bits.

b

Function 16: Write n words.

Schneider Electric 61

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

The master transmits a query indicating: b

Slave number.

b

Function code.

b

Parameters of the function.

It calculates and transmits the contents of the control word (CRC 16).

When the slave receives the query message, it stores the message in memory, calculates the CRC and compares it with the CRC 16 received.

b

If the message received is incorrect

(CRC 16 frames not equal) the slave does not respond.

b

If the message received is correct but the slave cannot process it (bad address, incorrect data, etc.) it sends an exception response.

Master

Control of messages received by the slave

Contents of an exception response

Slave no.

(1 to FF)

1 byte

1

1 byte 1 byte

CRC 16

MSB*

2 bytes

LSB*

Exception code

1. - Unknown function code

2. - Incorrect address

3. - Incorrect data

4. - PLC not ready

5. - Acknowledgement

7. - No acknowledgement

8. - Write error

9. - Zone overlap

Function code received and most significant bit at 1.

Example:

b

Query.

Slave

Slave no. Function

Data zone

CRC 16

CRC calculation

1 9 0

0 0 0

CRC 16 comparison

LSB* MSB*

CRC 16 b

Response.

Important: the least significant byte (LSB)

of CRC 16 is transmitted first.

1 89 1

LSB* MSB*

CRC 16

Note: Exception responses 5 and 7 are related to Jbus functions 13 and 14.

62 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued) b

Function 1: read N output or internal bits.

b

Function 2: read N input bits. b

The number of bits to read should be y

2000.

Definition: A bit is a basic unit of information that can only equal 1 or 0. Bits are the

"language" used by computers. They correspond to the following levels of electricity in computers: b

"bit 0" = 0 Volt b

"bit 1" = 5 Volts

Important:

When bits are transmitted through a serial port, they correspond to the following levels of electricity: b bit 0 = +3V to +15V b bit 1 = -3 to -15V

Definition: A byte is a group of eight (8) binary elements. A byte is thus eight (8) bits that represent a binary "word".

Note: MSB = Most Significant Bit and LSB = Least Significant Bit.

Read n bits: function 1 or 2

b

Query.

Slave no.

1 byte b

Response.

1 or 2

Address of the

1st bit to read:

MSB* LSB*

2 bytes

Number of bits to read:

1

≤≤

n

≤≤

2000

2 bytes

CRC 16

LSB* MSB*

2 bytes

Slave no.

1 or 2

1 byte 1 byte

Byte in detail:

Number of bytes read

1 byte

First byte read n bytes

Last byte read

CRC 16

LSB* MSB*

2 bytes

Last bit transmitted

Note: Unused bits in the byte are reset to zero.

First bit transmitted

Example:

Read bits 204 to 211 of slave no. 1.

b

Query.

01 01 02 04

0

1

0

E

CRC 16 b

In hexadecimal, the number of bits to read from 204 to 211 are as follows:

v

0204, 0205, 0206, 0207, 0208, 0209, 020A, 020B, 020C, 020D, 020E, 020F, 0210,

0211,

v

a total of 14 values, or 0E in hexadecimal.

b

Response.

01 01 02 10101001

20B 204

00101110

211 20C

CRC 16

Schneider Electric 63

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued) b

Function 3: read output words or internal bits.

b

Function 4: read input words. b

The number of words to read should be y

125.

Note: In this case the "word" represents 2 bytes or 16 bits..

Read n words: function 3 or 4

b

Query.

Slave no.

1 byte b

Response.

3 or 4

1 byte

Address of the first word to read:

MSB* LSB*

Number of words to read: n 125 :

MSB* LSB*

CRC 16

LSB* MSB*

2 bytes 2 bytes 2 bytes

Slave no.

1 byte

3 or 4

1 byte

Number of bytes read

Value of first word

MSB* LSB*

1 byte 2 bytes

Value of last word

MSB*

CRC 16

LSB* LSB* MSB*

2 bytes 2 bytes

Example:

Read words 805 to 80A of slave no. 2.

b

Query.

02 03 0805 0006

CRC 16 b

Response.

02 03 OC XXXX YYYY

Value of word 80A

Value of word 805

CRC 16

64 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

The response frame is identical to the query frame.

Write a bit: function 5

b

Query.

Slave no.

1 byte

5

1 byte

Address of the bit Value of the bit

MSB* LSB*

0

2 bytes

CRC 16

LSB* MSB*

1 byte 1 byte bit forced to 0_ write 0 bit forced to 1_ write FF

2 bytes b

Response.

Slave no.

5 Address of the bit Value of the bit

MSB* LSB*

0 CRC 16

LSB* MSB*

Note: If the slave number is 00, all slaves force the values and do not transmit a response.

Example:

Force bit 210 of slave no. 2 to 1.

02 05 02 10 FF 00

CRC 16

The response frame is identical to the query frame.

Write a word: function 6

b

Query.

Slave no.

6

1 byte b

Response.

1 byte

Address of the word

MSB* LSB*

2 bytes

Value of the word

MSB* LSB*

CRC 16

LSB* MSB*

2 bytes

2 bytes

Slave no.

6

Address of the word

MSB* LSB*

Value of the word

MSB* LSB*

CRC 16

LSB* MSB*

Note: If the slave number is 00, all slaves force the values and do not transmit a response.

Example:

Write the value 1000 in address word 810 of slave no. 1.

01 06 810 1000

CRC 16

Schneider Electric 65

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

The addresses of the 8 bits are set by the slave.

Fast read 8 bits: function 7

b

Query.

Slave no.

7

1 byte b

Response.

1 byte

CRC 16

LSB* MSB*

2 bytes

Slave no.

1 byte

7

1 byte

XXXXXXXX

1 byte

CRC 16

2 bytes

66 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Each slave has a number of event counters

(or diagnostic counters): b

There are a total of 9 counters per slave.

b

These counters are 16-bit words.

Read diagnostic counters: function 8

b

Query/response.

Slave No.

8

Sub-function code

Data

1 byte 1 byte 1 byte 2 bytes

CRC 16

2 bytes

Function Sub-function code

The slave should echo the query

(transmission control).

Reset diagnostic counters to zero, cancel disconnected mode and reconfigure coupler. No response transmitted.

00

01

Diagnostic counters and trace buffer reset to zero.

01

Read diagnostic register of slave. 02

Data

XYZT

0000

FF00

XXXX

Notes:

X, Y, Z, T set by the user

Change character that serves as a frame end delimiter (in ASCII mode). This character is LF (OA) by default.

03

Disconnected mode – the slave can no longer respond. (Use subfunction 1 to activate slave.)

04

XY00

0000

Reset diagnostic counters to zero 0A 0000

Read total number of:

v

frames received without CRC 0B XXXX

(1) error (CPT 1)

v

frames received with CRC error

0

C XXXX

(1)

(CPT 2)

v

number of exception responses

0

D XXXX

(1)

(CPT 3)

v

frames addressed to the station

0

E XXXX

(1)

(CPT 4) (except broadcast)

v

broadcast queries received

0

F XXXX

(1)

(CPT 5)

v

nacknowledged responses 10 XXXX

(1)

(CPT 6)

v

not ready responses from the 11 slave (CPT 7)

v

unprocessed characters (CPT 8) 12

XXXX

XXXX

(1)

(1)

(1) For the query XXXX equals 00 00.

For the response, xxxx is the contents of the counter.

For the query

XXXX equals

0000.

For the response

XXXX is the contents of the diagnostic register (set by the user).

XY set by the user: ASCII code of the end-offrame character.

Schneider Electric 67

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

This counter tells the master: b

If the slave has correctly interpreted the command (event counter incremented).

b

If the slave has not interpreted the command (counter not incremented).

Read event counters: function 11

Each slave has an event counter. The master also has an event counter. This counter is incremented by one for each frame correctly received and interpreted by the slave (except for the specific command for reading this counter, i.e., function 11).

The counter is also incremented for a correct broadcast command. If the slave transmits an exception response, however, the counter is not incremented.

A diagnostic of exchanges between the master and the slave can be obtained by reading the various counters.

If the master’s counter is equal to the slave’s counter, the command sent by the master has indeed been executed. If the master’s counter is equal to the slave’s counter + 1, the command sent by the master has not been executed.

b

Query.

Slave No.

OB

1 byte

CRC 16

LSB* MSB*

2 bytes b

Response.

Slave No.

1 byte

OB

1 byte

00 00

2 bytes

Contents of slave’s counter

2 bytes

CRC 16

LSB* MSB*

2 bytes

68 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

The user can access a 64-byte memory containing the history of the last 64 transactions.

Read trace buffer: function 12

Note: Functions 12, 13 and 14 are not implemented in all Modicon controllers and are given only for information because they are on the list of Jbus functions.

The master can request a read operation on this memory. The slave responds, and sends the contents of the event counters and message counter as well.

b

Query.

Slave No.

0C

1 byte b

Response.

1 byte

CRC 16

2 bytes

Slave No. OC

1 byte 1 byte

46

1 byte

00 00

Status of event counter

2 bytes 2 bytes

Status of message counter

2 bytes

64 bytes

CRC

Report on most recent event

Report on event immediately preceding b

In reception.

Report on event N

1

= 1 if broadcast

= 1 if disconnected mode

1 if erroneous character 0 b

In transmission, error number if any.

1 1

= 1 if disconnected mode

0 b

In disconnected mode (1).

Report on event -64

0

= 1 if CRC error 0

0 0 1 0 0 0 0 b

Diagnostic counters reset to zero (command 8, sub-command 01).

0

0 0 0 0 0 0 0 0

(1) Disconnected mode is used to analyse certain problems. In this mode, the coupler monitors the line and increments counters and updates the trace table.

However there are no transfers to the slave’s memory and no responses are transmitted on the line. This mode is piloted by command 8 (sub-functions 01 and

04).

Schneider Electric 69

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Program commands: Function 13

Program commands can be used to perform the following functions: b

Connect to slave memory.

b

Disconnect from slave memory.

b

Stop slave (STOP).

b

Run slave (RUN).

b

Unload program from slave (read contents of the memory).

b

Load program in slave (write memory).

The functions used to load and unload the memory can also be used to read and write the data memory in excess of the 16-bit addressing limit.

The memory load and unload commands are accessible at all times. Program commands must be organised within a session composed of:

b

Connection.

b

Commands.

b

Disconnection.

Note: Read and write commands cannot be mixed within a single session.

If the response is a "no acknowledgement" (exception response 7) the diagnostic associated with these functions is obtained with function 14 (see the following section).

Only one coupler at a time can access the slave’s memory and/or give orders to the slave’s central processing unit.

This mutual exclusion is respected by organising program commands in sessions:

b

Program commands themselves (stop, run, unload, load, etc.).

b

Memory disconnection.

Notes:

b

The data memory is always accessible regardless of the status of the coupler

(connected or not). Thus the principle of mutual exclusion is respected.

b

An automatic disconnection procedure (time out, etc.) on the slave should be provided in case the disconnection command does not arrive at its destination (line out of operation, character error, etc.).

70 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Diagnostic of program commands: Function 14

This command is used to indicate the diagnostic associated with exception response

7 (no acknowledgement) received when a program command is executed (function

13). It provides the diagnostic of the last program command executed.

Command not authorised for broadcast.

Syntax:

b

Query.

Slave no.

OE

1 byte b

Response.

1 byte

CRC 16

2 bytes

Slave no.

Function code

Frame length

Sub-function code Type of error CRC 16

00

01

02

03

08

09

10

1 byte 1 byte 1 byte 1 byte 1 byte 2 bytes

The sub-function code returned is the sub-function code of the last program command executed, with the most significant bit forced to 1 if an error was detected during execution.

Example: 82 for a run query (sub-function 2). The type of error is coded as follows:

04

Name Type of command that could cause this error

No error

Command unknown, not authorised or poorly executed (CPU dialogue error, for example).

Any command.

Invalid virtual address (exceeds maximum authorised address field).

Read or write in memory.

Read or write in memory.

Memory protected. The user is trying to read or write a memory that is already occupied by another coupler (mutual exclusion principle).

Read or write at addresses that do not physically exist (outside the address field of the slave under consideration).

Read or write in memory.

Invalid number of words.

Read or write in memory.

Command not authorised. Slave running. Write in memory.

Command not authorised. Slave not connected.

Run, stop, read or write.

Schneider Electric 71

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

If the slave number is 0, all slaves perform the write operation but do not return a response.

Write n consecutive bits: function 15

b

Query.

Slave no.

1 byte

OF

1 byte

Address of the 1st bit to force

No. of bits to force

No. of bytes Value of to force bits to force

2 bytes 2 bytes 1 byte n bytes

CRC 16

2 bytes

1st byte

1 X 1968

1 n 246 nth byte

Last bit of

1st byte

1st bit of

1st byte b

Response.

Last bit of nth byte

First bit of nth byte

Slave no.

1 byte

OF

1 byte

Address of the 1st bit forced

2 bytes

No. of bits forced

2 bytes

CRC 16

2 bytes

Example:

Force bits 200 and 201 of slave 3 to 1.

b

Query.

3 OF 200 0002 01 03

CRC 16 b

Response.

3 OF 200 0002

CRC 16

72 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

If the slave number is 0, all slaves perform the write operation but do not return a response.

Write n consecutive words: function 16

b

Query.

Slave no.

10

1 byte 1 byte

Address of the 1st word to force

No. of words to force

2 bytes 2 bytes

No. of bytes to force

1 byte

Value of words to force n bytes

CRC 16

2 bytes

1 X 123

1 N 246

1st word forced

MSB* LSB* MSB* LSB* b

Response.

Slave no.

10

Last word to force

LSB* MSB*

Address of the

1st word forced

No. of words forced CRC 16

1 byte 1 byte 2 bytes 2 bytes 2 octets

Example:

Force words 0800 to 0803 of slave no. 1.

(0800) = 0001

(0801) = 0010

(0802) = 0100

(0803) = 1000

b

Query.

01 10 0800 0004 08 0001 0010 0100 1000

CRC 16 b

Response.

01 10 0800 0004

CRC 16

Schneider Electric 73

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Returns the description of the type of controller at this address, the status of the

"run indicator" and information specific to each type of slave. Broadcast not supported.

Identification of a slave: function 17 (specific to PM 6xx/

CM2xxx).

b

Query.

Slave no.

11 CRC 16

1 byte b

Response.

1 byte 2 bytes

Slave no. 11 Number of bytes

Slave ID ON/OFF indicator

MSB of data

LSB of data

CRC

1 byte 1 byte

1 byte 1 byte 1 byte 1 byte

1 byte

2 bytes

Note: The number of bytes, slave ID and data available depend on the type of slave.

For the ON/OFF indicator: FF = ON & 00 = OFF.

Example: Read the data of a PM600 N°17:

b

Query.

01 11

1 octet b

Response.

1 octet

CRC 16

2 octets

01 11 04 64 FF

64 = specific to Powerlogic modules.

01 E1 = Powerlogic addresses.

01 E1 CRC 16

74 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Algorithm for generating CRC16

FFFF CRC 16

CRC 16 byte CRC 16 n = 0 shift CRC 16 right no carry yes

CRC 16 poly CRC 16 n = n + 1 no no n > 7 yes next byte message finished yes end

+ exclusive OR n = number of data bits

POLY = polynomial for generating CRC 16 = 1010 0000 0000 0001

(generating polynomial = 1 + x

2

+ x

15

+ x

16

)

In CRC 16, the LSB is transmitted first.

Schneider Electric 75

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

Example of CRC calculation: frame 020B = read event counter (function 11) of the slave at 02h.

1111 1111 1111 Initialisation of the CRC

+1st byte (02)

n = 0 n = 1 n = 2 n = 3 n = 4 n = 5 n = 6 n = 7

CRC = 1111

CRC =

Shift N°1

CRC =

+ polynomial

+ polynomial

Shift N°2

CRC =

Shift N°3

CRC =

Shift N°4

+ polynomial

Shift N°5

CRC =

Shift N°6

+ polynomial

Shift N°7

CRC =

Shift N°8

+ polynomial

0000

1111

0111

1010

1101

0110

1010

1100

0110

0011

1010

1001

0100

0010

1010

1000

0100

0010

1010 n > 7

C

CRC = + 2nd byte (

φ

B) n = 0 n = 1 n = 2 n = 3 n = 4 n = 5 n = 6 n = 7

+ polynomial

Shift N°1

CRC =

Shift N°2

CRC =

+ polynomial

Shift N°3

CRC =

Shift N°4

Shift N°5

+ polynomial

Shift N°6

CRC =

Shift N°7

Shift N°8

Final CRC

CRC = 1000

0000

1000

0100

1010

1110

0111

1010

1101

0110

0011

0001

1010

1011

0101

0010

0001

1

MSB

Thus the CRC for this frame is: 4117 hex.

MSB = Most Significant Bytes.

LSB = Least Significant Bytes.

0000

1111

1111

0000

1111

1111

0000

1111

1111

1111

0000

1111

1111

1111

0000

1111

0111

0011

0000

0011

0000

0011

1001

0000

1001

0100

0000

0100

0010

0001

0000

0000

0000

0000

1000

0100

4

LSB

0010

1101

1110_ 1

0001

111

1111_ 1

0001

1110

1110_ 0

1111_ 1

0001

1110

1111_ 0

1111_ 1

0001

1110

1111_ 0

1111_ 1

0001

1110

1011

0101

1010_ 1

0001

1011

1101_ 1

0001

1100

0110_ 0

0011_ 0

1001_ 1

0001

1000

0100_ 0

0010_ 0

0001_ 0

1

0001

0000

0001

0000

0000

0000

0000

0000

0000

1000

0

100

1010

0000

1010

1101

1110

0111

7

0000

1111

1111

0000

1111

1111

0000

1111

0111

0011

0000

0011

1001

0100

0000

0100

0010

0001

0000

76 Schneider Electric

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

+ 5V

OV

- 5V

Electrical interpretation of the CRC on a RS485 network:

v

In our example, the query from the master is:

02 0B 41 17 v

In this case, the response would be:

02 0B 00 00 counter contents

(00 00 in this A4 38 case)”.

CRC 16

0 1 0 0 0 0 0 1 0 1 0 1

1

1

0

1 0

0

0

1

LSB

D0 D1 D2 D3 D4 D5 D6 D7

1

4

Thus the signal is interpreted as: $ 41 17

(as expected).

MSB

D0 D1 D2 D3 D4 D5 D6 D7

7

1

Schneider Electric 77

Guide to Integration

Modbus / Jbus

The Modbus Protocol

(continued)

"Physical" example of a frame:

b

"Master" frames are transmitted by a specific software program.

b

"Slave" frames are transmitted by a module of the Digipact range.

b

2-wire cabling with load and polarisation is used for the RS485.

b

Measurements are made with an oscilloscope across terminals 8/9 (hot point on the probe) and terminals 4/5 (cold point) on the module’s 9-pin subD.

The Modbus function 11 "read event counter" is used. All modules have this function

(see description of functions).

b

Query.

02 0B 41 17 b

Response.

02 0B 00 00 counter contents

(00 00 in this A4 38 case)”.

b

Note: since transmission speed is 19200 baud:

v

1 bit = 52

µ

s,

v

1 byte (1start + 8bits + 1stop) = 520

µ

s,

v

thus the theoretical length of the response = 4.16 ms (4.14 ms measured).

b

Form of the signal measured (start of frame):

+ 5V

OV

- 5V

2.86 ms

Picks up ine

1st byte

D0 D1 D2 D3 D4 D5 D6 D7

=

0 1 0 0 0 0 0 0 0 1 0 1

1

0

1

0 0

0

0

1

0 0

2 0

2nd byte

D0 D1 D2 D3 D4 D5 D6 D7

B

0

Thus we have the address of the slave (02 hex) and the function code (0B hex).

78 Schneider Electric

Guide to Integration

Modbus / Jbus

Schneider Specifications

Overview

Minimum configuration required: b

Functions on bits (read/write): 1 and 2; 5 and 15 or/and functions on words (read/write): 3 and 4; 6 and 16.

b

Diagnostic functions: 8 (sub-codes 10 to 18), 11.

In addition, all devices must accept broadcast frames for write functions.

.

The transmission format must include the following data: b

1 start bit.

b

8 data bits.

b

1 stop bit.

b

No parity.

The transmission speed must integrate 9600 bds.

Choice of a physical interface (RS232C, RS422A, RS485, 20 mA CL) depends on the environment and on the performance levels required.

For the physical interface, use a RS485 connector with a 4-wire topology. (This is the only standard defined for multi-point use.)

The equipment must also manage a 2-wire topology.

Principles to follow: b

Respect the frame format.

b

Respect function numbers.

b

Respect limits given by the protocol: b

Read 2000 bits or 125 words maximum, b

Write 1968 bits or 123 words maximum.

b

Use slave numbers that can be set with parameters.

b

Detect ends of frames with a 3-character silence.

b

Increment diagnostic counters in strict accordance with specifications.

b

React properly to unexpected events: b

Upon reception of an invalid master frame with correct CRC 16 (Cyclical

Redundancy Check) and slave number, return an exception message.

b

No response to a frame with a CRC 16 error.

b

Reject frames that are incomplete or too long.

Schneider Electric 79

Guide to Integration

Modbus / Jbus

Schneider Specifications

(continued) b

The time between two characters in a frame must always be less than three characters (1 character = start bit, data bits, parity and stop bits).

b

The time between two frames (master or slave) must always be greater than or equal to three characters.

b

If the device is programmed with parity, verify the parity of all bytes in a frame received.

b

If the device is programmed with no parity, refuse frames that have bytes with parity.

b

The following controls should be performed on a master or slave frame:

v

CRC 16 correct,

- correct slave number;

- correct function code and sub-codes (if any),

- correct field length (limits authorised by the protocol),

- actual length correct (length field = number of bytes received),

v

a master should:

- signal errors (error message, screen, LED, etc.) from slave responses,

- always be able to communicate after an incorrect response from a slave,

- refuse a slave response than arrives during transmission of a master frame (full duplex not authorised by Jbus),

- verify that the structure of a frame transmitted conforms to the protocol (number of variables, number of bytes £ 255, etc.).

Notes:

b

A character error indicates an error in the format (framing), framing, parity or overrun.

b

An incorrect frame length is detected by verifying the "number of data" field (if any), the "number of bytes" field (if any) and the actual length of the frame.

b

For a frame longer than 255 bytes, the slave must wait for the end of the frame

(detection of a 3-character silence). The frame is not processed and counter 2

(frame with CRC error) is incremented only once.

b

There is now a new diagnostic counter 6 for function 13 (program download). The old counter 6 "PLC not ready" is now counter 7. The new counter 6 is incremented each time a "no acknowledgement" exception response is transmitted (including broadcast). In remote download mode all exception codes (1, 2, 3, 4, 8 and 9) are replaced by the "no acknowledgement" code (7). This is the case whenever function code 13 has been recognised (see the <function code unknown> -- no algorithm).

Function 14 can be used to obtain more detailed information on errors.

80 Schneider Electric

Guide to Integration

Modbus / Jbus

Schneider Specifications

(continued)

Counter management algorithm

3

CTP2 = CTP2 + 1

Idle

Reception

Reception

255 characters max.

CTP8 = CTP8 + 1

Character error

3-character silence

YES

Error in at least

1 character in the frame

YES

NO

Length

< 3 bytes

NO

YES

Incorrect CRC

NO

CTP1 = CTP1 + 1

YES

Slave number 0

CTP5 = CTP5 + 2

YES

1

NO

Slave number

=

Slave number of the station

CTP4 = CTP4 + 1

NO

YES

Unknown function code

NO

YES

Incorrect length

NO

Exception n

°

1

CTP3 = CTP3 + 1

YES

Incorrect address

NO

Exception n

°

3

CTP3 = CTP3 + 1

YES

Exception n

°

2

CTP3 = CTP3 + 1

Exception n

°

3

CTP3 = CTP3 + 1

Incorrect data

NO

2

Schneider Electric 81

Guide to Integration

Modbus / Jbus

Schneider Specifications

(continued)

Counter management algorithm (continued)

1

3

YES

Unknown function code

NO

YES

Function code not authorised for broadcasting

NO

YES Incorrect length

NO

YES Incorrect address

NO

YES

Incorrect data

NO

CTP3 = CTP3 + 1

2

2

3

Application processing

YES

Processing error

NO

CTP3 = CTP3 + 1

YES

Function 8 reset counters to zero or function 11

NO

CTP9 = CTP9 + 1

YES

Broadcast

NO

Exception no. 2, 3, 4, 8 or 9

YES

Broadcast

NO

Response

82 Schneider Electric

Guide to Integration

Modbus / Jbus

Schneider Specifications

(continued)

Note: New Schneider EMC

recommendations (equipotential grids) indicate that shielding should be grounded at both ends. The means used to connect to ground should limit leakage inductance.

Connection

4-wire slave without polarisation or adaptation

Use a subD 9-pin female connector for connection.

0 V

0 V

5 V

R p

R p

R c

1

2

6

7

3

RD + (A')

RD - (B')

TD + (A')

TD - (B')

4

5

8

9

1

2

3

6

7

4

5

8

9

RD + (A')

RD - (B')

TD + (A')

TD - (B')

Device

Male connector

Rp = 470

Rc = 150

Slave without polarisation or adaptation configured for a 2-wire topology.

0 V

0 V

5 V

1

R p

R p

R c

2

3

RD + (A')

RD - (B')

TD + (A')

TD - (B')

4

5

6

7

8

9

1

2

3

6

7

4

5

8

9 L + (A/A')

L - (B/B')

Device

Male connector

Schneider Electric 83

Schneider Specifications

(continued)

See PCR implementation document.

Components available

See reference document: b

In French: PCRED 399074FR, art 28992.

b

In English: PCRED 3990774EN, art 28993.

Internet link: http://139.160.28.99/sitemt/sep1000.nsf.

84 Schneider Electric

Summary

RS232C:

b

Limit length to 15 m.

b

Take into account the specific requirements of each interface and software program with regards to management of control lines (RTS/CTS) when connecting the line.

RS232/RS485 interface:

b

Use converters recommended by Schneider Electric whenever possible; they have been tested and validated for proper operation regardless of the configuration of the installation.

RS485 link:

b

Choose a 2-wire connection over a 4-wire link whenever possible.

b

Use shielded twisted pairs with a characteristic impedance of 120 W.

b

Link earths carefully.

b

Make sure there are load resistors (120 W) on each side of the communication line, as well as polarisation resistors, preferably on the "Master" side.

b

Limit slaves to 32.

Modules:

b

Each module has its own address. Make sure communication speeds and formats used (data, parities, stop) are the same.

Modbus protocol:

b

Do not mix Modbus ASCII and Modbus RTU products.

b

Verify conformity between functions implemented in the modules connected and functions used by the supervisor.

b

Respect the various time constraints in the protocol.

Schneider Electric 85

86

Specific Characteristics of

Products

Product Functions supported

Time stamping

DC 150 1, 2, 3, 4, 5, 6,

8, 11, 15, 16.

Yes

PM 300 1, 2, 3, 4, 5, 6,

8, 11, 15, 16.

No

ET 44 1, 2, 3, 4, 5, 8,

11.

No

XLI/XTU

300

1, 2, 3, 4, 5, 6,

7, 8, 11, 15,

16.

Yes

Digibloc

D200

1, 2, 3, 4, 5, 8,

11.

Yes

Micrologic 3, 4, 6, 8, 11,

16, 17.

Yes

SEPAM

1000+

1, 2, 3, 4, 5, 6,

7, 8, 11, 15,

16.

Yes

SEPAM

2000

1, 2, 3, 4, 5, 6,

7, 8, 11, 15,

16.

Yes

CM 2XXX 3, 4, 6, 8, 11,

16, 17.

Yes

CM 4000 3, 4, 6, 8, 11,

16, 17.

Yes

PM 600/

650

3, 4, 6, 8, 11,

16, 17.

Yes

Frame format / speed

8 data bits, no parity, 1 stop bit. 9600 &

19200 baud

8 data bits, no parity, 1 stop bit. 9600 &

19200 baud

8 data bits, no parity, 1 stop bit. 9600 baud

8 data bits, no parity, 1 stop bit. 300 to

19200 baud

7/8 data bits, with or without parity, 1 / 2 stop bit. 1200 to

9600 baud

8 data bits, no parity or even/ odd parity, 1 stop bit. 4800 to

19200 baud

8 data bits, no parity or even/ odd parity, 1 stop bit. 4800 to

38400 baud

Connection Electrical

SubD 9-pin female

Phoenix 5-pin male/female with screw

SubD 9-pin female

SubD 9-pin female

SubD 9-pin female

6-pin terminal or kit (cable +

SubD 9-pin female)

4-pin terminal with screw

(with specific interface)

interface

RS485 – 2 or 4 wires, with load and polarisation possible

RS485 – 2 or 4 wires + 115V/

500V AC power supply with load possible

RS485 – 2 or 4 wires, without load or polarisation

RS485 – 2 or 4 wires, load and polarisation possible

RS485 – 2 or 4 wires, load possible +

RS422 and

RS232

RS485 – 2 or 4 wires + 24V DC power supply without load or polarisation

RS485 – 2 wires + 12V DC power supply, load and polarisation possible (with specific interface)

RS485 – 2 or 4 wires, load and polarisation possible

8 data bits, no parity or even/ odd parity, 1 stop bit. 300 to

38400 baud

8 data bits, no parity, 1 stop bit. 1200 to

19200 baud

8 data bits, no parity or even parity, 1 stop bit. 1200 to

38400 baud

8 data bits, no parity, 1 stop bit. 1200 to

19200 baud

SubD 9-pin female

5-pin terminal with screw

Phœnix 5 - pin with screw

RS485 - 2 or 4 wires, without load or polarisation

RS232

5-pin terminal with screw

RS485 only 4 wires, without load or polarisation

RS485- 2 or 4 wires, without load or polarisation

Schneider Electric

Implementation in Products

Diagnostic tools

List of diagnostic tests

89

89

Schneider Electric 87

88 Schneider Electric

Implementation in Products

Diagnostic tools

List of diagnostic tests

Control:

b

Are the frames received/sent compatible with the functions supported by the control system / products?

b

Is the frame format the same for all the products connected?

b

Is the maximum number of slaves respected?

b

Does each product have a single and correct address?

b etc.

Serial link (RS232):

b

Does the software manage the control signals (RTS/CTS)?

b

Is the link "crossed" (2 and 3 on RS232)?

b

Is the communication speed compatible?

b

Are there parameters to be set for the interface (speed, frame format, DTE/DCE, etc.)?

b

Are the Rx and/or Tx LEDs on the interface blinking?

b etc.

Asynchronous link (RS485):

b

Is the 2 wire / 4 wire configuration taken into account correctly?

b

Are the L+ and L- connections inverted?

b

Is the line polarised at the interface (or elsewhere, but not at 2 points)?

b

Does the line have polarisation resistance at both ends?

b

Is maximum network length respected (with EMC taken into account)?

b etc.

Products connected:

b

Are the frames received/sent compatible with the functions supported by products and/or by the control system?

b

Is the correct format used (number of data bits, stop, parity bits, etc.).

b

Are parameters set correctly (speed, address, 2 wires / 4 wires, etc.)?

b etc.

Note:

b

Connect modules one by one in order to identify any "problem" modules.

b

Use communication LEDs as an initial indicator.

b etc.

Schneider Electric 89

Bibliography

b

UTE – C 15-900: "Mise en œuvre et cohabitation des réseaux de puissance et des réseaux de communication dans les installations des locaux d'habitation, du tertiaire et analogues".

b

IEC 439.1 : Low-voltage switchgear and controlgear assemblies.

b

Schneider Electric CT publication no. 149: "EMC: electromagnetic compatibility".

b

Schneider Electric CT publication no. 187: Cohabitation of high and low currents".

b

Documentation concerning installation of the PCR surge arrester.

90 Schneider Electric

Schneider Electric

Index

Numerics

20mA current loop

41

A

A/D

52

Address

61

ASCII

56

Attenuation

22

B

Baud

40

Bits per second

40

Broadcast

59

C

Caller

52

Capacitance

22

Characteristic impedance

21

Common-mode currents

12

Common-mode voltages

19

Communications network

40

Conduction

30

Control word

62

CPU

52

D

D/A

52

Data Communication Equipment

43

Data compression

54

Data Terminal Equipment

43

Diaphonie

22

G

Ground

13

E

Earthing network

10

Electrical continuity

25

EMC

9

EMC (ElectroMagnetic Compatibility)

9

Equipotentiality

31

Error correction

54

Error rate

34

F

Faraday cage

28

Flow control

46

,

54

Frames

58

I

Interference reduction systems

33

ISDN

52

Island

16

J

Jbus protocol

56

L

Local Area Networks

4

91

92

Index

(continued)

M

Master

58

Maximum theoretical length for electromagnetic compatibility

32

Modbus protocol

56

Modbus+ protocol

56

Modem

51

O

One-end connection

24

P

PABX

52

Parallel communication

43

Person called

52

Protection

11

,

25

,

29

Protocol

40

Q

Query from the master

59

R

Resistance per unit length

22

Response from the slave

59

RPC

33

RS232 link

41

RS422 link

41

RS485 link

41

RTU

56

S

Segment length

32

Serial communication

43

Shielding

20

Slave

58

Speed of the COM port

53

Speed of the modem

53

System

40

T

Temperature of use

22

The potential reference

30

Topology

40

Transmission modes

40

Transmission speed

22

Two-end connection

24

V

Valence

40

Schneider Electric

Schneider Electric SA

Merlin Gerin

F-38050 Grenoble cedex 9 tel. +33 (0)4 76 57 60 60 telex : merge 320 842 F

As standards, specifications and designs develop from time to time, always ask for confirmation of the information given in this publication.

Ce produit doit être installé, raccordé et utilisé en respectant les normes et/ou les réglements d'installation en vigueur.

Published by : Communication BTT-S2E

Création, réalisation : SONOVISION-ITEP Eybens

DBTP 542 en

This document has been printed on ecological paper.

12/00

Was this manual useful for you? Yes No
Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project