Beruflich Dokumente
Kultur Dokumente
Implementation Classes
Operating Principles
Duration : 40 min.
TOLED
OPERATING PRINCIPLES
Implementation Classes
Operating Principles
TOLED
Not used
TRANSPORT NETWORK
LINK
PHYSICAL
Master-Slave Transmission mode: RTU or ASCII RS485 two or four wire RS232
TOLED
TOLED
Address
Function Code
Data
CRC or LRC
Validity check
Unicast
Broadcast
TOLED
Adr 1
Adr 2
Adr 3
Adr 4
Adr 5
Adr n
Response
5
Funct. Code Response data CRC
TOLED
Adr 1
Adr 2
Adr 3
Adr 4
Adr 5
Adr n
TOLED
Master
Await timeout
Process response
Next request
Slave 1
RESPONSE
Slave n
Next request
Media
Slave 1 REQUEST
RESPONSE
TOLED
Master
Await timeout
Process response
Next request
Slave 1
Slave n
Process response
Media
Broadcast REQUEST
Next request
TOLED
Master
Slave 1 REQUEST
Await timeout
Slave 1 Slave n
Error detected
No response
Media
Slave 1 REQUEST
TOLED
Implementation Classes
Operating Principles
TOLED
Optional
TOLED
0xB
0 1 1
TOLED
Start 1 Bit 0 7 Bit 0 6 Bit 1 5 Bit 0 4 Bit 1 3 Bit 0 2 Bit 1 1 Bit 1 0 Parity 1 1 0 Stop
1 stop bit
No parity check
Encoding example: Read Device Identification = 43 = 0x2B
0x2B comprises 4 bits at 1 8 bits de donne
Start 1 Bit 07 Bit 06 Bit 15 Bit 04 Bit 13 Bit 02 Bit 11 Bit 10 Stop 1 Stop 1
2 stop bits
TOLED
Data
CRC
1 byte
1 byte
0 to 252 bytes
2 bytes
Time constraints
Frame OK
<= 1.5 chars. >= 3.5 chars.
Frame OK
Frame NOK
TOLED
TOLED
Start 1 Bit 0 6 Bit 1 5 Bit 1 4 Bit 0 3 Bit 0 2 Bit 1 1 Bit 0 0 Parity 1 0 1 Stop
1 stop bit
No parity check
Example: encoding character "2" in ASCII = 0x32
0x32 comprises 3 bits at 1 7 bits de donne
Start 1 Bit 0 6 Bit 1 5 Bit 1 4 Bit 0 3 Bit 0 2 Bit 1 1 Bit 0 0 Stop 1 Stop 1
2 stop bits
TOLED
Data
LRC
CR + LF 2 chars.
2 chars. 2 chars.
0 to 2 x 252 characters
2 chars.
Time constraints
Frame OK
<= 1 to 5 sec.
Frame OK
Frame NOK
>= 1 to 5 sec.
TOLED
Parity check
Character level
Frame check
Message level
TOLED
Slave
Error detection
Does not process the request Error detection Resend or Send error to application
RESPONSE
TOLED
Implementation Classes
Operating Principles
TOLED
Optional
Optional
9600 bps and 19200 bps required with 19.2 Kbps by default
Other speeds: 1200, 2400, 4800, 38400, 56 Kbps, 115 Kbps optional
TOLED
T R 5V 650 ohms
Balanced pair
120 ohms 1 nF
Common
650 ohms
120 ohms 1 nF
PG
T R T R
Slave 1
Slave n
Max. number of devices: 32 including master without a repeater Max. length: Main segment: 1,000 meters at 19,200 bits/s Drops: 40 meters in total
TOLED
5V 650 ohms
Master pair
120 ohms 1 nF
Common PG
Max. number of devices: 32 including master without a repeater
120 ohms 1 nF
Slave 1
Slave n
Max. length: Main segment: 1,000 meters at 19,200 bits/s Drops: 40 meters in total
Modbus on serial line - January 2006
TOLED
TOLED
The total length of the new two wire bus must be less than 1,000 meters
5V 650 ohms
Line terminator
Common
Adapting the installation
T R T R
120 ohms 1 nF
1 2 3 4
Disconnect the line terminators at one end Delete one pair of polarising resistors Loop back the two pairs at one end Connect the device using two wires
Slave 1
Slave n
TOLED
Balanced pair
120 ohms 1 nF
Common
650 ohms
120 ohms 1 nF
1 2
Loop back transmission to device reception Connect the device to the two wire installation
Slave 1
Slave n
TOLED
IMPLEMENTATION CLASSES
Implementation Classes
Operating Principles
TOLED
Basic
Regular
Extended
TOLED
A - no Web
Communication services
B to D
00
01 05
Modbus Regular
10 20
30
TOLED
Basic
Basic
Class A05
Messaging class: Data link class: Device management class: Regular Regular Basic
Basic + access to bits and diagnostics Configurable Level 1 identification
TOLED
Address: 1 to X with X<= 247 Speed: 9600 bps Parity: odd Transmission mode: RTU Broadcast: supported if slave
Regular
Basic + Address: support for address 248* Speed: 9600 and 19200 required Parity: odd and even required
TOLED