Industry Online Support
Technical Forum
1/30/2009 12:23 AM | |
Posts: 4 Rating:
|
I'm a moron. I'm having a hard time getting this to really work on the bench and want a firm handle on it before I fly to the moon on my hot air balloon :) I have no feel for bsend/brcv except the numbness in my scalp. I read the FAQ on this subject entitled, "How do you program communication blocks FB12 "BSEND" and FB13 "BRCV" for data exchange on the S7-300?" and am trying to get the sample file to work - Sample_S7-300_BSEND_BRCV.zip . This program uses an FB with a multi-instance DB and an array for data storage. It all looks pretty straightforward. The difference for meis that I have 2 x 315-2 PN/DPs, not 2 x 315-2 w/ 343-1s. by the way, both are connected to a switch, towhich my laptop is connected. all hardware is new and OK. So what I have done to try to make this work is > Set up & verified physical connections (they ping out, I can monitor, up/dn load etc...) > Changed HWConfig to reflect my 2 CPUs > Clock byte is set for MB 10 (and works in VAT) > Networking is set up, I can download HWConfig and Pgm blocks (FB12/13 I even overwrote from standard Library) > Set up NetPro connection for local/partner, one is active, both use same subnet, both connect to the little green line yada yada etc... > IMPORTANT: verified that PLC-A SendR_ID is the same as PLC-B RcvR_ID (it is a 1) and vica/versa (other is a 2) so the send/receiveare properly paired,and all Local ID is just w#16#1 so they're using the same connection - done in FB100 block calls to BSEND/BRCV. > Compiled & downloaded HWConfig and all program blocks > threw some dummy data in the send/rcv data blocks > Opened up a VAT table and began pulling hairs out of my head. Results: Green lights on PLC/ program is running butthe VAT shows Error is on,and Status = 1 for both BSEND/BRCV which to me just points to connection and basics. The program appears to be working too, and it is giving me this error for a reason. 1. Most importantly, any ideas on what I couldbe missing or what to look for? 2. If 1 partner is dead and the other is running, it will have this error.What I read leads me to believe that the error will go away once the partner is up & running i.e. either BSEND or BRCV handles it automatically on the scan subsequent to the partner being up & ready to run and you don't have to reset the error nor clear the Status. Is that right? |
Follow us on