Siemens SIMATIC FM 453 Manual page 120

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

Advertisement

Programming the FM 453
Error Evaluation
Errors which occur are indicated in the binary result (BIE = 0).
Possible errors are:
Data transfer error during communication with SFC 59 "RD_REC". The er-
ror is returned in the output parameter RET_VAL (see reference manual Sys-
tem Software for S7-300/400; System and Standard Functions).
Example Call
An example call is shown below in OB 1
in OB 1
STL
U
DB_FM.CHECKBACK_SIGNALS.MSR_DONE;
FP
FLANKENMERKER_MESSUNG_BEENDET;
S
"ANSTOSS_LESEFKT";
CALL MSRMENT(
DB_NO
:= W#16#1,
RET_VAL
:= FEHLERCODE_LESEN,
IN_MSR
:= "ANSTOSS_LESEFKT");
U
"ANSTOSS_LESEFKT";
SPB
NWE;
UN
BIE;
S
FEHLER_LESEFKT;
NWE:
NOP 0;
Example Call
An example call is shown below in OB 40
in OB 40
STL
...
S
MW_LESEN;
CALL MSRMENT(
DB_NO
RET_VAL
IN_MSR
UN
BIE;
S
FEHLER_LESEFKT;
...
Note
The activation of "measurement" and the generation of the measured values
is described in Section 9.3.10.
6-24
:= W#16#1,
:= FEHLERCODE_LESEN,
:= MW_LESEN);
.
Explanation
// "Measurement completed" checkback
signal
// Edge flag for "Measurement com-
pleted"
// Set initiation parameters
// CALLUP OF FC MSRMENT
// Initiation bit is still set
// Communication error
// Indicate error in Read function
.
Explanation
// Set job
// Call FC for reading measured values
// DB number
// Return value
// Initiation parameter
// Binary result
// Display error on read function
FM 453 Servo Drive / Step Drive Positioning Module
C79000-G7076-C453-01

Advertisement

Table of Contents
loading

Table of Contents