5.1 Request a record ............................................................ 38
5.2 Send a record ................................................................. 39
GOSSEN METRAWATT GMBH4
1 General
1.1 Interface hardware
To communicate with a host computer, an SPS, etc., the controllers R2600 / 01 must be equipped with marking F1. In this case, the controllers are
equipped with a serial interface having the following data:
• Level typesRS-232 and RS-485 (two-wire)
• Baud rate9600 bd
• Character format 8 data bits, 1 parity bit, 1 stop bit
• ParityEven
• Maximum number of equipment on the bus:32
• With RS-485 bus operation, each connected R2600/01 must
have a different interface address (Addr = 0 ... 250)
(see operating instructions 3-348-778-15).
1.2 Communications protocol
The transmission protocol used complies with DIN draft 19244. The R2600 / 01 uses only a partial amount of the defined functions which are
described below.
in the unit selectable
2
3
2
-
S
5
8
4
-
S
R
R
1.3 How to connect the interface
1.3.1 RS-232 connection
When using the a RS-232 interface, only one R2600/01 can be connected to a master (e.g. PC), for example, for pre-loading the unit with user-specific
data.
Depending upon the driver software, the jumpers on the master side can be omitted and/or can be different.
GOSSEN METRAWATT GMBH5
259
GOSSEN METRAWATT GMBH6
1.3.2 RS-485 connection
When using a RS-485 interface, as many as 32 equipment (R2600/01 and others) can be connected to the bus.
Thereby, all terminals A, B and/or C are interconnected in parallel. The wiring must be made from equipment to equipment and must not be a star connection. With longer bus lines (longer than about 5 m) the bus should be terminated at both ends with the characteristic impedance
(e.g. 200 Ω between A and B).
MasterR2600/01R2600/01
A2121
B2020
C1919
When using the 1799-V5040 interface converter on the master, the following pins are connected on the Sub-D plug:
A = 3B = 8C = 5
1.4 Principal function
Involved is a master/slave protocol with a fixedly assigned master (e.g. SPS) and as many as 255 slaves (equipment e.g. R2600/01).
Communication is in half-duplex mode.
An equipment connected to the master becomes active (responds) only, when
– it receives a valid telegram addressed to itself and
– the minimum specified response delay time (t
av) has elapsed so that the host computer has time to get ready to receive data.
Following, the master may only become active again, when
– it receives a reply telegram from the addressed equipment and the specified wait time after a reply telegram (t aw) has elapsed, or
– the maximum specified response delay time (t
av) has elapsed.
Within a telegram, pauses of limited duration (t zv = character delay time) may occur between 2 character transmissions.
1.5 Time action
Ready to send/receive after turn-ont ber approx. 5 s
Character delay time (R2600 transmitter)t
Character delay time (master)t
Response delay time (R2600 transmitter)10 ms <t
Wait time after R2600 response (master)t
zvs <3ms
zvm <500 ms
av < 100 ms
aw >10 ms
ber
t
approx. 5 s
Master
sends
t
av
10 ...
100 ms
Equipment
responds
tzvs
< 3 ms
taw
> 10 ms
Master
sends
t
zvm
< 500 ms
Time
GOSSEN METRAWATT GMBH7
GOSSEN METRAWATT GMBH8
2 Telegram structure
All telegrams consist of one of 3 sets in both request and reply direction, they differ in their principal structure.
Their use is fixed for each interface function of the R2600/01.
Structure and use of the set types are described as follows.
2.1 Short set
Short sets are used on the request side (from the master)
• for transmission of short instructions to the equipment (e.g. Reset)
• for short requests of important data from the equipment (e.g. event data)
Short sets are used on the reply side (from the R2600/01)
• for acknowledgement of requests that require no reply data.
Principal construction short set
Character No.ContentsMeaningRemarks
110hStart characterEspecially for short set
20 ... FAh, FFhEquipment addressAddr and/or 255 (see 2.4.1)
3Function field(FF)see 2.4.2
4Checksum(PS)= Equipment address + FFh
516hEnd characterCommon to all set types
2.2 Control set
The R2600/01 uses control sets on the request side only. They serve to request all equipment data that cannot be requested via a short set because a
detailed specification is required for them.
Principal construction control set
Character No. ContentsMeaningRemarks
168hStart character
23 and/or 6LengthNumber of characters from equipment address to checksum exclusive
33 and/or 6Length (repeat)
468hStart character (repeat)
50 ... FAh, FFhEquipment addressAddr and/or 255 (see 2.4.1)
6Function field(FF)see 2.4.2
7Parameter index(PI)see 2.4.3
81From channelFor reasons of compatibility with multi-channel controllers these charac91To channel
100Receipt number
8 and/or 11
Checksum(PS)
9 and/or 1216hEnd character
1) For the set types, the checksum is formed by bytewise summation without overflow summation over all characters from the equipment address to checksum exclusive.
GOSSEN METRAWATT GMBH9
ters must be available, omitted for parameter index 30h ... 3Fh.
1)
GOSSEN METRAWATT GMBH10
2.3 Long set
The R2600/01 uses long sets to transmit instructions and parameters to the equipment and to receive data from the equipment.
Principal construction long set
Character No. ContentsMeaningRemark
168hStart character
2LengthNumber of characters from equipment address to checksum
3Length (repeat)
468hStart character (repeat)
50 ... FAh, FFhEquipment addressAddr and/or 255 (see 2.4.1)
6Function field(FF)see 2.4.2.
7
81
9
10
Parameter index(PI)
From channel
1
0
To c h a nnel
Receipt number
1)
1)
1)
1)
. . .n character data blocksee 2.4.4.
Length + 5
Checksum(PS)
Length + 616hEnd character
1) Omitted for reply cycle data and event data.
2) For the set types, the checksum is formed by bytewise summation without overflow summation over all characters from the equipment address to checksum exclusive.
exclusive
see 2.4.3.
Omitted for parameter index 30h ... 3Fh
2)
2.4 Function and value range of the format characters
2.4.1 Equipment address
• 0 ... 250 Range for individual equipment addresses = interface address Addr
• 255All equipment connected to a bus can simultaneously be addressed under this address. Data and instructions entered with this address
are accepted by all equipment, but there is no acknowledgement made to the master.
2.4.2 Function field (FF)
The function field contains
• with the short set the proper user information, predefined by bits and different in request and response direction
• with the control and long set the direction and control information for the transmitted data block
2.4.2.1 Function coding of the function field in request direction
Request checkCodeSetRemark
Reset equipment09h
Interrogation: Equipment OK?29hShort set
Request cycle data from equipment89hThe R2600/01 evaluates the given codes only; an error acknowledgement is
Request event data from equipmentA9h
Send data to R2600/0169hLong set
Request data from R2600/0189h
GOSSEN METRAWATT GMBH11
issued for invalid ones
GOSSEN METRAWATT GMBH12
2.4.2.2 Function coding of the function field (FF) in response direction