Example Of Uss Protocol Program - Siemens SIMATIC S7-200 System Manual

Hide thumbs Also See for SIMATIC S7-200:
Table of Contents

Advertisement

Using USS Protocol Instructions to Communicate with Drives

Example of USS Protocol Program

Figures 11-9 through 11-11 show an example of a USS program in LAD, FBD, and
STL.
MAIN (OB1)
Network 1
SM0.1
EN
1
USS
19200
BAUD
16#1
ACTIVE
Network 2
SM0.0
I0.0
I0.1
I0.2
I0.3
I0.4
Network 3
Read a parameter from drive 0
I0.5
I0.5
Figure 11-9
11-20
LAD
Initialize USS Protocol
USS_INIT
DONE
Q0.0
ERR
VB1
Control box for Drive 0
DRV_CTRL
EN
RUN
OFF2
OFF3
F_ACK
DIR
0
DRIVE
SPD_SP
100.0
READ_PM
EN
P
XMT_REQ
0
DRIVE
5
PARM
DB_PTR
&VB20
Example of USS Instructions for SIMATIC LAD
RSP_R
M0.0
ERR
VB2
VW4
STATUS
SPEED
VD6
RUN_EN
Q0.0
DIR_CW
Q0.1
INHIBIT
Q0.2
FAULT
Q0.3
These two contacts must be the same.
DONE
M0.1
ERR
VB10
VAL
VW12
S7-200 Programmable Controller System Manual
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents