Sample Applications
5-5
FC 56
J31069-D0155-U001-A0-7618
5.4
Programming Module Failure
Failure of a PROFIBUS module can be scanned with the PROFIBUS system
diagnosis.
However, when a failed slave is addressed by the FC 56, an I/O access error is
generated on the SIMATIC.
After this, the following occurs.
S
OB 122 is called.
S
If no OB 122 is programmed, the PLC assumes the STOP state.
The FC 56 has a routine which permits a “correct” error (error_FC = 09) to be
reported to the user when a MOBY PROFIBUS slave fails. The user then sets the
“ASM_failure = 1” bit in OB 122 for the failed MOBY channel. The following
example shows one way to implement OB 122.
Block: OB122
Segment: 1 Reset channel 1 when error occurs
x1:
L
#OB122_MEM_ADDR
L
“MOBY DB”.SLG[1].ASM_address
-D
SRW
1
L
1
+D
L
“MOBY DB”.SLG[1].ASM_channel
==I
SPBN x1
SET
S
“MOBY DB”.SLG[1].ASM_failure
NOP
0
//
Temporary OB 122 variable
//
Formula:
//
(#OB122_MEM_ADDR –
SLG[x].ASM_address) / 2 + 1
// Compare with conf. channel
// Power failure on ASM
OB 86 must also be available on the automation system in addition to OB 122 so
that the system does not assume STOP when a PROFIBUS slave fails. OB 86
does not have to contain code for the FC 56 to function correctly.
Summary of Contents for MOBY FC 56
Page 12: ...Introduction 1 6 FC 56 J31069 D0155 U001 A0 7618 ...
Page 63: ...5 1 FC 56 J31069 D0155 U001 A0 7618 Sample Applications 5 ...
Page 80: ...Sample Applications 5 18 FC 56 J31069 D0155 U001 A0 7618 ...
Page 90: ...Entry Exit Check of an MDS in an SLG Field 6 10 FC 56 J31069 D0155 U001 A0 7618 ...
Page 94: ...System Configuration 7 4 FC 56 J31069 D0155 U001 A0 7618 ...
Page 100: ...Commissioning Guidelines 8 6 FC 56 J31069 D0155 U001 A0 7618 ...
Page 101: ...9 1 FC 56 J31069 D0155 U001 A0 7618 Error Messages and Trouble Shooting 9 ...
Page 152: ...Programming MOBY ASM on PROFIBUS DP V1 B 30 FC 56 J31069 D0155 U001 A0 7618 ...