Академический Документы
Профессиональный Документы
Культура Документы
Contents ................................................................................. 2
The number of bus nodes is physically restricted to a rna,(1111um of 32 {indudif'l!� the master). The RS485
coupling is implemented in the form of a two-wire bUJs wittl the followifl!� pin assigmnerits:
The DTC6200 supports twenty-six different transmission rates. of which one is definecj using the pa rametering
software.
Possible DTC6200 transmission rates in Baud:
1. 125000
2. 62500
3. 41667
4. 31250
5. 20833
6. 15625
7. 10417
8. 9600
9. 7800
10. 5208
11. 4800
12. 3906
13. 2604
14. 2400
15. 1953
16. 1302
17. 1200
18. 977
19. 651
20. 600
21. 488
22. 326
23. 300
24. 244
25. 150
26. 75
Bear in mind the following when programming tlhe smial interface in the process control system:
• the following are transmitted for transmission of one byte: 1 s tart bit, 8 data bits and ·1 stop bit
• even, odd or no parity can be set (the setting must be the same as on the DTC6200)
• the DTC6200's Baud rate (default setting: 9600 Baud) is needed
Data interchange
In automation systems, data is frequently interchanged
• between process computers or
• between one process computer and a higher-level rimaster")system
The DTC6200 process computer is able to implement data interchange with the following c:1utornc1tion dev·,ces:
• Simatic-SS-U (11SU, 135U, 1SOU, 155U) incorporating the CP 524 communications processor and the RS
485 module (Procedure 3964R and Interpreter RK512)
• communications modules and assemblies compatible with the c:1bove-mentioned Siemens systems ar;d
incorporating the .�ame procedure
In Procedure 3964R for computer linking, one start bit, eight information
bits(= character length), one stop bit and the parity bit with a suffix or
verification for even parity are fixed.
Transmission
If link set-up is successful!, the payload information character now
contained in the current o utput buffer memory (telegram head and data)
will be transmitted to the ireceivlng device at the selected \ransmiss•on
rate. The receiver device monitors the characters arriving ·111 the,ir
chronological intervals (character delay ZVZ = 220 ms).
Telegram head
The telegram head is ten characters long and contains the following data:
• the ADDRESS (DESTINATION), to which the data is to be delivered
and/or
the source from which the data is to be taken,
• the amount of the data to be transmitted,
• a statement of the coordination flag.
Data
Transmission of the telegrram head is followed by transmission of the
· ·· data. The DTC6200 is res.trictecl to an amount of 128 byte.
Link termination
The link termination informs the active device that the activity of the
recipient device has termiinated. After sucoessful transmission of the
content of the buffer, the procedure adds the characters OLE, ETX (End
of Text) and BCC (Block Check Character) as ;an end marker and waits to
receive an acknowledgment character. The receiving device transmittil'l!�
the DLE character within tthe acknowledgment delay indicates that the
data block has been transmitted without error. If the receiving devioe
answers with NAK, any otlher d1aracter (except for DLE), a defe1ctive
character or if the acknowledgment delay expires without a reaction being
received, the procedure repeats the transmission of the data block. After
a total of six unsuccessful attempts at transm�tting the data block, the
procedure terminates the process and signalizes an error ·rn the link set
up.
Control characters
The control characters STX, etc., conform to the DIN 66 033 sltandard (7
bit code) but are transmitted with an 8 bit character length (bit 7 = 0).
Job type
Two job types are available for communication usirng the DTC6200. These are, for fetching of data
from the DCT6200, the FETCH job, i.e., the device linked to the DTC6200 fetches data from the
DTC6200 on its own initiative. The SEND job is available for the transmission of data 'to the
DTC6200 from the linked device on its own initiative.
Die CAN bus link is implemented in the form of a two-w·ire bus with the following pin a5.signrnents:
The DTC6200 supports all the bit rates possible using the CAN POB2C200 controller up to a max·1mum of 1
Mbit/s.
The bit rate parameters, CAN ID and acceptance code/mask are preset using the OTC pararnetming program
on the DTC6200.
It should be noted at this point that line resistances and dosecl conductors are usod to minimize reflection ·,n the
case of large bus lengths and/or high transmission rates.
This is of great significance for a high payload data rate and safe transmission.
Attention is drawn to the corresponding data sheets for the Philips CAN PC82C200 contr1oller and the
Philips PC82C250 line driver for a precise description o,f title CAN parameters and the physical bus
characteristics.
The default settings on the DTC6200 are:
BPR 7
TSEC1 11
TSEC2 2 -+ 62500 Baud
SJW 1
SAM 0
AC 0
AM 255
ldenlt-Nr -------
374186'15 page 8
Communications
Data interchange between the host or master comput,er a1nd the DTC6200 ·,s, based on the package-oriented
CAN bus log (protocol), implemented in a certain series of CAN packages.
This occurs as follows, in a master-slave concept:
Using the standard OTC software, a DTC6200 can lbe opmated only as ttle CAN bus slave. The rnaster is
implemented by means of a master computer.
Special test software makes it possible to also operate a DTC6:200 as the master, however.
Communication between a DTC6200 slave and the master is accomplished by means of a requesUresponse
message, the master always transmitting a reqlles:t message and then rec:e·1ving a re�;ponse message from
the slave addressed, provided this is present.
All messages start with a CAN-RTR package (see CAN bllJs literature), followed by one or several CAN data
packages with a data-byte length of eight payload data bytes. Tile message ciondudes with a data package of a
length less than eight payload data bytes (or even no payload data byte).
RTR-P'ACKAGE
0-N data pack.ages with a length of 8
payload data bytes
Closed by a data package with a length .
smaller than 8 payload data bytes
The number of payloa<1 data packages is determined by the total number of payload cfata bytes \o be
transmitted in the message.
Messages wrth the slave address Oare broadcast messages which are received by all sl,:ives and which are n
followed by a response message to the master.
The master can either read data fields from the DTC6200 or write into the DTC6200.
If the master system wishes to read a DTC6200 da'ta field, it firstty transmits a request message with the
command code READ the number of the clata field c:md, in case of "write", the data cofltent
If the pa,ckage is not a broadcast package, the slave addressed replies within a time-o:ut fnne ,of five secoods
with a response message, which will contain an error code (O=no error) ano, where appropriate, lthe data
requested by the master.
SLAVE ADDRESS
FUNCTION CODE
DATA INDEX
Always O
DATA (only for write)
The fields for the request message have the followii1ng mei:m·rngs:
SLAVE ADDRESS:
Address of the slave, 0 => all slaves ("broadcast")
DATA INDEX:
Number of the data field to be addressed in the slave (data field No.: see the "Data fields" section)
DATA:
Data bytes for a write command (max. 128 bytes). Tine number of data bytes must be identical to the size of thi
target data field selected in the slave !
This field is empty in the case of the READ command.
HI-BYTE CRC:
Higher-value byte of the 16 bit CRC.
LO-BYTE CRC:
Lower-value byte of the 16 bit CRC.
FUNCTION CODE
Code for reading (data from slave to master) or writing (clata from master to slave)
The following function codes are supported by a DTC6200 siave:
SLAVE ADDRESS
FUNCTION CODE
DATA INDEX
ERROR
DATA (only for READ and ERROR 0) ..
SLAVE ADDRESS:
Address of the slave to be transmitted (cannot be 0, since 1110 broadcast replies occur)
FUNCTION CODE:
Fu nction code of the request previously received
DATA INDEX:
Number of the data field in ttle slave requestied by the maste r (data field No.: see the "Data fiek:ls" sedtion)
ERROR:
<>O => Error in the rn�uest. Error codes: see below
DATA:
Data following read c:ornmmld and ERROR= O (max. 128 bytes)
Error codes
The f ollowing error codes may occur in a respon:se message:
:RESPONSE Erro:r:
OOh INo erl.:or
Olh Illegal C��·-Code (see above)
02h Illegal data f:ield
03h IWri·te no·t p,oss:i.ble (I)TC62 00 no t in REMOTE mode)
04h Illegal acoess (READ only or WRITE only)
OSh IRese:r:ved
06h !Number of paylo,ad data tra:nsmitted by the master
for a write command not identical with the size
of the data field se.lect.ed
Use the following connector to conned the DiC6200 with another MODBUS device
The maximum number nodes ·,n the bus is physically limited to 32 (incl. master)
The MODBUS-link is rearized by a 2-w1re-Bu s, the n!quired connections are:
The DTC6200 supports 26 Baud rates, the valid Baud rate has to be fixed in the configuration of the system a
may be selected by the req uirernents of the master
Su pported Baud rates are:
1. '125000
2. 62500
3. 41667
4. 31250
5. 20833
6. 15625
7. 10417
8. 9600
9. 7800
10. 5208
1'1. 4800
12. 3!906
13. 2604
14. 2400
15. 1B53
'16. 1302
17. 1200
18. g·n
19. 651
20. 600
2"'1. 488
22. 326
23. 300
24. 244
25. 150
26. 75
Communications
The DTC6200 is always handled as a MODBUS-Slav,e. The mas;terwm be the DCS.
The communication is real'rzed by request and answer. The master sends a request and gets an answer �mm
the slave, if the slave with the ID addressed by the rnaste� exists .and the slave received the request w"rt hout
errors (CRC OK).
Requests with slave address Oare broadcast-messages, received from all s\aves. The slaves won\ send an
answer to the master.
A safety check will be done by a 16-Bit CRC accoirding to MODBUS specification at the end of each data
transfer.
The mas\er can either mad data fields from the DTC6200 or write ·into the DTC6:200.
If the master system wishes to read a DTCB200 data field, it firstly transmits a request message with the
command code READ the number of the oata field and, in case of ·write", the data content.
If the package is not a broacica st package, the slave addressee! replies within a time-ou t rune of five seconds
with a response message, whiGh will conta·,n an enor ,code (O=no enror) and, where appropriate, the data
requested by the master.
After getting the first byte an end of data:transfer detection mode is activated. If a delay period corresp,ond'mg to
the sending time of 3.5 bytes is oetected, \tie end of a data transfer wil l be recognized.
SLAVE ADDRESS
FUNCTION CODE
DATA INDEX
error code, for request always "0"
DATA ( only WRITE-MODE)
HI-BYTE CRC
LO-BY'I'.E CRC
FUNCTION CODE:
reading code (data from slave to master) or writing cod6' (dat.a from master to :slave)
DATA:
Data bytes if the writing mode is selected (max. 128 bytes). The nrnnber of bytes must be idenrical t,o the
number of data bytes that are system defined for the· selectE.->d ID
This segment is spare in case of defining the reading mode.
HI-BYTE CRC:
high byte of the 16-Bit CRC.
LO-BYTE CRC:
low byte of the 16-Bit CRC.
SLAVE ADDRESS
FUNCTION CODE
DATA INDEX
ERROR
DATA (only for REJ� and ERROR;:::0)
HI-BYTE CRC
LO-BYTE CRC
SLAVE ADDRESS:
Add ress of the s lave to be transmitted (cannot be 0)
FUNCTION CODE:
Function Code of the request previously recerved.
DATA INDEX:
ID of the data requested from the master (DB Number see chapter "Data access to DTC6200 (in
detail)")
DATA:
Data bytes if ERROR was "O" and the re,ading mode was requested by \tie master (max. '128 bytes).
HI-BYTE CRC:
high byt�. of the 16-Bit CRC.
LO-BYTE CRC:
low byte of the 16-Bit CRC.
ERROR CODES:
RESPONSE ERROR
OOh no ERROR
Olh no valid COMMAND-Code tsee abm1e)
02h no data with this ID
03h cannot write (DTC6200 not in REl"!OTE-Mode)
04h access den ied (read-o:nly or wci te-only)
OSh reserved
06h number of data to write does not fit the system
requirements of the selected data field
lderl't-Nr ���������-
374'18615 page '\6
DTC6200 data fields (General description)
The DTC6200's various process data can be selected by the master system by means of data fields.
These data fields are numbered and can only be read or written co mpletely.
Immediately a read command arrives for a valid data field, it is copied into a buffer in Hie DTC6200 and data
transmission is performed from this buffer.
If a write command occurs, the data to be written is first tiransferred to a buffer of the DTC620D and transmittec
only following reception of the final byte to be writter. in the DTC6200's target data field.
The data within a data field is organized word-by-word (16 bit}, the higher-value byte of a word being located.
lower-value addresses (i.e., Motorola format).
The data located at lower-value addresses is transmitted first "ir1 a data transm·1ssion operation!
Floating-point numbers are shown in simplified accuracy l1evel ir. the 32 bit IEEE standard draft 754 - format.
Here, too, the highest-value byte is located at the lowest addrnss:
MSB
sign exponent mantissa
1 Bit 8 Bits 23 Bits
Conclusion:
The higher-value bytes of a word (16 bit), a long word (32 bit) or a floating-point number (32 bit IEEE)
are transmitted first.
6p = 15, 11 mbar
Data fields:
ldent-Nr 37410615
���������
page ·1a
DW62/63: AIN Channel 64
DW 5B/59 parameter 29