I have problem with testing my application with software redundancy.
STATION 'A' : CPU - 315 2PN/DP
CP 343-1 Lean
STATION 'B' : CPU - 315 2PN/DP
CP 343-1 Lean
I bought SIMATIC S7, SW REDUNDANZ V1.2 SP3, single license.
I insatalled software from CD and take SWR_AGSEND_300 blocks from Library.
I connected two CP 343-1 processors with Profinet cables.
I made ISO -on-TCP connection with ID :1 and LADDR W#16#0100.
IP adresses of two CP's are : 192.168.20.2 and 192.168.20.4
I made application as described in user manual on CD and in OB100 called FC100- SWR_START like this :
Code: Select all
CALL "SWR_START"
AG_KENNUNG :='A' // PLC-Classification: A for Station A
DB_WORK_NO :=DB1 // Work DB for SWR
DB_SEND_NO :=DB2 // Send DB for SWR
DB_RCV_NO :=DB3 // Receive DB for SWR
MPI_ADR :=0 // MPI-address of other station
LADDR :=256 // Base address of CP
VERB_ID :=1 // Connection no. of redundancy coupling
DP_MASTER_SYS_ID:=0 // Identification of DP-mastersystem (HW-config)
DB_COM_NO :=DB5 // Instance-DB of FB 101
DP_KOMMUN :=0 // Identification of DP-master
ADR_MODUS :=1 // Interval for CPU I/Q addressing
PAA_FIRST :=5 // Address of first redundant outputbyte
PAA_LAST :=0 // Address of last redundant outputbyte
MB_NO :=30 // First flagbyte used within redundant user program
MB_LEN :=70 // Amount of flagbytes used within redundant user program
IEC_NO :=0 // First instance DB used for redundant iec counters or timers
IEC_LEN :=0 // Amount of instance DBs used within redundant user program
DB_NO :=20 // First DB used within redundant user program
DB_NO_LEN :=1 // Amount of DBs used within redundant user program
SLAVE_NO :=0 // Profibus address of first used DP-slave (IM 153-3)
SLAVE_LEN :=0 // Amount of used DP-slaves
SLAVE_DISTANCE :=0 // Configuration of IM 153-3 interface
DB_A_B_NO :=DB4 // Send DB for non redundant data from Station A to B
DB_A_B_NO_LEN :=W#16#0 // Amount of used data bytes within Send DB
DB_B_A_NO :=DB6 // Receive DB for non redundant data from Station B to A
DB_B_A_NO_LEN :=W#16#0 // Amount of used data bytes within Receive DB
RETURN_VAL :=MW2 // Block return value
EXT_INFO :=MW4 // Extended information
After I put PLC in RUN, it coudn't reach this mode and I gat in Diagnostic buffer :
STOP caused by - STOP command
FC number: 100
Module adress: 2980
PLC always in STOP mode !!!
Where is the fault ?
I also tried to make redundancy with MPI communication (and FB103 instead of FB104) but always PLC in STOP and same diagnostic.
Does SWR could work without ET200S?
In User manual for SWR write that it's possible.
If somebody knows please help me !!!
p.s. I will attach my test application.