Download Functional Description Manual

Transcript
ECODRIVE03 SGP-01VRS
Supplement A: Serial Communications
1-7
Telegram Head Structure
Byte
name
Definition of the individual telegram bytes
1
StZ
Start symbol: STX (0x02)
2
CS
This is the checksum byte. It is generated by adding all subsequential telegram symbols as well
as the start symbol StZ and concluding negation. In other words, the sum of all telgram symbols
always equals 0 if the transmission was successful.
3
DatL
The length of the subsequential user data and the variable part are in the frame protocol. Up to
at least 247 bytes (255 - 7 {subaddresses} - 1 {running telegram number}) user data can be
transmitted in one telegram.
4
DatLW
The repetition of DatL takes place here. The telegram length is generated from the DatLW and
the fixed part of the frame protocol (byte 1 - 8), i.e., telegram length = DatLW + 8.
5
Cntrl
Bit 0 - 2:
Bit 3:
Bit 4:
Bit 5 - 7:
6
Service
This specifies the service that the sender is requesting of the receiver or which the receiver is
conducting.
Number of subaddresses in the address block (0 - 7),
’running telegram number’ : 0 => not supported, 1 => additional byte
0 => command telegram, 1 => reaction telegram
Status data for the reaction telegram:
000 no error, request was processed
001 transmission request being processed
010 transmission cannot presently be processed
100 warning
110 error
0x00 ... 0x0F
0x00
0x01
0x02
0x03
0x0F
0x10 ... 0x7F
0x80 ... 0x8F
0x90 ... 0x9F
0xA0 ... 0xAF
0xB0 ... 0xBF
0xC0 ... 0xCF
0xD0 ... 0xDF
0xE0 ... 0xFF
general services
participant ID
terminate a data transmission
Flash operation
Initialization of SIS communication
Token Passing
presently reserved
special services for ECODRIVE
special services for SYNAX
special services for MT-CNC or MTC200
special services for ISP200
special services for CLC-GPS
special services for HMI system
presently reserved
7
AdrS
Address of the sender: station number (0 - 127)
8
AdrE
Adress of the receiver:
AdrE = 0 - 127
==> specifies a single station,
AdrE = 128 - 254 ==> addresses logical groups,
AdrE = 255
==> fixes a broadcast
Telegrams with AdrE = 128 - 255 are not answered with a reaction telegram.
9
AdrES1
Subaddress 1 of the receiver, if for Bit 0 - 2 if for byte control it applies that: > 000
10
AdrES2
Subaddress 2 of the receiver, if for Bit 0 - 2 if for byte control it applies that: > 001
11
AdrES3
Subaddress 3 of the receiver, if for Bit 0 - 2 if for byte control it applies that: > 010
12
AdrES4
Subaddress 4 of the receiver, if for Bit 0 - 2 if for byte control it applies that: > 011
13
AdrES5
Subaddress 5 of the receiver, if for Bit 0 - 2 if for byte control it applies that: > 100
14
AdrES6
Subaddress 6 of the receiver, if for Bit 0 - 2 if for byte control it applies that: > 101
15
AdrES7
Subaddress 7 of the receiver, if for Bit 0 - 2 if for byte control it applies that: > 110
16
PaketN
running telegram number (package number), if bit 3 in byte cntrl has been set
Fig. 1-7: SIS-Telgram head
DOK-ECODR3-SGP-01VRS**-FKB1-EN-P