Siemens SIMATIC FM 453 Manual page 140

Servo drive / step drive positioning module
Hide thumbs Also See for SIMATIC FM 453:
Table of Contents

Advertisement

Programming the FM 453
The call for data sets 163 and 164 is programmed in the same way as the DS
162 call. The data sets are channel-specific, so when the data set is called, it
must be ensured that the channel number is entered correctly. The data set
number to be read on calling the SFC is calculated as the channel-specific
data set offset plus the absolute data set number.
AWL
VAR_TEMP
R_DS162
: BOOL;
REQ
: BOOL;
IOID
: BYTE;
LADDR
: WORD;
RECNUM
: BYTE;
DSNR
: BYTE;
BUSY
: BOOL;
END_VAR
BEGIN
...
UN
DB_FM.CHECKBACK_SIGNALS.OT_ERR;
SPB
NW5E;
U
R_DS162;
SPB
D162;
INI1:
L
1;
DEC
1;
L
35;
*I;
L
162
+I;
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;
6-44
Explanation
// Auxiliary bit for data set
// Parameter for SFC 59
//
//
//
//
//
// Only read DS162 if operating error
// otherwise jump to end of network
// If read job already active,
// jump to call
// Channel number
// DS offset for DS 162, DS 163, DS 164
// Absolute DS No.
// DSNR:=(channel number – 1) * 35 +
162
// Enter DS number
// Read operator control/guidance error
No. (DS162)
// Request
// IOID
// Moduleaddress
// 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
FM 453 Servo Drive / Step Drive Positioning Module
C79000-G7076-C453-01

Advertisement

Table of Contents
loading

Table of Contents