Examples/applications
6.5 Programming a module failure
FC 45
6-10
Function manual, Release 03/2006 , J31069-D0167-U001-A2-7618
Network: 2 Reset channel 2 on error
L #OB122_MEM_ADDR
L
"MOBY DB".SLG[2].ASM_address
-D
SRW 1
L 1
+D
// Formula:
// (#OB122_MEM_ADDR -
SLG[x].ASM_address) / 2 + 1
L
"MOBY DB".SLG[2].ASM_channel
==I
SPBN x2
// Compare with config.
channel
SET
S "MOBY DB".write/read
device[2].ASM_failure
// Power failure on ASM
x2:
NOP 0
OB 86 must also be available on the automation system in addition to OB 122 to prevent the
system from switching to STOP if a PROFIBUS slave fails. No code needs to be
programmed in OB 86 for the correct operation of FC 45.
After the error on the ASM has been corrected and the ASM is ready for operation again, the
user must send an init_run to the FC 45. The ASM is then ready for operation.