Lookout

cancel
Showing results for 
Search instead for 
Did you mean: 

A problem that how to communicate between PLC S7-300 and IA Server

The PC running the OPC server is connected to PLC S7-300 via the RS232 serial port and the Siemens RS232-MPI adapter (product no. 6ES7972-0CA23-0XA0).
But I encounter such problem when I create an object(S7_HMI)in IA Server:
Step 1:
links:http://www.simwe.com/forum/upload/2005/04/30/87472755.jpg

Error message:
Protocol error:Unexpected response from PLC
links:http://www.simwe.com/forum/upload/2005/04/30/48471774.jpg

When I communicate between S7-300 and PC by LOOKOUT 5.1,it works well.

Could someone give me help? Thanks a lot.

帖子被qzxin在05-08-2005 04:54 AM时编辑过了

帖子被qzxin在05-08-2005 04:56 AM时编辑过了

0 Kudos
Message 1 of 6
(7,876 Views)
Hi,

Could you please tell me which version of the IA Servers are you using? Is that 5.1 as well? The communication objects in IA OPC Servers 5.1 are the same as in Lookout 5.1. Do you know if by any chance there is another program trying to use the serial port when you set it up using IA OPC Server? I am guessing that you are setting the Siemens object exactly the same in both Lookout and the IA OPC Servers, right?

One possible thing you could try, assumming there are differences between the object in Lookout and IA OPC Server, is to copy and replace the s7_hmi.cbx file from the Lookout directory into the IA OPC Server directory. Please, make sure that you back up your original s7_hmi file before overwritting it.

Please, let me know if you have the previous info and how this suggested workaround works.

Thanks!

GValdes
0 Kudos
Message 2 of 6
(7,850 Views)
Hi,
I would like to have some informations and help about communication between Siemens S7-300 and LabView.
I'm realizing a LabView panel to supervise a remote system and to do this I'm using the NI Industrial Automation OPC Server. I have to connect this panel to the PLC via modem.
I entered all data required but I always receive the message "Unexpected response from PLC" that means,according to the online help, that a response was received from the PLC but it was not the response expected according to the protocol: what does it means?Could someone tell me a suggestion to solve this problem?
Thank You very much
0 Kudos
Message 3 of 6
(7,796 Views)
Are you using a Profibus adapter of some kind? Since the S7-300 communicates via Profibus, that will be the first requirement in your system. National Instruments no longer sells these adapters, but you can view how they work with LabVIEW from the following Getting Started guide of an example adapter:

http://digital.ni.com/manuals.nsf/webAdvsearch/136643FBF4531B2C86256AFF0075D0BF?OpenDocument&vid=niwc&node=132100_US

From LabVIEW, you will need to communicate with your OPC server using datasocket. There are OPC examples that ship with LabVIEW, that demonstrate this. I recommend taking a look at the following example in the NI Example Finder:

Browse for example: Networking>>Datasocket>>General>>"NI Demo OPC Client.vi"

Hope this helps!

Regards,

Jeff M.

Applications Engineering
National Instruments
0 Kudos
Message 4 of 6
(7,781 Views)
First of all, Thank You very much for Your answer.
I'm using the TS Adapter that make the conversion from MPI to the serial bus.
I have made yet control panels to supervisor systems with Omron PLCs and I correctly use the DataSocket with the DSC module: with Omron PLCs I've never had any problems of communications. The problems is now with Siemens. For the communication between control panel and PLC I have to use the internal modem of my computer and the OPC is S7_MPI of IA opc Server.I wondering if this OPC is ok for modem communications (inside there is a form to insert the phone number of the remote station) or if every kind of modem are compatible with S7-300 modem it has inside.I've noted that my computer modem don't do the phone number when i run the front panel!In running mode, if I take a look to the Block Diagram and I click the "Highlight Execution" button I don't see any animation on the code generated by the HMI Wizard to connect the only one tag to the DataSocket URL.
Have You any other suggestions to solve the problem?

Massimo Lazari
0 Kudos
Message 5 of 6
(7,780 Views)
i'm trying to send sms using a gsm modem TC35i which communicates with an S7-300, i'm usin the software Teleservice of siemens,
my problem is that i don't know how to configure the ts adapter from the teleservice, the error message shows a communication problem.
is there a special hardware configuration to do?
should i connect directly the ts adapter to the pc?
or use this architecture: pc -> s7-300 -> ts adpter, the whole throw MPI?
0 Kudos
Message 6 of 6
(7,295 Views)