Using USS Protocol Instructions to Communicate with Drives
11-12
S7-200 Programmable Controller System Manual
A5E00066097-02
Table 11-4 Operands and Data Types for the READ_PM Subroutine
Inputs/Outputs Data TypesOperands
ERR VB, IB, QB, MB, SB, SMB, LB, AC. *VD, *AC, *LD BYTE
VAL VW, T, C, IW, QW, SW, MW, SMW, LW, AC, AQW, *VD, *AC, *LD WORD
Figure 11-6 shows how the READ_PM subroutine is used in LAD, FBD, and STL.
LAD
FBD
M0.0
VB10
I0.0
&VB100
0
I0.0
P
P
&VB100
3
M0.0
VB10
I0.0
I0.0
EN
XMT_REQ
DB_PTR
DONE
ERRDRIVE
PARM
READ_PM
EN
XMT_REQ
DB_PTR
DONE
ERRDRIVE
PARM
3
0
VAL
VW200
VAL
VW200
READ_PM
These two contacts must be the same.
These two contacts must be the same.
STL
LD I0.0
= L60.0
LD I0.0
EU
= L63.7
LD L60.0
CALL READ_PM, L63.7, 0, 3,
&VB100, M0.0, VB10, VW200
These two contacts must be the same.
Figure 11-6 Using the READ_PM Subroutine in LAD, FBD, and STL