vc33 Kompend Kap081 e PDF
vc33 Kompend Kap081 e PDF
vc33 Kompend Kap081 e PDF
NOTE The USS protocol is a simple serial data transfer protocol, defined by
Siemens AG, which is fully tailored to the requirements of drive
technology. A detailed description of the protocol specifications, the
physical interface, the bus structure as well as a definition of the
transferred net data for drive applications are documented in the
specification "Universal serial interface protocol USS protocol"
(Order No. E20125-D0001-S302-A1).
Using the USS protocol, a user can establish a serial bus link between
a higher-level master system and several slave systems. Master
systems can be, for example, PLCs or PCs. SIMOVERT
MASTERDRIVES drive converters are always the slaves on the bus
system. Furthermore, SIMOVERT MicroMaster, SIMOVERT P 6SE21
and 6RA23 and 6RA24 drive converters can be operated as slaves on
the USS bus.
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.
Higher-level
computer
"Master"
Telegram 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).
Net characters
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 protocol does not identify tasks in the net characters. The contents
of the net data for SIMOVERT MASTERDRIVES drive converters is
dealt with in Section 8.1.3.
Data coding Information is coded as follows:
♦ STX (start of text)
ASCII characters: 02 hexadecimal
♦ LGE (telegram length)
1 byte, contains the telegram length
♦ ADR (address byte)
1 byte, contains the slave address and the telegram type
(binary coded)
♦ Net characters
Each one byte, contents are task-dependent
♦ BCC
1 byte, Block Check Character
Assigning the In the address byte, information other than the node number is coded:
address byte (ADR) The individual bits in the address byte are assigned as follows:
Net characters
Bit No. 7 6 5 4 3 2 1 0
= 1: Mirror telegram
= 0: No mirror telegram
Data transfer The master ensures cyclical telegram data transfer. The master
procedure 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.
Handling data The sequence of the addressed slave nodes can be specified, for
transfer 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.
Example of configuration 0
0
21 1
1
3
5
3 7 0
1
7
M aster 5 1
21
0
Circulating list in
the master
1 7 3 5 21 0
Cycle time 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
Due to inconstant reply delay and processing times, the cycle time is
not fixed.
Start interval 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 no-character 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.
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 (half-duplex mode):
Reply delay time 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.
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), TTY (20 mA current loop) or
fiber-optic cables can be used as the physical interface.
The interfaces for SIMOVERT MASTERDRIVES are always RS 485
with 2-wire cable.
Exception: Either RS 485 or RS 232 can be connected at the 9-pin
SUB D socket connector on the PMU (operator control
and parameterizing unit) of the basic units.
NOTICE This section describes how a USS field bus has to be structured in
order to ensure reliable data transfer via the transfer medium in
standard applications. Under special conditions of use, additional
factors must be taken into account which require further measures or
restrictions that are not described in this document.
MASTER
Maximum 32 slaves
SLAVE SLAVE SLAVE
The two ends of a bus line (first node and last node) must be
terminated with bus terminating networks.
Point-to-point connections are handled just like bus connections. One
node has the master function and the other has the slave function.
Data transfer Data is transferred in accordance with Standard EIA 485. RS 232 can
technology 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 half-duplex 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.
Cable lengths The cable length is dependent on the data transfer rate and the number
of connected nodes. The following cable lengths are possible given the
specified cable characteristics:
Telegram structure The structure of the net data in the USS-protocol telegram is shown
below.
Protocol frame
Net data
STX LGE ADR Parameter Process data BCC
(PKW) (PZD)
PKW: Parameter ID value PZD: Process data
(parameter area) (process-data area)
The two areas together make up the net data block. This structure
applies to telegrams from the master to the slave and vice versa.
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 in the basic unit and, if available,
parameters on a technology board, e.g. T100
♦ Reading the description of a parameter
(applies to parameters of the basic unit and of technology boards)
♦ Reading of texts assigned to the indices of an indexed parameter.
(Applies to parameters of the basic unit and of the technology
modules.)
♦ Reading of texts assigned to the values of a parameter.
(Applies to parameters of the basic unit and of the technology
modules.)
Settings in the PKW The PKW area can be varied. Depending on the particular requirement,
area 3-word, 4-word or variable word lengths can be parameterized.
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.
PKW area 1st word 2nd word 3rd word 4th word (m+2) word
parameterized with
PKE IND PWE1 PWE2 • • • PWEm
variable word length
With:
♦ 1 word ≤ m ≤ 110 words (maximum) when 16 PZD words
(maximum) are contained in the net data block.
♦ 1 word ≤ m ≤ 126 words (maximum) when there is no PZD.
Telegram data transfer with variable telegram length 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. The length of elements PEW 1 to PWE m 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 output voltage in parameter r003), then only 3 words
of the PKW area are sent in the telegram from the slave to the master.
With regard to the MASTERDRIVES MC/VC for example, if the current
speed (parameter r002) is to be read, the PKW area in the telegram
from the slave to the master is 4 words long since the speed is stored
as a 32-bit quantity in parameter r002. Variable word-length
parameterization is mandatory if, for example, all values are to be read
at once from an "indexed" parameter or if the parameter description of
a parameter is to be partially or completely read. This setting to variable
word-length is made during start-up.
Structure of the
parameter area
(PKW)
Parameter value
Parameter value High (PWE1) 3rd word
Parameter value Low (PWE2) 4th word
NOTE The PKW area is transferred in increasing order, always starting with
the 1st word.
Parameter ID (PKE), The parameter ID (PKE) is always one word (16-bit quantity).
1st word Bits 0 to 10 (PNU), together with bit 15 of the parameter index, make up
the number of the desired parameter (see parameter list).
Number PKE: Bits 0 to 10 Index: Bit 15
(PNU)
1 - 999 1 - 999 0 Basic unit
2000 - 2999 0 - 999 1 Basic unit
1000 - 1999 1000 - 1999 0 Technology module
3000 - 3999 1000 - 1999 1 Technology module
Reply ID Meaning
0 No reply
1 Transfer parameter value (word)
2 Transfer parameter value (double word)
3 Transfer descriptive element 1
4 Transfer parameter value (array, word) 2
5 Transfer parameter value (array, double word) 2
6 Transfer the number of array elements
7 Task cannot be executed (with error number)
8 No control/change rights for the PKW interface
9 Parameter change report (word)
10 Parameter change report (double word)
11 Parameter change report (array, word) 2
12 Parameter change report (array, double word) 2
13 Reserved
14 Reserved
15 Transfer text
* For table footnotes 1 and 2, see Table 8.1-5
Example Source for the ON/OFF1 command (control word1, bit 0):
P554 (=22A hex) Change parameter value (array, word) and save in
the EEPROM.
♦ Bits 12 to 15: Value = 12 (= "C" hex); change parameter value (array, word) and save
in the EEPROM
♦ Bits 0 to 11: Value = 554 (= "22A" hex); parameter number with a set change-report
bit
Table 8.1-7 Error numbers for the reply ID "Task cannot be executed"
Parameter index The low-part of the index (bit 0 to 7), depending on the task, describes
(IND) 2nd word a definite element:
♦ desired array element in the case of indexed parameters,
♦ desired element of the parameter description,
♦ for indexed parameters with "index text": desired index text,
♦ for non-indexed parameters with "selection text": desired selection
text.
Bits 8 to 14 must as a general rule all be equal to 0. The only
exceptions are those parameters that are indexed and possess
"selection texts". In this case bit 9 must be set to 1 to clearly identify the
desired text type. The low-part then defines the desires "selection text".
Bit 15, together with bits 0 to 10 in the PKE, serves to constitute the
number of a parameters (see Parameter coding).
Special significance With regard to the task "Request (parameter element) descriptive
of index value 255 element" (= AK 4) or tasks relating to the reading/writing of indexed
(low-part) parameters (= arrays), index value 255 has a special significance:
Task ID Meaning
4 The complete (parameter) description is requested
6 Request all values of the indexed parameter
This task can generate error message 102.
7, 8, 11 All values of the indexed parameter are to be changed.
or 12 These tasks can generate error message 102.
Example Source for ON/OFF1 command (control word 1, bit 0): P554
Parameter index (= 22A hex)
Change parameter value of index 1.
Parameter value Depending on the word length parameterization of the PKW area, the
(PWE) 3rd and 4th parameter value (PWE) is transferred as word or double word (32 bit).
words Only one parameter value can be transferred in a telegram.
If the word length of the PKW area is parameterized with 3 words, then
only 16 bit parameters can be transferred. Parameter description
elements larger than 16 bit and texts cannot be transferred.
If the word length of the PKW area is parameterized with 4 words, then
16 and 32 bit parameters can be transferred. Parameter description
elements larger than 32 bit and texts cannot be transferred.
If the word length of the PKW area is parameterized with "Variable
length" (127), then 16 and 32 bit parameters can be transferred.
Parameter description elements and texts can also be transferred.
Furthermore, all elements of an indexed parameter can be read or
changed as a single task and the whole parameter description can be
called (index value: low-part = 255).
Transfer of a 16-bit parameter value:
1. PKW area, fixed, 3 words:
PWE1 contains the value
2. PKW area, fixed, 4 words:
PWE2 (least significant word, 4th word) contains the value; PWE1 is
set to 0.
3. PKW area, variable:
PWE1 contains the value. There is no PWE2 or higher!
Example Source for the ON/OFF1 command (control word 1, bit 0): P554
Parameter value (= 22A hex)
Change parameter value of index 1 to the value 2100 (hex).
Parameter value
Bit No.: 31 24 23 16 3rd word, PWE1
(hex)
0 0 0 0
Bit 0 to 15: Parameter value for 16-bit parameter or low component for 32-bit parameter
Bit 16 to 31: Value = 0 for 16-bit parameter or high component for 32-bit parameter
Maximum 16 words
Minimum 0 words, i.e. no PZD area in the net data block
SCB2
interface board SCB2 USS
DPR
Not in
Compact PLUS
type unit
T100
technology board T100 USS
DPR
DPR
PROFIBUS
communication board CBP2 USS
Fig.
8.1-8 Interface overview
Basic unit with In the SIMOVERT MASTERDRIVES MC series, the control electronics
CUMC/CUVC/CUVP board, CUMC (Control Unit Motion Control) or CUVC (Control Unit
Vector Control), is used. Depending on the type of basic unit, it has at
least one serial interface with the USS protocol. The following table
shows the available interfaces:
NOTICE All the interfaces on the CU boards are non floating (not electrically
isolated).
NOTE The supplementary SCB2 board cannot be built into the Compact
PLUS type of unit.
NOTE For a more detailed description of the SCB 2, refer to the instruction
manual, "Serial Communication Board 2"
(Order No.: 6SE7087-6CX84-0BD0).
T100 technology The T100 technology board is an expansion board of the SIMOVERT
board MASTERDRIVES. The board has two, non-floating RS485 interfaces.
One interface is permanently provided for the peer-to-peer protocol, the
other is for the USS protocol.
NOTE The T100 technology board cannot be built into the Compact PLUS
type of unit.
NOTE For a more detailed description of the T100, refer to the instruction
manual "Technology Board T100" [Order No. 6SE7080-0CX87-0BB0,
(hardware) and 6SE7080-0CX84-0BB0 (software)].
NOTE A more detailed description of the CBP2 can be found in the operating
instructions "CBP/CBP2 - Communication Board PROFIBUS" (Order
No.: 6SE7087-6NX84-0FF0).
8.1.4 Connecting-up
Shield
15 mm Modify the length
according to the type of unit Converter housing
Connector
Removing
Bus cable 1 the bus connector
without
interrupting the bus
Bus cable 2
NOTE It must be ensured that both copper cores are securely held inside the
screw terminal.
NOTE The bus cables must be twisted and shielded and are to be routed
separately from power cables, the minimum clearance being 20 cm.
The shield must be connected through the largest possible surface area
on both sides, i.e. the shield of the bus cable between 2 converters
must be connected to the converter housing at both ends. The same
applies to the shield of the bus cable between master and converter.
If bus and power cables intersect, they must do so at an angle of 90 °.
♦ With regard to the bus cable, the shield must not be exposed in the
bus connector. Shielding is provided by the shield clamps (Compact
type units) or shield clamps and cable ties (chassis type units) at the
converter housing. How to use the shield clamps is shown in the
following illustration. It must be ensured that the solid copper core is
not damaged when the insulation is removed from the ends of the
conductors.
♦ It must also be ensured that the shield of every bus cable is
connected where the cable enters the cabinet as well as at the
converter housing!
Type C Type D
SIEMEN S
Type A Type B
X100
E-box
E-box
A
S1
Slot A
E-box
E-box
X101 B
Slot B
X103 C
Slot C
PE3
−
+
SIEMEN S
X100
A
S1
Slot A
X101 B
Slot B
X103 C
390 390
RS485 N
390 Sield 390
Equipotential bonding
External 0 V
signal level
Housing earth
Shield bar
Compact PLUS
S1
− OFF
SIEMEN S
ON
X100
A
S1
Switch for
bus termination
X101 B
X103 C
NOTE In the Compact and chassis type units, two mutually independent USS
interfaces (SCom1 and SCom2) are available. Switch S1 or S2 is
provided for switching in the terminating resistor.
NOTE ♦ When the unit is supplied, the terminating resistors are not
switched in!
♦ Please note that the bus termination is switched in only at the first
bus node (e.g. SIMATIC S 5/CP524) and last bus node (e.g.
CUMC)! When the matching resistors are being set, the electronics
box must be isolated from supply!
♦ Data transmission faults possible on the bus!
During active bus operation, the units with a switched-in
terminating resistor must not be disconnected from supply. The
matching resistor when disconnected from supply (off-load) is no
longer effective because the terminating resistor obtains its voltage
from the connected unit.
Bus connection via The following illustration shows an example of the bus connection at
terminal strip terminal strip X100 (Compact PLUS). If the connector at terminal strip
X100 of one node is removed, data transfer via bus is not interrupted.
The other nodes on the bus continue to be supplied with data via the
bus.
S la v e 1 S la v e 2 S la v e n
Higher-level Last slave,
computer (master) S1 S1 S1 bus termination
with activated activated
bus termination ON OFF ON OFF ON OFF
36 35 34 33 36 35 34 33 36 35 34 33
Fig. 8.1-14 Connection of the 2-wire bus cable at terminal strip X100
(Compact PLUS)
Bus connection via The following illustration shows the structure of a bus connection via
connector X103 the 9-pin connector, X103 (Compact PLUS).
RS485 N
RS485 P
8 3 8 3
Fig. 8.1-15 Connection of the 2-wire bus cable at terminal strip X103
(Compact PLUS)
8.1.5 Start-up
The USS protocol can be started up in two steps:
1. Parameterization of the USS protocol at the "selected" interface
2. Parameterization of process-data interconnections and the
"parameterizing enable" for the selected interface.
NOTE The USS protocol is parameterized at the serial interface of the T100
technology board by means of the "technology parameters" H290,
H291, H292, H293, H294 and H295. These parameters are part of the
T100 (see software instruction manual of the T100).
Example 2 USS protocol at the SCom2 (only in Compact type and chassis
type units)
♦ Setting:
USS protocol with 38.4 kbit/s and 4-word PKW area and 6-word
PZD area
• 4-word PKW area:
With this setting, all parameters whose values are 16-bit (= 1
word) or 32-bit (double word) quantities can be read or written via
the USS protocol.
• 6-word PZD area:
Transfers control words 1 and 2 and a maximum of four setpoints
(each of them 16 bits) from the master to the converter or control
words 1 and 2 (each one of them 16 bits) and a maximum of four
actual values (each one of them 16 bits) from the converter to the
master.
♦ Preconditions:
P060 = 1 or 7
♦ Parameterizing the SCom2 interface (CUMC: X103, CUVC: X101):
Parameterization of During start-up, an interface with the USS protocol must be explicitly
the parameterizing enabled for parameterization in order to be able to change (= write) the
enable parameters of a SIMOVERT MASTERDRIVES via this interface − this
applies to the parameters of the basic unit (P/U parameters) and to the
technology-board parameters (H/L parameters).
USS interface 8
S CB 2
H parameters
d parameters USS interface 16
T1 00
PMU 2
The rules for generating the value which is entered in parameter P053
for specifying parameter access is explained with the following
example.
Parameterizing As already described in Section 8.1.2.3 (PZD area), the PZD area
process-data consists of a maximum of 16 words. During start-up, the length of this
interconnections area is defined in words using parameter P703 (SST/SCB PZD #). This
definition applies to the telegram from the master to the converter and,
vice versa, to the telegram from the converter back to the master. In the
telegram from the master to the converter, the PZD area contains
control word 1 or control word 2 and the setpoints. In the telegram from
the converter to the master, status word 1 or status word 2 and the
actual values are transferred.
Maximum 16 words
Minimum 0 words, i.e. no PZD area in the net data block
NOTE Here, process-data interconnection is only described for the basic units.
Process-data interconnection for the technology boards is described in
their instruction manual.
"Interconnecting" The two control words (bits 0 to 15) and 2 (bits 16 to 31) give
control word 1 and commands and external information to the converter. A select
control word 2 parameter is assigned to each control-word bit, e.g. bit 0 of parameter
P554. The select parameter specifies from which source(s) this control
bit can be influenced (= changed).
USS interface, from which control Values to which select parameters
word bits 0 to 15 P554 to P575 are to be set
(= control word 1)
are to be changed (source)
SCom1 21xy
SCom2 61xy
SCB2 45xy
Note:
♦ e.g. 21xy:
The first digit (here 2) identifies the interface SST1 as source.
The second digit (here 1) indicates that it is the 1st word in the PZD
area of the telegram. "xy" (= 00 to 15) identifies the bit position.
NOTE Control word 1 is always transferred in the 1st word of the PZD area in
the USS protocol.
Example 1 ♦ The control word command "ON/OFF1" should be taken from bit 0 in
the 1st PZD word of SST1.
♦ The control word command "OFF2" should be taken from bit 1 in the
1st PZD word of SST1.
♦ The control word command "ACK" should be taken from bit 7 in the
1st PZD word of SST1.
etc.
Values of select The following values of select parameters P576 to P591 are to be set
parameters P576 to for the USS interfaces:
P591
USS interface from which control-word bits 16 to Values to which select parameters P576 to
31 (= control word 2) are to be changed (source) P591 are to be set
SCom1 24xy
SCom2 (not with the Compact PLUS) 64xy
SCB2 48xy
Note:
♦ e.g. 48xy:
The first position (in this case, 4) identifies the interface on SCB 2 as
the source.
The second digit (here 8) indicates that it is the 4th word in the PZD
area of the telegram (5 signifies the 1st word). "xy" (= 00 to 15)
identifies the bit position.
NOTE If necessary, control word 2 is always transferred in the 4th word of the
PZD area in the USS protocol.
⇒ Set PZD area to a length of at least 4 words (P703).
Example 2 ♦ Bit 0 for switching over the function data set should be taken from
bit 0 in the 4th PZD word of SCB2.
♦ Bit1 for switching over the function data set should be taken from
bit 1 in the 4th PZD word of SCB2.
etc.
"Interconnection" of The user can select the source from which the setpoints for the
setpoints converter are to be taken. This is done in the same way in which
control-word bits are "interconnected". This is now illustrated with two
examples.
Example 1 The "wiring" of the setpoints is done via parameters P443 (source main
setpoint) and P433 (source supplementary setpoint 1).
The main setpoint comes from SCom 1 and is located in the 2nd word
of the PZD area. The supplementary setpoint comes from the USS
interface on SCB 2 and is also located in the 2nd word of the PZD area
(for BICO data set 1).
Example 2 The "wiring" of the setpoints is done via parameters P443 (source main
setpoint), P433 (source supplementary setpoint 1), P438 (source
supplementary setpoint 2), and so on. For a detailed description, see
the instruction manual.
Source for the setpoints Values for parameters P443, P433, P438 and
so on
Interface allocation:
SCom1 20xx
SCom2 60xx
SCB2 45xx
Position of the setpoints (16-bit quantity) in the PZD xx = 02,03, 04 (only if control word 2 is not
area: transferred), 05, up to 16
In the 2nd word ⇒ 02
In the 3rd word ⇒ 03 and so on
Position of the setpoints (32-bit quantity) in the PZD
area:
In the 2nd word + 3rd word ⇒ 32 x x = 32,33 (only if control word 2 is not
Rules for generating: transferred), 34 (only if control word 2 is not
xx = 30 (indicates 32-bits) + position in the PZD area at transferred), 35, up to 45
which the 32-bit setpoint begins.
In the 3rd word and 4th word ⇒ 33 and so on
NOTE When 32-bit quantities are being transferred, the high word is located in
PZD n and the low word in PZD n+1
⇒ For example, 32-bit setpoint in PZD2 and PZD3; the high-word is
then transferred in PZD2 and the low word in PZD3 via the USS bus.
The main setpoint (32-bit quantity) comes from SCom1 and is located
in the 2nd word and 3rd word of the PZD area. Control word 2 is in the
4th word. In the 5th and 6th words, supplementary setpoint 1 (32-bit
quantity) is transmitted (for BICO data set 1).
"Interconnection" of The two status words 1 (bits 0 to 15) and 2 (bits 16 to 31) send
status words 1 and 2 messages from the converter to a higher-level converter system.
and the actual An indexed parameter is assigned to each interface. Each index is
values assigned to a net-data word in the PZD area. For example, index i001
to the 1st word, index i002 to the 2nd word and so on up to i016.
NOTE Status word 1 is always transferred in the 1st word of the PZD area in
the USS protocol.
NOTE When 32-bit quantities are being transferred, the high word is located in
PZD n, the low word in PZD n+1.
⇒ For example, 32-bit actual value of KK0091 in PZD2 and PZD3.