Example Of Uss Instructions For Simatic Stl - 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
1
2
NETWORK 1
3
//
4
LD
SM0.1
5
CALL
USS_INIT, 1, 19200, 16#1, Q0.0, VB1
6
7
8
9
NETWORK 2
//
10
LD
SM0.0
11
CALL
DRV_CTRL, I0.0, I0.1, I0.2, I0.3, I0.4, 0, 100.0, M0.0, VB2, VW4,
12
VD6, Q0.0, Q0.1, Q0.2, Q0.3
13
NETWORK 3
14
//
15
LD
I0.5
16
=
L60.0
17
18
LD
I0.5
EU
19
=
L63.7
20
21
LD
60.0
CALL
READ_PM, L63.7, 0, 5, &VB20, M0.1, VB10, VW12
22
23
24
25
Figure 11-11 Example of USS Instructions for SIMATIC STL
11-22
// Initialize USS Protocol
//On the first scan
//Enable the USS protocol for port 0 at 19200 baud
//with drive address "0" active.
//Control box for drive 0
Read a parameter from drive 0
//Save the state of I0.1 to a temporary L location so that
//this network will display in LAD.
//Save the rising edge pulse of I0.2 to a temporary L
//location to that it can be passed to the CW subroutine.
These two contacts must be the same.
S7-200 Programmable Controller System Manual
A5E00066097-02

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents