Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 18 of 35

MICROMASTER 440 0.12 kW - 250 kW Operating Instructions: 3 Functions, pages 147 to 156

Pages 147 to 156 of 312, from MICROMASTER 440 0.12 kW - 250 kW Operating Instructions

The original document is the PDF (8.9 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Siemens 6SE6440-2UD13-7AA1

Page 147

Issue 10/06

3 Functions

Tcycle,master

T cycle,USS

Tcycle,slave(MM4)

Slave (MICROMASTER)

Master

Baud rate + interval time Telegram length Number of nodes (slave) NOTE

From the user’s perspective, the total cycle time between the master and slave is of significance. As shown in the diagram above, this time depends on several factors.

Fig. 3-37

Cycle times

Using the USS protocol, a user can establish a serial point-to-point data link and a serial bus data link between a higher-level master system and several slave systems. Master systems can be, for example, PLCs (e.g. SIMATIC S7-200) or PCs. MICROMASTER drive converters are always the slaves on the bus system. The USS protocol allows the user to implement both automation tasks with cyclical telegram traffic (→ a fixed telegram length is necessary) as well as visualization tasks. In this case, the protocol with variable telegram length is advantageous, as texts and parameter descriptions can be transferred in one telegram without chopping up the information.

MICROMASTER 440 Operating Instructions 6SE6400-5AW00-0BP0

147

Page 148

3 Functions

3.7.1.1

Issue 10/06

Protocol specification and bus structure The USS protocol has the following significant features: ¾ Supports ♦ a multi-point-capable link, e.g. EIA RS 485 hardware or ♦ a point-to-point link, e.g. EIA RS 232 ¾ Master-slave access technique ¾ Single-master system ¾ Maximum 32 nodes (max. 31 slaves) ¾ Operation with variable or fixed telegram length ¾ Simple, reliable telegram frames ¾ The same bus mode of operation as with the PROFIBUS (DIN 19245 Part 1) ¾ Data interface to the basic unit according to PROFILE variable-speed drives. This means that, when the USS is being used, information is transferred to the drive in the same way as with the PROFIBUS-DP. ¾ Can be used for start-up, service and automation ¾ PC-based service tools (e.g. STARTER and DriveMonitor) ¾ Can be easily implemented in customized systems

Protocol specification The USS protocol defines an access technique according to the master-slave principle for communications via a serial bus. The point-to-point link is included as a sub-quantity. One master and a maximum of 31 slaves can be connected to the bus. The individual slaves are selected by the master using an address character in the telegram. A slave can never transmit without first being initiated by the master so that direct information transfer between individual slaves is not possible. The master function cannot be transferred (single-master system). The following illustration shows a bus configuration using drive technology as an example.

Higher-level computer "Master"

Fig. 3-38

MICROMASTER

MICROMASTER

MICROMASTER

MICROMASTER

"Slave"

"Slave"

"Slave"

"Slave"

Serial linking of MICROMASTER (slaves) with a higher-level computer (master)

MICROMASTER 440

148

Operating Instructions 6SE6400-5AW00-0BP0

Page 149

Issue 10/06

3 Functions

The telegram has the following structure: ¾ Each telegram begins with the start character STX (= 02 hex), followed by the length information (LGE) and the address byte (ADR). The net characters then follow. The telegram is terminated by the BCC (Block Check Character). ¾ For single-word data (16 bit) in the net data block (= net character block), the high byte (first character) is always sent and then the low byte (second character). ¾ The same applies to double-word data: the high word is sent first followed by the low word. ¾ The necessary settings / parameter assignments must be made both at the master as well as at the slave and can no longer be changed in bus operation. ¾ The protocol does not identify tasks in the net characters. The contents of the net characters/data for the MICROMASTER drives is discussed in Section 3.7.1.2 "Structure of the net data". STX

LGE

ADR

1.

2.

n

BCC n net characters

Fig. 3-39

Telegram structure

Information is coded as follows: Abbreviation Significance

Size

Explanation

STX

Start of text

ASCII characters

02 hex

LGE

Telegram length

1 byte

Contains the telegram length

ADR

Address

1 byte

Contains the slave address and the telegram type (binary coded)

---

Net characters

Each one byte

Net data, contents are dependent on the request

BCC

Block check character 1 byte

MICROMASTER 440 Operating Instructions 6SE6400-5AW00-0BP0

Data security characters

149

Page 150

3 Functions

Issue 10/06

In the address byte, information other than the node number is coded: The individual bits in the address byte are assigned as follows: STX

LGE

ADR

1.

2.

n

BCC n net characters

Bit No.

7

6

5

4

3

2

1

0

Slave nodes No. 0 to 31 = 1: Broadcast, address bits (No. 0 to 4) are not evaluated = 0: No broadcast = 1: Mirror telegram = 0: No mirror telegram = 1: Special telegram (for an explanation, see below) = 0: Standard; bits 0 to 6 are valid and must be evaluated

Fig. 3-40

Assignment of the address byte (ADR)

The master ensures cyclical telegram data transfer. The master addresses all of the slave nodes one after the other with a task telegram. The addressed nodes respond with a reply telegram. In accordance with the master-slave procedure, the slave, after receiving the task telegram, must send the reply telegram to the master before the master can address the next slave node. The sequence of the addressed slave nodes can be specified, for example, by entering the node numbers (ADR) in a circulating list (polling list) in the master. If it is necessary to address several slaves in a faster cycle than the other slaves, their node number can occur several times in the circulating list. A point-to-point link can be implemented by means of the circulating list, in which case only one node is entered into the circulating list.

MICROMASTER 440

150

Operating Instructions 6SE6400-5AW00-0BP0

Page 151

Issue 10/06

3 Functions

Example of configuration

0

0

1

21

1

3 5 7

3

0 1 7

Master

1

5

21 Circulating list in the master

0

1

7

3

5

21

0

MICROMASTER with the addresses 0, 1, 3, 5, 7 and 21 Nodes 0 and 1 are signalled twice as often as others

Fig. 3-41

Circulating list (Example of configuration)

The length of a cycle time is determined by the time needed for the sequential occurrence of data exchange with the individual nodes.

Cycle time

0

0

1

1

0

0 t

Telegram run time for reply from node 1 Reply delay time from node 1 Telegram run time for task for node 1 Processing time in the master

Fig. 3-42

Cycle time

Due to inconstant reply delay and processing times, the cycle time is not fixed. The STX start character (= 02 hexadecimal) by itself is not sufficient for the slaves to clearly identify the start of a telegram because the bit combination 02/hexadecimal can also occur in the net characters. For this reason, a nocharacter start interval of at least 2 character run-times before the STX is specified for the master. The start interval is part of the task telegram.

MICROMASTER 440 Operating Instructions 6SE6400-5AW00-0BP0

151

Page 152

3 Functions

Issue 10/06

Table 3-15

Minimum start intervals for various baud rates Baud rate in bit/s

Start interval in ms

2400

9,20 ms

4800

4,60 ms

9600

2,30 ms

19200

1,15 ms

38400

0,57 ms

57600

0,38 ms

76800

0,29 ms

93750

0,24 ms

115200

0,19 ms

Only an STX with a preceding start interval identifies the valid start of a telegram. Data is always transferred in accordance with the diagram illustrated below (halfduplex mode): STX LGE ADR 1.

n

STX

BCC

Master transmits Start pause

BCC

Fig. 3-43

Slave transmits Reply delay time

Start pause

STX LGE ADR 1.

BCC

Transmit sequence

The time interval between the last character of the task telegram (BCC) and the start of the reply telegram (STX) is known as the reply delay time. The maximum permissible reply delay time is 20 ms, but it must not be less than the start interval. If node x does not respond within the maximum permissible reply delay time, an error message is deposited in the master. The master than sends the telegram for the next slave node.

Bus structure The data transfer medium and the physical bus interface are essentially determined by what the bus system is used for. The physical interface of the USS protocol is based on the "Recommended Standard RS-485". For point-to-point links, a sub-quantity of EIA RS-232 (CCITT V.24) or TTY (20 mA current loop) can be used as the physical interface. The USS bus is based on a linear topology without branches. Both ends of the line terminate at a node. The maximum cable length (50 m) and therefore the maximum distance between the master and the last slave is limited by the characteristics of the cable, the ambient conditions and the data transfer rate [EIA Standard RS-422A Dezember 1978, Appendix, Page 14] The number of nodes is limited to a maximum of 33 (1 master, 32 slaves).

MICROMASTER 440

152

Operating Instructions 6SE6400-5AW00-0BP0

Page 153

Issue 10/06

3 Functions

Master

Slave

Slave

Maximum 32 slaves

First node

Fig. 3-44

Slave

Last node

USS bus topology

The two ends of a bus line (first node and last node) must be terminated with bus terminating networks. (refer to Section 3.7.1.3). Point-to-point connections are handled just like bus connections. One node has the master function and the other has the slave function. Data is transferred in accordance with Standard EIA 485. RS 232 can be used for point-to-point links. Data transfer is always half-duplex − i.e. alternating between transmitting and receiving − and it must be controlled by the software. The halfduplex technique allows the same cables to be used for both data-transfer directions. This permits simple and inexpensive bus cabling, operation in environments subject to interference and a high data transfer rate. A shielded, twisted two-wire cable is used as the bus cable. Table 3-16

Structural data

Conductor diameter

2 x ≈ 0,5 mm2

Conductor

≥ 16 x ≤0,2 mm

Lay ratio

≥ 20 twists / m

Overall shield

Braided, tin-plated copper wire, diameter ∅ ≥ 1,1 mm2 85 % optical coverage

Overall diameter -∅

5 mm

External sheath

Depending on the requirements regarding flame retardation, deposits after burning etc.

NOTE ¾ All information should only be considered as a recommendation. ¾ Deviations or different measures may be required depending on the particular requirements, the specific application and the conditions on site.

MICROMASTER 440 Operating Instructions 6SE6400-5AW00-0BP0

153

Page 154

3 Functions

Issue 10/06

Table 3-17

Thermal and electrical characteristics

Cable resistance (20°C)

≤ 40 Ω/κµ

Insulation resistance (20°C)

≥ 200 MΩ/km

Operating voltage (20°C)

≥ 300 V

Test voltage (20°C)

≥ 1500 V

Temperature range

-40 °C ≤T ≥80 °C

Load capability

≥5A

Capacitance

≤ 120 pF/m

Mechanical characteristics ¾ Single bending:

≤ 5 x outer diameter

¾ Repeated bending:

≤ 20 x outer diameter

Recommendations ¾ Standard cable, without any special requirements: Two-core, flexible, shielded conductor in accordance with VDE 0812, with colored PVC sheath. PVC insulation resistant to oil, resistant to cold and petroleum products. Type: LiYCY 2 x 0,5 mm2 e.g. Fa. Metrofunk Kabel-Union GmbH, www.metrofunk.de Postfach 41 01 09, 12111 Berlin ¾ Halogen-free cable (no hydrochloric acid is generated when the cable burns): Halogen-free, highly flexible, resistant to extreme heat and cold. Sheath manufactured from a special ASS silicon-based composite. Type: ASS 1 x 2 x 0,5 mm2 e.g. Fa. Metrofunk Kabel-Union GmbH, www.metrofunk.de Postfach 41 01 09, 12111 Berlin ¾ Recommended if halogen-free and silicon-free cables are required: Type: BETAflam 145 C-flex. 2x0,5 mm2 e.g. Fa. Studer-Kabel-AG, http://www.studer-kabel.ch/ Herrenmattstrasse 20, CH 4658 Däniken The total cable length of the USS connection may not exceed 50 m (max. cable length). The max. data transfer rate depends on the number of connected nodes (devices) as well as on the closed-loop control technique / function selection (processor utilization). Nominal values can be taken from the following table: Table 3-18

Max. number of nodes (devices) depending on the max. data transfer rate

Max. data transfer rate

Max. number of nodes (devices) V/f control Closed-loop vector control

9.6 kbit/s

32

32

19.2 kbit/s

32

32

38.4 kbit/s

32

7

93.7 kbit/s

32

-

115.2 kbit/s

32

-

MICROMASTER 440

154

Operating Instructions 6SE6400-5AW00-0BP0

Page 155

Issue 10/06

3 Functions

NOTE If a higher baud rate or higher number of nodes is required, then the CB option boards (e.g. PROFIBUS, CAN) should be used to ensure disturbance-free operation.

3.7.1.2

The structure of net data Information which, for example, a SIMATIC S7 control unit (= master) sends to a drive (= slave) or the drive sends to the control unit is placed in the net-data area of each telegram.

General structure of the net-data block The net-data block is divided into two areas: ¾ the PKW (parameter ID value) range ¾ the PZD (process data) range The structure of the net data in the USS-protocol telegram is shown below. Protocol frame

STX

LGE

Net data Parameter Process data (PKW) (PZD)

ADR

PKW: Parameter ID value (parameter area)

Fig. 3-45

BCC

PZD: Process data (process-data area)

Telegram structure

¾ The PKW area relates to the handling of the parameter ID value (PKW) interface. The PKW interface is not a physical interface but a mechanism which handles parameter transfer between two communication partners (e.g. control unit and drive). This involves, for example, reading and writing parameter values and reading parameter descriptions and associated texts. All tasks which are performed via the PKW interface essentially involve operator control and visualization, service and diagnosis. ¾ The PZD area contains the signals required for the automation system: ♦ Control word(s) and setpoint(s) from the master to the slave ♦ Status word(s) and actual value(s) from the slave to the master. PKW area PKE

IND

PZD area PKW elements variable length

Fig. 3-46

PZD1

•••

PZD16 variable length

Structure of the PKW and PZD areas

The two areas together make up the net data block. This structure applies to telegrams from the master to the slave and vice versa.

MICROMASTER 440 Operating Instructions 6SE6400-5AW00-0BP0

155

Page 156

3 Functions

Issue 10/06

PKW area With the help of the PKW mechanism, the following tasks can be performed via any serial interface with the USS protocol: ¾ Reading and writing parameters ¾ Reading the description of a parameter The PKW area can be varied. Depending on the requirements, the following lengths can be parameterized using parameter P2013: ¾ 3 words Î P2013 = 3 ¾ 4 words Î P2013 = 4 ¾ variable word length Î P2013 = 127 The following is an example of a structure when access (write/read) is made to single-word (16 bit) parameter values. The PKW area must be permanently set to 3 words at the master and the slave. This setting is made during start-up and should not be altered any more during bus operation. 1st word

2nd word

3rd word

PKE

IND

PWE1

Parameter ID

Index

Parameter value 1

The following is an example of a structure when access (write/read) is made to double-word (32 bit) parameter values. Parameterization to a fixed length of 4 words applies to telegrams from the master to the slave and from the slave to the master. 1st word

2nd word

3rd word

4th word

PKE

IND

PWE1

PWE2

Parameter ID

Index

Parameter value (double word)

Telegram data transfer with variable telegram length (refer to the following example) means that the slave responds to a telegram from the master with a telegram whose length does not have to be the same length as the telegram from the master to the slave. 1st word

2nd word

3rd word

4th word

PKE

IND

PWE1

PWE2

(m+2). word .....

With: ¾ 1 word ≤m ≤118 words (maximum) when 8 PZD words (maximum) are contained in the net data block. ¾ 1 word ≤ m ≤ 126 words (maximum) when there is no PZD.

The length of elements PEW1 to PWEm in the reply telegram and what is contained in them depends on the task issued by the master. Variable length means that only the number of words necessary to pass on the appropriate information is transferred. The minimum length, however. is always 3 words. If a slave, for example, transfers a parameter value which is a 16-bit quantity (e.g. the status word in parameter r0052; data format: U16), then only 3 words of the PKW area are sent in the telegram from the slave to the master. If, for example, for MICROMASTER the actual frequency is to be read (parameter r0021), then the PKW area in the telegram from the slave to the master is 4 words large; the reason for this is that the speed is represented as 32-bit quantity (data format: Float). It is mandatory to parameterize for a variable word length, if e.g. all values are to be

MICROMASTER 440

156

Operating Instructions 6SE6400-5AW00-0BP0