105BCommunication processor
12.4 Universal serial interface (USS) communication
S7-1200 Programmable controller
576
System Manual, 11/2011, A5E02486680-05
Parameter and type
Data type
Description
PARAM
IN
UInt
Parameter number: PARAM designates which drive parameter is written.
The range of this parameter is 0 to 2047. On some drives, the most
significant byte can access PARAM values greater than 2047. See your
drive manual for details on how to access an extended range.
INDEX
IN
UInt
Parameter index: INDEX designates which Drive Parameter index is to be
written. A 16-bit value where the least significant byte is the actual index
value with a range of (0 to 255). The most significant byte may also be
used by the drive and is drive-specific. See your drive manual for details.
EEPROM
IN
Bool
Store To Drive EEPROM: When true, a write drive parameter transaction
will be stored in the drive EEPROM. If false, the write is temporary and
will not be retained if the drive is power cycled.
VALUE
IN
Word, Int, UInt,
DWord, DInt,
UDInt, Real
The value of the parameter that is to be written. It must be valid on the
transition of REQ.
USS_DB
INOUT
USS_BASE
The name of the instance DB that is created and initialized when a
USS_DRV instruction is placed in your program.
DONE
1
OUT
Bool
When true, DONE indicates that the input VALUE has been written to the
drive. This bit is set when USS_DRV sees the write response data from
the drive. This bit is reset when either you request the response data via
another USS_RPM poll, or on the second of the next two calls to
USS_DRV
ERROR
OUT
Bool
When true, ERROR indicates that an error has occurred and the STATUS
output is valid. All other outputs are set to zero on an error.
Communication errors are only reported on the USS_PORT instruction
ERROR and STATUS outputs.
STATUS
OUT
Word
STATUS indicates the result of the write request. Additional information is
available in the "USS_Extended_Error" variable for some status codes.
1
The DONE bit indicates that valid data has been read from the referenced motor drive and delivered to the CPU. It does
not indicate that the USS library is capable of immediately reading another parameter. A blank PKW request must be
sent to the motor drive and must also be acknowledged by the instruction before the parameter channel for the specific
drive becomes available for use. Immediately calling a USS_RPM or USS_WPM FC for the specified motor drive will
result in a 0x818A error.
12.4.6
USS status codes
USS instruction status codes are returned at the STATUS output of the USS functions.
Table 12- 44 STATUS codes
1
STATUS
(W#16#....)
Description
0000
No error
8180
The length of the drive response did not match the characters received from the drive. The drive number
where the error occurred is returned in the "USS_Extended_Error" variable. See the extended error
description below this table.
8181
VALUE parameter was not a Word, Real or DWord data type.