Siemens SIMATIC S7-300 Manual page 97

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

Advertisement

Example call
An example call is shown below for FC RD_COM
STL
...
O
DB_FM.JOB_RD.BUSY;
O
DB_FM.JOB_RD.IMPOSS;
SPB
DARD;
L
B#16#66;
T
DB_FM.JOB_RD.NO;
DARD: CALL RD_COM(
DB_NO
:= W#16#1,
RET_VAL
:= FEHLERCODE_LESEN)
UN
BIE;
S
FEHLER_LESEFKT;
...
6.4
Reading diagnostic information
Overview
FC DIAG_RD (FC 4) and FC DIAG_INF (FC 6) are used to read the diag-
nostic interrupt information in the user DB.
FC 4 and FC 6 are intended as alternatives which you can use according to
your needs.
6.4.1
FC DIAG
RD (FC 4) – Read diagnostic interrupt data in OB 82
_
Task
You are only allowed to call FC DIAG_RD in interrupt OB 82.
Can only be used with appropriate S7-300 CPU versions; see compatibility
list in Table 1-1.
FM 354 Servo Drive Positioning Module
Programming the FM 354
.
Explanation
// Read job busy
// Read job processing impossible
// Jump to call
// Read job 102 for basic operating data
// Store in job box
// Call read data FC
// DB number
// Return value
// Binary result
// Error on initialization
6-17

Hide quick links:

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents