LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to write to a PLC Simatic S7-300 via HMI Adapter from Labview

Has someone tried to write from Labview 6.0 via a Siemens HMI Adapter to a DB on a Simatic S7-300 CPU.
I am only able to read. Trying to write comes the message from the OPC server: Protocol error, NO response from PLC
0 Kudos
Message 1 of 7
(4,303 Views)

Hi Tirol,

What method are you using to write to the Siemens HMI Adapter from LabVIEW?  Also, was there an error number associated with that message?

Thanks!
Megan B.
National Instruments

0 Kudos
Message 2 of 7
(4,271 Views)

Hi Megan

The Error code is: Protocol error(1): No response from PLC

I use the OPC to URL vi  and then the datasocket write vi.

Writing I use the same parameters and setting in the OPC server.

Lars

0 Kudos
Message 3 of 7
(4,269 Views)

Hi Lars,

I have just a few more questions! What OPC server are you using and which OPC standard is that server compliant with?

Thanks!
Megan B.
National Instruments
0 Kudos
Message 4 of 7
(4,245 Views)
Hello Triol,
  Do you already know what kind of protocol the Simatic used? I had ever use 3964R protocol comunicated with SIEMENS S5 module.
0 Kudos
Message 5 of 7
(4,236 Views)
Hi  Megan and High Techie
 
I am using the Industrial Automation OPC Servers  Version 5.1 (Built 4) from National Instruments .
The protokol that Siemens uses is the 3964R for communikation with Simatic S7-300.
 
I was now able to write to M Variables but I am still not able to write to Datablock Variables (DB).( this is what I need.)
 
Lars
0 Kudos
Message 6 of 7
(4,220 Views)

Greetings!
   Thanks for the post. Please check the following.

   1) Did you try connecting with server explorer and see if you are getting a response from the PLC

   2) Also please refer to the following links which will help you on further programming

    http://digital.ni.com/public.nsf/websearch/3F0B1B7C1E80FC3286256738007EED39?OpenDocument
    http://digital.ni.com/public.nsf/websearch/F92C1F2F7B35105B86256DB200628B24?OpenDocument
    http://digital.ni.com/public.nsf/websearch/9FAE59C3B902458B8625672400651A2E?OpenDocument
 
   3) Is this the first time you are talking to the PLC , or did it just happen and if it did was there something that changed

Do you have any vi built and testing. The links above have example programs you could use.

Thanks much and hope this helps.
Best regards
Avi Harjani

0 Kudos
Message 7 of 7
(4,201 Views)