EasyManua.ls Logo

Siemens S7-1200 - USS_DRV (Swap Data with Drive) Instruction

Siemens S7-1200
1028 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Communication processor and Modbus TCP
12.4 Universal serial interface (USS) communication
S7-1200 Programmable controller
716 System Manual, 03/2014, A5E02486680-AG
Your program must execute the USS_PORT instruction often enough to prevent drive
timeouts. USS_PORT is usually called from a cyclic interrupt OB to prevent drive timeouts
and keep the most recent USS data updates available for USS_DRV calls.
12.4.3
USS_DRV (Swap data with drive) instruction
Table 12- 37 USS_DRV instruction
LAD / FBD
SCL
Description
Default view
"USS_DRV_DB"(
RUN:=_bool_in_,
OFF2:=_bool_in_,
OFF3:=_bool_in_,
F_ACK:=_bool_in_,
DIR:=_bool_in_,
DRIVE:=_usint_in_,
PZD_LEN:=_usint_in_,
SPEED_SP:=_real_in_,
CTRL3:=_word_in_,
CTRL4:=_word_in_,
CTRL5:=_word_in_,
CTRL6:=_word_in_,
CTRL7:=_word_in_,
CTRL8:=_word_in_,
NDR=>_bool_out_,
ERROR=>_bool_out_,
STATUS=>_word_out_,
RUN_EN=>_bool_out_,
D_DIR=>_bool_out_,
INHIBIT=>_bool_out_,
FAULT=>_bool_out_,
SPEED=>_real_out_,
STATUS1=>_word_out_,
STATUS3=>_word_out_,
STATUS4=>_word_out_,
STATUS5=>_word_out_,
STATUS6=>_word_out_,
STATUS7=>_word_out_,
STATUS8=>_word_out_);
The USS_DRV instruction exchanges data with a drive
by cr
eating request messages and interpreting the drive
response messages. A separate function block should
be used for each drive, but all USS functions
associated with one USS network and PtP
communication port must use the same instance data
block. You must create the DB name when you place
the first USS_DRV instruction and then reference the
DB that was created by the initial instruction usage.
STEP 7 automatically creates the DB when you insert
the instruction.
Expanded view
1
LAD and FBD: Expand the box to reveal all the parameters by clicking the bottom of the box. The parameter pins that
are grayed are optional and parameter assignment is not required.

Table of Contents

Other manuals for Siemens S7-1200

Related product manuals