Siemens SIMATIC S7-300 Manual page 123

Fm 354 servo drive positioning module
Hide thumbs Also See for SIMATIC S7-300:
Table of Contents

Advertisement

Table 6-7
M17.4 Transfer velocity levels
M17.5 Transfer MDI block
M17.6 Transfer single functions
M17.7 Transfer program selection
MB18 Operating mode (encoded)
MB19 Override
Example call for DS 162
The call for data sets 163 and 164 is programmed in the same way as the DS
162 call.
STL
VAR_TEMP
R_DS162
: BOOL;
REQ
: BOOL;
IOID
: BYTE;
LADDR
: WORD;
RECNUM
: BYTE;
DSNR
: BYTE;
BUSY
: BOOL;
END_VAR
BEGIN
...
NETWORK
TITLE = DS162 LESEN
UN
DB_FM.CHECKBACK_SIGNALS.OT_ERR;
SPB
NW5E;
U
R_DS162;
SPB
D162;
INI1:
L
162;
T
DSNR;
S
R_DS162;
D162:
CALL
SFC 59 (
REQ
:= TRUE,
IOID
:= B#16#54,
LADDR
:= DB1.DBW12,
RECNUM
:= DSNR,
RECORD
:= P#M30.0 BYTE 4,
BUSY
:= BUSY,
RET_VAL
:= FEHLERCODE_LESEN);
UN
BUSY;
R
R_DS162;
UN
BIE;
S
FEHLER_LESEFKT;
NW5E:
NOP
0;
...
FM 354 Servo Drive Positioning Module
Memories: example application 2, continued
Input memories used
Explanation
// Auxiliary bit for data set
// Parameter for SFC 59
//
//
//
//
//
// Network
// Only read DS162 if operating error
// otherwise jump to end of network
// If read job already active,
// jump to call
// Absolute data set number
// Set read job
// Read operator control/guidance error
no (DS162)
// Request
// IOID
// Module address
// Data set number
// Pointer (error no. in memory word
30)
// Busy
// Return value
// If read job finished,
// reset read job DS162
// Binary result
// Display read function error
Programming the FM 354
Output memories used
M21.4 Travel plus
M21.5 Not used
M21.6 Position reached, stop
M21.7 Free
MB22 Active mode
MB23 Not used
6-43

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents