Parameter
PORT
BAUD
USS_DB
ERROR
STATUS
6.3.1.4
USS_RPM instruction
LAD
Parameter
REQ
DRIVE
PARAM
INDEX
USS_DB
S7-1200 Programmable controller
System Manual, 11/2009, A5E02486680-02
Parameter
Data type
type
IN
Port
IN
DInt
IN
DInt
OUT
Bool
OUT
UInt
FBD
Parameter
Data type
type
IN
Bool
IN
USInt
IN
UInt
IN
UInt
IN
Variant
Description
PtP communications module. Identifier:
This a constant which can be referenced within the
"Constants" tab of the default tag table.
The Baud Rate to be used for USS communication.
This is a reference to the instance DB that is created and
initialized when a USS_DRV instruction is placed in your
program.
When true, this pin indicates that an error has occurred and
the STATUS output is valid.
The status value of the request. It indicates the result of the
scan or initialization. Additional information is available in
the "USS_Extended_Error" variable for some status codes.
The USS_RPM instruction reads a
parameter from the drive. All USS
functions associated with one USS
network and PtP communication
module must use the same data
block. USS_RPM must be called
from the main OB.
Description
Send request: When true, it indicates that a new read
request is desired. This is ignored if the request for this
parameter is already pending.
Drive address: This input is the address of the USS drive.
The valid range is drive 1 to drive 16.
Parameter number: This input designates which drive
parameter is written. The range of this parameter is 0 to
2047. See your drive manual for details on how to access
any parameters above this range.
Parameter index: This input 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.
This is a reference to the instance DB that is created and
initialized when a USS_DRV instruction is placed in your
program.
Programming instructions
6.3 Global library instructions
183